mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
64 lines
2.4 KiB
HTML
64 lines
2.4 KiB
HTML
{@Context::addMetaTag('viewport', 'width=device-width, user-scalable=no', FALSE);}
|
|
<load target="./css/declare_document.css" />
|
|
<form action="./" method="post" id="fo_component" ruleset="insertDeclare">
|
|
<input type="hidden" name="module" value="document" />
|
|
<!--@if($type == 'cancel')-->
|
|
<input type="hidden" name="act" value="procDocumentDeclareCancel" />
|
|
<!--@else-->
|
|
<input type="hidden" name="act" value="procDocumentDeclare" />
|
|
<!--@end-->
|
|
<input type="hidden" name="target_srl" value="{$target_srl}" />
|
|
<input type="hidden" name="success_return_url" value="{getUrl('', 'act', $act, 'target_srl', $target_srl)}" />
|
|
<input type="hidden" name="xe_validator_id" value="modules/document/tpl/1" />
|
|
<div class="x_modal-header">
|
|
<h1>{$lang->improper_document_declare} <!--@if($type == 'cancel')-->{$lang->cmd_cancel}<!--@end--></h1>
|
|
<a class="close_window" href="javascript:window.close()">×</a>
|
|
</div>
|
|
<div class="x_modal-body x_form-horizontal" style="max-height:none">
|
|
<blockquote>
|
|
<section class="target_article">
|
|
<h1>{$target_document->getTitleText()}</h1>
|
|
<p>{$target_document->getSummary(200)}</p>
|
|
</section>
|
|
</blockquote>
|
|
<!--@if($type !== 'cancel')-->
|
|
<div class="x_control-group">
|
|
<label class="x_control-label" for="message_option">{$lang->improper_document_declare_reason}</label>
|
|
<div class="x_controls">
|
|
<select name="message_option" id="message_option">
|
|
<option loop="$lang->improper_document_reasons => $key,$text" value="{$key}">{$text}</option>
|
|
</select>
|
|
<textarea name="declare_message" id="declare_message"></textarea>
|
|
<p>{$lang->about_improper_document_declare}<p>
|
|
</div>
|
|
</div>
|
|
<!--@end-->
|
|
</div>
|
|
<div class="x_modal-footer">
|
|
<span class="x_btn-group x_pull-right">
|
|
<button type="submit" class="x_btn x_btn-primary"><!--@if($type == 'cancel')-->{$lang->cmd_cancel_declare}<!--@else-->{$lang->cmd_submit}<!--@end--></button>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
<script cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/document/tpl/1'">
|
|
alert("{$XE_VALIDATOR_MESSAGE}");
|
|
if (opener) {
|
|
opener.location.reload();
|
|
window.close();
|
|
}
|
|
</script>
|
|
<script>
|
|
(function($){
|
|
$(function() {
|
|
setFixedPopupSize();
|
|
$('select[name="message_option"]').change(function(){
|
|
if ($(this).val()==='others') {
|
|
$('#declare_message').show();
|
|
} else {
|
|
$('#declare_message').hide();
|
|
}
|
|
setFixedPopupSize();
|
|
});
|
|
});
|
|
})(jQuery);
|
|
</script>
|