tbrehm
2007-05-20 4e44dd7a82f27b7d5a9825773783987762e5a9e6
changed client form
3 files deleted
5 files modified
1 files added
527 ■■■■■ changed files
interface/web/admin/lib/module.conf.php 239 ●●●● patch | view | raw | blame | history
interface/web/client/form/client.tform.php 102 ●●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_client.lng 2 ●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_clients_list.lng 1 ●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_address.htm 68 ●●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_limits.htm 44 ●●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_login.htm 36 ●●●●● patch | view | raw | blame | history
interface/web/client/templates/clients_list.htm 31 ●●●●● patch | view | raw | blame | history
interface/web/designer/lib/module.conf.php 4 ●●● patch | view | raw | blame | history
interface/web/admin/lib/module.conf.php
@@ -1,120 +1,121 @@
<?php
$module["name"]         = "admin";
$module["title"]         = "System";
$module["template"]     = "module.tpl.htm";
$module["startpage"]     = "admin/users_list.php";
$module["tab_width"]    = '60';
$items[] = array( 'title'     => "Add user",
                  'target'     => 'content',
                  'link'    => 'admin/users_edit.php');
$items[] = array( 'title'     => "Edit user",
                  'target'     => 'content',
                  'link'    => 'admin/users_list.php');
$module["nav"][] = array(    'title'    => 'CP Users',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add group",
                  'target'     => 'content',
                  'link'    => 'admin/groups_edit.php');
$items[] = array( 'title'     => "Edit group",
                  'target'     => 'content',
                  'link'    => 'admin/groups_list.php');
$module["nav"][] = array(    'title'    => 'Groups',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add server",
                  'target'     => 'content',
                  'link'    => 'admin/server_edit.php');
$items[] = array( 'title'     => "Edit server",
                  'target'     => 'content',
                  'link'    => 'admin/server_list.php');
$module["nav"][] = array(    'title'    => 'Servers',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add user",
                  'target'     => 'content',
                  'link'    => 'admin/dbsync_edit.php');
$items[] = array( 'title'     => "Edit user",
                  'target'     => 'content',
                  'link'    => 'admin/dbsync_list.php');
$items[] = array( 'title'     => "Sync. Now",
                  'target'     => 'content',
                  'link'    => 'admin/dbsync_cron.php');
$module["nav"][] = array(    'title'    => 'DB Sync.',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add user",
                  'target'     => 'content',
                  'link'    => 'admin/filesync_edit.php');
$items[] = array( 'title'     => "Edit user",
                  'target'     => 'content',
                  'link'    => 'admin/filesync_list.php');
$module["nav"][] = array(    'title'    => 'File Sync.',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
// Getting the admin options from other modules
$modules = explode(',',$_SESSION["s"]["user"]["modules"]);
if(is_array($modules)) {
    foreach($modules as $mt) {
        if(is_file($mt."/lib/admin.conf.php")) {
            $options = array();
            include_once($conf["rootpath"]."/web/".$mt."/lib/admin.conf.php");
            if(is_array($options)) {
                foreach($options as $opt) {
                    $module["nav"][] = $opt;
                }
            }
        }
    }
}
<?php
$module["name"]         = "admin";
$module["title"]         = "System";
$module["template"]     = "module.tpl.htm";
$module["startpage"]     = "admin/users_list.php";
$module["tab_width"]    = '60';
$items[] = array( 'title'     => "Add user",
                  'target'     => 'content',
                  'link'    => 'admin/users_edit.php');
$items[] = array( 'title'     => "Edit user",
                  'target'     => 'content',
                  'link'    => 'admin/users_list.php');
$module["nav"][] = array(    'title'    => 'CP Users',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add group",
                  'target'     => 'content',
                  'link'    => 'admin/groups_edit.php');
$items[] = array( 'title'     => "Edit group",
                  'target'     => 'content',
                  'link'    => 'admin/groups_list.php');
$module["nav"][] = array(    'title'    => 'Groups',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add server",
                  'target'     => 'content',
                  'link'    => 'admin/server_edit.php');
$items[] = array( 'title'     => "Edit server",
                  'target'     => 'content',
                  'link'    => 'admin/server_list.php');
$module["nav"][] = array(    'title'    => 'Servers',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
$items[] = array( 'title'     => "Add user",
                  'target'     => 'content',
                  'link'    => 'admin/dbsync_edit.php');
$items[] = array( 'title'     => "Edit user",
                  'target'     => 'content',
                  'link'    => 'admin/dbsync_list.php');
$items[] = array( 'title'     => "Sync. Now",
                  'target'     => 'content',
                  'link'    => 'admin/dbsync_cron.php');
$module["nav"][] = array(    'title'    => 'DB Sync.',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
/*
$items[] = array( 'title'     => "Add user",
                  'target'     => 'content',
                  'link'    => 'admin/filesync_edit.php');
$items[] = array( 'title'     => "Edit user",
                  'target'     => 'content',
                  'link'    => 'admin/filesync_list.php');
$module["nav"][] = array(    'title'    => 'File Sync.',
                            'open'     => 1,
                            'items'    => $items);
// aufräumen
unset($items);
*/
// Getting the admin options from other modules
$modules = explode(',',$_SESSION["s"]["user"]["modules"]);
if(is_array($modules)) {
    foreach($modules as $mt) {
        if(is_file($mt."/lib/admin.conf.php")) {
            $options = array();
            include_once($conf["rootpath"]."/web/".$mt."/lib/admin.conf.php");
            if(is_array($options)) {
                foreach($options as $opt) {
                    $module["nav"][] = $opt;
                }
            }
        }
    }
}
?>
interface/web/client/form/client.tform.php
@@ -83,6 +83,50 @@
            'rows'        => '',
            'cols'        => ''
        ),
        'username' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'password' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'PASSWORD',
            'default'    => '',
            'value'        => '',
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'language' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'SELECT',
            'default'    => $conf["language"],
            'value'        => array('en' => 'en'),
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'usertheme' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'SELECT',
            'default'    => 'default',
            'value'        => array('default' => 'default','grey' => 'grey'),
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'street' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
@@ -345,64 +389,6 @@
    # END Datatable fields
    ##################################
    )
);
$form["tabs"]['login'] = array (
    'title'     => "Login",
    'width'     => 100,
    'template'     => "templates/client_edit_login.htm",
    'fields'     => array (
    ##################################
    # Begin Datatable fields
    ##################################
        'username' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'password' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'PASSWORD',
            'default'    => '',
            'value'        => '',
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'language' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'SELECT',
            'default'    => $conf["language"],
            'value'        => array('en' => 'en'),
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
        'usertheme' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'SELECT',
            'default'    => 'default',
            'value'        => array('default' => 'default','grey' => 'grey'),
            'separator'    => '',
            'width'        => '30',
            'maxlength'    => '255',
            'rows'        => '',
            'cols'        => ''
        ),
    ##################################
    # END Datatable fields
    ##################################
    ),
);
/*
interface/web/client/lib/lang/en_client.lng
@@ -18,7 +18,7 @@
$wb["street_txt"] = 'Street';
$wb["zip_txt"] = 'ZIP';
$wb["city_txt"] = 'City';
$wb["state_txt"] = 'state';
$wb["state_txt"] = 'State';
$wb["country_txt"] = 'Country';
$wb["telephone_txt"] = 'Telephone';
$wb["mobile_txt"] = 'Mobile';
interface/web/client/lib/lang/en_clients_list.lng
@@ -10,4 +10,5 @@
$wb["page_back_txt"] = 'Back';
$wb["delete_txt"] = 'Delete';
$wb["filter_txt"] = 'Filter';
$wb["add_new_record_txt"] = 'Add new client';
?>
interface/web/client/templates/client_edit_address.htm
File was deleted
interface/web/client/templates/client_edit_limits.htm
File was deleted
interface/web/client/templates/client_edit_login.htm
File was deleted
interface/web/client/templates/clients_list.htm
New file
@@ -0,0 +1,31 @@
<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br />
<input type="button" value="{tmpl_var name="add_new_record_txt"}" class="button" onClick="loadContent('client/client_edit.php');" /><div class="buttonEnding"></div><br /><br />
<table width="100%" border="0" cellspacing="0" cellpadding="4" class="listTable">
  <tr>
    <td class="tblHead"><tmpl_var name="company_name_txt"></td>
    <td class="tblHead"><tmpl_var name="contact_name_txt"></td>
    <td class="tblHead"><tmpl_var name="city_txt"></td>
    <td class="tblHead"><tmpl_var name="country_txt"></td>
    <td class="tblHead">&nbsp;</td>
  </tr>
  <tr>
    <td class="frmText11"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" class="text" /></td>
    <td class="frmText11"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" class="text" /></td>
    <td class="frmText11"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" class="text" /></td>
    <td class="frmText11"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" class="text" /></td>
    <td class="frmText11" align="right"><input name="Filter" type="button" id="Filter" value="{tmpl_var name="filter_txt"}" class="button" onClick="submitForm('pageForm','client/client_list.php');"><div class="buttonEnding"></div></td>
  </tr>
  <tmpl_loop name="records">
  <tr bgcolor="{tmpl_var name="bgcolor"}">
    <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="company_name"}</a></td>
    <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="contact_name"}</a></td>
    <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="city"}</a></td>
    <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="country"}</a></td>
    <td class="frmText11" align="right">[<a href="javascript: del_record('client/client_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">{tmpl_var name='delete_txt'}</a>]</td>
  </tr>
  </tmpl_loop>
  <tr>
      <td colspan="5" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td>
  </tr>
</table>
interface/web/designer/lib/module.conf.php
@@ -28,7 +28,8 @@
        ),
      ),
    ),
    1 =>
    /*
    1 =>
    array (
      'title' => 'Formulare',
      'open' => '1',
@@ -88,6 +89,7 @@
        ),
      ),
    ),
    */
  ),
)
?>