</tr>
                </table>
          
            </td>
      </tr>
</table>

<table width="100%" cellspacing="0" cellpadding="0" class="attendance_table">
<tr style="background:#dfdfdf;">
    <td><?php 
    echo Yii::t('attendance', 'Name');
    ?>
</td>
    <?php 
    for ($i = 1; $i <= $num; $i++) {
        echo '<td>' . getweek($i, $_REQUEST['mon'], $_REQUEST['year']) . '<span>' . $i . '</span></td>';
    }
    ?>
</tr>
<?php 
    $posts = Students::model()->findAll("batch_id=:x", array(':x' => $_REQUEST['id']));
    $j = 0;
    foreach ($posts as $posts_1) {
        if ($j % 2 == 0) {
            $class = 'class="odd"';
        } else {
            $class = 'class="even"';
        }
        ?>
<tr <?php 
        echo $class;
Example #2
0
        ?>
			<div class="dataline">
				<div class="dataline1"><img src="images/dating.gif" align="absmiddle" /><a href="dating<?php 
        echo $rows['id'] . '.html';
        ?>
" target="_blank"><?php 
        echo htmlout(stripslashes($rows['title']));
        ?>
</a> <?php 
        if ($rows['ifjh'] == 1) {
            echo "<img src=images/jh.gif>";
        }
        ?>
</div>
				<div class="dataline2"><?php 
        echo date_format2($rows['yhtime'], '%Y-%m-%d %H:%M') . ' ' . getweek(date_format2($rows['yhtime'], '%Y-%m-%d'));
        ?>
<br />
<?php 
        $d1 = strtotime(date("Y-m-d H:i:s"));
        $d2 = $rows['yhtime'];
        $totals = $d2 - $d1;
        $day = intval($totals / 86400);
        $hour = intval($totals % 86400 / 3600);
        $hourmod = $totals % 86400 / 3600 - $hour;
        $minute = intval($hourmod * 60);
        if ($rows['flag'] == 2) {
            $totals = -1;
        }
        if ($totals > 0) {
            if ($day > 0) {
Example #3
0
    case 10:
        echo "郁闷";
        break;
    case 11:
        echo "沮丧";
        break;
    case 12:
        echo "一般";
        break;
}
?>
</font> 日期:<font class=tiaose><?php 
echo date_format2($stime, '%Y-%m-%d');
?>
 <?php 
echo getweek(date_format2($stime, '%Y-%m-%d'));
?>
</font> 已被阅读 <font color="#FF0000"><?php 
echo $diaryclick;
?>
</font> 次 评论 <font color="#FF0000"><?php 
echo $hfnum;
?>
</font> 条  <a href="<?php 
echo $Global['www_2domain'] . '/315.php';
?>
" class="ub666"><img src="images/jubao.gif" hspace="5" align="absmiddle" />举报此文</a></div>
	<div class="diaryContent"><?php 
echo $content;
?>
</div>
Example #4
0
 <?php 
    echo Yii::t('attendance', 'Batch : ') . ($name = $batch->name);
    ?>
<br/>
 <?php 
    echo Yii::t('attendance', 'Course : ') . ($coursename = $course->course_name);
    ?>
 <table width="100%" cellspacing="0" cellpadding="0" class="attendance_table">
<tr style="background:#dfdfdf;">
    <td><?php 
    echo Yii::t('attendance', 'Name');
    ?>
</td>
    <?php 
    for ($i = 1; $i <= $num; $i++) {
        echo '<td>' . getweek($i, $mon_num, $curr_year) . '<span>' . $i . '</span></td>';
    }
    ?>
</tr>
<?php 
    $posts = Students::model()->findByAttributes(array('id' => $_REQUEST['id']));
    $class = 'class="even"';
    ?>
<tr <?php 
    echo $class;
    ?>
 >
    <td class="name"><?php 
    echo $posts->first_name;
    ?>
</td>
Example #5
0
            break;
        }
        $id = $rows['id'];
        $sex = $rows['sex'];
        $title = badstr($rows['title']);
        $title = gylsubstr($title, 40);
        if ($t == 4 && !empty($k)) {
            $title = str_replace($k, "<span class=red>" . $k . "</span>", stripslashes($title));
        }
        $userid = $rows['userid'];
        $click = $rows['click'];
        $hfnum = $rows['hfnum'];
        $ifjh = $rows['ifjh'];
        $grade = $rows['grade'];
        $stime = $rows['stime'];
        $stime = date_format2($stime, '%m月%d日 %H:%M') . ' ' . getweek(date_format2($stime, '%Y-%m-%d'));
        $title = "<a href=" . $Global['home_2domain'] . "/diary{$id}.html target=_blank>" . $title . '</a>';
        $nickname = "<a href=" . $Global['home_2domain'] . "/{$userid} target=_blank>" . badstr($rows['nickname']) . "</a>";
        if ($ifjh == 1) {
            $title = $title . " <img src=images/j.gif align=absmiddle title=精品日记 />";
        }
        ?>
		<div class="ul">
			<div class="li1"><img src="images/pen.gif" /></div>
			<div class="li2"><?php 
        echo $title;
        ?>
</div>
			<div class="li3"><?php 
        geticon($sex . $grade);
        echo $nickname;
Example #6
0
        if ($day > 0) {
            $outtime .= "报名还有 <span class=timestyle>{$day}</span> 天 ";
        } else {
            $outtime .= "报名还有 ";
        }
        $outtime .= "<span class=timestyle>{$hour}</span> 小时 <span class=timestyle>{$minute}</span> 分";
        $outtime .= "  <input type='image' src='images/bm2.gif'>";
    } else {
        $outtime = "<img src='images/jzbm.gif' border=0 align=absmiddle vspace=10><font color=#999999><b>报名已经结束</b></font>";
        if ($flag == 1) {
            $db->query("UPDATE " . __TBL_GROUP_CLUB__ . " SET flag=3 WHERE id=" . $fid);
        }
        $mainflag = 3;
    }
    echo '<span class=timestyletext> ' . $outtime . '</span>';
    echo '<br>截止报名日期到:' . date_format2($jzbmtime, '%Y-%m-%d %H:%M') . ' ' . getweek(date_format2($jzbmtime, '%Y-%m-%d'));
    ?>
</td>
    </tr>
    <tr>
      <td height="30" align="right"><font class=tiaose>类  型:</font></td>
      <td><?php 
    echo $kind;
    ?>
</td>
    </tr>
    <tr class=tdbg>
      <td height="30" align="right"><font class=tiaose>时  间:</font></td>
      <td><?php 
    echo $hdtime;
    ?>
 <div class="maina">
  <div class="row">
    <div class="ma">
      <div class="col-xs-9 col-md-7">
       <p class="p1"><span><b><?php 
echo gethotel($hotel_id);
?>
</b></span></p> 	<p class="p3">房间:<?php 
echo getroom($room_id);
?>
</p>
       <p class="p2"><b><?php 
echo getweek($start_date);
?>
</b></p>  <p class="p4">到</p>  <p class="p5"><b><?php 
echo getweek($end_date);
?>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共<?php 
echo $day;
?>
晚</b></p>

     </div>
   </div>

   <div class="mb">
    <div class=" col-xs-7 col-md-5 ">
     <p class="name">姓名:<?php 
echo $username;
?>
</p>
        ?>
	<div align="center" class="atnd_tnav">
	<?php 
        echo CHtml::link('<div class="atnd_arow_l"><img src="images/atnd_arrow-l.png" width="7"  height="13" /></div>', array('index', 'mon' => date("m", strtotime("2011-" . $mon_num . "-01 -1 months")), 'id' => $_REQUEST['id']));
        echo $mon;
        echo CHtml::link('<div class="atnd_arow_r"><img src="images/atnd_arrow.png" width="7"  height="13" /></div>', array('index', 'mon' => date("m", strtotime("2011-" . $mon_num . "-01 +1 months")), 'id' => $_REQUEST['id']));
        ?>
</div>
<br /><br />
<div class="atnd_Con">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <th>Name</th>
    <?php 
        for ($i = 1; $i <= $num; $i++) {
            echo '<th>' . rtrim(getweek($i, '3', '2012'), 'r.n.e.t') . '<span>' . $i . '</span></th>';
        }
        ?>
</tr>
<?php 
        $posts = Students::model()->findAll("batch_id=:x", array(':x' => $_REQUEST['id']));
        $j = 0;
        foreach ($posts as $posts_1) {
            if ($j % 2 == 0) {
                $class = 'class="odd"';
            } else {
                $class = 'class="even"';
            }
            ?>
<tr <?php 
            echo $class;
Example #9
0
            break;
        case 6:
            echo "其他";
            break;
        default:
            echo "不限";
            break;
    }
    ?>
</span></div>
			<div class="datingList">约会主题:<span class=tiaose><?php 
    echo htmlout(stripslashes($row['title']));
    ?>
</span></div>
			<div class="datingList">约会时间:<span class=tiaose><?php 
    echo date_format2($row['yhtime'], '%Y年%m月%d日 %H时 %M分') . ' ' . getweek(date_format2($row['yhtime'], '%Y-%m-%d'));
    ?>
</span></div>
			<div class="datingList">约会城市:<span class=tiaose><?php 
    echo $row['area1'] . ' >> ' . $row['area2'];
    ?>
</span></div>
			<div class="datingList">费用预算:<span class=tiaose><?php 
    switch ($row['price']) {
        case 1:
            echo "100元以下";
            break;
        case 2:
            echo "100~300元";
            break;
        case 3:
Example #10
0
<table width="358" height="37" border="0" cellpadding="0" cellspacing="0" bgcolor="#f3f3f3" style="border:#ddd 1px solid;">
<form method="post" action="i_group_club_user.php">
<tr>
<td height="70" align="center">
<?php 
$d1 = strtotime(date("Y-m-d H:i:s"));
$d2 = strtotime($row['jzbmtime']);
$totals = $d2 - $d1;
$day = intval($totals / 86400);
$hour = intval($totals % 86400 / 3600);
$hourmod = $totals % 86400 / 3600 - $hour;
$minute = intval($hourmod * 60);
if ($row['flag'] > 2) {
    $totals = -1;
}
echo '<br><br>你设定的截止报名时间为:' . date_format2($row['jzbmtime'], '%Y-%m-%d %H:%M') . ' ' . getweek(date_format2($row['jzbmtime'], '%Y-%m-%d')) . '<br><br>';
if ($totals > 0) {
    if ($day > 0) {
        $outtime = "报名还有 <span class=timestyle>{$day}</span> 天 ";
    } else {
        $outtime = "报名还有 ";
    }
    $outtime .= "<span class=timestyle>{$hour}</span> 小时 <span class=timestyle>{$minute}</span> 分";
} else {
    $outtime = " <font color=#999999><b>已经结束</b></font>";
    if ($row['flag'] == 1) {
        $db->query("UPDATE " . __TBL_GROUP_CLUB__ . " SET flag=3 WHERE id=" . $clubid);
    }
    $mainflag = 3;
}
echo '<span class=timestyletext>' . $outtime . '</span>';
 public function home()
 {
     list($mon, $sun) = getweek();
     // 你可能喜欢
     // $sql = " SELECT count(uid) as cnt,usertable.* FROM usertable  left join songtable on uid=usertable.id where uptime>='".$mon."' and uptime<='".$sun."'  group by usertable.id order by count(uid) desc limit 20 ";
     $sql = " SELECT count(uid) as cnt,usertable.* FROM usertable  left join songtable on uid=usertable.id  group by usertable.id order by count(uid) desc limit 20 ";
     $zuijia = M()->query($sql);
     $this->assign('zuijia', $zuijia);
     // dump($zuijia);die;
     // $map['home'] = 1;
     $data = M("songtable")->where()->order('id desc')->limit(12)->select();
     $this->assign("list", $data);
     // dump($data);die;
     // $this->assign("rows",ceil(count($data)/3));
     $album = M("album")->where()->order('id desc')->limit(8)->select();
     $this->assign("album", $album);
     $this->display();
 }