From 6e54c31df658795ec830fc93a26cd6e3d910e2ef Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Fri, 20 Apr 2018 10:29:45 +0800
Subject: [PATCH] 修正函数方法参数

---
 application/modules/Article/views/manager/edit.phtml |   76 +++++++++++++-------------------------
 1 files changed, 26 insertions(+), 50 deletions(-)

diff --git a/application/modules/Article/views/manager/edit.phtml b/application/modules/Article/views/manager/edit.phtml
index 2151daf..d55cfc7 100644
--- a/application/modules/Article/views/manager/edit.phtml
+++ b/application/modules/Article/views/manager/edit.phtml
@@ -1,83 +1,54 @@
 
     <section class="content-header">
       <h1>
-        ������������
+        ������������
       </h1>
       <ol class="breadcrumb">
-        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
-        <li><a href="#">Forms</a></li>
-        <li class="active">General Elements</li>
+        <li><a href="/admin/index/index"><i class="fa fa-dashboard"></i> ������������</a></li>
+        <li><a href="/article/manager/list">������������</a></li>
+        <li class="active">������������</li>
       </ol>
     </section>
     <!-- Main content -->
-    <section class="content">
+     <section class="content">
         <div class="box-body pad">
           <!-- general form elements -->
           <div class="box box-primary">
             <div class="box-header with-border">
-              <h3 class="box-title">������������</h3>
+              <h3 class="box-title">������������</h3>
             </div>
             <!-- /.box-header -->
             <!-- form start -->
             <form role="form" id="validateform">
               <div class="box-body">
                 <div class="form-group">
-                  <label >���������</label>
-                  <p><?php echo $user['phone']?></p>
+                  <label >������������</label>
+                  <input type="text" class="form-control" id="name" name="name" placeholder="������������" value="<?php echo $article['name'];?>">
                 </div>
                 <div class="form-group">
-                  <label >������</label>
-                  <input type="password" class="form-control" id="password" name="password" placeholder="���������������������������������">
-                </div>
-                <div class="form-group">
-                  <label >������</label>
-                  <input type="text" class="form-control" id="nickname" name="nickname" value="<?php echo $user['nickname']?>" placeholder="������">
-                </div>
-                <div class="form-group">
-                  <label >���������</label>
+                  <label >������������</label>
                   <div class="form-group">
-                    <select class="form-control" name="role">
-                      <option value="0">������������������</option>
-                      <?php foreach ($roles as $role):?>
-                      <option <?php echo isset($user['role']) && $user['role'] == $role['_id']?'selected':'';?> value="<?php echo $role['_id']?>"><?php echo $role['name']?></option>
-                      <?php endforeach;?>
+                    <select class="form-control" name="category">
+                      <option value="0">���������������������</option>
+                      <option value="1" <?php echo $article['category'] == 1?'selected':'';?>>������������</option>
+                      <option value="2" <?php echo $article['category'] == 2?'selected':'';?>>������������</option>
+                      <option value="3" <?php echo $article['category'] == 3?'selected':'';?>>���������������</option>
+                      <option value="4" <?php echo $article['category'] == 4?'selected':'';?>>������������</option>
                     </select>
                   </div>
                 </div>
                 <div class="form-group">
-                  <label >������������</label>
-                  <input type="text" class="form-control" id="refresh_frequency" name="refresh_frequency" value="<?php echo $user['refresh_frequency']?>" placeholder="������������">
+                  <label >������������</label>
+                  <textarea id="content" name="content" style="height: 500px;" placeholder="������������"><?php echo $article['content']?></textarea>
                 </div>
                 <div class="form-group">
-                  <label >������������</label>
+                  <label >������������</label>
                   <div class="form-group">
                     <label>
-                      <input type="radio" name="is_open_upload"  value="0" <?php echo $user['is_open_upload'] == 0?'checked':'';?>>���
+                      <input type="radio" name="is_publish" value="0" <?php echo $article['is_publish'] == 0?'checked':'';?>>���
                     </label>
                     <label>
-                      <input type="radio" name="is_open_upload" checked="checked" value="1" <?php echo $user['is_open_upload'] == 1?'checked':'';?>>���
-                    </label>
-                  </div>
-                </div>
-                <div class="form-group">
-                  <label >������</label>
-                  <div class="form-group">
-                    <label>
-                      <input type="radio" name="video" checked="checked" value="1" <?php echo $user['is_open_upload'] == 1?'checked':'';?>>���������
-                    </label>
-                    <label>
-                      <input type="radio" name="video" value="2" <?php echo $user['is_open_upload'] == 2?'checked':'';?>>���������
-                    </label>
-                  </div>
-                </div>
-                <div class="form-group">
-                  <label >������������������</label>
-                  <div class="form-group">
-                    <label>
-                      <input type="radio" name="is_lock"  value="1" <?php echo $user['is_lock'] == 1?'checked':'';?>>���
-                    </label>
-                    <label>
-                      <input type="radio" name="is_lock" value="0" <?php echo $user['is_lock'] == 0?'checked':'';?>>���
+                      <input type="radio" name="is_publish" value="1" <?php echo $article['is_publish'] == 1?'checked':'';?>>���
                     </label>
                   </div>
                 </div>
@@ -92,8 +63,13 @@
     </div>
   </section>
   <script src="/themes/AdminLTE/bootstrap/js/bootstrapValidator.min.js"></script>
+    <script src="/themes/ueditor/ueditor.config.js"></script>
+  <script src="/themes/ueditor/ueditor.all.min.js"></script>
+  <script src="/themes/ueditor/lang/zh-cn/zh-cn.js"></script>
 <script type="text/javascript">
   var SITE_URL = '<?php echo Yaf_Registry::get('var')['site_url']; ?>';
-  var ID = '<?php echo $user['_id']?>'
+  var ID = '<?php echo $article['_id']?>'
+  var ue = UE.getEditor('content');
+  //ue.setContent();
 </script>
 <script src="/static/<?php echo $route['module']?>/<?php echo $route['controller']?>/js/<?php echo $route['action']?>.js"></script>

--
Gitblit v1.8.0