Added feature for adding modules via ZIP-File

This commit is contained in:
Marc Alexander
2011-02-04 01:18:23 +00:00
parent 879e0c89f5
commit 1cefcbddfe
6 changed files with 388 additions and 3 deletions

View File

@@ -0,0 +1,61 @@
<!-- INCLUDE overall_header.html -->
<a name="maincontent"></a>
<h1>{L_TITLE}</h1>
<p>{L_TITLE_EXPLAIN}</p>
<!-- IF S_ERROR -->
<div class="errorbox">
<h3>{L_WARNING}</h3>
<p>{ERROR_MSG}</p>
</div>
<!-- ENDIF -->
<!-- IF not S_MOD_SUCCESSBOX -->
<form action="{U_ACTION}" method="post" id="mod_upload"{S_FORM_ENCTYPE}>
<fieldset>
<legend>{L_MODULE_UPLOAD}</legend>
<dl>
<p>{L_MODULE_UPLOAD_EXP}</p>
<input type="file" name="modupload" id="modupload" value="" style="width:50%" />
{S_FORM_TOKEN}
<br /><br /><input type="submit" name="submit" value="{L_MODULE_UPLOAD_GO}" id="submit" class="button1" />
</dl>
</fieldset>
</form>
<!-- ELSE -->
<div class="successbox">
<p>{MESSAGE}</p>
<br />
<p><a href="{U_RETURN}">{L_RETURN_MODS}</a></p>
</div>
<fieldset>
<legend>{L_NEW_FILES}</legend>
<table cellspacing="1">
<col class="row1" /><col class="row1" /><col class="row2" />
<thead>
<tr>
<th>{L_SOURCE}</th>
<th>{L_TARGET}</th>
<th>{L_STATUS}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN new_files -->
<tr>
<td><strong>{new_files.SOURCE}<!-- IF new_files.S_MISSING_FILE -->&nbsp;&nbsp;&nbsp;<strong><font color="red">({L_FILE_MISSING})</font><!-- ENDIF --></strong></td>
<td>{new_files.TARGET}</td>
<!-- IF S_INSTALL -->
<td><!-- IF new_files.S_SUCCESS --><font color="green">{L_SUCCESS}</font><!-- ELSEIF new_files.S_NO_COPY_ATTEMPT -->{L_MANUAL_COPY}<!-- ELSE --><font color="red">{L_ERROR}</font><!-- ENDIF --></td>
<!-- ENDIF -->
</tr>
<!-- END new_files -->
</tbody>
</table>
</fieldset>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->