<?php /* Smarty version Smarty-3.1.8, created on 2014-03-29 09:31:04
         compiled from "D:\WWW\themes\default\tenders.html" */ ?>
<?php /*%%SmartyHeaderCode:161255336225881af21-50663312%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '072ad50ae6c58ec8ba37e002309871f132b20ed6' => 
    array (
      0 => 'D:\\WWW\\themes\\default\\tenders.html',
      1 => 1392970909,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '161255336225881af21-50663312',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'CONFIG' => 0,
    'request' => 0,
    'total_count' => 0,
    'type' => 0,
    'setting' => 0,
    'key' => 0,
    'item' => 0,
    'detail' => 0,
    'pager' => 0,
    'index' => 0,
    'tenders' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_53362258c8bbb5_18941054',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_53362258c8bbb5_18941054')) {function content_53362258c8bbb5_18941054($_smarty_tpl) {?><?php if (!is_callable('smarty_function_widget')) include 'D:\\WWW\\system\\plugins/smarty\\function.widget.php';
if (!is_callable('smarty_function_link')) include 'D:\\WWW\\system\\plugins/smarty\\function.link.php';
if (!is_callable('smarty_block_calldata')) include 'D:\\WWW\\system\\plugins/smarty\\block.calldata.php';
if (!is_callable('smarty_modifier_format')) include 'D:\\WWW\\system\\plugins/smarty\\modifier.format.php';
if (!is_callable('smarty_modifier_cutstr')) include 'D:\\WWW\\system\\plugins/smarty\\modifier.cutstr.php';
?><?php echo $_smarty_tpl->getSubTemplate ("block/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<!-- 头部和导航公共部分发 --> 
<div class="deco_t">
    <div class="w1000 hauto deco_pa">
        <h2><?php echo $_smarty_tpl->tpl_vars['CONFIG']->value['site']['title'];?>
全心致力于打造中国第一装修平台，<span class="red">更阳光，更透明！</span></h2>
        <p class="deco_bg mb30">
            <span class="l_line lt mt10 mr10"></span>
            <span class="c_wenzi lt f16">拥有<font class="red">千余家</font>装修公司，提供<font class="org">7大免费产品</font></span>
            <span class="r_line lt mt10 ml10"></span>
        </p>
    </div>
</div>
<!--  江湖家居全新打造  -->
<div class="free_publish w1000 hauto mt20">
    <div class="free_publish_l lt">
        <h2><font class="red">免费</font><font class="blackb">发布招标</font></h2>
        <h3>优质装修公司任你挑，您将获得<font class="red">7</font>项免费服务</h3>
        <div class="free_publish_b mt15">
        </div>
        <div class="wenzi_mobile mt15">
          <font class="red">业主都说：</font><?php echo $_smarty_tpl->tpl_vars['CONFIG']->value['site']['title'];?>
是最好、最值得信任、最让人省心的专业装修招标网站！！！
        </div>
    </div>
    <div class="free_decoration_r lt ml20 mt10">
        <div class="home_jiazhaung">
            <ul class="lt tenders_type">
               
                <li ><a href="javascript:void(0);">我要招标</a></li>
               
            </ul>
            
            <div class="rt home_jiazhaung_r mt5">
                目前已帮助<b><?php echo $_smarty_tpl->tpl_vars['request']->value['city']['city_name'];?>
</b><font class="red"> <?php echo $_smarty_tpl->tpl_vars['total_count']->value;?>
</font> 户业主
            </div>
        </div>
        <div class="cl"></div>
        <div class="home_infor hauto mt20">
            <form id='tenders_form' action="">
            <input type="hidden" id='tenders_type_id' name='data[type_id]' value="1" />
                <table>
                	<tr>
                    	<td width="62" align="right"><i>*</i>我的称呼</td>
                       	<td width="110" align="left"><input type="text" name="data[name]"/></td>
                        <td width="62" align="right"><i>*</i>联系电话</td>
                        <td width="110" align="left"><input type="text" name="data[mobile]"/></td>
                    </tr>
                    <tr>
                    	<td align="right">招标类型</td>
                       	<td>
                        <select name="data[type_id]" >
                        <option value="0">请选择</option>
                        
                        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['setting']->value[$_smarty_tpl->tpl_vars['type']->value['type']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
                        <option  value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
</option>
                        <?php } ?>
                    	</select>
                     </td>
                        <td align="right">装修预算</td>
                        <td>
                      <select name="data[budget_id]" >
                        <option value="0">请选择</option>
                      
                        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['setting']->value[$_smarty_tpl->tpl_vars['type']->value['budget']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
                        <option <?php if ($_smarty_tpl->tpl_vars['detail']->value['budget_id']==$_smarty_tpl->tpl_vars['key']->value){?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
</option>
                        <?php } ?>
                    </select>
                        </td>
                    </tr>
                    <tr>
                    	<td align="right">&nbsp;装修面积</td>
                       	<td><input type="text" name="data[area]" class="zxmj_area"/>&nbsp;㎡</td>
                        <td align="right">&nbsp;小区名称</td>
                        <td><input type="text" name="data[home_name]"/></td>
                    </tr>
                    <tr>
                    	<td align="right">&nbsp;所在地址</td>
                       	<td><select name="data[city_id]"><?php echo smarty_function_widget(array('id'=>"data/city",'value'=>$_smarty_tpl->tpl_vars['request']->value['city_id']),$_smarty_tpl);?>
</select></td>
                        <td align="right" cols="20">&nbsp;所在城区</td>
                        <td><select name="data[area_id]"><?php echo smarty_function_widget(array('id'=>"data/area",'value'=>0,'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id']),$_smarty_tpl);?>
</select></td>
                    </tr>
                </table>
                 
                <p>
                	<span class="bzxx lt">备注信息</span>
                    <span class="bzxx_kk lt"><textarea name='data[demand]' cols="40" rows="4"></textarea></span>
                </p>  
                     <div class="cl"></div>                           
                <p class="p1 ml10 mt10">
                    <span><a mini-submit='#tenders_form' action="<?php echo smarty_function_link(array('ctl'=>'tenders:save'),$_smarty_tpl);?>
">免费发布招标</a></span>
                    <font>或拨打<br /><b class="red f18"><?php echo $_smarty_tpl->tpl_vars['CONFIG']->value['site']['phone'];?>
</b></font>
                </p>
                <div class="cl"></div>
                <p class="ml10">*为了你的利益及我们的口碑，你的隐私将被严格保密。</p>
            </form>
        </div>

    </div>
</div>
<!-- 免费发布招标 -->
<div class="deco_command_pp hauto w1000">
    <div class="deco_command_p_title mt20 w1000">
        <ul>
            <li><a href="javascript:void(0);" class="a6">推荐装修公司</a></li>
            <li><a href="javascript:void(0);" class="a6">品牌保障公司</a></li>
            <li><a href="javascript:void(0);" class="a6">口碑装修公司</a></li>
            <li><a href="javascript:void(0);" class="a6">签单排行公司</a></li>                                        
        </ul>
    </div>
    <div class="deco_command_show w1000 hauto none deco_son_1">
        <ul>
            <?php $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"orderby:DESC",'limit'=>"10")); $_block_repeat=true; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"orderby:DESC",'limit'=>"10"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

            <li>
                <a target='_blank'  title="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" href="<?php echo smarty_function_link(array('ctl'=>'company','arg0'=>$_smarty_tpl->tpl_vars['item']->value['company_id']),$_smarty_tpl);?>
"><img alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['img'];?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['logo'];?>
" width="150" height="70" /></a>
                <div class="shuzi  <?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>redbgg <?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==1){?>greenbgg<?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==2){?>bluebgg<?php }else{ ?> graybgg<?php }?><?php }?><?php }?> "><?php echo $_smarty_tpl->tpl_vars['index']->value+1;?>
</div>
            </li>
            <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"orderby:DESC",'limit'=>"10"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

        </ul>
    </div>
    <div class="deco_command_show w1000 hauto none deco_son_2">
        <ul>
             <?php $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"security:DESC",'limit'=>"10")); $_block_repeat=true; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"security:DESC",'limit'=>"10"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

            <li>
                <a target='_blank'  title="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" href="<?php echo smarty_function_link(array('ctl'=>'company','arg0'=>$_smarty_tpl->tpl_vars['item']->value['company_id']),$_smarty_tpl);?>
"><img alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['img'];?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['logo'];?>
" width="150" height="70" /></a>
                <div class="shuzi  <?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>redbgg <?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==1){?>greenbgg<?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==2){?>bluebgg<?php }else{ ?> graybgg<?php }?><?php }?><?php }?> "><?php echo $_smarty_tpl->tpl_vars['index']->value+1;?>
</div>
            </li>
            <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"security:DESC",'limit'=>"10"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>


        </ul>
    </div>
    <div class="deco_command_show w1000 hauto none deco_son_3">
        <ul>
              <?php $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"scores:DESC",'limit'=>"10")); $_block_repeat=true; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"scores:DESC",'limit'=>"10"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

            <li>
                <a target='_blank'  title="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" href="<?php echo smarty_function_link(array('ctl'=>'company','arg0'=>$_smarty_tpl->tpl_vars['item']->value['company_id']),$_smarty_tpl);?>
"><img alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['img'];?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['logo'];?>
" width="150" height="70" /></a>
                <div class="shuzi  <?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>redbgg <?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==1){?>greenbgg<?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==2){?>bluebgg<?php }else{ ?> graybgg<?php }?><?php }?><?php }?> "><?php echo $_smarty_tpl->tpl_vars['index']->value+1;?>
</div>
            </li>
            <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"scores:DESC",'limit'=>"10"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>


        </ul>
    </div>
    <div class="deco_command_show w1000 hauto none deco_son_4">
        <ul>
            <?php $_smarty_tpl->smarty->_tag_stack[] = array('calldata', array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"tenders_num:DESC",'limit'=>"10")); $_block_repeat=true; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"tenders_num:DESC",'limit'=>"10"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

            <li>
                <a target='_blank'  title="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" href="<?php echo smarty_function_link(array('ctl'=>'company','arg0'=>$_smarty_tpl->tpl_vars['item']->value['company_id']),$_smarty_tpl);?>
"><img alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['img'];?>
/<?php echo $_smarty_tpl->tpl_vars['item']->value['logo'];?>
" width="150" height="70" /></a>
                <div class="shuzi  <?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>redbgg <?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==1){?>greenbgg<?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['index']->value==2){?>bluebgg<?php }else{ ?> graybgg<?php }?><?php }?><?php }?> "><?php echo $_smarty_tpl->tpl_vars['index']->value+1;?>
</div>
            </li>
            <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_calldata(array('mdl'=>"company/company",'city_id'=>$_smarty_tpl->tpl_vars['request']->value['city_id'],'order'=>"tenders_num:DESC",'limit'=>"10"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>


        </ul>
    </div>
</div>
<script type="text/javascript">
    (function(K, $) {
        $(".deco_command_p_title li").mouseover(function() {
            var index = $(this).index();
            $(".deco_command_p_title li").each(function(a) {
                var num = a + 1;
                if (a == index) {
                    $(this).find(".a6").css('color', '#666666');
                    $(".deco_son_" + num).show();
                } else {
                    $(this).find(".a6").css('color', '');
                    $(".deco_son_" + num).hide();
                }
            });
        });
        $(".deco_command_p_title li").eq(0).mouseover();
        $(".deco_command_p_title li:eq(0) a").css('color', '#666666')

        $("select[name='data[city_id]']").live('change', function() {
            var city_id = $(this).val();
            if (!city_id) {
                return false;
            }
            var link = "<?php echo smarty_function_link(array('ctl'=>'magic:area','arg0'=>'#city_id#','http'=>true),$_smarty_tpl);?>
"
            $.getJSON(link.replace("#city_id#", city_id), function(ret) {
                if (ret.error) {
                    Widget.MsgBox.error(ret.message.join(","));
                } else if (ret.areas.length > 0) {
                    var html = "";
                    for (var i = 0; i < ret.areas.length; i++) {
                        html += '<option value="' + ret.areas[i].area_id + '">' + ret.areas[i].area_name + '</option>';
                    }
                    $("select[name='data[area_id]']").html(html);
                } else {
                    $("select[name='data[area_id]']").html('<option value="">--</option>');
                }
            });
        });
    })(window.KT, window.jQuery);
</script>
<!-- 推荐装修公司 -->
<div class="lastest_order w1000 hauto mt30">
    <h2>最新装修招标订单</h2>
    <div class="lastest_order_show w1000 hauto">
        <div class="lastest_order_show_l lt">
            <div class="lastest_order_show_title red_bg">
                <span>发布时间</span>
                <span>业主</span>
                <span>面积</span>
                <span>标情况</span>
                <span>预算</span>
            </div>
            <div class="cl"></div>
            <ul>
                <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['tenders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                <li>
                    <span><?php echo smarty_modifier_format($_smarty_tpl->tpl_vars['item']->value['dateline'],'m-d');?>
</span>
                    <span><?php echo smarty_modifier_cutstr($_smarty_tpl->tpl_vars['item']->value['name'],3,'**');?>
</span>
                    <span><?php echo $_smarty_tpl->tpl_vars['item']->value['area'];?>
㎡</span>
                    <span><a target='_blank' title="<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
" href="<?php echo smarty_function_link(array('ctl'=>'tenders:detail','arg0'=>$_smarty_tpl->tpl_vars['item']->value['id']),$_smarty_tpl);?>
" class="red"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a></span>
                    <span><?php echo $_smarty_tpl->tpl_vars['setting']->value[$_smarty_tpl->tpl_vars['type']->value['budget']][$_smarty_tpl->tpl_vars['item']->value['budget_id']];?>
</span>
                    <div class="cl"></div>
                </li>
                <?php } ?>
            </ul>
            <div class="page">
                <?php echo $_smarty_tpl->tpl_vars['pager']->value['pagebar'];?>

            </div>
        </div>
        <script>$(document).ready(function() {
                $(".lastest_order_show_l ul li:odd").css('background', '#F5F6F6');
            });</script>
        <div class="lastest_order_show_r lt mb10">
            <p class="buzhou">
                <a href="javascript:void(0);">五小步轻松发布招标</a>
            </p>
            <p class="buzhou1">
                <a href="javascript:void(0);"><b>1、免费发布招标</b></a><br />
                <a href="javascript:void(0);">&nbsp;&nbsp;您可以通过电话预约或者<br />
                    &nbsp;&nbsp;网页等信息发布装修招标需求。</a>
            </p>
            <p class="buzhou1">
                <a href="javascript:void(0);"><b>2、客服回访</b></a><br />
                <a href="javascript:void(0);">&nbsp;&nbsp;您可以通过电话预约或者<br />
                    &nbsp;&nbsp;网页等信息发布装修招标需求。</a>
            </p>
            <p class="buzhou1">
                <a href="javascript:void(0);"><b>3、量房设计预算</b></a><br />
                <a href="javascript:void(0);">&nbsp;&nbsp;您可以通过电话预约或者<br />
                    &nbsp;&nbsp;网页等信息发布装修招标需求。</a>
            </p>
            <p class="buzhou1">
                <a href="javascript:void(0);"><b>4、选择公司</b></a><br />
                <a href="javascript:void(0);">&nbsp;&nbsp;您可以通过电话预约或者<br />
                    &nbsp;&nbsp;网页等信息发布装修招标需求。</a>
            </p>
            <p class="buzhou1">
                <a href="javascript:void(0);"><b>5、量房设计预算</b></a><br />
                <a href="javascript:void(0);">&nbsp;&nbsp;您可以通过电话预约或者<br />
                    &nbsp;&nbsp;网页等信息发布装修招标需求。</a>
            </p>
        </div>
        
        <script>
            (function(K, $) { $(".lastest_order_show_r a").click(function(){  $("html,body").animate({scrollTop:0},300);}); })(window.KT, window.jQuery);
        </script>
    </div>
</div>
<div class="h30"></div>
<?php echo $_smarty_tpl->getSubTemplate ("block/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>