Commit f62ced0b authored by tbrehm's avatar tbrehm

Cleanup.

parent b722a1ad
This a play zone with pedro.
Ideas are to create a class that can be easily consumed.
Also make it so it works with smarty on html and JSON for the lugin ;-)
<?php
/* This is a conceptual style code for feedback and work in progress
Translates the lang of the tables also...
Please hack
*/
class ISPConfigClient
{
private $SID;
public function __construct($soap_session_id){
$this->SID = $soap_session_id;
}
//* Get Reseller List
public function reseller_get_list(){
$params = array ( 'sid' => $session_id,
'module' => 'reseller',
'function' => 'reseller_list',
'params' => ''
);
}
public function reseller($ID){
// Get Reseller
$params = array ( 'sid' => $session_id,
'module' => 'reseller',
'function' => 'reseller_get',
'params' => array ( reseller_title => "Reseller1"));
}
}
public function reseller_edit(
// Adding a reseller
$params = array ( 'sid' => $session_id,
'module' => 'reseller',
'function' => 'reseller_add',
'params' => array ( reseller_title => 'Reseller1',
firma => 'Reseller4',
vorname => 'Jens',
limit_user => '50',
limit_disk => '1000',
limit_web => '10',
limit_domain => '10',
name => 'Jensen',
strasse => 'Hauptstr. 1',
plz => '12345',
ort => 'Hauptstadt',
telefon => '0511 5469766',
fax => '0511 9799655',
email => 'test@hostobserver.com',
internet => 'http://www.reseller4.tld',
reseller_user => 'reseller4',
reseller_passwort => 'huhu',
anrede => 'Herr', // Herr, Frau, Firma
land => 'Deutschland',
limit_httpd_include => '1',
limit_dns_manager => '1',
limit_domain_dns => '50',
province => 'Niedersachsen',
limit_shell_access => '0',
limit_cgi => '1',
limit_php => '1',
limit_ssi => '1',
limit_ftp => '1',
limit_mysql => '1',
limit_ssl => '1',
limit_anonftp => '1',
limit_standard_cgis => '1',
limit_wap => '1',
limit_error_pages => '1',
limit_frontpage => '0',
limit_mysql_anzahl_dbs => '100',
limit_slave_dns => '50',
client_salutatory_email_sender_email => '',
client_salutatory_email_sender_name => '',
client_salutatory_email_bcc => '',
client_salutatory_email_subject => '',
client_salutatory_email_message => '',
standard_index => '',
user_standard_index => ''
));
}
?>
\ No newline at end of file
<script language="JavaScript">
<!--
function del_record(link) {
if(window.confirm("")) {
location.href = link;
}
}
//-->
</script>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form action="index.php" method="post" name="login" target="_self" id="login">
<table width="288" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;Admin</td>
</tr>
</table>
</form>
This diff is collapsed.
<?php
?>
\ No newline at end of file
<?php
$wb["KD_Nr_txt"] = 'KD_Nr';
$wb["kdnr_err"] = 'kdnr_err';
$wb["PLZ_Index_txt"] = 'PLZ_Index';
$wb["Name1_txt"] = 'Name1';
$wb["Name2_txt"] = 'Name2';
$wb["Strasse_txt"] = 'Strasse';
$wb["Ort_txt"] = 'Ort';
$wb["Telefon_txt"] = 'Telefon';
$wb["Fax_txt"] = 'Fax';
$wb["email_txt"] = 'email';
$wb["Internet_txt"] = 'Internet';
$wb["Verkauft_txt"] = 'Verkauft';
$wb["bem_txt"] = 'Bemerkungen';
$wb["Typ_txt"] = 'Typ';
$wb["Land_lt_Haendler_txt"] = 'Land laut Hndler';
$wb["Land_dt_txt"] = 'Land (de)';
$wb["Land_int_txt"] = 'Land (int)';
$wb["LK_txt"] = 'Lnderkrzel';
$wb["Region_txt"] = 'Region';
?>
\ No newline at end of file
<?php
$module = array (
'name' => 'test',
'title' => 'Test',
'template' => 'module.tpl.htm',
'navframe_page' => '',
'startpage' => 'test/index.php',
'tab_width' => '',
'nav' =>
array (
0 =>
array (
'title' => 'tespanel',
'open' => 1,
'items' =>
array (
0 =>
array (
'title' => 'Halloooo',
'target' => 'content',
'link' => 'test/hallo.php',
),
),
),
1 =>
array (
'title' => 'm333',
'open' => 1,
'items' =>
array (
0 =>
array (
'title' => 'edit',
'target' => 'content',
'link' => 'resellers/reseller_list.php',
),
1 =>
array (
'title' => 'add',
'target' => '_top',
'link' => 'http://webmail.ensign.de',
),
2 =>
array (
'title' => 'ewtewew',
'target' => 'content',
'link' => 'test/link.php',
),
),
),
2 =>
array (
'title' => 'blablub die 2.2.',
'open' => 1,
'items' =>
array (
),
),
3 =>
array (
'title' => 't3',
'open' => 1,
'items' =>
array (
),
),
),
)
?>
\ No newline at end of file
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="126" class="frmText11">{tmpl_var name='KD_Nr_txt'}:</td>
<td width="366" class="frmText11"><input name="KD_Nr" type="text" class="text" value="{tmpl_var name='KD_Nr'}" size="15" maxlength="15"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='PLZ_Index_txt'}:</td>
<td width="366" class="frmText11"><input name="PLZ_Index" type="text" class="text" value="{tmpl_var name='PLZ_Index'}" size="5" maxlength="5"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Typ_txt'}:</td>
<td width="366" class="frmText11">
<select name="Typ" class="text">
{tmpl_var name='Typ'}
</select>
</td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Name1_txt'}:</td>
<td width="366" class="frmText11"><input name="Name1" type="text" class="text" value="{tmpl_var name='Name1'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Name2_txt'}:</td>
<td width="366" class="frmText11"><input name="Name2" type="text" class="text" value="{tmpl_var name='Name2'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Strasse_txt'}:</td>
<td width="366" class="frmText11"><input name="Strasse" type="text" class="text" value="{tmpl_var name='Strasse'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Ort_txt'}:</td>
<td width="366" class="frmText11"><input name="Ort" type="text" class="text" value="{tmpl_var name='Ort'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Telefon_txt'}:</td>
<td width="366" class="frmText11"><input name="Telefon" type="text" class="text" value="{tmpl_var name='Telefon'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Fax_txt'}:</td>
<td width="366" class="frmText11"><input name="Fax" type="text" class="text" value="{tmpl_var name='Fax'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='email_txt'}:</td>
<td width="366" class="frmText11"><input name="email" type="text" class="text" value="{tmpl_var name='email'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Internet_txt'}:</td>
<td width="366" class="frmText11"><input name="Internet" type="text" class="text" value="{tmpl_var name='Internet'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Verkauft_txt'}:</td>
<td width="366" class="frmText11"><input name="Verkauft" type="text" class="text" value="{tmpl_var name='Verkauft'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='bem_txt'}:</td>
<td width="366" class="frmText11"><textarea name='bem' cols='40' rows='5'>{tmpl_var name='bem'}</textarea></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='Region_txt'}:</td>
<td width="366" class="frmText11"><input name="Region" type="text" class="text" value="{tmpl_var name='Region'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='LK_txt'}:</td>
<td width="366" class="frmText11">
<select name="LK" class="text">
{tmpl_var name='LK'}
</select>
</td>
</tr> <tr>
<td class="frmText11">&nbsp;</td>
<td class="frmText11">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="Speichern" type="submit" class="button" value="Speichern">
<input name="Abbrechen" type="button" class="button" value="Abbrechen" onClick="self.location.href='haendler_list.php';">
</td>
</tr>
</table>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$tform_def_file = "form/test.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
header("Location: ../index.php");
exit;
}
// Loading classes
$app->uses('tpl,tform,tform_actions');
// let tform_actions handle the page
$app->tform_actions->onLoad();
?>
\ No newline at end of file
.navTopSelected {
background-color: #FFFFFF;
border-top: 1px solid #BFCBD9;
border-right: 1px solid #BFCBD9;
border-bottom: 1px none #BFCBD9;
border-left: 1px solid #BFCBD9;
text-align: center;
}
.navTop {
border-top: 1px none #BFCBD9;
border-right: 1px none #BFCBD9;
border-bottom: 1px solid #BFCBD9;
border-left: 1px none #BFCBD9;
}
.navTopDefault {
background-color: #DEE4F2;
/*border: 1px solid #FFFFFF;*/
border-top: 1px solid #FFFFFF;
border-right: 1px none #FFFFFF;
border-bottom: 0px none #BFCBD9;
border-left: 1px solid #FFFFFF;
text-align: center;
}
.mainContent {
background-color: #FFFFFF;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-left-style: solid;
border-top-color: #BFCBD9;
border-right-color: #BFCBD9;
border-bottom-color: #BFCBD9;
border-left-color: #BFCBD9;
}
.txtNavTopDefault {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #496FA8;
text-decoration: none;
}
.txtNavTopSelected {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #496FA8;
text-decoration: none;
}
.navLeftHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #4E70A7;
text-decoration: none;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #999999;
border-right-color: #999999;
border-bottom-color: #4E70A7;
border-left-color: #999999;
text-align: left;
}
.navLeftItem {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #4E70A7;
text-decoration: none;
line-height: 15px;
}
.txtNavTopHelp {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
.tblHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #496FA8;
background-color: #DEE4F2;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #C0CCDA;
border-right-color: #C0CCDA;
border-bottom-color: #C0CCDA;
border-left-color: #C0CCDA;
}
.tblFooter {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
color: #666666;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #C0CCDA;
border-right-color: #999999;
border-bottom-color: #999999;
border-left-color: #999999;
}
.frmText11 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
text-decoration: none;
}
.frmText11:Hover {
text-decoration: underline;
}
textarea,input.text,select,option{
color:#000000;
font-family:CourierNew,Courier,monospace;
background-color:#FCFCFC;
font-size:14px;
font-style:normal;
font-variant:normal;
font-weight:normal;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#BFCBD9;
scrollbar-face-color:#BFCBD9;
scrollbar-base-color:#BFCBD9;
scrollbar-3dlight-color:#BFCBD9;
border: 1 solid ##BFCBD9;
position: relative;
}
.frmTextHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 18px;
color: #496FA8;
text-decoration: none;
}
.frmTextSubHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12px;
color: #496FA8;
text-decoration: none;
}
/*
.button {
border-color : #666699 #666699 #666699 #666699;
border-width : 1 1 1 1; color : Black;
background-color : #FFFFFF;
height : 19px;
font-size : 12px;
}
*/
.frmTab {
border-top: 1px none #999999;
border-right: 1px none #999999;
border-bottom: 1px solid #C0CCDA;
border-left: 1px none #999999;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
line-height: 16px;
}
.frmTabSelected {
background-color: #FFFFFF;
border-top: 1px solid #C0CCDA;
border-right: 1px solid #C0CCDA;
border-bottom: 1px none #999999;
border-left: 1px solid #C0CCDA;
text-align: center;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
line-height: 16px;
}
.frmTabDefault {
background-color: #DEE4F2;
border: 1px solid #C0CCDA;
text-align: center;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
line-height: 16px;
}
.frmHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #999999;
border-right-color: #999999;
border-bottom-color: #999999;
border-left-color: #999999;
}
.frmSubHead {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #999999;
border-right-color: #999999;
border-bottom-color: #999999;
border-left-color: #999999;
font-weight: bold;
}
.error {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;