<div id="centre" class="layout">
    <div class="broadCentre radius5">
        <div class="hd">
            <h3 class="h3">新建方案</h3>
            <p class="more"><a class="link" href="<?php echo $documentation['refresh_project'];?>" target="_blank">使用说明&gt;&gt;</a></p>
        </div>
        <div class="mod">
            <div class="renovateFunBox">
                <form <?php if( $project_house_num > 0){ ?>action="/reserve/add_project_and_houses/"<?php }else {?>action="/reserve/add_project/"<?php }?> id="project_form" name="project_form" method="post">
                    <div class="forms">
                        <dl class="list">
                            <!---->
                            <dd class="list_item clearfix">
                                <label class="label">新建方案：</label>
                                <div class="fields nameInput ">
                                    <div class="fgInput jsNameInput jsFgInput">
                                        <label class="labelPrev labelPrevN jslabelPrev" for="jsRenovateInput">最多6个字</label>
                                        <input type="text" id="jsRenovateInput" name="project_name" value="新的方案" class="jsRenovateInput input_text w90">
                                    </div>
                                    <div class="fgInput textFgErroy"></div>
                                </div>
                            </dd>
                            <!---->
                            <dd class="list_item clearfix">
                                <label class="label">设定时间：</label>
                                <div class="fields nameInput "> &nbsp; </div>
                            </dd>
                        </dl>
                        <div class="renovateFunTime clearfix"> 
                            <!---->
                            <div class="hourBox clearfix">
                                <div class="name">小时</div>
                                <div id="jsRenovateHour" class="time hour">
                                    <dl>
                                        <dd class="first"><a oid="05" href="#">05</a></dd>
                                        <dd><a oid="06" href="#">06</a></dd>
                                        <dd><a oid="07" href="#">07</a></dd>
                                        <dd><a oid="08" href="#">08</a></dd>
                                        <dd><a oid="09" href="#">09</a></dd>
                                        <dd><a oid="10" href="#">10</a></dd>
                                        <dd><a oid="11" href="#">11</a></dd>
                                        <dd><a oid="12" href="#">12</a></dd>
                                        <dd><a oid="13" href="#">13</a></dd>
                                        <dd><a oid="14" href="#">14</a></dd>
                                        <dd><a oid="15" href="#">15</a></dd>
                                        <dd><a oid="16" href="#">16</a></dd>
                                        <dd><a oid="17" href="#">17</a></dd>
                                        <dd><a oid="18" href="#">18</a></dd>
                                        <dd><a oid="19" href="#">19</a></dd>
                                        <dd><a oid="20" href="#">20</a></dd>
                                        <dd><a oid="21" href="#">21</a></dd>
                                        <dd><a oid="22" href="#">22</a></dd>
                                        <dd class="last"><a oid="23" href="#">23</a></</dd>
                                        <!--<dd class="last"><a oid="24" href="#">24</a></</dd>-->
                                    </dl>
                                </div>
                                <!----> 
                            </div>
                            <!---->
                            <div id="jsRenovateMinuteBox" class="minuteBox clearfix hide">
                                <div class="name">分钟</div>
                                <div id="jsRenovateMinute" class="time minute">
                                </div>
                            </div>
                            <!----> 
                        </div>
                    </div>
                    <?php if( $project_house_num > 0){ ?>
                    <div class="forms radius5 clearfix"> 
                        <label class="label">选择天数：</label>
                        <div class="fields">
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">今天</label>
                                    <input type="text" name="project_day" class="imitate imitateIe" readonly />
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <?php for($i = 1 ; $i <= $project_times_max_days ; $i++){ 
                                                if(($i > 7 && $i < 14) || ($i > 14 && $i < 21))
                                                {
                                                    continue;
                                                }
                                            ?>
                                            <dd><a class="link" onClick="textNumToObj(this)" href="###" oid="<?php echo $i;?>"><?php echo $i == 1 ? '今':$i; ?>天</a></dd>
                                            <?php } ?>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput tjNumendBox"> 
                                本次预约房源条数：<span id="jsHouseNumber" class="color"><?php echo $project_house_num;?></span>条<span class="f">|</span>
                                方案时间点：<span id="jsTimeNumber" class="color"><?php echo $project_times_num;?></span>个<span class="f">|</span>
                                预约天数：<span id="jsToNumber" class="color">1</span>天<span class="f">|</span>
                                每天使用刷新次数：<span class="color" id="jsTotalNumber"><?php echo $project_times_num;?></span>次</div>
                        </div>
                    </div>
                    <!---->
                    <div class="forms radius5 clearfix ">
                        <label class="label label2">预约房源</label>
                        <div id="jsHouseBoxFunction" class="houseBoxFunction clear">  
                            <?php foreach($project_houses_arr as $val){ ?>
                            <div class="houseItem houseItem_info">
                                <div class="houseItemInner"> 
                                    <a href="<?php echo $val['houseinfo']['url'];?>" class="houseLink"> 
                                        <em class="jsCloseItem closeItem" title="删除" id="<?php echo $val['houseinfo']['tbl'];?><?php echo $val['houseinfo']['rowid'];?>">关闭</em> 
                                        <span class="innr name"><?php echo $val['houseinfo']['blockshowname'];?></span> 
                                        <span class="innr"><?php echo $val['houseinfo']['room'];?>室<?php echo $val['houseinfo']['hall'];?>厅   
                                            <?php echo $val['houseinfo']['buildarea']?>㎡  <?php echo $val['houseinfo']['price'];?><?php echo $val['houseinfo']['tbl'] == "sell" ? "万":"元"; ?>
                                        </span>
                                    </a> 
                                </div>
                                <input type="hidden" name="housearr[]" value="<?php echo $val['houseinfo']['rowid'];?>" />
                            </div>
                            <?php } ?>
                             <input type="hidden" name="house_tbl" value="<?php echo $house_tbl;?>" />
                        </div>
                        <div id="jsPicDepotSZBtn" class="picDepotSZ">
                            <p class="jsZK innerSZ">展开房源</p>
                            <p class="jsSQ innerSZ innerSZ2">收起房源</p>
                        </div>
                    </div>
                    <?php } ?>
                    
                    <div class="renovateFunBtn clearfix"> 
                        <a href="#save" class="btn addbutton btnConColor radius5">保存</a> 
                        <a href="/sell/manage/active/" class="btn btnCon radius5">取消</a> 
                    </div>
                    <input type="hidden" id="jaRenovateHourHide" name="project_times" value="" />
                    <input type="hidden" name="actiontype" id="formaction" value="add_project" />
                </form>
            </div>
        </div>
    </div>
</div>
<!--弹出层-->
<div id="jsDialog" class="dialog radius5">
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <div class="text"> </div>
    </div>
</div>
<!--弹出层-->
<div id="jsDialogSave" class="dialog radius5">
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <div class="text" id="dialogSaveDiv">确定保存该预约刷新方案？</div>
        <div style="padding:20px 0 0 65px;"><a href="####" class="btn savePrjoect btnConColor radius5 close-win">确定</a><a href="####" class="btn btnCon radius5 close-win">取消</a><input type="hidden" id="delhfp_tex" value="" /></div>
    </div>
</div>

<!--弹出层-->
<div id="jsDialogDel2" class="dialog radius5">
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <div class="text">确定将该房源从此预约刷新方案中删除？&nbsp;(保存后生效)</div>
        <div style="padding:20px 0 0 65px;"><a href="####" class="btn delhfp2 btnConColor radius5 close-win">确定</a><a href="####" class="btn btnCon radius5 close-win">取消</a><input type="hidden" id="delhfp2_tex" value="" /></div>
    </div>
</div>

<!--弹出层-->
<div id="jsDialogSave" class="dialog radius5">
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <div class="text" id="dialogSaveDiv">确定保存该预约刷新方案？</div>
        <div style="padding:20px 0 0 65px;"><a href="####" class="btn savePrjoect btnConColor radius5 close-win">确定</a><a href="####" class="btn btnCon radius5 close-win">取消</a></div>
    </div>
</div>