init fileupload

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9047 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-09-06 06:05:42 +00:00
parent eb32f7a679
commit 204db2c4be
4 changed files with 51 additions and 4 deletions

View file

@ -4,7 +4,7 @@
<permissions />
<actions>
<action name="dispFileAdminList" type="view" admin_index="true" standalone="true" menu_name="file" menu_index="true" />
<action name="dispFileAdminConfig" type="view" standalone="true" />
<action name="dispFileAdminConfig" type="view" menu_name="fileUpload" menu_index="true" />
<action name="getFileList" type="model" standalone="true" />
<action name="procFileUpload" type="controller" standalone="true" />
<action name="procFileIframeUpload" type="controller" standalone="true" />

View file

@ -177,7 +177,7 @@
Context::set('config',$config);
// Set a template file
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('file_config');
$this->setTemplateFile('adminConfig');
}
}

View file

@ -99,7 +99,7 @@
<value xml:lang="vi"><![CDATA[Danh sách đính kèm]]></value>
</item>
<item name="allow_outlink">
<value xml:lang="ko"><![CDATA[파일 외부 링크]]></value>
<value xml:lang="ko"><![CDATA[다른 사이트에서 첨부파일 링크하는 것을 허용할까요?]]></value>
<value xml:lang="en"><![CDATA[External Link]]></value>
<value xml:lang="jp"><![CDATA[外部からのファイルリンク]]></value>
<value xml:lang="zh-CN"><![CDATA[防盗链]]></value>
@ -508,4 +508,4 @@
<value xml:lang="ko"><![CDATA[선택한 파일]]></value>
<value xml:lang="en"><![CDATA[선택한 파일]]></value>
</item>
</lang>
</lang>

View file

@ -0,0 +1,47 @@
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<div class="content" id="content">
<form ruleset="insertConfig" action="./" method="post" class="form">
<input type="hidden" name="act" value="procFileAdminInsertConfig" />
<h1 class="h1">File Upload</h1>
<ul>
<li>
<p class="q">{$lang->allow_outlink}</p>
<p class="a">
<input type="radio" name="allow_outlink" value="Y" id="allow_outlink_y" checked="checked"|cond="$config->allow_outlink == 'Y'" /> <label for="allow_outlink_y">{$lang->cmd_yes}</label>
<input type="radio" name="allow_outlink" value="N" id="allow_outlink_n" checked="checked"|cond="$config->allow_outlink == 'N'" /> <label for="allow_outlink_n">{$lang->cmd_no}</label>
</p>
</li>
<li style="display:none"|cond="$config->allow_outlink == 'N'">
<p class="q">{$lang->allow_outlink_format}</p>
<p class="a">
<input type="text" name="allow_outlink_format" value="{$config->allow_outlink_format}" />
<p>{$lang->about_allow_outlink_format}</p>
</p>
</li>
<li style="display:none"|cond="$config->allow_outlink == 'N'">
<p class="q">{$lang->allow_outlink_site}</p>
<p class="a">
<textarea type="text" name="allow_outlink_site">{$config->allow_outlink_site}</textarea>
<p>{$lang->about_allow_outlink_site}</p>
</p>
</li>
<li>
<p class="q"><label for="filesize">{$lang->about_allowed_filesize}</label></p>
<p class="a"><input id="filesize" type="text" name="allowed_filesize" value="{$config->allowed_filesize}" style="width:40px" /> MB</p>
</li>
<li>
<p class="q"><label for="attachSize">{$lang->about_allowed_attach_size}</label></p>
<p class="a"><input id="attachSize" type="text" name="allowed_attach_size" value="{$config->allowed_attach_size}" style="width:40px" /> MB</p>
</li>
<li>
<p class="q"><label for="allowedFiletypes">{$lang->about_allowed_filetypes}</label></p>
<p class="a"><input id="allowedFiletypes" type="text" name="allowed_filetypes" value="{$config->allowed_filetypes}" /></p>
</li>
</ul>
<div class="btnArea">
<span class="btn medium"><input type="submit" value="Save" /></span>
</div>
</form>
</div>