1 <!-- BEGIN xs_file_version -->
2 /***************************************************************************
5 * copyright : (C) 2003, 2004 CyberAlien
6 * support : http://www.phpbbstyles.com
11 * project revision : 51
12 * last modified : 25 Aug 2004 11:51:48
14 ***************************************************************************/
15 <!-- END xs_file_version -->
17 <script language="JavaScript" type="text/javascript">
22 var old = document.edit.content.value;
23 var search = document.edit.edit_replace1.value;
24 var replace = document.edit.edit_replace2.value;
26 var pos = old.indexOf(search);
29 alert('{L_XS_FILEEDIT_SEARCH_NOMATCH}');
33 data = old.substring(0, pos) + replace + old.substring(pos + search.length, old.length);
34 document.edit.edit_replace3.value = old;
35 document.edit.content.value = data;
36 alert('{L_XS_FILEEDIT_SEARCH_MATCH1}');
40 function xs_replace_all()
42 var old = document.edit.content.value;
43 var search = document.edit.edit_replace1.value;
44 var replace = document.edit.edit_replace2.value;
46 var pos = old.indexOf(search);
51 alert('{L_XS_FILEEDIT_SEARCH_NOMATCH}');
57 data = data + old.substring(0, pos) + replace;
58 old = old.substring(pos + search.length, old.length);
59 pos = old.indexOf(search);
63 document.edit.edit_replace3.value = backup;
64 document.edit.content.value = data;
65 alert('{L_XS_FILEEDIT_SEARCH_MATCHES}');
69 function xs_replace_restore()
71 var data = document.edit.edit_replace3.value;
74 alert('{L_XS_FILEEDIT_NOUNDO}');
78 document.edit.content.value = data;
79 alert('{L_XS_FILEEDIT_UNDO_COMPLETE}');
86 <h1>{L_XS_EDIT_TEMPLATES}</h1>
88 <p>{L_XS_EDIT_TEMPLATE_COMMENT2}</p>
90 <form action="{U_ACTION}" method="post" enctype="multipart/form-data" name="edit" style="display: inline;">{S_HIDDEN_FIELDS}{S_FILTER}<input type="hidden" name="dir" value="{DIR}" /><input type="hidden" name="edit" value="{FILE}" />
91 <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center" width="100%">
93 <th>{L_XS_FILEEDIT_EDIT_NAME} {FULLFILE}</th>
96 <td class="row3" align="left" valign="middle"><span class="genmed">
97 {L_XS_FILEEDIT_LOCATION}
100 <a href="{tree.URL}">{tree.ITEM}</a>
102 / <a href="{U_EDIT}">{FILE}</a>
106 [<a href="{U_EDIT}">{L_XS_FILEEDIT_RELOAD_LC}</a>]
107 [<a href="{U_DOWNLOAD}">{L_XS_FILEEDIT_DOWNLOAD_LC}</a>]
111 <td class="row1" align="left"><textarea name="content" cols="120" rows="35" style="width: 100%">{CONTENT}</textarea></td>
114 <td class="row1" align="left"><span class="gen"><label><input type="checkbox" name="trim" checked="checked" /> {L_XS_FILEEDIT_TRIM}</label></span></td>
117 <th>{L_XS_FILEEDIT_FUNCTIONS}</th>
119 <input type="hidden" name="edit_replace3" value="" />
121 <td class="row1" align="left"><span class="genmed">
122 {L_XS_FILEEDIT_REPLACE1}<textarea name="edit_replace1" class="post" cols="20" rows="2"></textarea>{L_XS_FILEEDIT_REPLACE2}<textarea name="edit_replace2" class="post" cols="20" rows="2"></textarea> [<a href="javascript:void(0);" onclick="xs_replace();">{L_XS_FILEEDIT_REPLACE_FIRST_LC}</a>] [<a href="javascript:void(0);" onclick="xs_replace_all();">{L_XS_FILEEDIT_REPLACE_ALL_LC}</a>] [<a href="javascript:void(0)" onclick="xs_replace_restore();">{L_XS_FILEEDIT_REPLACE_UNDO_LC}</a>]<br />
126 <th>{L_XS_FILEEDIT_BACKUPS}</th>
129 <td class="row1" align="left"><span class="genmed">
130 [<a href="{U_BACKUP}">{L_XS_FILEEDIT_BACKUPS_SAVE_LC}</a>]<br />
131 <!-- BEGIN backup -->
132 {backup.TIME} [<a href="{backup.U_VIEW}">{L_XS_FILEEDIT_BACKUPS_SHOW_LC}</a>] [<a href="{backup.U_RESTORE}">{L_XS_FILEEDIT_BACKUPS_RESTORE_LC}</a>] [<a href="{backup.U_DOWNLOAD}">{L_XS_FILEEDIT_BACKUPS_DOWNLOAD_LC}</a>] [<a href="{backup.U_DELETE}">{L_XS_FILEEDIT_BACKUPS_DELETE_LC}</a>]<br />
137 <th>{L_XS_FILEEDIT_UPLOAD}</th>
140 <td class="row1" align="left" valign="middle"><span class="genmed">
141 {L_XS_FILEEDIT_UPLOAD_FILE} <input type="file" name="upload" class="post" />
145 <td class="catBottom" align="center"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" name="reset" value="{L_RESET}" class="liteoption" /></td>