diff options
-rw-r--r-- | template/cclear/admin/double_select.tpl | 23 | ||||
-rw-r--r-- | template/cclear/admin/element_set_global.tpl | 186 | ||||
-rw-r--r-- | template/cclear/admin/element_set_unit.tpl | 89 | ||||
-rw-r--r-- | template/cclear/admin/intro.tpl | 43 | ||||
-rw-r--r-- | template/cclear/admin/maintenance.tpl | 11 | ||||
-rw-r--r-- | template/cclear/admin/user_list.tpl | 270 |
6 files changed, 622 insertions, 0 deletions
diff --git a/template/cclear/admin/double_select.tpl b/template/cclear/admin/double_select.tpl new file mode 100644 index 000000000..1745c52d3 --- /dev/null +++ b/template/cclear/admin/double_select.tpl @@ -0,0 +1,23 @@ +<table class="doubleSelect"> + <tr> + <td> + <h3>{L_CAT_OPTIONS_TRUE}</h3> + <select class="categoryList" name="cat_true[]" multiple="multiple" size="30"> + <!-- BEGIN category_option_true --> + <option {category_option_true.SELECTED} value="{category_option_true.VALUE}">{category_option_true.OPTION}</option> + <!-- END category_option_true --> + </select> + <p><input type="submit" value="»" name="falsify" style="font-size:15px;"/></p> + </td> + + <td> + <h3>{L_CAT_OPTIONS_FALSE}</h3> + <select class="categoryList" name="cat_false[]" multiple="multiple" size="30"> + <!-- BEGIN category_option_false --> + <option {category_option_false.SELECTED} value="{category_option_false.VALUE}">{category_option_false.OPTION}</option> + <!-- END category_option_false --> + </select> + <p><input type="submit" value="«" name="trueify" style="font-size:15px;" /></p> + </td> + </tr> +</table> diff --git a/template/cclear/admin/element_set_global.tpl b/template/cclear/admin/element_set_global.tpl new file mode 100644 index 000000000..6014291f9 --- /dev/null +++ b/template/cclear/admin/element_set_global.tpl @@ -0,0 +1,186 @@ +<h1>{lang:Batch management}</h1> + +<div class="admin">{CATEGORY_TITLE}</div> + +<p style="text-align:center;"> + global mode + | <a href="{U_UNIT_MODE}">unit mode</a> +</p> + +<form action="{F_ACTION}" method="post"> + +<fieldset> + + <legend>Caddie management</legend> + + <ul style="list-style-type:none;"> + + <!-- BEGIN in_caddie --> + <li><input type="radio" name="caddie_action" value="empty_all" /> Empty caddie</li> + <li><input type="radio" name="caddie_action" value="empty_selected" /> Take selected elements out of caddie</li> + <!-- END in_caddie --> + + <!-- BEGIN not_in_caddie --> + <li><input type="radio" name="caddie_action" value="add_selected" /> Add selected elements to caddie</li> + <!-- END not_in_caddie --> + + </ul> + + <p style="text-align:center;"><input type="submit" value="{L_SUBMIT}" name="submit_caddie" class="bouton" /></p> + +</fieldset> + +<fieldset> + + <legend>Display options</legend> + + <p>elements per line : + <a href="{U_COLS}&cols=4">4</a> + | <a href="{U_COLS}&cols=5">5</a> + | <a href="{U_COLS}&cols=6">6</a> + | <a href="{U_COLS}&cols=7">7</a> + | <a href="{U_COLS}&cols=8">8</a> + | <a href="{U_COLS}&cols=9">9</a> + | <a href="{U_COLS}&cols=10">10</a> + </p> + + <p>elements per page : + <a href="{U_DISPLAY}&display=20">20</a> + | <a href="{U_DISPLAY}&display=50">50</a> + | <a href="{U_DISPLAY}&display=100">100</a> + | <a href="{U_DISPLAY}&display=all">all</a> + </p> + +</fieldset> + +<fieldset> + + <legend>Form</legend> + + <table> + + <tr> + <td>associate to category</td> + <td> + <select style="width:400px" name="associate" size="1"> + <!-- BEGIN associate_option --> + <option {associate_option.SELECTED} value="{associate_option.VALUE}">{associate_option.OPTION}</option> + <!-- END associate_option --> + </select> + </td> + </tr> + + <tr> + <td>dissociate from category</td> + <td> + <select style="width:400px" name="dissociate" size="1"> + <!-- BEGIN dissociate_option --> + <option {dissociate_option.SELECTED} value="{dissociate_option.VALUE}">{dissociate_option.OPTION}</option> + <!-- END dissociate_option --> + </select> + </td> + </tr> + + <tr> + <td>add keywords</td> + <td><input type="text" name="add_keywords" value="" /></td> + </tr> + + <tr> + <td>remove keyword</td> + <td> + <select name="remove_keyword"> + <!-- BEGIN remove_keyword_option --> + <option value="{remove_keyword_option.VALUE}">{remove_keyword_option.OPTION}</option> + <!-- END remove_keyword_option --> + </select> + </td> + </tr> + + <tr> + <td>author</td> + <td> + <input type="radio" name="author_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="author_action" value="unset" /> unset + <input type="radio" name="author_action" value="set" id="author_action_set" /> set to + <input onmousedown="document.getElementById('author_action_set').checked = true;" type="text" name="author" value="" /> + </td> + </tr> + + <tr> + <td>title</td> + <td> + <input type="radio" name="name_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="name_action" value="unset" /> unset + <input type="radio" name="name_action" value="set" id="name_action_set" /> set to + <input onmousedown="document.getElementById('name_action_set').checked = true;" type="text" name="name" value="" /> + </td> + </tr> + + <tr> + <td>creation date</td> + <td> + <input type="radio" name="date_creation_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="date_creation_action" value="unset" /> unset + <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set" /> set to + <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_day"> + <!-- BEGIN date_creation_day --> + <option {date_creation_day.SELECTED} value="{date_creation_day.VALUE}">{date_creation_day.OPTION}</option> + <!-- END date_creation_day --> + </select> + <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_month"> + <!-- BEGIN date_creation_month --> + <option {date_creation_month.SELECTED} value="{date_creation_month.VALUE}">{date_creation_month.OPTION}</option> + <!-- END date_creation_month --> + </select> + <input onmousedown="document.getElementById('date_creation_action_set').checked = true;" + name="date_creation_year" + type="text" + size="4" + maxlength="4" + value="{DATE_CREATION_YEAR_VALUE}" /> + </td> + </tr> + + </table> + + <p style="text-align:center;"> + target + <input type="radio" name="target" value="all" /> all + <input type="radio" name="target" value="selection" checked="checked" /> selection + </p> + + + <p style="text-align:center;"><input type="submit" value="{L_SUBMIT}" name="submit" class="bouton" /></p> + +</fieldset> + +<fieldset> + + <legend>Elements</legend> + + <div class="navigationBar">{NAV_BAR}</div> + + <!-- BEGIN thumbnails --> + <table valign="top" align="center" class="thumbnail"> + <!-- BEGIN line --> + <tr> + <!-- BEGIN thumbnail --> + <td class="thumbnail"> + <label> + <img src="{thumbnails.line.thumbnail.SRC}" + alt="{thumbnails.line.thumbnail.ALT}" + title="{thumbnails.line.thumbnail.TITLE}" + class="thumbLink" /> + <br /><input type="checkbox" name="selection[]" value="{thumbnails.line.thumbnail.ID}" /> + </label> + </td> + <!-- END thumbnail --> + </tr> + <!-- END line --> + </table> + <!-- END thumbnails --> + +</fieldset> + +</form> diff --git a/template/cclear/admin/element_set_unit.tpl b/template/cclear/admin/element_set_unit.tpl new file mode 100644 index 000000000..48dac9046 --- /dev/null +++ b/template/cclear/admin/element_set_unit.tpl @@ -0,0 +1,89 @@ +<div class="admin">{CATEGORY_TITLE}</div> + +<p style="text-align:center;"> + <a href="{U_GLOBAL_MODE}">global mode</a> + | unit mode +</p> + +<form action="{F_ACTION}" method="POST"> + +<input type="hidden" name="list" value="{IDS_LIST}" /> + +<fieldset> + + <legend>Display options</legend> + + <p>elements per page : + <a href="{U_ELEMENTS_PAGE}&display=5">5</a> + | <a href="{U_ELEMENTS_PAGE}&display=10">10</a> + | <a href="{U_ELEMENTS_PAGE}&display=50">50</a> + | <a href="{U_ELEMENTS_PAGE}&display=all">all</a> + </p> + +</fieldset> + +<fieldset> + + <legend>Elements</legend> + + <div class="navigationBar">{NAV_BAR}</div> + + <table width="100%"> + + <tr> + <th class="row2" style="text-align:center;"> </td> + <th class="row2" style="text-align:center;">name</td> + <th class="row2" style="text-align:center;">author</td> + <th class="row2" style="text-align:center;">description</td> + <th class="row2" style="text-align:center;">creation date</td> + <th class="row2" style="text-align:center;">keywords</td> + </tr> + + <!-- BEGIN element --> + <tr> + + <td style="text-align:center;"><img src="{element.TN_SRC}" alt="" class="miniature" title="{element.FILENAME}" /></td> + + <td style="text-align:center;"><input type="text" name="name-{element.ID}" value="{element.NAME}" maxlength="255"/></td> + + <td style="text-align:center;"><input type="text" name="author-{element.ID}" value="{element.AUTHOR}" maxlength="255" size="12" /></td> + + <td style="text-align:center;"><textarea name="comment-{element.ID}" rows="5" cols="30" style="overflow:auto">{element.COMMENT}</textarea></td> + + <td style="text-align:left;"> + <input type="radio" name="date_creation_action-{element.ID}" value="leave" checked="checked" /> leave unchanged + <br /><input type="radio" name="date_creation_action-{element.ID}" value="unset" /> unset + <br /><input type="radio" name="date_creation_action-{element.ID}" value="set" id="date_creation_action_set-{element.ID}" /> + + <select onmousedown="document.getElementById('date_creation_action_set-{element.ID}').checked = true;" name="date_creation_day-{element.ID}"> + <!-- BEGIN date_creation_day --> + <option {element.date_creation_day.SELECTED} value="{element.date_creation_day.VALUE}">{element.date_creation_day.OPTION}</option> + <!-- END date_creation_day --> + </select> + <select onmousedown="document.getElementById('date_creation_action_set-{element.ID}').checked = true;" name="date_creation_month-{element.ID}"> + <!-- BEGIN date_creation_month --> + <option {element.date_creation_month.SELECTED} value="{element.date_creation_month.VALUE}">{element.date_creation_month.OPTION}</option> + <!-- END date_creation_month --> + </select> + <input onmousedown="document.getElementById('date_creation_action_set-{element.ID}').checked = true;" + name="date_creation_year-{element.ID}" + type="text" + size="4" + maxlength="4" + value="{element.DATE_CREATION_YEAR}" /> + </td> + + <td style="text-align:center;"><input type="text" name="keywords-{element.ID}" value="{element.KEYWORDS}" length="255" /></td> + + </tr> + <!-- END element --> + + </table> + + <p style="text-align:center;"> + <input type="submit" value="{L_SUBMIT}" name="submit" class="bouton" /> + </p> + +</fieldset> + +</form> diff --git a/template/cclear/admin/intro.tpl b/template/cclear/admin/intro.tpl new file mode 100644 index 000000000..f42e9caae --- /dev/null +++ b/template/cclear/admin/intro.tpl @@ -0,0 +1,43 @@ +<h1>{lang:title_default}</h1> + +<dl> + <dt>{lang:PhpWebGallery version}</dt> + <dd> + <ul> + <li>PhpWebGallery {PWG_VERSION}</li> + <li><a href="{U_CHECK_UPGRADE}">{lang:Check for upgrade}</a></li> + </ul> + </dd> + + <dt>{lang:Environment}</dt> + <dd> + <ul> + <li>{lang:Operating system}: {OS}</li> + <li>PHP: {PHP_VERSION} (<a href="{U_PHPINFO}">{lang:Show info}</a>)</li> + <li>MySQL: {MYSQL_VERSION}</li> + </ul> + </dd> + + <dt>{lang:Database}</dt> + <dd> + <ul> + <li> + {DB_ELEMENTS} + <!-- BEGIN waiting --> + (<a href="{waiting.URL}">{waiting.INFO}</a>) + <!-- END waiting --> + </li> + <li>{DB_CATEGORIES}</li> + <li>{DB_USERS}</li> + <li>{DB_GROUPS}</li> + <li> + {DB_COMMENTS} + <!-- BEGIN unvalidated --> + (<a href="{unvalidated.URL}">{unvalidated.INFO}</a>) + <!-- END unvalidated --> + </li> + <li>{DB_DATE}</li> + </ul> + </dd> + +</dl> diff --git a/template/cclear/admin/maintenance.tpl b/template/cclear/admin/maintenance.tpl new file mode 100644 index 000000000..3a809a9d2 --- /dev/null +++ b/template/cclear/admin/maintenance.tpl @@ -0,0 +1,11 @@ +<h1>{lang:Maintenance}</h1> + +<ul> + <li><a href="{U_MAINT_CATEGORIES}">{lang:update categories informations}</a></li> + <li><a href="{U_MAINT_IMAGES}">{lang:update images informations}</a></li> + <li><a href="{U_MAINT_HISTORY}">{lang:purge history}</a></li> + <li><a href="{U_MAINT_SESSIONS}">{lang:purge sessions}</a></li> +<!-- + <li><a href="{U_FEEDS}">{lang:purge obsolete notification feed}</a></li> +--> +</ul> diff --git a/template/cclear/admin/user_list.tpl b/template/cclear/admin/user_list.tpl new file mode 100644 index 000000000..a66c6f4ba --- /dev/null +++ b/template/cclear/admin/user_list.tpl @@ -0,0 +1,270 @@ +<h1>{lang:title_liste_users}</h1> + +<form class="filter" method="post" name="add_user" action="{F_ADD_ACTION}"> + <fieldset> + <legend>{lang:Add a user}</legend> + <label>{L_USERNAME} <input type="text" name="login" maxlength="50" size="20" /></label> + <label>{L_PASSWORD} <input type="text" name="password" /></label> + <input type="submit" name="submit_add" value="{L_SUBMIT}" class="bouton" /> + </fieldset> +</form> + +<form class="filter" method="get" name="filter" action="{F_FILTER_ACTION}"> + + <input type="hidden" name="page" value="user_list" /> + + <!-- BEGIN session --> + <input type="hidden" name="id" value="{session.ID}" /> + <!-- END session --> + +<fieldset> + + <legend>{lang:Filter}</legend> + + + <label>{lang:username} <input type="text" name="username" value="{F_USERNAME}" /></label> + + <label> + {lang:status} + <select name="status"> + <!-- BEGIN status_option --> + <option value="{status_option.VALUE}" {status_option.SELECTED} > {status_option.CONTENT}</option> + <!-- END status_option --> + </select> + </label> + + <label> + {lang:group} + <select name="group"> + <!-- BEGIN group_option --> + <option value="{group_option.VALUE}" {group_option.SELECTED} > {group_option.CONTENT}</option> + <!-- END group_option --> + </select> + </label> + + <label> + {lang:Order by} + <select name="order_by"> + <!-- BEGIN order_by --> + <option value="{order_by.VALUE}" {order_by.SELECTED} >{order_by.CONTENT}</option> + <!-- END order_by --> + </select> + </label> + + <label> + {lang:Sort order} + <select name="direction"> + <!-- BEGIN direction --> + <option value="{direction.VALUE}" {direction.SELECTED} >{direction.CONTENT}</option> + <!-- END direction --> + </select> + </label> + + <input type="submit" name="submit_filter" value="{L_SUBMIT}" class="bouton" /> + +</fieldset> + +</form> + +<form method="post" name="preferences" action="{F_PREF_ACTION}"> + +<table class="table2" style="width:100%;" > + <tr class="throw"> + <th style="width:1%;"></th> + <th style="width:20%;">{L_USERNAME}</th> + <th style="width:20%;">{L_STATUS}</th> + <th style="width:30%;">{L_EMAIL}</th> + <th style="width:30%;">{L_GROUPS}</th> + <th style="width:1%;">{L_ACTIONS}</th> + </tr> + <!-- BEGIN user --> + <tr class="{user.CLASS}"> + <td><input type="checkbox" name="selection[]" value="{user.ID}" {user.CHECKED} id="selection-{user.ID}" /></td> + <td><label for="selection-{user.ID}">{user.USERNAME}</label></td> + <td>{user.STATUS}</td> + <td>{user.EMAIL}</td> + <td>{user.GROUPS}</td> + <td style="text-align:center;"> + <a href="{user.U_PERM}"><img src="./template/default/theme/permissions.png" style="border:none" alt="{L_PERMISSIONS}" title="{L_PERMISSIONS}" /></a> + </td> + </tr> + <!-- END user --> +</table> +<div class="navigationBar">{NAVBAR}</div> + +<!-- delete the selected users ? --> +<fieldset> + <legend>{lang:Deletions}</legend> + <input type="checkbox" name="confirm_deletion" value="1" /> {lang:confirm} + <input type="submit" value="{lang:Delete selected users}" name="delete" class="bouton" /> +</fieldset> + +<!-- form to set properties for many users at once --> +<fieldset> + <legend>{lang:Groups}</legend> + +<table> + + <tr> + <td>{lang:associate to group}</td> + <td> + <select name="associate" size="1"> + <!-- BEGIN associate_option --> + <option {associate_option.SELECTED} value="{associate_option.VALUE}">{associate_option.CONTENT}</option> + <!-- END associate_option --> + </select> + </td> + </tr> + + <tr> + <td>{lang:dissociate from group}</td> + <td> + <select name="dissociate" size="1"> + <!-- BEGIN dissociate_option --> + <option {dissociate_option.SELECTED} value="{dissociate_option.VALUE}">{dissociate_option.CONTENT}</option> + <!-- END dissociate_option --> + </select> + </td> + </tr> + +</table> + +</fieldset> + +<fieldset> + <legend>{lang:Preferences}</legend> + +<table> + + <tr> + <td>{L_NB_IMAGE_LINE}</td> + <td> + <input type="radio" name="nb_image_line_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="nb_image_line_action" value="set" id="nb_image_line_action_set" /> set to + <input onmousedown="document.getElementById('nb_image_line_action_set').checked = true;" + size="3" maxlength="2" type="text" name="nb_image_line" value="{NB_IMAGE_LINE}" /> + </td> + </tr> + + <tr> + <td>{L_NB_LINE_PAGE}</td> + <td> + <input type="radio" name="nb_line_page_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="nb_line_page_action" value="set" id="nb_line_page_action_set" /> set to + <input onmousedown="document.getElementById('nb_line_page_action_set').checked = true;" + size="3" maxlength="2" type="text" name="nb_line_page" value="{NB_LINE_PAGE}" /> + <td> + </tr> + + <tr> + <td>{L_TEMPLATE}</td> + <td> + <input type="radio" name="template_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="template_action" value="set" id="template_action_set" /> set to + <select onmousedown="document.getElementById('template_action_set').checked = true;" name="template" size="1"> + <!-- BEGIN template_option --> + <option {template_option.SELECTED} value="{template_option.VALUE}">{template_option.CONTENT}</option> + <!-- END template_option --> + </select> + </td> + </tr> + + <tr> + <td>{L_LANGUAGE}</td> + <td> + <input type="radio" name="language_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="language_action" value="set" id="language_action_set" /> set to + <select onmousedown="document.getElementById('language_action_set').checked = true;" name="language" size="1"> + <!-- BEGIN language_option --> + <option {language_option.SELECTED} value="{language_option.VALUE}">{language_option.CONTENT}</option> + <!-- END language_option --> + </select> + </td> + </tr> + + <tr> + <td>{L_RECENT_PERIOD}</td> + <td> + <input type="radio" name="recent_period_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="recent_period_action" value="set" id="recent_period_action_set" /> set to + <input onmousedown="document.getElementById('recent_period_action_set').checked = true;" + type="text" size="3" maxlength="2" name="recent_period" value="{RECENT_PERIOD}" /> + </td> + </tr> + + <tr> + <td>{L_EXPAND}</td> + <td> + <input type="radio" name="expand_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="expand_action" value="set" id="expand_action_set" /> set to + <input onmousedown="document.getElementById('expand_action_set').checked = true;" + type="radio" class="radio" name="expand" value="true" {EXPAND_YES} />{L_YES} + <input onmousedown="document.getElementById('expand_action_set').checked = true;" + type="radio" class="radio" name="expand" value="false" {EXPAND_NO} />{L_NO} + </td> + </tr> + + <tr> + <td>{L_SHOW_NB_COMMENTS}</td> + <td> + <input type="radio" name="show_nb_comments_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="show_nb_comments_action" value="set" id="show_nb_comments_action_set" /> set to + <input onmousedown="document.getElementById('show_nb_comments_action_set').checked = true;" + type="radio" class="radio" name="show_nb_comments" value="true" {SHOW_NB_COMMENTS_YES} />{L_YES} + <input onmousedown="document.getElementById('show_nb_comments_action_set').checked = true;" + type="radio" class="radio" name="show_nb_comments" value="false" {SHOW_NB_COMMENTS_NO} />{L_NO} + </td> + </tr> + + <tr> + <td>{L_MAXWIDTH}</td> + <td> + <input type="radio" name="maxwidth_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="maxwidth_action" value="unset" /> unset + <input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set" /> set to + <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;" + type="text" size="4" maxlength="4" name="maxwidth" value="{MAXWIDTH}" /> + </td> + </tr> + + + <tr> + <td>{L_MAXHEIGHT}</td> + <td> + <input type="radio" name="maxheight_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="maxheight_action" value="unset" /> unset + <input type="radio" name="maxheight_action" value="set" id="maxheight_action_set" /> set to + <input onmousedown="document.getElementById('maxheight_action_set').checked = true;" + type="text" size="4" maxlength="4" name="maxheight" value="{maxheight}" /> + </td> + </tr> + + <tr> + <td>{L_STATUS}</td> + <td> + <input type="radio" name="status_action" value="leave" checked="checked" /> leave unchanged + <input type="radio" name="status_action" value="set" id="status_action_set" /> set to + <select onmousedown="document.getElementById('status_action_set').checked = true;" name="status" size="1"> + <!-- BEGIN pref_status_option --> + <option {pref_status_option.SELECTED} value="{pref_status_option.VALUE}">{pref_status_option.CONTENT}</option> + <!-- END pref_status_option --> + </select> + </td> + </tr> + +</table> + +</fieldset> + +<p style="text-align:center;"> + target + <input type="radio" name="target" value="all" /> all + <input type="radio" name="target" value="selection" checked="checked" /> selection +</p> + +<p style="text-align:center;"> + <input type="submit" value="{L_SUBMIT}" name="pref_submit" class="bouton" /> + <input type="reset" value="{L_RESET}" name="pref_reset" class="bouton" /> +</p> + +</form> |