</div> <div class="box-body table-responsive"> <?php echo $form->field($model, 'news_title')->textInput(['maxlength' => 50]); ?> <?php echo $form->field($model, 'news_sub_title')->textInput(['maxlength' => 50]); ?> <?php echo $form->field($model, 'news_des')->textarea(['rows' => 5]); ?> <?php echo $form->field($model, 'news_content')->widget(Ueditor::className(), ['id' => 'Post[news_content]', 'ucontent' => $model->news_content, 'options' => ['toolbars' => [['fullscreen', 'undo', 'redo', 'bold', 'italic', 'source', 'underline', 'fontborder', 'backcolor', 'fontsize', 'fontfamily', 'insertimage'], ['justifyleft', 'justifyright', 'justifycenter', 'justifyjustify', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc']], 'initialFrameWidth' => '100%', 'initialFrameHeight' => '500', 'autoHeightEnabled' => false, 'autoFloadEnabled' => true]]); ?> <?php echo $form->field($model, 'news_author')->textInput(['maxlength' => 30]); ?> <?php echo $form->field($model, 'news_from')->textInput(['maxlength' => 100]); ?> <?php echo $form->field($model, 'news_cover_url')->widget(\trntv\filekit\widget\Upload::className(), ['url' => ['/file-storage/upload'], 'maxFileSize' => 5000000])->hint('(图片大小不要超过5MB)'); ?> <?php
<?php $form = ActiveForm::begin(['options' => ['ENCTYPE' => 'multipart/form-data']]); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => 50]); ?> <?php echo $form->field($model, 'short_intro')->textarea(['maxlength' => 200]); ?> <div class="form-group"> <label class="control-label" for="speech-detailed_intro">详情</label> <?php echo Ueditor::widget(['id' => 'Speech[detailed_intro]', 'options' => ['toolbars' => [['fullscreen', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontborder', 'backcolor', 'fontsize', 'fontfamily'], ['justifyleft', 'justifyright', 'justifycenter', 'justifyjustify', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc']], 'initialFrameWidth' => '100%', 'initialFrameHeight' => '100%', 'autoHeightEnabled' => true, 'autoFloadEnabled' => true]]); ?> </div> <?php echo $form->field($model, 'author')->textInput(['maxlength' => 50]); ?> <div class="form-group"> <label for="">演讲时间</label> <?php echo DateTimePicker::widget(['type' => 1, 'name' => 'Speech[speech_date]', 'options' => ['placeholder' => '演讲时间', 'style' => 'width:100%'], 'size' => 'md', 'convertFormat' => true, 'pluginOptions' => ['format' => '', 'startDate' => '01-Mar-2014 12:00 AM', 'todayHighlight' => true, 'autoclose' => true]]); ?> </div> <?php
</div> <div class="formitem video"> <label for="video" class="formlabel">宣传视频:</label> <div class="formobject"> <input class="gray" type="text" name="extra[video_url]" value="<?php echo isset($product['extra']['video_url']) ? $product['extra']['video_url'] : ''; ?> " placeholder="可选, 输入视频地址 ( 支持: 优酷, 土豆 )" datatype="url" nullmsg="地址不可以为空哦!" errormsg="请填写正确的地址类型哦!" ignore="ignore" > <br/> </div> </div> <div class="formitem detail"> <label for="detail" class="formlabel">详细描述:</label> <div class="formobject"> <?php echo Ueditor::widget(['id' => 'extra[detail]', 'ucontent' => $product['extra']['detail']]); ?> <br/> </div> </div> </div> <div class="formsubmit"> <input type="hidden" name="extra[id]" id= 'product_id' value="<?php echo $id; ?> " /> <button type="submit" class="submitbtn" id="submit-btn">发布</button> <button type="submit" class="savebtn">保存</button> </div>
<TD>宣传视频:</TD> <TD> <input type='text' name='extra[video_url]' value="<?php echo isset($product['extra']['video_url']) ? $product['extra']['video_url'] : ''; ?> "/> </TD> </TR> <TR> <TD>详细描述:</TD> <TD> <?php $detail = isset($product['extra']['detail']) ? $product['extra']['detail'] : ''; echo Ueditor::widget(['id' => 'extra[detail]', 'ucontent' => $detail]); ?> </TD> </TR> <TR> <TD> <input type="hidden" name="formhash" value="<?php echo isset($formhash) ? $formhash : ''; ?> " /> <input type="submit" name="tijiao" value="保存" /> <input type="submit" name="tijiao" value="发布" /> <input type="submit" name="tijiao" value="预览" /> <input type="hidden" name="extra[id]" value="<?php
<TR> <TD>宣传视频:</TD> <TD> <input type='text' name='extra[video_url]' value="<?php echo $form['video_url']; ?> " /> </TD> </TR> <TR> <TD>详细描述:</TD> <TD> <?php echo Ueditor::widget(['id' => 'extra[detail]', 'ucontent' => $form["detail"]]); ?> </TD> </TR> <TR> <TD> <input type="submit" name="tijiao" value="保存" /> <input type="submit" name="tijiao" value="发布" /> <input type="submit" name="tijiao" value="预览" /> <input type="hidden" name="extra[id]" value="<?php echo $id; ?> " />
<?php use wenyuan\ueditor\Ueditor; echo Ueditor::widget(['id' => 'myeditor']);