[Phpcms-plugins-cvs] admin4phpCMS/modules/phpcms/templates phpcms-overview.tpl,NONE,1.1 phpcms-maili
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2005-05-20 05:54:33
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14729/modules/phpcms/templates Modified Files: phpcms-server.tpl phpcms-config.tpl phpcms-indexer.tpl module_phpcms.tpl phpcms-cache.tpl Added Files: phpcms-overview.tpl phpcms-mailinglist.tpl Log Message: last step for module_phpcms Index: phpcms-config.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-config.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- phpcms-config.tpl 15 May 2005 12:24:01 -0000 1.3 +++ phpcms-config.tpl 20 May 2005 05:54:04 -0000 1.4 @@ -127,11 +127,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[PAX]" value="on" {if ($moduledata.default.PAX.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[PAX]" value="off" {if ($moduledata.default.PAX.value == 0)} checked="checked"{/if} /> </label> <br style="clear:both;" /> @@ -145,11 +145,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[PAXTAGS]" value="on" {if ($moduledata.default.PAXTAGS.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[PAXTAGS]" value="off" {if ($moduledata.default.PAXTAGS.value == 0)} checked="checked"{/if}/> </label> <br style="clear:both;" /> @@ -163,11 +163,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[MAIL2CRYPT]" value="on" {if ($moduledata.default.MAIL2CRYPT.value == 1)} checked="checked"{/if} onclick="showArea ('mail2crypt');" onkeypress="showArea ('mail2crypt');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[MAIL2CRYPT]" value="off" {if ($moduledata.default.MAIL2CRYPT.value == 0)} checked="checked"{/if} onclick="hideArea ('mail2crypt');" onkeypress="hideArea ('mail2crypt');" /> </label> <br style="clear:both;" /> @@ -203,11 +203,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[ENABLE_ONLINE_EDITOR]" value="on" {if ($moduledata.default.ENABLE_ONLINE_EDITOR.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[ENABLE_ONLINE_EDITOR]" value="off" {if ($moduledata.default.ENABLE_ONLINE_EDITOR.value == 0)} checked="checked"{/if} /> </label> <br style="clear:both;" /> @@ -225,11 +225,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[CACHE_STATE]" value="on" {if ($moduledata.default.CACHE_STATE.value == 1)} checked="checked"{/if} onclick="showArea ('servercache');" onkeypress="showArea ('servercache');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[CACHE_STATE]" value="off" {if ($moduledata.default.CACHE_STATE.value == 0)} checked="checked"{/if} onclick="hideArea ('servercache');" onkeypress="hideArea ('servercache');" /> </label> <br style="clear:both;" /> @@ -255,11 +255,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[CACHE_CLIENT]" value="on" {if ($moduledata.default.CACHE_CLIENT.value == 1)} checked="checked"{/if} onclick="showArea ('clientcache');" onkeypress="showArea ('clientcache');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[CACHE_CLIENT]" value="off" {if ($moduledata.default.CACHE_CLIENT.value == 0)} checked="checked"{/if} onclick="hideArea ('clientcache');" onkeypress="hideArea ('clientcache');" /> </label> <br style="clear:both;" /> @@ -289,11 +289,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[GZIP]" value="on" {if ($moduledata.default.GZIP.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[GZIP]" value="off" {if ($moduledata.default.GZIP.value == 0)} checked="checked"{/if} /> </label> <br style="clear:both;" /> @@ -307,11 +307,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[STEALTH]" value="on" {if ($moduledata.default.STEALTH.value == 1)} checked="checked"{/if} onclick="showArea ('stealthmode'); hideArea ('nonstealthmode');" onkeypress="showArea ('stealthmode'); hideArea ('nonstealthmode');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[STEALTH]" value="off" {if ($moduledata.default.GZIP.value == 0)} checked="checked"{/if} onclick="showArea ('nonstealthmode'); hideArea ('stealthmode');" onkeypress="showArea ('nonstealthmode'); hideArea ('stealthmode');"/> </label> <br style="clear:both;" /> @@ -326,11 +326,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[STEALTH_SECURE]" value="on" {if ($moduledata.default.STEALTH_SECURE.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[STEALTH_SECURE]" value="off" {if ($moduledata.default.STEALTH_SECURE.value == 0)} checked="checked"{/if} /> </label> <br style="clear:both;" /> @@ -357,11 +357,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[TAGS_ERROR]" value="on" {if ($moduledata.default.TAGS_ERROR.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[TAGS_ERROR]" value="off" {if ($moduledata.default.TAGS_ERROR.value == 0)} checked="checked"{/if} /> </label> <br style="clear:both;" /> @@ -375,11 +375,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[DEBUG]" value="on" {if ($moduledata.default.DEBUG.value == 1)} checked="checked"{/if} onclick="hideArea ('debugmode');" onkeypress="hideArea ('debugmode');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[DEBUG]" value="off" {if ($moduledata.default.DEBUG.value == 0)} checked="checked"{/if} onclick="showArea ('debugmode');" onkeypress="showArea ('debugmode');" /> </label> <br style="clear:both;" /> @@ -419,11 +419,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[P3P_HEADER]" value="on" {if ($moduledata.default.P3P_HEADER.value == 1)} checked="checked"{/if} onclick="showArea ('p3p');" onkeypress="showArea ('p3p');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[P3P_HEADER]" value="off" {if ($moduledata.default.P3P_HEADER.value == 0)} checked="checked"{/if} onclick="hideArea ('p3p');" onkeypress="hideArea ('p3p');" /> </label> <br style="clear:both;" /> @@ -463,11 +463,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[I18N]" value="on" {if ($moduledata.default.I18N.value == 1)} checked="checked"{/if} onclick="showArea ('i18n');" onkeypress="showArea ('i18n');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[I18N]" value="off" {if ($moduledata.default.I18N.value == 0)} checked="checked"{/if} onclick="hideArea ('i18n');" onkeypress="hideArea ('i18n');" /> </label> <br style="clear:both;" /> @@ -535,11 +535,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[STATS]" value="on" {if ($moduledata.default.STATS.value == 1)} checked="checked"{/if} onclick="showArea ('stats');" onkeypress="showArea ('stats');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[STATS]" value="off" {if ($moduledata.default.STATS.value == 0)} checked="checked"{/if} onclick="hideArea ('stats');" onkeypress="hideArea ('stats');" /> </label> <br style="clear:both;" /> @@ -642,11 +642,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[REFERRER]" value="on" {if ($moduledata.default.REFERRER.value == 1)} checked="checked"{/if} onclick="showArea ('referrer');" onkeypress="showArea ('referrer');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[REFERRER]" value="off" {if ($moduledata.default.REFERRER.value == 0)} checked="checked"{/if} onclick="hideArea ('referrer');" onkeypress="hideArea ('referrer');" /> </label> <br style="clear:both;" /> @@ -696,11 +696,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[CONTENT_SEARCH]" value="on" {if ($moduledata.default.CONTENT_SEARCH.value == 1)} checked="checked"{/if} onclick="showArea ('search');" onkeypress="showArea ('search');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[CONTENT_SEARCH]" value="off" {if ($moduledata.default.CONTENT_SEARCH.value == 0)} checked="checked"{/if} onclick="hideArea ('search');" onkeypress="hideArea ('search');" /> </label> <br style="clear:both;" /> @@ -726,11 +726,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[CONTENT_TOC]" value="on" {if ($moduledata.default.CONTENT_TOC.value == 1)} checked="checked"{/if} onclick="showArea ('toc');" onkeypress="showArea ('toc');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[CONTENT_TOC]" value="off" {if ($moduledata.default.CONTENT_TOC.value == 0)} checked="checked"{/if} onclick="hideArea ('toc');" onkeypress="hideArea ('toc');" /> </label> <br style="clear:both;" /> @@ -759,11 +759,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="showexpert" value="on" onclick="showArea ('expert');" onkeypress="showArea ('expert');" /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="showexpert" value="off" checked="checked" onclick="hideArea ('expert');" onkeypress="hideArea ('expert');" /> </label> <br style="clear:both;" /> @@ -778,11 +778,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[ERROR_ALL]" value="on" {if ($moduledata.default.ERROR_ALL.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[ERROR_ALL]" value="off" {if ($moduledata.default.ERROR_ALL.value == 0)} checked="checked"{/if} /> </label> <br style="clear:both;" /> @@ -796,11 +796,11 @@ </span> </span> <label class="horizontal"> - <span>On</span> + <span>{#status_on#}</span> <input type="radio" name="values[FIX_PHP_OB_BUG]" value="on" {if ($moduledata.default.FIX_PHP_OB_BUG.value == 1)} checked="checked"{/if} /> </label> <label class="horizontal"> - <span>Off</span> + <span>{#status_off#}</span> <input type="radio" name="values[FIX_PHP_OB_BUG]" value="off" {if ($moduledata.default.FIX_PHP_OB_BUG.value == 0)} checked="checked"{/if}/> </label> <br style="clear:both;" /> Index: phpcms-indexer.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-indexer.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- phpcms-indexer.tpl 15 May 2005 12:24:01 -0000 1.3 +++ phpcms-indexer.tpl 20 May 2005 05:54:04 -0000 1.4 @@ -1,9 +1,133 @@ {config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="indexer" scope="local"} <h1>{#title_indexer#}</h1> -<form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> -{if ($moduledata.indexeraction == 'edit')} + +{* + * display the overview about the profiles + * standard action if no other action is selected +*} +{if ($moduledata.indexeraction == '')} + <h2>{#title_indexer_overview#}</h2> + <form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> + <fieldset> + <legend>{#title_select_profile#}</legend> +{counter start=0 skip=1 assign="index"} +{foreach from=$moduledata.indexerProfiles key="name" item="profile"} + {counter} + <label class="radio"> + <span> + {$name} + </span> + <input type="radio" name="indexerprofile" value="{$index}" {if $index eq 1}checked="checked" {/if}/> + </label> +{/foreach} + </fieldset> + <fieldset> + <legend>{#title_select_action#}</legend> + <label> + <span> + {#label_new_profile#} + </span> + <button type="submit" name="indexeraction" value="new"> + {#button_new_profile#} + </button> + </label> + <label> + <span> + {#label_edit_profile#} + </span> + <button type="submit" name="indexeraction" value="edit"> + {#button_edit_profile#} + </button> + </label> + <label> + <span> + {#label_copy_profile#} + </span> + <button type="submit" name="indexeraction" value="del"> + {#button_copy_profile#} + </button> + </label> + <label> + <span> + {#label_del_profile#} + </span> + <button type="submit" name="indexeraction" value="del"> + {#button_del_profile#} + </button> + </label> + <label> + <span> + {#label_new_index#} + </span> + <button type="submit" name="indexeraction" value="index"> + {#button_new_index#} + </button> + </label> + <label> + <span> + {#label_test_index#} + </span> + <button type="submit" name="indexeraction" value="test"> + {#button_test_index#} + </button> + </label> + <label> + <span> + {#label_list_index#} + </span> + <button type="submit" name="indexeraction" value="list"> + {#button_list_index#} + </button> + </label> + </fieldset> +</form> + +{/if} + +{* + * display the security question for deleting a indexer-profile +*} +{if $moduledata.indexeraction == 'del'} + <h2>{#title_indexer_del#}</h2> + <form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> + <fieldset> + <legend>{#title_submit_del#}</legend> + <div class="label"> + <span class="info"> + {#label_del#} + <span>{#text_del#}</span> + </span> + <label class="horizontal"> + <span>Yes</span> + <input type="radio" name="areYouSure" value="1" /> + </label> + <label class="horizontal"> + <span>No</span> + <input type="radio" name="areYouSure" value="0" checked="checked" /> + </label> + <br style="clear:both" /> + </div> + <label> + <span><a href="{$INDEX_FILE}?moduleid=phpcms&action=indexer">{#label_backlink#}</a></span> + <input type="submit" name="delform-submit" value="{#button_submit_del#}" /> + </label> + </fieldset> + </form> +{/if} + +{* + * display editor for editing the profiles data + * display editor for creating a new profile +*} +{if ($moduledata.indexeraction == 'edit' || $moduledata.indexeraction == 'new')} + {if $moduledata.indexeraction == 'new'} + {assign var="new" value="1"} + {/if} {foreach from=$moduledata.indexerProfiles key="name" item="profile"} - {if ($moduledata.showprofile == $name)} + {if ($moduledata.showprofile == $name) || $new == '1'} + {assign var="new" value="0"} + <h2>{#title_indexer_edit#}</h2> + <form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> <fieldset> <legend>{#title_submit_edit#}</legend> <label> @@ -16,19 +140,22 @@ <label> <span class="info"> {#label_name#} + <span>{#text_name#}</span> </span> - <input type="text" name="values[name]" value="{$name}" /> + <input type="text" name="values[name]" value="{$name|default:""}" /> </label> <label> <span class="info"> {#label_datadir#} + <span>{#text_datadir#}</span> </span> - <input type="text" name="values[savedata]" value="{$profile.savedata}" /> + <input type="text" name="values[savedata]" value="{$profile.savedata|default:""}" /> </label> <div class="label"> <span class="info"> {#label_gzip#} + <span>{#text_gzip#}</span> </span> <label class="horizontal"> <span>On</span> @@ -43,6 +170,7 @@ <label> <span class="info"> {#label_buffer#} + <span>{#text_buffer#}</span> </span> <input tyxpe="text" name="values[buffer]" value="{$profile.buffer}" /> </fieldset> @@ -52,6 +180,7 @@ <div class="label"> <span class="info"> {#label_robots#} + <span>{#text_robots#}</span> </span> <label class="horizontal"> <span>On</span> @@ -66,6 +195,7 @@ <div class="label"> <span class="info"> {#label_robots_meta#} + <span>{#text_robots_meta#}</span> </span> <label class="horizontal"> <span>On</span> @@ -80,6 +210,7 @@ <label> <span class="info"> {#label_exklude#} + <span>{#text_exklude#}</span> </span> <textarea name="values[exklude]" cols="40" rows="5">{foreach from=$profile.exklude item=exclude}{$exclude} {/foreach}</textarea> @@ -87,6 +218,7 @@ <label> <span class="info"> {#label_include#} + <span>{#text_include#}</span> </span> <textarea name="values[include]" cols="40" rows="5">{foreach from=$profile.include item=include}{$include} {/foreach}</textarea> @@ -94,6 +226,7 @@ <label> <span class="info"> {#label_noextensions#} + <span>{#text_noextensions#}</span> </span> <textarea name="values[noextensions]" cols="40" rows="5">{foreach from=$profile.noextensions item=ext}{$ext} {/foreach}</textarea> @@ -105,6 +238,7 @@ <label> <span class="info"> {#label_uris#} + <span>{#text_uris#}</span> </span> <textarea name="values[host]" cols="40" rows="5">{foreach from=$profile.host item=host}{$host} {/foreach}</textarea> @@ -112,18 +246,21 @@ <label> <span class="info"> {#label_wordlength#} + <span>{#text_wordlength#}</span> </span> <input type="text" name="values[wordlength]" value="{$profile.wordlength}" /> </label> <label> <span class="info"> {#label_stopword#} + <span>{#text_stopword#}</span> </span> <input type="text" name="values[stopword]" value="{$profile.stopword}" /> </label> <div class="label"> <span class="info"> {#label_meta_desc#} + <span>{#text_meta_desc#}</span> </span> <label class="horizontal"> <span>On</span> @@ -138,6 +275,7 @@ <label> <span class="info"> {#label_description#} + <span>{#text_description#}</span> </span> <input type="text" name="values[description]" value="{$profile.description}" /> </label> @@ -149,12 +287,14 @@ <label> <span class="info"> {#label_regex_search#} + <span>{#text_regex_search#}</span> </span> <input type="text" name="values[url_pattern][]" value="{$profile.url_regex.search}" /> </label> <label> <span class="info"> {#label_regex_replace#} + <span>{#text_regex_replace#}</span> </span> <input type="text" name="values[url_replacement][]" value="{$profile.url_regex.search}" /> </label> @@ -162,12 +302,14 @@ <label> <span class="info"> {#label_regex_search#} + <span>{#text_regex_search#}</span> </span> <input type="text" name="values[url_pattern][]" value="" /> </label> <label> <span class="info"> {#label_regex_replace#} + <span>{#text_regex_replace#}</span> </span> <input type="text" name="values[url_replacement][]" value="" /> </label> @@ -179,88 +321,84 @@ <input type="submit" name="configform-submit" value="{#button_submit_edit#}" /> </label> </fieldset> + </form> {/if} {/foreach} {/if} -{if ($moduledata.indexeraction == '')} - <h2>{#title_indexer_overview#}</h2> - <fieldset> - <legend>{#title_select_profile#}</legend> -{counter start=0 skip=1 assign="index"} -{foreach from=$moduledata.indexerProfiles key="name" item="profile"} - {counter} - <label class="radio"> - <span> - {$name} - </span> - <input type="radio" name="indexerprofile" value="{$index}" {if $index eq 1}checked="checked" {/if}/> - </label> -{/foreach} - </fieldset> - <fieldset> - <legend>{#title_select_action#}</legend> - <label> - <span> - {#label_new_index#} - </span> - <button type="submit" name="indexeraction" value="index"> - {#button_new_index#} - </button> - </label> - <label> - <span> - {#label_edit_index#} - </span> - <button type="submit" name="indexeraction" value="edit"> - {#button_edit_index#} - </button> - </label> - <label> - <span> - {#label_copy_index#} - </span> - <button type="submit" name="indexeraction" value="del"> - {#button_copy_index#} - </button> - </label> - <label> - <span> - {#label_del_index#} - </span> - <button type="submit" name="indexeraction" value="del"> - {#button_del_index#} - </button> - </label> - <label> - <span> - {#label_test_index#} - </span> - <button type="submit" name="indexeraction" value="test"> - {#button_test_index#} - </button> - </label> - <label> - <span> - {#label_list_index#} - </span> - <button type="submit" name="indexeraction" value="list"> - {#button_list_index#} - </button> - </label> - </fieldset> - - <fieldset> - <legend>{#title_new_profile#}</legend> - <label> - <span> - {#label_new_profile#} - </span> - <button type="submit" name="indexeraction" value="new"> - {#button_new_profile#} - </button> - </label> - </fieldset> +{* + * startpage of the indexing-process + * display overview about the data of the profile + * display start-button for starting the indexer +*} + +{if ($moduledata.indexeraction == 'index')} + <h2>{#title_indexer_create#}</h2> + <form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> + <fieldset> + <legend>{#title_submit_start#}</legend> + <label> + <span>{#label_submit_start#}</span> + <input type="submit" name="submit-start-spider" value="{#button_submit_start#}" /> + </label> + </fieldset> + <fieldset> + <legend>{#title_profile_options#}</legend> + <p> </p> + <dl> + {foreach from=$moduledata.indexerProfiles key="name" item="profile"} + {if ($moduledata.showprofile == $name)} + <dt>{#label_name#}</dt> + <dd>{$name}</dd> + <dt>{#label_datadir#}</dt> + <dd>{$profile.savedata}</dd> + <dt>{#label_gzip#}</dt> + <dd>{$profile.gzip}</dd> + <dt>{#label_buffer#}</dt> + <dd>{$profile.buffer}</dd> + <dt>{#label_robots#}</dt> + <dd>{$profile.robots}</dd> + <dt>{#label_robots_meta#}</dt> + <dd>{$profile.meta}</dd> + <dt>{#label_exklude#}</dt> + {foreach from=$profile.exklude item=exclude}<dd>{$exclude}</dd>{/foreach} + <dt>{#label_include#}</dt> + {foreach from=$profile.include item=include}<dd>{$include}</dd>{/foreach} + <dt>{#label_noextensions#}</dt> + {foreach from=$profile.noextensions item=ext}<dd>{$ext}</dd>{/foreach} + <dt>{#label_uris#}</dt> + {foreach from=$profile.host item=host}<dd>{$host}</dd>{/foreach} + <dt>{#label_wordlength#}</dt> + <dd>{$profile.wordlength}</dd> + <dt>{#label_stopword#}</dt> + <dd>{$profile.stopword}</dd> + <dt>{#label_meta_desc#}</dt> + <dd>{$profile.meta_desc}</dd> + <dt>{#label_description#}</dt> + <dd>{$profile.description}</dd> + {foreach from=$profile.url_regex item=regex} + <dt>{#label_regex_search#}</dt> + <dd>{$regex.search}</dd> + <dt>{#label_regex_replace#}</dt> + <dd>{$regex.replace}</dd> + {/foreach} + {/if} + {/foreach} + </dl> + <br class="clearleft" /> + + </fieldset> + </form> +{/if} +{* + * working page for the indexer with the AJAX-interface + * display also another option for non-JS-clients with iframe +*} +{if ($moduledata.indexeraction == 'index-spider')} + <h2>{#title_indexer_spider#}</h2> + <form action="{$INDEX_FILE}?moduleid=phpcms&action=indexer" method="post"> + Starte Spider + </form> {/if} -</form> \ No newline at end of file + Index: phpcms-server.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-server.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- phpcms-server.tpl 15 May 2005 12:24:01 -0000 1.2 +++ phpcms-server.tpl 20 May 2005 05:54:04 -0000 1.3 @@ -1,6 +1,169 @@ {config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="server" scope="local"} + +<script src="{$MODULE_WEB}../tools/tablesort.js" type="text/javascript"></script> + <h1>{#title_server#}</h1> -<script src="{$MODULE_PATH}../tools/tablesort.js" type="text/javascript"></script> + +{if $moduledata.apacheResponse || $moduledata.apacheRequest} +<h2>{#title_apache#}</h2> + {if $moduledata.apacheRequest} +<h3>{#title_apache_request#}</h3> +<table id="table_apache_request"> + <colgroup span="2"> + </colgroup> + <thead> + <tr> + <th>{#label_apache_name#}</th> + <th>{#label_apache_value#}</th> + </tr> + </thead> + <tfoot> + <tr> + <td>{#label_apache_name#}</td> + <td>{#label_apache_value#}</td> + </tr> + </tfoot> + <tbody> + {assign var=i value=1} + {foreach from=$moduledata.apacheRequest item=value key=name } + {if ($i == 2)} + {assign var=i value=1} + {else} + {assign var=i value=2} + {/if} + <tr class="line{$i}"> + <td>{$name}</td> + <td>{$value}</td> + </tr> + {/foreach} + </tbody> +</table> +<script type="text/javascript"> +<!-- +initTable("table_apache_request"); +--> +</script> + {/if} + {if $moduledata.apacheResponse} +<h3>{#title_apache_response#}</h3> +<table id="table_apache_response"> + <colgroup span="2"> + </colgroup> + <thead> + <tr> + <th>{#label_apache_name#}</th> + <th>{#label_apache_value#}</th> + </tr> + </thead> + <tfoot> + <tr> + <td>{#label_apache_name#}</td> + <td>{#label_apache_value#}</td> + </tr> + </tfoot> + <tbody> + {assign var=i value=1} + {foreach from=$moduledata.apacheResponse item=value key=name } + {if ($i == 2)} + {assign var=i value=1} + {else} + {assign var=i value=2} + {/if} + <tr class="line{$i}"> + <td>{$name}</td> + <td>{$value}</td> + </tr> + {/foreach} + </tbody> +</table> +<script type="text/javascript"> +<!-- +initTable("table_apache_response"); +--> +</script> + {/if} +{/if} + +{if $moduledata.headersResponse || $moduledata.headersRequest} +<h2>{#title_headers#}</h2> + {if $moduledata.headersRequest} +<h3>{#title_headers_request#}</h3> +<table id="table_headers_request"> + <colgroup span="2"> + </colgroup> + <thead> + <tr> + <th>{#label_headers_name#}</th> + <th>{#label_headers_value#}</th> + </tr> + </thead> + <tfoot> + <tr> + <td>{#label_headers_name#}</td> + <td>{#label_headers_value#}</td> + </tr> + </tfoot> + <tbody> + {assign var=i value=1} + {foreach from=$moduledata.headersRequest item=value key=name } + {if ($i == 2)} + {assign var=i value=1} + {else} + {assign var=i value=2} + {/if} + <tr class="line{$i}"> + <td>{$name}</td> + <td>{$value}</td> + </tr> + {/foreach} + </tbody> +</table> +<script type="text/javascript"> +<!-- +initTable("table_headers_request"); +--> +</script> + {/if} + {if $moduledata.headersResponse} +<h3>{#title_headers_response#}</h3> +<table id="table_headers_response"> + <colgroup span="2"> + </colgroup> + <thead> + <tr> + <th>{#label_headers_name#}</th> + <th>{#label_headers_value#}</th> + </tr> + </thead> + <tfoot> + <tr> + <td>{#label_headers_name#}</td> + <td>{#label_headers_value#}</td> + </tr> + </tfoot> + <tbody> + {assign var=i value=1} + {foreach from=$moduledata.headersResponse item=value key=name } + {if ($i == 2)} + {assign var=i value=1} + {else} + {assign var=i value=2} + {/if} + <tr class="line{$i}"> + <td>{$name}</td> + <td>{$value}</td> + </tr> + {/foreach} + </tbody> +</table> +<script type="text/javascript"> +<!-- +initTable("table_headers_response"); +--> +</script> + {/if} +{/if} + <h2>{#title_vars#}</h2> <table id="table_server"> <colgroup span="2"> @@ -41,7 +204,8 @@ --> </script> -<h2>{#title_php_values#}</h2> + +<h2>{#title_ini#}</h2> <table id="table_inivalues"> <colgroup span="2"> </colgroup> @@ -67,7 +231,7 @@ {/if} <tr class="line{$i}"> <td>{$id}</td> - <td>{$value.local_value|htmlentities} ({$value.global_value|htmlentities})</td> + <td>{$value.local_value|default:"0"} ({$value.global_value|default:"0"})</td> </tr> {/foreach} </tbody> @@ -83,13 +247,13 @@ <thead> <tr> <th>{#label_php_ext_name#}</th> - <th>{#label_php_ext_desc#}</th> + <th>{#label_php_ext_func#}</th> </tr> </thead> <tfoot> <tr> <td>{#label_php_ext_name#}</td> - <td>{#label_php_ext_desc#}</td> + <td>{#label_php_ext_func#}</td> </tr> </tfoot> <tbody> @@ -102,7 +266,7 @@ {/if} <tr class="line{$i}"> <td>{$module.name|default:""}</td> - <td>{$module.desc|default:""}</td> + <td>{foreach from=$module.funcs item=func}{$func}, {/foreach}</td> </tr> {/foreach} </tbody> --- NEW FILE: phpcms-mailinglist.tpl --- {config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="mailinglist" scope="local"} <h1>{#title_mailinglist#}</h1> <h2>{#title_archive#}</h2> <p>{#text_archive#}</p> <h2>{#title_subscribe#}</h2> <p>{#text_subscribe#}</p> <form action="https://lists.sourceforge.net/lists/subscribe/phpcms-news" method="post"> <fieldset> <legend>{#title_subscribe_form#}</legend> <label> <span>{#label_subscribe_email#}</span> <input name="email" type="text" /> </label> <label> <span class="info"> {#label_subscribe_password#} <span>{#text_subscribe_password#}</span> </span> <input type="password" name="pw" /> </label> <label> <span>{#label_subscribe_password2#}</span> <input type="password" size="15" name="pw-conf" /> </label> <input type="hidden" value="0" name="digest" /> <label> <span>{#label_subscribe_submit#}</span> <input type="submit" value="Subscribe" name="email-button" /> </label> </fieldset> </form> --- NEW FILE: phpcms-overview.tpl --- {config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="overview" scope="local"} <h1>{#title_overview#}</h1> Index: module_phpcms.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/module_phpcms.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- module_phpcms.tpl 15 May 2005 12:24:01 -0000 1.3 +++ module_phpcms.tpl 20 May 2005 05:54:04 -0000 1.4 @@ -1,4 +1,4 @@ -{config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" scope="local"} +{config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="phpcms" scope="local"} {if ($moduledata.action == 'config')} {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-config.tpl"} @@ -15,33 +15,9 @@ {if ($moduledata.action == 'phpinfo')} {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-phpinfo.tpl"} {/if} +{if ($moduledata.action == 'mailinglist')} + {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-mailinglist.tpl"} +{/if} {if ($moduledata.action == '')} -{#PHPCMS_6#} -<h2>Changelog</h2> - -<h3>2005-01-17</h3> - -<ul> - <li>realized mulitlanguage-coding and language-files</li> -</ul> - -<h3>2005-01-16</h3> - -<ul> - <li>finished design of phpCMS-cache-part</li> - <li>finished editform for indexer-profiles</li> -</ul> - -<h3>2005-01-15</h3> - -<ul> - <li>finished phpCMS-config-part with the even old tooltips</li> - <li>started to design phpCMS-cache-part with a table</li> - <li>started to design the phpCMS-indexer-part - <ul> - <li>Overview over the available profiles</li> - <li>first steps towards the editinterface for the profiles</li> - </ul> - </li> -</ul> + {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-overview.tpl"} {/if} \ No newline at end of file Index: phpcms-cache.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-cache.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- phpcms-cache.tpl 15 May 2005 12:24:01 -0000 1.3 +++ phpcms-cache.tpl 20 May 2005 05:54:04 -0000 1.4 @@ -1,9 +1,8 @@ -{config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="cache" scope="local"} -<h1>{#title_cache#}</h1> -<form action="{$INDEX_FILE}?moduleid=phpcms&action=cache" method="post"> -{counter start=0 skip=1 assign="counter"} - <script src="{$MODULE_PATH}../tools/checkbox.js" type="text/javascript"></script> - <script type="text/javascript"> +{config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="cache" scope="local"}{counter start=0 skip=1 assign="counter"}<h1>{#title_cache#}</h1> +<h2>{#title_cachedir#}</h2> +<h3>{#title_cachedir_path#}{$moduledata.cachedir}</h3> +<script src="{$MODULE_WEB}../tools/checkbox.js" type="text/javascript"></script> +<script type="text/javascript"> {literal} var classes = Array (); function selectFile (t) { @@ -15,9 +14,9 @@ } } {/literal} - </script> - <h2>{$moduledata.cachedir}</h2> - <table style="width:100%"> +</script> +<form action="{$INDEX_FILE}?moduleid=phpcms&action=cache" method="post"> + <table> <thead> <tr> <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> @@ -35,10 +34,16 @@ </tr> </tfoot> <tbody> + {assign var=i value=1} {foreach from=$moduledata.cachelist item=cacheentry} {counter} {assign var="sizecounter" value="$sizecounter+'$cacheentry.filesize'"} - <tr class="line{cycle values="1,2"}"> + {if ($i == 2)} + {assign var=i value=1} + {else} + {assign var=i value=2} + {/if} + <tr class="line{$i}"> <td><input type="checkbox" name="delete-{$cacheentry.cachefile}" value="1" title="{#label_cache_del#}" onclick="selectFile (this)"/></td> <td><a href="http://{$cacheentry.filename}" title="{#label_cache_view#}"><img src="modules/phpcms/img/cache/webpage.gif" width="16" height="16" alt="view" /></a></td> <td title="{#text_cache_cachefile#}{$cacheentry.cachefile}">URL:http://{$cacheentry.filename|truncate:80:"…"}</td> |