<?php
/*
 * 注意：此文件由tpl_engine编译型模板引擎编译生成。
 * 如果您的模板要进行修改，请修改 templates/default/modules/default.html
 * 如果您的模型要进行修改，请修改 models/modules/default.php
 *
 * 修改完成之后需要您进入后台重新编译，才会重新生成。
 * 如果您开启了debug模式运行，那么您可以省去上面这一步，但是debug模式每次都会判断程序是否更新，debug模式只适合开发调试。
 * 如果您正式运行此程序时，请切换到service模式运行！
 * 
 * 如有您有问题请到官方论坛（http://tech.jooyea.com/bbs/）提问，谢谢您的支持。
 */
?><?php
?><div class="main_r left10">
      <div class="asd"></div>
      <div id="maincontent" class="top10">
        <div class="c_t">
          <div class="c_t_l left"></div>
          <div class="c_t_r right"></div>
        </div>
        <div class="c_m">
          <!-- star start -->
          <div id="star">
            <div class="top"><h2><?php echo $l_langpackage->l_jooyea_star;?></h2></div>
            <div class="content">
              <div class="left_part">
               <DIV id=MainPromotionBanner>
				<DIV id=SlidePlayer>
                  <ul class="Slides">
                  <?php if(!empty($rec_rs1)){?>
                  <?php foreach($rec_rs1 as $val){?>
                    <li><a href="home.php?h=<?php echo $val['user_id'];?>" target="_blank"><img src="<?php echo $val['show_ico'];?>" alt="<?php echo $val['user_name'];?>" /></a></li>
                  <?php }?>
                  <?php }?>
                  <?php if(empty($rec_rs1)){?>
                  	<li><a href="#"><img src="skin/<?php echo $skinUrl;?>/images/def.jpg" alt="" /></a></li>
                  <?php }?>
                  </ul>
              </DIV>
	</DIV>
		<SCRIPT type=text/javascript>
		TB.widget.SimpleSlide.decorate('SlidePlayer', {eventType:'mouse', effect:'scroll'});
		</SCRIPT>
  </div>
              <div class="right_part">
                <?php foreach($rec_rs0 as $val){?>
                <dl>
                  <dt><a href="home.php?h=<?php echo $val['user_id'];?>" target="_blank"><img src="<?php echo $val['user_ico'];?>" alt="<?php echo $val['user_name'];?>" /></a></dt>
                  <dd><a href="home.php?h=<?php echo $val['user_id'];?>" target="_blank"><?php echo sub_str($val['user_name'],5,true);?></a></dd>
                </dl>
              <?php }?>
              </div>
            </div>
          </div>
          <!-- star end -->
          <div id="friend">
            <div class="top">
              <h2><?php echo $l_langpackage->l_new_momber;?></h2></div>
            <div class="content">
              <div class="left_part">
			  <form action='index.php'>
			  	<input type='hidden' name='tg' value='search_pals' />
			  	<input type='hidden' name='type' value='index' />
                <div class="item">
                  <div class="name"><?php echo $l_langpackage->l_location;?>：</div>
                  <div class="sel w1" onmouseover="addClass(this,'sel_hover')" onmouseout="removeClass(this,'sel_hover')" onclick="showBox(0);"><span id="area"><?php echo $l_langpackage->l_chose;?></span></div>
				  <div id="showssBox_0" class="showbox s1" style="display: none">
				  	<div class="subitem"><select id='q_province' name='q_province' onchange = "hw_select('q_province','q_city');"></select></div><div class="subitem"><select name='q_city' id="q_city" onchange = "hw_select('select_p','select_c');"></select></div>
					<div class="subitem"><input type="button" value="<?php echo $l_langpackage->l_confirm;?>" onclick="setArea();" /></div>
					<script type="text/javascript">
						hw_init("q_province","q_city");
					</script>
				  </div>
               	</div>
			    <div class="item">
                  <div class="name"><label class="mr12"><?php echo $l_langpackage->l_age;?>：</div>
                  <div class="sel w2" onmouseover="addClass(this,'sel_hover')" onmouseout="removeClass(this,'sel_hover')" onclick="showBox(1);createAge();"><span id="age"><?php echo $l_langpackage->l_no_restraint;?></span></div>
				  <div id="showssBox_1" class="showbox s2" style="display: none">
				  	<div class="subitem"><select id="select_age_b" name="select_age_b" onchange="$('age_begin').value = $('select_age_b').value;createAge2();$('age_end').value = $('select_age_e').value;"></select><input id="age_begin" type="hidden"  name="min_age" value=""/>~<select id="select_age_e" name="select_age_e" onchange="$('age_end').value = this.value"></select><input id="age_end" type="hidden" name="max_age" value=""/></div>
					<div class="subitem"><input type="button" value="<?php echo $l_langpackage->l_confirm;?>" onclick="setAge();" /><span style="text-decoration:underline;margin-left: 5px;" onclick="$('age_end').value = '不限';$('age_begin').value = '不限';$('age').innerHTML = '不限';$('showssBox_1').style.display = 'none';">年龄不限</span></div>
				  </div> 
               	</div>
			    <div class="item">
          <div class="name"><label class="mr12"><?php echo $l_langpackage->l_sex;?>：</div>
          <div class="sel w3" onmouseover="addClass(this,'sel_hover')" onmouseout="removeClass(this,'sel_hover')" onclick="showBox(2);"><span id="gender"><?php echo $l_langpackage->l_no_restraint;?></span><input id="sex" type="hidden" name="sex" value="" /></div>
				  <div class="submit"><input type="submit" class="btn" value="<?php echo $l_langpackage->l_search;?>" /></div>
				  <div id="showssBox_2" class="showbox s3" style="display: none">
				  <div class="subitem" onmouseover='this.style.background="#0296c3";this.style.color="#ffffff"' onmouseout='this.style.background="#ffffff";this.style.color="#666"' onclick="setGender(this);"><?php echo $l_langpackage->l_no_restraint;?></div>
				  <div class="subitem" onmouseover='this.style.background="#0296c3";this.style.color="#ffffff"' onmouseout='this.style.background="#ffffff";this.style.color="#666"' onclick="setGender(this);$('sex').value = 0;"><?php echo $l_langpackage->l_lady;?></div>
					<div class="subitem" onmouseover='this.style.background="#0296c3";this.style.color="#ffffff"' onmouseout='this.style.background="#ffffff";this.style.color="#666"' onclick="setGender(this);$('sex').value = 1;"><?php echo $l_langpackage->l_men;?></div>
				  </div>
          </div>
				</form>
              </div>
              <div class="right_part">
              
                <?php foreach($user_rs as $val){?>
                <dl>
                  <dt><a href="home.php?h=<?php echo $val['user_id'];?>" target="_blank"><img src="<?php echo $val['user_ico'];?>" alt="<?php echo $val['user_name'];?>" /></a></dt>
                  <dd><a href="home.php?h=<?php echo $val['user_id'];?>" target="_blank"><?php echo sub_str($val['user_name'],5,true);?></a></dd>
                  <dd><?php echo format_datetime_short($val['lastlogin_datetime']);?></dd>
                </dl>
              	<?php }?>
              </div>
            </div>
          </div>
        <!-- plugins !-->  
        <div id="plugin_content">
        	<?php echo show_plugins($plugin_content);?>
        </div>
        <!-- plugins !-->          
        </div>
        <div class="c_bt">
          <div class="c_bt_l left"></div>
          <div class="c_bt_r right"></div>
        </div>
    </div></div>