[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <!-- INCLUDE overall_header.html --> 2 3 <a name="maincontent"></a> 4 5 <!-- IF S_EDIT_MODULE --> 6 7 <script type="text/javascript"> 8 // <![CDATA[ 9 function display_options(value) 10 { 11 if (value == 'category') 12 { 13 dE('modoptions', -1); 14 } 15 else 16 { 17 dE('modoptions', 1); 18 } 19 } 20 21 function display_modes(value) 22 { 23 // Find the old select tag 24 var item = document.getElementById('module_mode'); 25 26 // Create the new select tag 27 var new_node = document.createElement('select'); 28 new_node.setAttribute('id', 'module_mode'); 29 new_node.setAttribute('name', 'module_mode'); 30 31 // Substitute it for the old one 32 item.parentNode.replaceChild(new_node, item); 33 34 // Reset the variable 35 item = document.getElementById('module_mode'); 36 37 var j = 0; 38 <!-- BEGIN m_names --> 39 40 if (value == '{m_names.A_NAME}') 41 { 42 <!-- BEGIN modes --> 43 item.options[j] = new Option('{m_names.modes.A_VALUE}'); 44 item.options[j].value = '{m_names.modes.A_OPTION}'; 45 j++; 46 <!-- END modes --> 47 } 48 <!-- END m_names --> 49 50 // select first item 51 item.options[0].selected = true; 52 } 53 54 // ]]> 55 </script> 56 57 <a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a> 58 59 <h1>{L_TITLE} :: {MODULENAME}</h1> 60 61 <p>{L_EDIT_MODULE_EXPLAIN}</p> 62 63 <!-- IF S_ERROR --> 64 <div class="errorbox"> 65 <h3>{L_WARNING}</h3> 66 <p>{ERROR_MSG}</p> 67 </div> 68 <!-- ENDIF --> 69 70 <form id="moduleedit" method="post" action="{U_EDIT_ACTION}"> 71 72 <fieldset> 73 <legend>{L_GENERAL_OPTIONS}</legend> 74 <dl> 75 <dt><label for="module_langname">{L_MODULE_LANGNAME}:</label><br /> 76 <span>{L_MODULE_LANGNAME_EXPLAIN}</span></dt> 77 <dd><input name="module_langname" type="text" class="text medium" id="module_langname" value="{MODULE_LANGNAME}" /></dd> 78 </dl> 79 <dl> 80 <dt><label for="module_type">{L_MODULE_TYPE}:</label></dt> 81 <dd><select name="module_type" id="module_type" onchange="display_options(this.value);"><option value="category"<!-- IF S_IS_CAT --> selected="selected"<!-- ENDIF -->>{L_CATEGORY}</option><option value="module"<!-- IF not S_IS_CAT --> selected="selected"<!-- ENDIF -->>{L_MODULE}</option></select></dd> 82 </dl> 83 <dl> 84 <dt><label for="parent_id">{L_PARENT}:</label></dt> 85 <dd><select name="module_parent_id" id="parent_id">{S_CAT_OPTIONS}</select></dd> 86 </dl> 87 <hr /> 88 <dl> 89 <dt><label for="module_enabled">{L_MODULE_ENABLED}:</label></dt> 90 <dd><label><input type="radio" class="radio" name="module_enabled" id="module_enabled" value="1"<!-- IF MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> 91 <label><input type="radio" class="radio" name="module_enabled" value="0"<!-- IF not MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd> 92 </dl> 93 <div id="modoptions"<!-- IF S_IS_CAT --> style="display: none;"<!-- ENDIF -->> 94 <dl> 95 <dt><label for="module_display">{L_MODULE_DISPLAYED}:</label><br /><span>{L_MODULE_DISPLAYED_EXPLAIN}</span></dt> 96 <dd><label><input type="radio" class="radio" name="module_display" id="module_display" value="1"<!-- IF MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> 97 <label><input type="radio" class="radio" name="module_display" value="0"<!-- IF not MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd> 98 </dl> 99 <dl> 100 <dt><label for="module_basename">{L_CHOOSE_MODULE}:</label><br /> 101 <span>{L_CHOOSE_MODULE_EXPLAIN}</span></dt> 102 <dd><select name="module_basename" id="module_basename" onchange="display_modes(this.value);">{S_MODULE_NAMES}</select></dd> 103 </dl> 104 <dl> 105 <dt><label for="module_mode">{L_CHOOSE_MODE}:</label><br /> 106 <span>{L_CHOOSE_MODE_EXPLAIN}</span></dt> 107 <dd><select name="module_mode" id="module_mode">{S_MODULE_MODES}</select></dd> 108 </dl> 109 </div> 110 111 <p class="submit-buttons"> 112 <input type="hidden" name="action" value="{ACTION}" /> 113 <input type="hidden" name="m" value="{MODULE_ID}" /> 114 115 <input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" /> 116 <input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" /> 117 </p> 118 {S_FORM_TOKEN} 119 </fieldset> 120 </form> 121 122 <!-- ELSE --> 123 124 <h1>{L_ACP_MODULE_MANAGEMENT}</h1> 125 126 <p>{L_ACP_MODULE_MANAGEMENT_EXPLAIN}</p> 127 128 <!-- IF S_ERROR --> 129 <div class="errorbox"> 130 <h3>{L_WARNING}</h3> 131 <p>{ERROR_MSG}</p> 132 </div> 133 <!-- ENDIF --> 134 135 <table cellspacing="1"> 136 <tbody> 137 <tr> 138 <td class="row3">{NAVIGATION}<!-- IF S_NO_MODULES --> [<a href="{U_EDIT}">{L_EDIT}</a> | <a href="{U_DELETE}">{L_DELETE}</a> | <!-- IF MODULE_ENABLED --><a href="{U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{U_ENABLE}">{L_ENABLE}</a><!-- ENDIF -->]<!-- ENDIF --></td> 139 </tr> 140 </tbody> 141 </table> 142 143 <!-- IF .modules --> 144 <table cellspacing="1"> 145 <col class="row1" /><col class="row1" /><col class="row2" /><col class="row2" /> 146 <tbody> 147 <!-- BEGIN modules --> 148 <tr> 149 <td style="width: 5%; text-align: center;">{modules.MODULE_IMAGE}</td> 150 <td><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[{L_HIDDEN_MODULE}]</span><!-- ENDIF --></td> 151 <td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;"> <!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF --> </td> 152 <td style="width:90px; white-space: nowrap; text-align: right; vertical-align: middle;"> 153 <!-- IF modules.S_FIRST_ROW && not modules.S_LAST_ROW --> 154 {ICON_MOVE_UP_DISABLED} 155 <a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a> 156 <!-- ELSEIF not modules.S_FIRST_ROW && not modules.S_LAST_ROW--> 157 <a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a> 158 <a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a> 159 <!-- ELSEIF modules.S_LAST_ROW && not modules.S_FIRST_ROW --> 160 <a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a> 161 {ICON_MOVE_DOWN_DISABLED} 162 <!-- ELSE --> 163 {ICON_MOVE_UP_DISABLED} 164 {ICON_MOVE_DOWN_DISABLED} 165 <!-- ENDIF --> 166 <a href="{modules.U_EDIT}">{ICON_EDIT}</a> 167 <a href="{modules.U_DELETE}">{ICON_DELETE}</a> 168 </td> 169 </tr> 170 <!-- END modules --> 171 </tbody> 172 </table> 173 <!-- ENDIF --> 174 175 <div class="clearfix"> </div> 176 177 <form id="quick" method="post" action="{U_ACTION}"> 178 179 <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};"> 180 <input type="hidden" name="action" value="quickadd" /> 181 182 <select name="quick_install">{S_INSTALL_OPTIONS}</select> 183 <input class="button2" name="quickadd" type="submit" value="{L_ADD_MODULE}" /> 184 </fieldset> 185 186 </form> 187 188 <form id="module" method="post" action="{U_ACTION}"> 189 190 <fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};"> 191 <input type="hidden" name="action" value="add" /> 192 <input type="hidden" name="module_parent_id" value="{PARENT_ID}" /> 193 194 <input type="text" name="module_langname" maxlength="255" /> 195 <input class="button2" name="addmodule" type="submit" value="{L_CREATE_MODULE}" /> 196 </fieldset> 197 198 </form> 199 200 <div class="clearfix"> </div><br style="clear: both;" /> 201 202 <form id="mselect" method="post" action="{U_SEL_ACTION}"> 203 <fieldset class="quick"> 204 {L_SELECT_MODULE}: <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">{MODULE_BOX}</select> 205 206 <input class="button2" type="submit" value="{L_GO}" /> 207 </fieldset> 208 </form> 209 210 <!-- ENDIF --> 211 212 <!-- INCLUDE overall_footer.html -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Oct 2 15:03:47 2013 | Cross-referenced by PHPXref 0.7.1 |