marknl
2011-08-26 d4708d3f3ebdebeae3b6efd12cb8b178aa0ced70
FS#1215 - show username in client-list 
3 files modified
15 ■■■■■ changed files
interface/web/client/lib/lang/en_clients_list.lng 1 ●●●● patch | view | raw | blame | history
interface/web/client/list/client.list.php 9 ●●●●● patch | view | raw | blame | history
interface/web/client/templates/clients_list.htm 5 ●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_clients_list.lng
@@ -3,6 +3,7 @@
$wb["client_id_txt"] = 'ID';
$wb["company_name_txt"] = 'Company name';
$wb["contact_name_txt"] = 'Contact name';
$wb["username_txt"] = 'Username';
$wb["city_txt"] = 'City';
$wb["country_txt"] = 'Country';
$wb["add_new_record_txt"] = 'Add new client';
interface/web/client/list/client.list.php
@@ -74,6 +74,15 @@
                            'width'        => "",
                            'value'        => "");  
$liste["item"][] = array(    'field'        => "username",
                            'datatype'    => "VARCHAR",
                            'formtype'    => "TEXT",
                            'op'        => "like",
                            'prefix'    => "%",
                            'suffix'    => "%",
                            'width'        => "",
                            'value'        => "");
$liste["item"][] = array(    'field'        => "city",
                            'datatype'    => "VARCHAR",
                            'formtype'    => "TEXT",
interface/web/client/templates/clients_list.htm
@@ -21,6 +21,7 @@
            <th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th>
            <th class="tbl_col_company_name" scope="col"><tmpl_var name="company_name_txt"></th>
            <th class="tbl_col_contact_name" scope="col"><tmpl_var name="contact_name_txt"></th>
            <th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th>
            <th class="tbl_col_city" scope="col"><tmpl_var name="city_txt"></th>
            <th class="tbl_col_country" scope="col"><tmpl_var name="country_txt"></th>
            <th class="tbl_col_country" scope="col">&nbsp;</th>
@@ -29,6 +30,7 @@
            <td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" style="width:30px;" onblur="submitForm('pageForm','client/client_list.php');" /></td>
            <td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" style="width:120px;" onblur="submitForm('pageForm','client/client_list.php');" /></td>
            <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" style="width:120px;" onblur="submitForm('pageForm','client/client_list.php');" /></td>
            <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" style="width:120px;" onblur="submitForm('pageForm','client/client_list.php');" /></td>
            <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" style="width:120px;" onblur="submitForm('pageForm','client/client_list.php');" /></td>
            <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" style="width:30px;" onblur="submitForm('pageForm','client/client_list.php');" /></td>
            <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/client_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
@@ -40,6 +42,7 @@
            <td class="tbl_col_client_id"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td>
            <td class="tbl_col_company_name"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="company_name"}</a></td>
            <td class="tbl_col_contact_name"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="contact_name"}</a></td>
            <td class="tbl_col_username"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></td>
            <td class="tbl_col_city"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="city"}</a></td>
            <td class="tbl_col_country"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="country"}</a></td>
            <td class="tbl_col_buttons">
@@ -53,7 +56,7 @@
        </tbody>
        <tfoot>
          <tr>
            <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td>
            <td class="tbl_footer tbl_paging" colspan="7"><tmpl_var name="paging"></td>
          </tr>
        </tfoot>
      </table>