Commit 2b03b24e authored by tinogo@blue-cable.de's avatar tinogo@blue-cable.de

- reworked the form handling a bit

- prefixed all class with "ACP3_" and reworked the autoloading
- it's now possible to select how certain pages of your website are indexed by the search engine crawlers
parent 1fef0070
......@@ -9,8 +9,8 @@
{$redirect_message}
{/if}
{if isset($roles)}
{assign var="can_delete" value=modules::check("access", "delete")}
{assign var="can_order" value=modules::check("access", "order")}
{assign var="can_delete" value=ACP3_Modules::check("access", "delete")}
{assign var="can_order" value=ACP3_Modules::check("access", "order")}
<table class="acp-table">
<thead>
<tr>
......
......@@ -7,7 +7,7 @@
{$redirect_message}
{/if}
{if isset($resources)}
{assign var="can_delete_resource" value=modules::check("access", "delete_resources")}
{assign var="can_delete_resource" value=ACP3_Modules::check("access", "delete_resources")}
<script type="text/javascript" src="{$DESIGN_PATH}access/script.js"></script>
<table id="resources-table" class="acp-table">
<thead>
......
......@@ -10,10 +10,10 @@
<div id="tab-1">
<dl>
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" maxlength="120"></dd>
<dd><input type="text" name="name" id="name" value="{$form.name}" maxlength="120"></dd>
<dt><label for="parent">{lang t="access|superior_role"}</label></dt>
<dd>
<select name="form[parent]" id="parent">
<select name="parent" id="parent">
{foreach $parent as $row}
<option value="{$row.id}"{$row.selected}>{$row.name}</option>
{/foreach}
......@@ -36,7 +36,7 @@
{foreach $privilege.select as $row}
<td>
<label for="privileges-{$values.id}-{$privilege.id}-{$row.value}">
<input type="radio" name="form[privileges][{$values.id}][{$privilege.id}]" id="privileges-{$values.id}-{$privilege.id}-{$row.value}" value="{$row.value}" class="checkbox"{$row.selected}>
<input type="radio" name="privileges[{$values.id}][{$privilege.id}]" id="privileges-{$values.id}-{$privilege.id}-{$row.value}" value="{$row.value}" class="checkbox"{$row.selected}>
{$row.lang}
</label>
</td>
......@@ -49,7 +49,7 @@
</div>
</div>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
......@@ -10,11 +10,11 @@
<div id="tab-1">
<dl>
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" maxlength="120"></dd>
<dd><input type="text" name="name" id="name" value="{$form.name}" maxlength="120"></dd>
{if isset($parent)}
<dt><label for="parent">{lang t="access|superior_role"}</label></dt>
<dd>
<select name="form[parent]" id="parent">
<select name="parent" id="parent">
{foreach $parent as $row}
<option value="{$row.id}"{$row.selected}>{$row.name}</option>
{/foreach}
......@@ -38,7 +38,7 @@
{foreach $privilege.select as $row}
<td>
<label for="privileges-{$values.id}-{$privilege.id}-{$row.value}">
<input type="radio" name="form[privileges][{$values.id}][{$privilege.id}]" id="privileges-{$values.id}-{$privilege.id}-{$row.value}" value="{$row.value}" class="checkbox"{$row.selected}>
<input type="radio" name="privileges[{$values.id}][{$privilege.id}]" id="privileges-{$values.id}-{$privilege.id}-{$row.value}" value="{$row.value}" class="checkbox"{$row.selected}>
{$row.lang}
</label>
</td>
......@@ -51,7 +51,7 @@
</div>
</div>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -7,7 +7,7 @@
<dl>
<dt><label for="privileges">{lang t="access|assigned_privilege"}</label></dt>
<dd>
<select name="form[privileges]" id="privileges">
<select name="privileges" id="privileges">
{foreach $privileges as $row}
<option value="{$row.id}"{$row.selected}>{$row.key}{if !empty($row.description)} ({$row.description}){/if}</option>
{/foreach}
......@@ -16,7 +16,7 @@
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -10,7 +10,7 @@
{/if}
{if isset($categories)}
{$pagination}
{assign var="can_delete" value=modules::check("categories", "delete")}
{assign var="can_delete" value=ACP3_Modules::check("categories", "delete")}
<table class="acp-table">
<thead>
<tr>
......
......@@ -5,14 +5,14 @@
<fieldset>
<dl>
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" maxlength="120"></dd>
<dd><input type="text" name="name" id="name" value="{$form.name}" maxlength="120"></dd>
<dt><label for="description">{lang t="common|description"}</label></dt>
<dd><input type="text" name="form[description]" id="description" value="{$form.description}" maxlength="120"></dd>
<dd><input type="text" name="description" id="description" value="{$form.description}" maxlength="120"></dd>
<dt><label for="picture">{lang t="categories|picture"}</label></dt>
<dd><input type="file" id="picture" name="picture" value=""></dd>
<dt><label for="module">{lang t="categories|module"}</label></dt>
<dd>
<select name="form[module]" id="module">
<select name="module" id="module">
<option value="">{lang t="common|pls_select"}</option>
{foreach $mod_list as $row}
<option value="{$row.dir}"{$row.selected}>{$row.name}</option>
......@@ -22,7 +22,7 @@
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
<span style="white-space:nowrap">
<select name="form[{$categories.name}]" id="{$categories.name}"{if isset($categories.create)} style="width:68%;display:inline"{/if}>
<select name="{$categories.name}" id="{$categories.name}"{if isset($categories.create)} style="width:68%;display:inline"{/if}>
<option value="">{lang t="common|pls_select"}</option>
{foreach $categories.categories as $row}
<option value="{$row.id}"{$row.selected}>{$row.name}</option>
{/foreach}
</select>
{if isset($categories.create)}
- <input type="text" name="form[{$categories.create.name}]" id="{$categories.create.name|replace:'_':'-'}" value="{$categories.create.value}" style="width:29%;display:inline">
- <input type="text" name="{$categories.create.name}" id="{$categories.create.name|replace:'_':'-'}" value="{$categories.create.value}" style="width:29%;display:inline">
{/if}
</span>
......@@ -5,15 +5,15 @@
<fieldset>
<dl>
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" maxlength="120"></dd>
<dd><input type="text" name="name" id="name" value="{$form.name}" maxlength="120"></dd>
<dt><label for="description">{lang t="common|description"}</label></dt>
<dd><input type="text" name="form[description]" id="description" value="{$form.description}" maxlength="120"></dd>
<dd><input type="text" name="description" id="description" value="{$form.description}" maxlength="120"></dd>
<dt><label for="picture">{lang t="categories|picture"}</label></dt>
<dd><input type="file" id="picture" name="picture" value=""></dd>
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -9,21 +9,21 @@
<label for="width">{lang t="categories|image_width"}</label>
<span>({lang t="common|statements_in_pixel"})</span>
</dt>
<dd><input type="number" name="form[width]" id="width" value="{$form.width}"></dd>
<dd><input type="number" name="width" id="width" value="{$form.width}"></dd>
<dt>
<label for="height">{lang t="categories|image_height"}</label>
<span>({lang t="common|statements_in_pixel"})</span>
</dt>
<dd><input type="number" name="form[height]" id="height" value="{$form.height}"></dd>
<dd><input type="number" name="height" id="height" value="{$form.height}"></dd>
<dt>
<label for="filesize">{lang t="categories|image_filesize"}</label>
<span>({lang t="common|statements_in_byte"})</span>
</dt>
<dd><input type="number" name="form[filesize]" id="filesize" value="{$form.filesize}"></dd>
<dd><input type="number" name="filesize" id="filesize" value="{$form.filesize}"></dd>
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
......@@ -8,7 +8,7 @@
{$redirect_message}
{/if}
{$pagination}
{assign var="can_delete" value=modules::check("comments", "delete_comments")}
{assign var="can_delete" value=ACP3_Modules::check("comments", "delete_comments")}
<table class="acp-table">
<thead>
<tr>
......
......@@ -9,7 +9,7 @@
{/if}
{if isset($comments)}
{$pagination}
{assign var="can_delete" value=modules::check("comments", "delete_comments_per_module")}
{assign var="can_delete" value=ACP3_Modules::check("comments", "delete_comments_per_module")}
<table class="acp-table">
<thead>
<tr>
......
......@@ -5,19 +5,19 @@
<fieldset class="no-border">
<dl>
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" maxlength="20" value="{$form.name}" required{$form.name_disabled}></dd>
<dd><input type="text" name="name" id="name" maxlength="20" value="{$form.name}" required{$form.name_disabled}></dd>
<dt><label for="message">{lang t="common|message"}</label></dt>
<dd>
{if isset($emoticons)}{$emoticons}{/if}
<textarea name="form[message]" id="message" cols="50" rows="5" required>{$form.message}</textarea>
<textarea name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</dd>
</dl>
{$captcha}
</fieldset>
<div class="form-bottom">
<input type="hidden" name="form[module]" value="{$form.module}">
<input type="hidden" name="form[entry_id]" value="{$form.entry_id}">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="hidden" name="module" value="{$form.module}">
<input type="hidden" name="entry_id" value="{$form.entry_id}">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
......@@ -7,20 +7,20 @@
<dl>
{if isset($form.user_id) && $form.user_id == '0'}
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" required></dd>
<dd><input type="text" name="name" id="name" value="{$form.name}" required></dd>
{/if}
<dt><label for="message">{lang t="common|message"}</label></dt>
<dd>
{if isset($emoticons)}{$emoticons}{/if}
<textarea name="form[message]" id="message" cols="50" rows="5" required>{$form.message}</textarea>
<textarea name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</dd>
</dl>
</fieldset>
<div class="form-bottom">
{if isset($form.user_id) && $form.user_id != '0'}
<input type="hidden" name="form[user_id]" value="{$form.user_id}">
<input type="hidden" name="user_id" value="{$form.user_id}">
{/if}
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -26,5 +26,5 @@
<h5>{lang t="common|no_entries"}</h5>
</div>
{/if}
{if modules::check('comments', 'create')}
{if ACP3_Modules::check('comments', 'create')}
{/if}
\ No newline at end of file
......@@ -7,7 +7,7 @@
<dl>
<dt><label for="date-format">{lang t="common|date_format"}</label></dt>
<dd>
<select name="form[dateformat]" id="date-format">
<select name="dateformat" id="date-format">
<option value="">{lang t="common|pls_select"}</option>
{foreach $dateformat as $row}
<option value="{$row.value}"{$row.selected}>{$row.lang}</option>
......@@ -19,7 +19,7 @@
<dd>
{foreach $allow_emoticons as $row}
<label for="emoticons-{$row.value}">
<input type="radio" name="form[emoticons]" id="emoticons-{$row.value}" value="{$row.value}" class="checkbox"{$row.checked}>
<input type="radio" name="emoticons" id="emoticons-{$row.value}" value="{$row.value}" class="checkbox"{$row.checked}>
{$row.lang}
</label>
{/foreach}
......@@ -28,7 +28,7 @@
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<dl style="text-align:center">
<dt><img src="{uri args="captcha/image"}" width="{$captcha.width}" height="{$captcha.height}" alt=""></dt>
<dd>
<input type="text" name="form[captcha]" id="captcha" value="" style="width:auto;display:inline" required>
<input type="text" name="captcha" id="captcha" value="" style="width:auto;display:inline" required>
</dd>
</dl>
</fieldset>
\ No newline at end of file
......@@ -9,9 +9,9 @@ $(document).ready(function() {
});
</script>
<span style="white-space:nowrap">
<input type="text" name="form[{$datepicker.name_start}]" id="{$datepicker.name_start}" value="{$datepicker.value_start}" maxlength="16" title="{lang t="common|start_date"}" required style="width:45%;margin-right:4px;display:inline">
<input type="text" name="{$datepicker.name_start}" id="{$datepicker.name_start}" value="{$datepicker.value_start}" maxlength="16" title="{lang t="common|start_date"}" required style="width:45%;margin-right:4px;display:inline">
-
<input type="text" name="form[{$datepicker.name_end}]" id="{$datepicker.name_end}" value="{$datepicker.value_end}" maxlength="16" title="{lang t="common|end_date"}" required style="width:45%;margin-right:4px;display:inline">
<input type="text" name="{$datepicker.name_end}" id="{$datepicker.name_end}" value="{$datepicker.value_end}" maxlength="16" title="{lang t="common|end_date"}" required style="width:45%;margin-right:4px;display:inline">
</span>
{else}
<script type="text/javascript">
......@@ -24,6 +24,6 @@ $(document).ready(function() {
});
</script>
<span style="white-space:nowrap">
<input type="text" name="form[{$datepicker.name}]" id="{$datepicker.name}" value="{$datepicker.value}" maxlength="16" style="width:96%;margin-right:4px;display:inline">
<input type="text" name="{$datepicker.name}" id="{$datepicker.name}" value="{$datepicker.value}" maxlength="16" style="width:96%;margin-right:4px;display:inline">
</span>
{/if}
\ No newline at end of file
{if $seo.enable_uri_aliases === true}
<dl>
<dt>
<label for="alias">{lang t="common|uri_alias"}</label>
<span>{lang t="common|uri_alias_description"}</span>
<label for="alias">{lang t="common|seo_uri_alias"}</label>
<span>{lang t="common|seo_uri_alias_description"}</span>
</dt>
<dd><input type="text" name="form[alias]" id="alias" value="{$seo.alias}"></dd>
<dd><input type="text" name="alias" id="alias" value="{$seo.alias}"></dd>
</dl>
{/if}
<dl>
<dt>
<label for="seo-keywords">{lang t="common|keywords"}</label>
<span>({lang t="common|keywords_separate_with_commas"})</span>
<label for="seo-keywords">{lang t="common|seo_keywords"}</label>
<span>({lang t="common|seo_keywords_separate_with_commas"})</span>
</dt>
<dd><input type="text" name="form[seo_keywords]" id="seo-keywords" value="{$seo.keywords}"></dd>
<dt><label for="seo-description">{lang t="common|description"}</label></dt>
<dd><input type="text" name="form[seo_description]" id="seo-description" value="{$seo.description}"></dd>
<dd><input type="text" name="seo_keywords" id="seo-keywords" value="{$seo.keywords}"></dd>
<dt><label for="seo-description">{lang t="common|seo_description"}</label></dt>
<dd><input type="text" name="seo_description" id="seo-description" value="{$seo.description}"></dd>
<dt><label for="seo-robots">{lang t="common|seo_robots"}</label></dt>
<dd>
<select name="seo_robots" id="seo-robots">
{foreach $seo.robots as $row}
<option value="{$row.value}"{$row.selected}>{$row.lang}</option>
{/foreach}
</select>
</dd>
</dl>
\ No newline at end of file
......@@ -12,11 +12,11 @@
<dt><label for="address">{lang t="contact|address"}</label></dt>
<dd>{wysiwyg name="address" value="`$form.address`" height="150" toolbar="simple"}</dd>
<dt><label for="mail">{lang t="common|email"}</label></dt>
<dd><input type="email" name="form[mail]" id="mail" value="{$form.mail}" maxlength="120"></dd>
<dd><input type="email" name="mail" id="mail" value="{$form.mail}" maxlength="120"></dd>
<dt><label for="telephone">{lang t="contact|telephone"}</label></dt>
<dd><input type="tel" name="form[telephone]" id="telephone" value="{$form.telephone}" maxlength="120"></dd>
<dd><input type="tel" name="telephone" id="telephone" value="{$form.telephone}" maxlength="120"></dd>
<dt><label for="fax">{lang t="contact|fax"}</label></dt>
<dd><input type="tel" name="form[fax]" id="fax" value="{$form.fax}" maxlength="120"></dd>
<dd><input type="tel" name="fax" id="fax" value="{$form.fax}" maxlength="120"></dd>
<dt><label for="disclaimer">{lang t="contact|disclaimer"}</label></dt>
<dd>{wysiwyg name="disclaimer" value="`$form.disclaimer`" height="150px" toolbar="simple"}</dd>
</dl>
......@@ -43,7 +43,7 @@
</div>
</div>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -5,16 +5,16 @@
<fieldset class="no-border">
<dl>
<dt><label for="name">{lang t="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" maxlength="20" value="{$form.name}" required{$form.name_disabled}></dd>
<dd><input type="text" name="name" id="name" maxlength="20" value="{$form.name}" required{$form.name_disabled}></dd>
<dt><label for="mail">{lang t="common|email"}</label></dt>
<dd><input type="email" name="form[mail]" id="mail" maxlength="120" value="{$form.mail}" required{$form.mail_disabled}></dd>
<dd><input type="email" name="mail" id="mail" maxlength="120" value="{$form.mail}" required{$form.mail_disabled}></dd>
<dt><label for="message">{lang t="common|message"}</label></dt>
<dd><textarea name="form[message]" id="message" cols="50" rows="5" required>{$form.message}</textarea></dd>
<dd><textarea name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea></dd>
</dl>
</fieldset>
{$captcha}
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
......@@ -10,7 +10,7 @@
{/if}
{if isset($emoticons)}
{$pagination}
{assign var="can_delete" value=modules::check("emoticons", "delete")}
{assign var="can_delete" value=ACP3_Modules::check("emoticons", "delete")}
<table class="acp-table">
<thead>
<tr>
......
......@@ -6,15 +6,15 @@
<legend>{lang t="emoticons|create"}</legend>
<dl>
<dt><label for="code">{lang t="emoticons|code"}</label></dt>
<dd><input type="text" name="form[code]" id="code" value="{$form.code}" maxlength="10"></dd>
<dd><input type="text" name="code" id="code" value="{$form.code}" maxlength="10"></dd>
<dt><label for="description">{lang t="common|description"}</label></dt>
<dd><input type="text" name="form[description]" id="description" value="{$form.description}" maxlength="15"></dd>
<dd><input type="text" name="description" id="description" value="{$form.description}" maxlength="15"></dd>
<dt><label for="picture">{lang t="emoticons|picture"}</label></dt>
<dd><input type="file" name="picture" id="picture"></dd>
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
......@@ -6,15 +6,15 @@
<legend>{lang t="emoticons|edit"}</legend>
<dl>
<dt><label for="code">{lang t="emoticons|code"}</label></dt>
<dd><input type="text" name="form[code]" id="code" value="{$form.code}" maxlength="10"></dd>
<dd><input type="text" name="code" id="code" value="{$form.code}" maxlength="10"></dd>
<dt><label for="description">{lang t="common|description"}</label></dt>
<dd><input type="text" name="form[description]" id="description" value="{$form.description}" maxlength="15"></dd>
<dd><input type="text" name="description" id="description" value="{$form.description}" maxlength="15"></dd>
<dt><label for="picture">{lang t="emoticons|replace_picture"}</label></dt>
<dd><input type="file" name="picture" id="picture"></dd>
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -9,21 +9,21 @@
<label for="width">{lang t="emoticons|image_width"}</label>
<span>({lang t="common|statements_in_pixel"})</span>
</dt>
<dd><input type="number" name="form[width]" id="width" value="{$form.width}"></dd>
<dd><input type="number" name="width" id="width" value="{$form.width}"></dd>
<dt>
<label for="height">{lang t="emoticons|image_height"}</label>
<span>({lang t="common|statements_in_pixel"})</span>
</dt>
<dd><input type="number" name="form[height]" id="height" value="{$form.height}"></dd>
<dd><input type="number" name="height" id="height" value="{$form.height}"></dd>
<dt>
<label for="filesize">{lang t="emoticons|image_filesize"}</label>
<span>({lang t="common|statements_in_byte"})</span>
</dt>
<dd><input type="number" name="form[filesize]" id="filesize" value="{$form.filesize}"></dd>
<dd><input type="number" name="filesize" id="filesize" value="{$form.filesize}"></dd>
</dl>
</fieldset>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
{$form_token}
</div>
</form>
\ No newline at end of file
......@@ -10,7 +10,7 @@
{/if}
{if isset($files)}
{$pagination}
{assign var="can_delete" value=modules::check("files", "delete")}
{assign var="can_delete" value=ACP3_Modules::check("files", "delete")}
<table class="acp-table">
<thead>
<tr>
......
......@@ -21,22 +21,22 @@
<div id="tab-2" class="ui-tabs-hide">
<dl>
<dt><label for="link-title">{lang t="files|link_title"}</label></dt>
<dd><input type="text" name="form[link_title]" id="link-title" value="{$form.link_title}" maxlength="120"></dd>
<dd><input type="text" name="link_title" id="link-title" value="{$form.link_title}" maxlength="120"></dd>
<dt><label for="file-internal">{lang t="files|filename"}</label></dt>
<dd>
<label for="external">
<input type="checkbox" name="form[external]" id="external" value="1" class="checkbox"{$checked_external}>
<input type="checkbox" name="external" id="external" value="1" class="checkbox"{$checked_external}>
{lang t="files|external_resource"}
</label>
<input type="file" name="file_internal" id="file-internal">
<input type="url" name="form[file_external]" id="file-external" value="{$form.file_external}" maxlength="120">
<input type="url" name="file_external" id="file-external" value="{$form.file_external}" maxlength="120">
</dd>
</dl>
<dl id="external-filesize">
<dt><label for="filesize">{lang t="files|filesize"}</label></dt>
<dd>
<input type="text" name="form[filesize]" id="filesize" value="{$form.filesize}" maxlength="15" style="width:49%;display:inline">
<select name="form[unit]" id="unit" style="width:49%;display:inline">
<input type="text" name="filesize" id="filesize" value="{$form.filesize}" maxlength="15" style="width:49%;display:inline">
<select name="unit" id="unit" style="width:49%;display:inline">
<option value="">{lang t="common|pls_select"}</option>
{foreach $units as $row}
<option value="{$row.value}"{$row.selected}>{$row.value}</option>
......@@ -58,7 +58,7 @@
{foreach $options as $row}
<li>
<label for="{$row.name}">
<input type="checkbox" name="form[{$row.name}]" id="{$row.name}" value="1" class="checkbox"{$row.checked}>
<input type="checkbox" name="{$row.name}" id="{$row.name}" value="1" class="checkbox"{$row.checked}>
{$row.lang}
</label>
</li>
......@@ -69,11 +69,11 @@
</dl>
</div>
<div id="tab-3" class="ui-tabs-hide">
{seo_fields alias="`$form.alias`" keywords="`$form.seo_keywords`" description="`$form.seo_description`"}
{$SEO_FORM_FIELDS}
</div>
</div>
<div class="form-bottom">
<input type="submit" value="{lang t="common|submit"}" class="form">
<input type="submit" name="submit" value="{lang t="common|submit"}" class="form">
<input type="reset" value="{lang t="common|reset"}" class="form">
{$form_token}
</div>
......
......@@ -21,24 +21,24 @@
<div id="tab-2" class="ui-tabs-hide">
<dl>
<dt><label for="link-title">{lang t="files|link_title"}</label></dt>
<dd><input type="text" name="form[link_title]" id="link-title" value="{$form.link_title}" maxlength="120"></dd>
<dd><input type="text" name="link_title" id="link-title" value="{$form.link_title}" maxlength="120"></dd>
<dt><label>{lang t="files|filename"}</label></dt>
<dd><input type="text" value="{$current_file}" class="readonly" disabled="disabled"></dd>
<dt><label for="file-internal">{lang t="files|new_file"}</label></dt>