[Phpcms-plugins-cvs] admin4phpCMS/modules/phpcms/templates phpcms-phpinfo.tpl,NONE,1.1 phpcms-server
Brought to you by:
mjahn
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20482/modules/phpcms/templates Modified Files: phpcms-config.tpl phpcms-indexer.tpl phpcms-cache.tpl module_phpcms.tpl Added Files: phpcms-phpinfo.tpl phpcms-server.tpl Log Message: Commit as backup during development Index: phpcms-config.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-config.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- phpcms-config.tpl 7 Apr 2005 14:09:04 -0000 1.1 +++ phpcms-config.tpl 15 Apr 2005 15:20:03 -0000 1.2 @@ -333,7 +333,6 @@ </label> <br style="clear:both;" /> </div> - </div> <div id="nonstealthmode" {if ($moduledata.default.CACHE_CLIENT.value == 1)} class="hidden"{/if}> <input type="hidden" name="type[NOLINKCHANGE]" value="string" /> @@ -768,7 +767,6 @@ <br style="clear:both;" /> </div> <div id="expert" class="hidden"> - <input type="hidden" name="type[ERROR_ALL]" value="string" /> <div class="label"> <span class="info"> @@ -787,7 +785,6 @@ </label> <br style="clear:both;" /> </div> - <input type="hidden" name="type[FIX_PHP_OB_BUG]" value="string" /> <div class="label"> <span class="info"> @@ -806,7 +803,6 @@ </label> <br style="clear:both;" /> </div> - <input type="hidden" name="func[DOMAIN_NAME]" value="$PHP->GetDomainName()" /> <div class="label"> <span class="info"> @@ -833,7 +829,6 @@ <input type="text" name="values[DOMAIN_NAME]" value="{if ($moduledata.default.DOMAIN_NAME.type == 'string')}{$moduledata.default.DOMAIN_NAME.value}{/if}" /> </label> </div> - <input type="hidden" name="func[DOCUMENT_ROOT]" value="$PHP->GetDocRoot()" /> <div class="label"> <span class="info"> @@ -860,7 +855,6 @@ <input type="text" name="values[DOCUMENT_ROOT]" value="{if ($moduledata.default.DOCUMENT_ROOT.type == 'string')}{$moduledata.default.DOCUMENT_ROOT.value}{/if}" /> </label> </div> - <input type="hidden" name="func[SCRIPT_PATH]" value="$PHP->GetScriptPath()" /> <div class="label"> <span> Index: phpcms-indexer.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-indexer.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- phpcms-indexer.tpl 7 Apr 2005 14:09:04 -0000 1.1 +++ phpcms-indexer.tpl 15 Apr 2005 15:20:03 -0000 1.2 @@ -2,6 +2,13 @@ {foreach from=$moduledata.indexerProfiles key="name" item="profile"} {if ($moduledata.showprofile == $name)} <fieldset> + <legend>{$lang.PHPCMS_INDEXER_31}</legend> + <label> + <span><a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer">{$lang.PHPCMS_INDEXER_33}</a></span> + <input type="submit" name="configform-submit" value="{$lang.PHPCMS_INDEXER_32}" /> + </label> + </fieldset> + <fieldset> <legend>{$lang.PHPCMS_INDEXER_1}</legend> <label> <span class="info"> @@ -135,23 +142,37 @@ <fieldset> <legend>{$lang.PHPCMS_INDEXER_18}</legend> + {foreach from=$profile.url_regex item=regex} <label> <span class="info"> {$lang.PHPCMS_INDEXER_19} </span> - <input type="text" name="values[url_pattern]" value="{$profile.url_pattern}" /> + <input type="text" name="values[url_pattern][]" value="{$profile.url_regex.search}" /> </label> <label> <span class="info"> {$lang.PHPCMS_INDEXER_20} </span> - <input type="text" name="values[url_replacement]" value="{$profile.url_replacement}" /> + <input type="text" name="values[url_replacement][]" value="{$profile.url_regex.search}" /> + </label> + {/foreach} + <label> + <span class="info"> + {$lang.PHPCMS_INDEXER_19} + </span> + <input type="text" name="values[url_pattern][]" value="" /> + </label> + <label> + <span class="info"> + {$lang.PHPCMS_INDEXER_20} + </span> + <input type="text" name="values[url_replacement][]" value="" /> </label> </fieldset> <fieldset> <legend>{$lang.PHPCMS_INDEXER_31}</legend> <label> - <span> <span class="hidden">PHPMCS_INDEXER_31</span></span> + <span><a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer">{$lang.PHPCMS_INDEXER_33}</a></span> <input type="submit" name="configform-submit" value="{$lang.PHPCMS_INDEXER_32}" /> </label> </fieldset> @@ -160,47 +181,74 @@ {/if} {if ($moduledata.indexeraction == '')} -<fieldset> - <legend>{$lang.PHPCMS_INDEXER_21}</legend> - <dl class="horizontal"> + <h2>{$lang.PHPCMS_INDEXER_21}</h2> + <fieldset> + <legend>Choose profile</legend> {counter start=0 skip=1 assign="index"} {foreach from=$moduledata.indexerProfiles key="name" item="profile"} {counter} - <dt style="width:20em;">{$name}</dt> - <dd> - <a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer&indexerprofile={$index}&indexeraction=index" title="{$lang.PHPCMS_INDEXER_22}"> - <img src="modules/phpcms/img/indexer/search.gif" width="16" height="16" alt="index" /> - </a> - </dd> - <dd> - <a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer&indexerprofile={$index}&indexeraction=edit" title="{$lang.PHPCMS_INDEXER_23}"> - <img src="modules/phpcms/img/indexer/edit.gif" width="16" height="16" alt="edit" /> - </a> - </dd> - <dd> - <a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer&indexerprofile={$index}&indexeraction=del" title="{$lang.PHPCMS_INDEXER_24}"> - <img src="modules/phpcms/img/indexer/delete.gif" width="16" height="16" alt="del" /> - </a> - </dd> - {if ($profile.indexAvaible == 1)} - <dd> - <a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer&indexerprofile={$index}&indexeraction=test" title="{$lang.PHPCMS_INDEXER_25}"> + <label> + <span> + {$name} + </span> + <input type="radio" name="indexerprofile" value="{$index}" {if $index eq 1}checked="checked" {/if}/> + </label> +{/foreach} + </fieldset> + <fieldset> + <legend>{$lang.PHPCMS_INDEXER_21a}</legend> + <label> + <span> + {$lang.PHPCMS_INDEXER_22} + </span> + <button type="submit" name="indexeraction" value="index"> + {$lang.PHPCMS_INDEXER_22a} + </button> + </label> + <label> + <span> + {$lang.PHPCMS_INDEXER_23} + </span> + <button type="submit" name="indexeraction" value="edit"> + {$lang.PHPCMS_INDEXER_23a} + </button> + </label> + <label> + <span> + {$lang.PHPCMS_INDEXER_24} + </span> + <button type="submit" name="indexeraction" value="del"> + {$lang.PHPCMS_INDEXER_24a} + </button> + </label> + <label> + <span> + {$lang.PHPCMS_INDEXER_25} + </span> + <button type="submit" name="indexeraction" value="test"> {$lang.PHPCMS_INDEXER_26} - </a> - </dd> - <dd> - <a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer&indexerprofile={$index}&indexeraction=list"> title="{$lang.PHPCMS_INDEXER_27}"> + </button> + </label> + <label> + <span> + {$lang.PHPCMS_INDEXER_27} + </span> + <button type="submit" name="indexeraction" value="list"> {$lang.PHPCMS_INDEXER_28} - </a> - </dd> - {else} - <dd title="{$lang.PHPCMS_INDEXER_29}"> - {$lang.PHPCMS_INDEXER_30} - </dd> - {/if} - -{/foreach} - </dl> -</fieldset> + </button> + </label> + </fieldset> + + <fieldset> + <legend>{$lang.PHPCMS_INDEXER_34}</legend> + <label> + <span> + {$lang.PHPCMS_INDEXER_34a} + </span> + <button type="submit" name="indexeraction" value="new"> + {$lang.PHPCMS_INDEXER_34b} + </button> + </label> + </fieldset> {/if} \ No newline at end of file --- NEW FILE: phpcms-server.tpl --- <script src="{$MODULE_PATH}../tools/tablesort.js" type="text/javascript"></script> <table id="table_server"> <caption>Server-Variables</caption> <colgroup span="2"> </colgroup> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tfoot> <tr> <td>Variable</td> <td>Value</td> </tr> </tfoot> <tbody> {assign var=i value=1} {foreach from=$moduledata.serverVars item=values key=name } {foreach from=$values item=value key=id} {assign var=copy value=$value} {if ($i == 2)} {assign var=i value=1} {else} {assign var=i value=2} {/if} <tr class="line{$i}"> <td>${$name} ['{$id}']</td> <td>{if $id eq "GLOBALS"}*RECURSION*{else}{$value}{/if}</td> </tr> {/foreach} {/foreach} </tbody> </table> <script type="text/javascript"> <!-- initTable("table_server"); --> </script> <table id="table_inivalues"> <caption>PHP.ini values</caption> <colgroup span="2"> </colgroup> <thead> <tr> <th>Property</th> <th>Local value (global value)</th> </tr> </thead> <tfoot> <tr> <td>Property</td> <td>Local value (global value)</td> </tr> </tfoot> <tbody> {assign var=i value=1} {foreach from=$moduledata.phpIniValues item=value key=id} {if ($i == 2)} {assign var=i value=1} {else} {assign var=i value=2} {/if} <tr class="line{$i}"> <td>{$id}</td> <td>{$value.local_value|htmlentities} ({$value.global_value|htmlentities})</td> </tr> {/foreach} </tbody> </table> <script type="text/javascript"> <!-- initTable("table_inivalues"); --> </script> <table id="table_extensions"> <caption>PHP Extensions</caption> <thead> <tr> <th>Extension</th> <th>Description</th> </tr> </thead> <tfoot> <tr> <td>Extension</td> <td>Description</td> </tr> </tfoot> <tbody> {assign var=i value=1} {foreach from=$moduledata.phpModules item=module} {if ($i == 2)} {assign var=i value=1} {else} {assign var=i value=2} {/if} <tr class="line{$i}"> <td>{$module.name|default:""}</td> <td>{$module.desc|default:""}</td> </tr> {/foreach} </tbody> </table> <script type="text/javascript"> <!-- initTable("table_extensions"); --> </script> --- NEW FILE: phpcms-phpinfo.tpl --- {literal} <style type="text/css"> <!-- #phpinfo h1 {clear:both;} #phpinfo h2 {clear:both;} #phpinfo a { text-decoration: none; } #phpinfo a:hover { text-decoration: underline; } #phpinfo hr { clear:both; width: 600px; align: center; background-color: #cccccc; border: 0px; height: 1px;} #phpinfo table {clear:both; text-align:left;margin: 0 0 1em 0} #phpinfo .p {text-align: left;} #phpinfo .e { background-color: #fff; border-top:1px solid #aaa; color:#000; font-weight:normal; font-size:1em; } #phpinfo .h { background:#029544; color:#fff; font-weight:normal; font-size:1em; } #phpinfo .v { background-color: #fff; color:#000; font-weight:normal; font-size:1em; border-top:1px solid #aaa; } #phpinfo .h h1 { background:#fff; color:#000; } #phpinfo .h td { padding:0; } #phpinfo i {color: #666666;} #phpinfo img {float: right; border: 0px;} --> </style> {/literal} <div id="phpinfo"> {$moduledata.phpinfo} </div> Index: module_phpcms.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/module_phpcms.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- module_phpcms.tpl 7 Apr 2005 14:09:04 -0000 1.1 +++ module_phpcms.tpl 15 Apr 2005 15:20:03 -0000 1.2 @@ -1,24 +1,32 @@ {if ($moduledata.action == 'config')} - <h2>{$lang.PHPCMS_1}</h2> + <h1>{$lang.PHPCMS_1}</h1> <form action="{$INDEX_FILE}?moduleid=phpcms&action=config" method="post"> {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-config.tpl"} </form> {/if} {if ($moduledata.action == 'cache')} - <h2>{$lang.PHPCMS_2}</h2> + <h1>{$lang.PHPCMS_2}</h1> <form action="{$INDEX_FILE}?moduleid=phpcms&action=cache" method="post"> {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-cache.tpl"} </form> {/if} {if ($moduledata.action == 'indexer')} - <h2>{$lang.PHPCMS_3}</h2> + <h1>{$lang.PHPCMS_3}</h1> <form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-indexer.tpl"} </form> {/if} +{if ($moduledata.action == 'serverinfo')} + <h1>{$lang.PHPCMS_4}</h1> + {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-server.tpl"} +{/if} +{if ($moduledata.action == 'phpinfo')} + <h1>{$lang.PHPCMS_5}</h1> + {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-phpinfo.tpl"} +{/if} {if ($moduledata.action == '')} -{$lang.PHPCMS_4} +{$lang.PHPCMS_6} <h2>Changelog</h2> <h3>2005-01-17</h3> Index: phpcms-cache.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-cache.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- phpcms-cache.tpl 7 Apr 2005 14:09:04 -0000 1.1 +++ phpcms-cache.tpl 15 Apr 2005 15:20:03 -0000 1.2 @@ -1,4 +1,5 @@ {counter start=0 skip=1 assign="counter"} + <script src="{$MODULE_PATH}../tools/checkbox.js" type="text/javascript"></script> <script type="text/javascript"> {literal} var classes = Array (); @@ -16,7 +17,7 @@ <table style="width:100%"> <thead> <tr> - <th colspan="2"> </th> + <th colspan="2"><input type="image" name="cacheform-submit" value="del-sel-cache" src="modules/phpcms/img/cache/del-sel.gif" width="16" height="16" /></th> <th>{$lang.PHPCMS_CACHE_1}</th> <th>{$lang.PHPCMS_CACHE_2}</th> <th>{$lang.PHPCMS_CACHE_3}</th> @@ -37,7 +38,7 @@ </tbody> <tfoot> <tr> - <td colspan="2"><input type="image" name="del-sel-cache" value="1" src="modules/phpcms/img/cache/del-sel.gif" width="16" height="16" /></td> + <td colspan="2"><input type="image" name="cacheform-submit" value="del-sel-cache" src="modules/phpcms/img/cache/del-sel.gif" width="16" height="16" /></td> <td>{$counter}{$lang.PHPCMS_CACHE_6}</td> <td> </td> <td>{$moduledata.filesizes}</td> |