tbrehm
2011-09-05 ae8bfe0d361f0d2054c50267243ca930f1b89893
Added ID column to ostemplate list.
3 files modified
17 ■■■■ changed files
interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/list/openvz_ostemplate.list.php 9 ●●●●● patch | view | raw | blame | history
interface/web/vm/templates/openvz_ostemplate_list.htm 7 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng
@@ -4,4 +4,5 @@
$wb["template_name_txt"] = 'Template name';
$wb["server_id_txt"] = 'Server';
$wb["allservers_txt"] = 'Exists on all servers';
$wb["ostemplate_id_txt"] = 'ID';
?>
interface/web/vm/list/openvz_ostemplate.list.php
@@ -56,6 +56,15 @@
                            'width'        => "",
                            'value'        => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));
$liste["item"][] = array(    'field'        => "ostemplate_id",
                            'datatype'    => "INTEGER",
                            'formtype'    => "TEXT",
                            'op'        => "=",
                            'prefix'    => "",
                            'suffix'    => "",
                            'width'        => "",
                            'value'        => "");
$liste["item"][] = array(    'field'        => "template_name",
                            'datatype'    => "VARCHAR",
interface/web/vm/templates/openvz_ostemplate_list.htm
@@ -18,6 +18,7 @@
        <thead>
          <tr>
            <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
            <th class="tbl_col_ostemplate_id" scope="col"><tmpl_var name="ostemplate_id_txt"></th>
            <th class="tbl_col_template_name" scope="col"><tmpl_var name="template_name_txt"></th>
            <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
            <th class="tbl_col_allservers" scope="col"><tmpl_var name="allservers_txt"></th>
@@ -25,7 +26,8 @@
          </tr>
          <tr>
            <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_active'}</select></td>
            <td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" onblur="submitForm('pageForm','vm/openvz_ostemplate_list.php');" /></td>
            <td class="tbl_col_ostemplate_id"><input type="text" name="search_ostemplate_id" value="{tmpl_var name='search_ostemplate_id'}" style="width:30px;" /></td>
            <td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td>
            <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_server_id'}</select></td>
            <td class="tbl_col_allservers"><select name="search_allservers" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_allservers'}</select></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','vm/openvz_ostemplate_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
@@ -35,6 +37,7 @@
          <tmpl_loop name="records">
          <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
            <td class="tbl_col_active"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td>
            <td class="tbl_col_ostemplate_id"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ostemplate_id"}</a></td>
            <td class="tbl_col_template_name"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_name"}</a></td>
            <td class="tbl_col_server_id"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td>
            <td class="tbl_col_allservers"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="allservers"}</a></td>
@@ -48,7 +51,7 @@
        </tbody>
        <tfoot>
          <tr>
            <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td>
            <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td>
          </tr>
        </tfoot>
      </table>