<?php /* Smarty version 2.6.31, created on 2024-05-15 15:44:57
         compiled from db:topics_submit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'str_replace', 'db:topics_submit.html', 137, false),)), $this); ?>
<?php echo ''; ?><?php if ($this->_tpl_vars['preview']['title']): ?><?php echo '<table class="outer"><tbody><tr><td class="head">'; ?><?php echo $this->_tpl_vars['preview']['title']; ?><?php echo '</td></tr><tr><td>'; ?><?php echo $this->_tpl_vars['preview']['hometext']; ?><?php echo '</td></tr></tbody></table><br />'; ?><?php endif; ?><?php echo '<script type="text/javascript" src="'; ?><?php echo $this->_tpl_vars['xoops_url']; ?><?php echo '/editors/ckeditor/ckeditor.js"></script><form name="storyform" id="storyform"  class="form-container" action="?page=submit" method="post" enctype="multipart/form-data">'; ?><?php echo $this->_tpl_vars['gticket']; ?><?php echo ''; ?><?php if ($this->_tpl_vars['storyid']): ?><?php echo '<input type="hidden" name="storyid" value="'; ?><?php echo $this->_tpl_vars['storyid']; ?><?php echo '"/>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['return']): ?><?php echo '<input type="hidden" name="return" value="'; ?><?php echo $this->_tpl_vars['return']; ?><?php echo '"/>'; ?><?php endif; ?><?php echo '<h2>'; ?><?php echo @_MD_SUBMITNEWS; ?><?php echo '</h2><div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_TOPIC; ?><?php echo '</div></div><div class="five sixth ipad padded">'; ?><?php echo $this->_tpl_vars['topic_selbox']; ?><?php echo '</div></div><div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_TITLE; ?><?php echo '</div></div><div class="five sixth ipad padded"><input class="form-field" type="text" name="title" id="mytitle" value="'; ?><?php echo $this->_tpl_vars['title']; ?><?php echo '" size="50" maxlength="80" /></div></div><div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_FILE; ?><?php echo '</div></div><div class="five sixth ipad padded">'; ?><?php if ($this->_tpl_vars['topimg'] != ''): ?><?php echo '<label><input type="checkbox" name="checked" value="1" checked="checked" /><small>現在の画像を使用</small><br /></label>'; ?><?php endif; ?><?php echo '<input type="file" name="upfile" id="upfile" accept="image/*" /><br />'; ?><?php echo $this->_tpl_vars['topimg']; ?><?php echo '<input type=\'hidden\' name=\'topicimg\' value=\'0\'></div></div><div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_THESCOOP; ?><?php echo '</div></div><div class="five sixth ipad padded"><div id="area_ckxoops"><textarea class="ckeditor" cols="80" rows="10" id="text" name="text">'; ?><?php echo $this->_tpl_vars['text']; ?><?php echo '</textarea></div></div></div><div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_WEIGHT; ?><?php echo '</div></div><div class="five sixth ipad padded"><input type="text" name="weight" value="'; ?><?php echo $this->_tpl_vars['weight']; ?><?php echo '"></div></div>'; ?><?php if ($this->_tpl_vars['can_use_date']): ?><?php echo '<div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_PUBLISHED; ?><?php echo '</div></div><div class="five sixth ipad padded"><label><input type="checkbox" value="1" name="autodate" '; ?><?php if ($this->_tpl_vars['autodate']): ?><?php echo 'checked="checked"'; ?><?php endif; ?><?php echo ' />'; ?><?php echo @_MD_SETDATETIME; ?><?php echo '</label>&nbsp;<span style="font-size:0.8em;">'; ?><?php echo @_MD_SETDATETIME_DESC; ?><?php echo '</span><br />'; ?><?php echo $this->_tpl_vars['post_date_selector']; ?><?php echo '<br /></div></div><div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_EXPIRED; ?><?php echo '</div></div><div class="five sixth ipad padded"><label><input type="checkbox" value="1" name="autoexpdate" '; ?><?php if ($this->_tpl_vars['autoexpdate']): ?><?php echo 'checked="checked"'; ?><?php endif; ?><?php echo ' />'; ?><?php echo @_MD_SETEXPDATETIME; ?><?php echo '</label>&nbsp;<span style="font-size:0.8em;">'; ?><?php echo @_MD_SETEXPDATETIME_DESC; ?><?php echo '</span><br />'; ?><?php echo $this->_tpl_vars['expire_date_selector']; ?><?php echo '<br /></div></div>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['use_relation']): ?><?php echo '<div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_MD_RELATION; ?><?php echo '</div></div><div class="five sixth ipad padded"><div id="relation">'; ?><?php $_from = $this->_tpl_vars['relations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?><?php echo '<input type="checkbox" name="storyidR[]" value="'; ?><?php echo $this->_tpl_vars['i']['linkedid']; ?><?php echo '" /><input type="hidden" name="titleR[]" value="'; ?><?php echo $this->_tpl_vars['i']['title']; ?><?php echo '" /><input type="hidden" name="dirnameR[]" value="'; ?><?php echo $this->_tpl_vars['i']['dirname']; ?><?php echo '" /><input type="hidden" name="storyidRH[]" value="'; ?><?php echo $this->_tpl_vars['i']['linkedid']; ?><?php echo '" />'; ?><?php echo $this->_tpl_vars['i']['title']; ?><?php echo '<br />'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</div><input type="button" value="'; ?><?php echo @_MD_ADD_RELATION; ?><?php echo '" name="opensub" onclick="window.open(\'index.php?page=search\',\'sub\',\'width=400,height=500\');"><input type="button" value="'; ?><?php echo @_DELETE; ?><?php echo '" name="updatevar" onclick="updateRelations(\'storyform\', false)"></div></div>'; ?><?php endif; ?><?php echo '<div class="row"><div class="one sixth ipad padded"><div class="info block box">'; ?><?php echo @_OPTIONS; ?><?php echo '</div></div><div class="five sixth ipad padded"><input type=\'hidden\' name=\'html\' value=\'1\'><label><input type="checkbox" value="1" name="block" '; ?><?php if ($this->_tpl_vars['block']): ?><?php echo 'checked="checked"'; ?><?php endif; ?><?php echo ' />'; ?><?php echo @_MD_DISP_BLOCK; ?><?php echo '</label><br /><label><input type="checkbox" value="1" name="ihome" '; ?><?php if ($this->_tpl_vars['ihome']): ?><?php echo 'checked="checked"'; ?><?php endif; ?><?php echo ' />'; ?><?php echo @_MD_PUBINHOME; ?><?php echo '</label><br />'; ?><?php if ($this->_tpl_vars['use_approve']): ?><?php echo '<label><input type="checkbox" value="1" name="approve" '; ?><?php if ($this->_tpl_vars['approve']): ?><?php echo 'checked="checked"'; ?><?php endif; ?><?php echo ' />'; ?><?php echo @_MD_APPROVE; ?><?php echo '</label><br />'; ?><?php endif; ?><?php echo '</div></div><div class="row padded"><input class="submit-button" class="block error" name="post" id="post" value="'; ?><?php echo @_MD_POST; ?><?php echo '" type="submit" /></div></form><!-- Start Form Vaidation JavaScript //--><script type="text/javascript">$(function(){$(\'#topicid\').addClass(\'form-field\');$(\'form input:file\').uploadThumbs({position : 1,imgbreak : false,});/*// 0:before, 1:after, 2:parent.prepend, 3:parent.append,// any: arbitrarily jquery selector// append <br> after thumbnail images*/$(\'#post\').on(\'click\',function(){if($(\'#mytitle\').val() == \'\'){alert("'; ?><?php echo ((is_array($_tmp='{0}')) ? $this->_run_mod_handler('str_replace', true, $_tmp, @_MD_TITLE, @_MD_ERROR_REQUIRED) : str_replace($_tmp, @_MD_TITLE, @_MD_ERROR_REQUIRED)); ?><?php echo '");return false;}});});</script><style>form img.thumb {margin:0 5px 5px 0;max-width:160px;vertical-align:bottom;}</style><!-- End Form Vaidation JavaScript //-->'; ?>