Changeset 10198 for contributed_modules/modules/endpointman/templates
- Timestamp:
- 07/29/10 05:32:51 (3 years ago)
- Files:
-
- contributed_modules/modules/endpointman/templates/advanced_settings_settings.html (modified) (1 diff)
- contributed_modules/modules/endpointman/templates/advanced_subheader.html (modified) (1 diff)
- contributed_modules/modules/endpointman/templates/brand_model_manager.html (modified) (3 diffs)
- contributed_modules/modules/endpointman/templates/devices_manager.html (modified) (1 diff)
- contributed_modules/modules/endpointman/templates/global_footer.html (added)
- contributed_modules/modules/endpointman/templates/global_header.html (modified) (5 diffs)
- contributed_modules/modules/endpointman/templates/global_links.html (added)
- contributed_modules/modules/endpointman/templates/template_editor.html (modified) (1 diff)
- contributed_modules/modules/endpointman/templates/template_manager.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/endpointman/templates/advanced_settings_settings.html
r10052 r10198 1 <h3>{$message}</h3> 1 2 <form action='config.php{$web_vars}&display=epm_advanced&subpage=settings' method='POST'> 2 3 <table width='90%' align='center'> contributed_modules/modules/endpointman/templates/advanced_subheader.html
r10052 r10198 4 4 <td align='center'><h4><a href='{$web_vars}&display=epm_advanced&subpage=oui_manager'><?=_('OUI Manager')?></a></h4></td> 5 5 <td align='center'><h4><a href='{$web_vars}&display=epm_advanced&subpage=poce'><?=_('Product Options/Configuration Editor')?></a></h4></td> 6 <td align='center'><h4><a href='{$web_vars}&display=epm_advanced&subpage=iedl'><?=_('Import/Export Devices My Devices List')?></a></h4></td> 6 </tr> 7 <tr> 8 <td align='center'><h4><a href='{$web_vars}&display=epm_advanced&subpage=iedl'><?=_('Import/Export Devices My Devices List')?></a></h4></td> 9 <td align='center'><h4><a href='{$web_vars}&display=epm_advanced&subpage=sh_manager'><?=_('Manual Endpoint Modules Upload')?></a></h4></td> 7 10 <td align='center'><h4><a href='{$web_vars}&display=epm_advanced&subpage=sh_manager'><?=_('Show/Hide Brands/Models')?></a></h4></td> 8 11 </tr> contributed_modules/modules/endpointman/templates/brand_model_manager.html
r10052 r10198 19 19 --> 20 20 </style> 21 <h 1 align='center'><font color='red'>{$error}</font></h1>21 <h3 align='center'><font color='red'>{$error}</font></h3> 22 22 <center> 23 23 <form action='config.php{$web_var}&display=epm_config' method='POST'> … … 29 29 30 30 {if condition="isset($installer_address)"} 31 <?=_('Please wait for the progress bar to show below (this might take a minute or two)')?> 32 <iframe src="http://{$installer_address}" frameborder=0 width="100%" height=70 scrolling="no"></iframe> 31 <script> 32 function process_module_actions(actions) { 33 freepbx_modal_show('moduleBox'); 34 urlStr = "config.php?type=tool&display=epm_config&quietmode=1&handler=file&file=installer.html.php&module=endpointman&type=install&brand={$brand}"; 35 urlStr += "&rand="+Math.random ( ); 36 for (var i in actions) { 37 urlStr += "&moduleaction["+i+"]="+actions[i]; 38 } 39 $('#moduleBox').html('<iframe src="'+urlStr+'"></iframe><a href="#" onclick="close_module_actions(1)">Return</a>'); 40 } 41 function close_module_actions(goback) { 42 //freepbx_modal_close('moduleBox'); 43 freepbx_modal_hide('moduleBox'); 44 if (goback) { 45 location.href = 'config.php?display=epm_config&type=tool'; 46 } 47 } 48 process_module_actions(); 49 </script> 50 51 <div id="moduleBox" style="display:none;"></div> 52 33 53 {/if} 34 35 54 36 55 {loop name="brand2_list"} … … 44 63 <table width="100%" class="product" border="0" cellspacing="0" cellpadding="0"> 45 64 <tr> 46 <td colspan="2">{$value.long_name} {if condition="$value.cfg_ver != ''"}(<?=_('Version')?> [{$value.cfg_ver}]){/if} <form action='config.php{$web_var}&display=epm_config' method='POST'><input type="hidden" name="product" value="{$value.id}"> <input type="submit" name="button_{if condition="$value.installed == '1'"}uninstall{else}install{/if}" class="button_{if condition="$value.installed == '1'"}Disable{else}Enable{/if}" value="{if condition="$value.installed == '1'"}<?=_('Uninstall')?>{else}<?=_('Install')?>{/if}">{if condition="array_key_exists('update',$value)"}{if condition="$value.update == 1"}<input type="submit" name="button_update" class="button_update" value="Update">{/if}{/if}{if condition="$value.fw_type == 'install'"}<input type="submit" name="button_install_firmware" class="button_update" value="<?=_('Install Firmware')?>">{elseif condition="$value.fw_type == 'remove'"}<input type="submit" name="button_remove_firmware" class="button_update" value="<?=_('Remove Firmware')?>">{/if}{if condition="array_key_exists('update_fw',$value)"}{if condition="$value.update_fw == 1"}<input type="submit" name="button_update_firmware" class="button_update" value="<?=_('Update Firmware')?>">{/if}{/if}</form>{if condition="array_key_exists('update',$value)"}{if condition="$value.update == 1"}New Version: <i>{$value.update_vers}</i> <br/>Changes: <i>{$value.update_desc}</i>{/if}{/if}</td>65 <td colspan="2">{$value.long_name} {if condition="$value.cfg_ver != ''"}(<?=_('Version')?> [{$value.cfg_ver}]){/if} <form action='config.php{$web_var}&display=epm_config' method='POST'><input type="hidden" name="product" value="{$value.id}">{if condition="array_key_exists('update',$value)"}{if condition="$value.update == 1"}<input type="submit" name="button_update" class="button_update" value="Update">{/if}{/if}{if condition="$value.fw_type == 'install'"}<input type="submit" name="button_install_firmware" class="button_update" value="<?=_('Install Firmware')?>">{elseif condition="$value.fw_type == 'remove'"}<input type="submit" name="button_remove_firmware" class="button_update" value="<?=_('Remove Firmware')?>">{/if}{if condition="array_key_exists('update_fw',$value)"}{if condition="$value.update_fw == 1"}<input type="submit" name="button_update_firmware" class="button_update" value="<?=_('Update Firmware')?>">{/if}{/if}</form>{if condition="array_key_exists('update',$value)"}{if condition="$value.update == 1"}New Version: <i>{$value.update_vers}</i> <br/>Changes: <i>{$value.update_desc}</i>{/if}{/if}</td> 47 66 </tr> 48 67 <tr> contributed_modules/modules/endpointman/templates/devices_manager.html
r10052 r10198 179 179 <td width="19%" align='center'>{$value.ext} - {$value.description}</td> 180 180 <td align='center' width='18%'>{$value.template_name}</td> 181 <td align='center' width='9%'><a href= {$web_vars}&editready=true&display=epm_devices&id={$value.id}><img src='{$web_path}templates/images/edit.gif' ALT='<?=_('Edit')?>' border='0'></a></td>182 <td align='center' width='5%'><a href= {$web_vars}&deleteready=true&display=epm_devices&id={$value.id}><img src='{$web_path}templates/images/delete.gif' ALT='<?=_('Delete')?>' border='0'></a></td>181 <td align='center' width='9%'><a href=config.php?type=tool&display=epm_devices&editready=true&display=epm_devices&id={$value.id}><img src='{$web_path}templates/images/edit.gif' ALT='<?=_('Edit')?>' border='0'></a></td> 182 <td align='center' width='5%'><a href=config.php?type=tool&display=epm_devices&deleteready=true&display=epm_devices&id={$value.id}><img src='{$web_path}templates/images/delete.gif' ALT='<?=_('Delete')?>' border='0'></a></td> 183 183 </tr> 184 184 {/loop} contributed_modules/modules/endpointman/templates/global_header.html
r10031 r10198 18 18 <!-- End JavaScript --> 19 19 {/if} 20 <!-- config.php?type=tool&display=epm_config&quietmode=1&handler=file&module=endpointman&file=ajax_select.php?amp_conf --> 21 22 23 20 24 {if condition="isset($amp_conf_serial)"} 21 25 <script type="text/javascript" charset="utf-8"> 22 26 $(function(){ 23 27 $("select#brand_edit").change(function(){ 24 $.getJSON(" <?=WEB_PATH?>includes/ajax_select.php?amp_conf={$amp_conf_serial}&type=model",{id: $(this).val()}, function(j){28 $.getJSON("config.php?type=tool&quietmode=1&handler=file&module=endpointman&file=ajax_select.html.php&atype=model",{id: $(this).val()}, function(j){ 25 29 var options = ''; 26 30 for (var i = 0; i < j.length; i++) { … … 36 40 $(function(){ 37 41 $("select#product_select").change(function(){ 38 $.getJSON(" <?=WEB_PATH?>includes/ajax_select.php?amp_conf={$amp_conf_serial}&type=template",{id: $(this).val()}, function(j){42 $.getJSON("config.php?type=tool&quietmode=1&handler=file&module=endpointman&file=ajax_select.html.php&atype=template",{id: $(this).val()}, function(j){ 39 43 var options = ''; 40 44 for (var i = 0; i < j.length; i++) { … … 48 52 $(function(){ 49 53 $("select#model_new").change(function(){ 50 $.getJSON(" <?=WEB_PATH?>includes/ajax_select.php?amp_conf={$amp_conf_serial}&type=template2",{id: $(this).val()}, function(j){54 $.getJSON("config.php?type=tool&quietmode=1&handler=file&module=endpointman&file=ajax_select.html.php&atype=template2",{id: $(this).val()}, function(j){ 51 55 var options = ''; 52 56 for (var i = 0; i < j.length; i++) { … … 60 64 $(function(){ 61 65 $("select#brand_list_selected").change(function(){ 62 $.getJSON(" <?=WEB_PATH?>includes/ajax_select.php?amp_conf={$amp_conf_serial}&type=model",{id: $(this).val()}, function(j){66 $.getJSON("config.php?type=tool&quietmode=1&handler=file&module=endpointman&file=ajax_select.html.php&atype=model",{id: $(this).val()}, function(j){ 63 67 var options = ''; 64 68 for (var i = 0; i < j.length; i++) { … … 70 74 }) 71 75 }) 76 $(function(){ 77 $("select#model_class").change(function(){ 78 $.getJSON("config.php?type=tool&quietmode=1&handler=file&module=endpointman&file=ajax_select.html.php&atype=model_clone",{id: $(this).val()}, function(j){ 79 var options = ''; 80 for (var i = 0; i < j.length; i++) { 81 options += '<option value="' + j[i].optionValue + '">' + j[i].optionDisplay + '</option>'; 82 } 83 $("#model_clone").html(options); 84 $('#model_clone option:first').attr('selected', 'selected'); 85 }) 86 }) 87 }) 72 88 </script> 73 89 {/if} contributed_modules/modules/endpointman/templates/template_editor.html
r10052 r10198 1 1 {if condition="isset($in_ari)"} 2 <html>3 <head>4 <link href="/recordings/theme/coda-slider-2.0a.css" rel="stylesheet" type="text/css" /> 2 <html> 3 <head> 4 <link href="/recordings/theme/coda-slider-2.0a.css" rel="stylesheet" type="text/css" /> 5 5 6 6 7 <!-- Begin JavaScript --> 8 <script type="text/javascript" src="/recordings/theme/js/jquery.easing.1.3.js"></script> 9 <script type="text/javascript" src="/recordings/theme/js/jquery.coda-slider-2.0.js"></script> 10 <script type="text/javascript"> 11 $().ready(function() {12 $('#coda-slider-9').codaSlider({13 dynamicArrows: false14 });15 });16 </script> 17 <!-- End JavaScript -->18 </head>19 <body>20 {else}21 <?=_('You are currently editing')?>7 <!-- Begin JavaScript --> 8 <script type="text/javascript" src="/recordings/theme/js/jquery.easing.1.3.js"></script> 9 <script type="text/javascript" src="/recordings/theme/js/jquery.coda-slider-2.0.js"></script> 10 <script type="text/javascript"> 11 $().ready(function() { 12 $('#coda-slider-9').codaSlider({ 13 dynamicArrows: false 14 }); 15 }); 16 </script> 17 <!-- End JavaScript --> 18 </head> 19 <body> 20 {else} 21 <?=_('You are currently editing')?> 22 22 {if condition="$custom != 0"} 23 <?=_('a custom config template for extension')?> {$ext}, <?=_('Model')?>: {$model}23 <?=_('a custom config template for extension')?> {$ext}, <?=_('Model')?>: {$model} 24 24 {/if} 25 25 {if condition="$custom == 0"} 26 <?=_('the template named')?> "{$template_name}" <?=_('for Model')?>: {$model}26 <?=_('the template named')?> "{$template_name}" <?=_('for Model')?>: {$model} 27 27 {/if} 28 <br />29 <form action="config.php{$web_vars}&display=epm_templates" method="post">28 <br /> 29 <form action="config.php?display=epm_templates" method="post"> 30 30 {if condition="$alt != 0"} 31 <br/>32 <br />33 <?=_('Select Alternative File Configurations:')?>31 <br/> 32 <br /> 33 <?=_('Select Alternative File Configurations:')?> 34 34 {$alt_configs} 35 <br/>35 <br/> 36 36 {/if} 37 <br />38 <?=_('You can also use certain variables in your configs')?>:<br />{noparse}37 <br /> 38 <?=_('You can also use certain variables in your configs')?>:<br />{noparse} 39 39 -"{$srvip}" = <?=_('Server IP')?><br /> 40 40 -"{$mac}" = <?=_('Device\'s Mac Address')?><br /> 41 41 -"{$ext}" = <?=_('Device\'s Default Extension (Line 1 or Master)')?><br /> 42 42 -"{$diplayname}" = <?=_('Device\'s Description in FreePBX (Usually the Full Name)')?><br />{/noparse} 43 <br />44 {/if}43 <br /> 44 {/if} 45 45 46 <div class="coda-slider-wrapper"> 47 <div class="coda-slider preload" id="coda-slider-9">46 <div class="coda-slider-wrapper"> 47 <div class="coda-slider preload" id="coda-slider-9"> 48 48 {loop name="template_editor"} 49 <div class="panel">50 <div class="panel-wrapper"> 51 <h2 class="title">{$value.title}</h2>52 <table width="100%" border="0" cellspacing="0" cellpadding="0">49 <div class="panel"> 50 <div class="panel-wrapper"> 51 <h2 class="title">{$value.title}</h2> 52 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 53 53 {loop name="value.data"} 54 <tr>55 <td nowrap>54 <tr> 55 <td nowrap> 56 56 {if condition="$value.type == 'input'"} 57 <label>{$value.description}: <input type='text' name='{$value.key}' value='{$value.value}' size="40"></label>57 <label>{$value.description}: <input type='text' name='{$value.key}' value='{$value.value}' size="40"></label> 58 58 {elseif condition="$value.type == 'radio'"} 59 59 {$value.description} 60 60 {loop name="value.data"} 61 <label>{$value.description}: <input type='radio' name='{$value.key}' value='{$value.value}' {if condition="array_key_exists('checked',$value)"}{$value.checked}{/if}></label>61 <label>{$value.description}: <input type='radio' name='{$value.key}' value='{$value.value}' {if condition="array_key_exists('checked',$value)"}{$value.checked}{/if}></label> 62 62 {/loop} 63 63 {elseif condition="$value.type == 'list'"} 64 64 {$value.description} <select name='{$value.key}'> 65 65 {loop name="value.data"} 66 <option value='{$value.value}' {if condition="array_key_exists('selected',$value)"}{$value.selected}{/if}>{$value.description}</option>66 <option value='{$value.value}' {if condition="array_key_exists('selected',$value)"}{$value.selected}{/if}>{$value.description}</option> 67 67 {/loop} 68 </select>68 </select> 69 69 {/if} 70 </td><td width="90%">70 </td><td width="90%"> 71 71 {if condition="isset($value.aried)"} 72 <label><input type='checkbox' name='ari_{$value.ari.key}' {$value.ari.checked}><?=_('End User Editable (Through ARI Module)')?></label>72 <label><input type='checkbox' name='ari_{$value.ari.key}' {if condition="isset($value.ari.checked)"}{$value.ari.checked}{/if}><?=_('End User Editable (Through ARI Module)')?></label> 73 73 {/if} 74 </td>75 </tr>74 </td> 75 </tr> 76 76 {if condition="$value.type == 'break'"} 77 <tr>78 <td> </td>79 <td> </td>80 </tr>77 <tr> 78 <td> </td> 79 <td> </td> 80 </tr> 81 81 {/if} 82 82 {/loop} 83 </table>84 </div> 85 </div> 83 </table> 84 </div> 85 </div> 86 86 {/loop} 87 </div><!-- .coda-slider --> 88 </div><!-- .coda-slider-wrapper -->89 <input name="id" type="hidden" value="{$hidden_id}">90 <input name="custom" type="hidden" value="{$hidden_custom}">91 {if condition="!isset($in_ari)"}92 <input type="submit" name="button_save_template" value="<?=_('Save Template');?>">93 </form>94 {/if}87 </div><!-- .coda-slider --> 88 </div><!-- .coda-slider-wrapper --> 89 <input name="id" type="hidden" value="{$hidden_id}"> 90 <input name="custom" type="hidden" value="{$hidden_custom}"> 91 {if condition="!isset($in_ari)"} 92 <input type="submit" name="button_save_template" value="<?=_('Save Template');?>"> 93 </form> 94 {/if} contributed_modules/modules/endpointman/templates/template_manager.html
r10052 r10198 3 3 {if condition="$no_add == FALSE"} 4 4 <center> 5 <h3><?=_('Add New Template')?>:</h3><form action="config.php {$web_vars}&Submit=EditTemplate&display=epm_templates" method="POST">5 <h3><?=_('Add New Template')?>:</h3><form action="config.php?display=epm_templates&Submit=EditTemplate" method="POST"> 6 6 <?=_('Template Name')?>: 7 7 <label> 8 <input type="text" name="template_name" id="te xtfield">8 <input type="text" name="template_name" id="template_name"> 9 9 <input type="hidden" name="page" value="template_manager"> 10 10 </label> 11 11 <?=_('Product Select')?>: 12 12 <label> 13 <select name="model_class" id=" select">13 <select name="model_class" id="model_class"> 14 14 {loop name="class_list"} 15 15 <option value="{$value.value}">{$value.text}</option> 16 16 {/loop} 17 </select> 18 </label> 19 Clone Template From: 20 <label> 21 <select name="model_clone" id="model_clone"> 17 22 </select> 18 23 </label> … … 21 26 </label> 22 27 </form> 23 <table width=" 50%" border="0" cellspacing="0" cellpadding="0">28 <table width="80%" border="0" cellspacing="0" cellpadding="0"> 24 29 <tr> 25 30 <td><h3><?=_('Template Name')?></h3></td> 26 31 <td><h3><?=_('Model Classification')?></h3></td> 32 <td><h3><?=_('Model Clone')?></h3></td> 27 33 <td><h3><?=_('Edit')?></h3></td> 28 34 <td><h3><?=_('Delete')?></h3></td> … … 32 38 <td>{$value.name}</td> 33 39 <td>{$value.model_class}</td> 34 <td align='center' width='9%'><a href={$web_vars}&edit_template=true&display=epm_templates&custom={$value.custom}&id={$value.id}><img src='<?=WEB_PATH?>templates/images/edit.gif' ALT='<?=_('Edit')?>' border='0'></a></td> 40 <td>{$value.model_clone}</td> 41 42 <td align='center' width='9%'><a href="config.php?edit_template=true&display=epm_templates&custom={$value.custom}&id={$value.id}"><img src='<?=WEB_PATH?>templates/images/edit.gif' ALT='<?=_('Edit')?>' border='0'></a></td> 35 43 <td align='center' width='5%'>{if condition="$value.custom == 0"} 36 <a href= {$web_vars}&delete_template=true&display=epm_templates&id={$value.id}><img src='<?=WEB_PATH?>templates/images/delete.gif' ALT='<?=_('Delete')?>' border='0'></a>{/if}</td>44 <a href="config.php?delete_template=true&display=epm_templates&id={$value.id}"><img src='<?=WEB_PATH?>templates/images/delete.gif' ALT='<?=_('Delete')?>' border='0'></a>{/if}</td> 37 45 </tr> 38 46 {/loop}
