<div class="div_c mobi_top">
    <form action="index.php?c=race&action=race_<?php echo $action; ?>&id=<?php echo $id; ?>" method="post"
      enctype="application/x-www-form-urlencoded" id="form">
      <?php 
      if($action=='add')
      {
        ?>
        <h1><font color="orange" size="+15">1.</font>填写基本资料</h1>
        <h4 style="font-weight: 100">你将开始发布您的报名</h4>
        <br/><br/>
        <?php
      }
      ?>
    <table class="table">
        <tr>
            <td width="100">赛事标题</td>
            <td><input placeholder="请输入赛事标题" type="text" value="<?php echo $result[0]['race_title'] ?>" name="race_title"/></td>
        </tr>
                <tr>
            <td>开始时间</td>
            <td><input placeholder="请输入开始时间"  type="text" value="<?php echo $result[0]['start_time'] ?>" name="start_time" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate"  /></td>
        </tr>
                <tr>
            <td>结束时间</td>
            <td><input placeholder="请输入结束时间"  type="text" value="<?php echo $result[0]['end_times'] ?>" name="end_times"  id="end_time" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" /></td>
        </tr>
                <tr>
            <td>报名开始时间</td>
            <td><input placeholder="请输入报名开始时间"  type="text" value="<?php echo $result[0]['sign_start_time'] ?>"   name="sign_start_time" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" /></td>
        </tr>
                <tr>
            <td>报名结束时间</td>
            <td><input placeholder="请输入报名结束时间"  type="text" value="<?php echo $result[0]['sign_end_time'] ?>" name="sign_end_time" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate"  /></td>
        </tr>
                <tr>
            <td>举办地址</td>
            <td><input placeholder="请输入举办地址"  type="text" value="<?php echo $result[0]['place'] ?>" name="place"/></td>
        </tr>
                <tr>
            <td>完赛图片地址</td>
            <td><input placeholder="请输入完赛图片地址"  type="text" value="<?php echo $result[0]['photo_link'] ?>" name="photo_link"/></td>
        </tr>
                <tr>
            <td>简介</td>
            <td><textarea placeholder="请输入简介"  name="contant" rows="5" cols="50"><?php echo $result[0]['contant'] ?></textarea></td>
        </tr>
    </table><h3>详细信息</h3><br/>  
    <script type="text/javascript" src="plug-in/utf8-php/ueditor.config.js"></script>
    <script type="text/javascript" src="plug-in/utf8-php/ueditor.all.js"></script>
    <script id="contant_c" name="contant_c" type="text/plain">
<?php echo $result[0]['contant_c'] ?>
                </script>
    <textarea style="display:none" name="contant_c_texteare" id="contant_c_texteare"></textarea>
    <script type="text/javascript">
        var editor = UE.getEditor('contant_c');
        $("#form").submit(function () {
            $("#contant_c_texteare").val(UE.getEditor('contant_c').getContent());
        })
    </script>
    <br/>
    <div style="position:fixed;z-index:1000000;bottom:10px;width:100%;background: white;">
       
    <input type="submit" value="保存" class="btn" style=" background-color: #00a0e9; width: 300px;"/>
</div>
</form>
</div>
<script language="javascript">
    function setting(type) {
        $("#frame_main").show();
        $("#f_i",parent.document.body).attr("src","plug-in/updateApi.php")
    }
    function change(v)
    {
        $("#end_time").val(v);
    }
</script>
<script language="javascript" type="text/javascript" src="plug-in/My97DatePicker/WdatePicker.js"></script>