function useridtoname_Value($fieldvalue, $fields, $i) { global $db; global $tablename, $html_etc, $common_html; $组员名称 = $fieldvalue; $USER_NAME_TEXT = ''; $组员名称Array = explode(',', $组员名称); for ($i = 0; $i < sizeof($组员名称Array); $i++) { if ($组员名称Array[$i] != "") { $USER_NAME_TEXT .= returntablefield("user", "USER_ID", $组员名称Array[$i], "USER_NAME") . ","; } } return substr_cut($USER_NAME_TEXT, 120); }
<tr> <th>题目编号</th> <th>描述</th> <th>正确答案</th> <th>查看</th> <th>修改</th> <th>删除</th> </tr> </thead> <tbody> <?php $mysql = new SaeMysql(); $sql = "select `id`,`question`,`right_answer` from `choice_question` order by `id` DESC"; $rows = $mysql->getData($sql); $mysql->closeDb(); // print_r($rows); foreach ($rows as $row) { echo "<tr>"; echo "<td>" . $row["id"] . "</td>"; echo "<td>" . substr_cut($row["question"], 50) . "</td>"; echo "<td><code>" . $row["right_answer"] . "</code></td>"; echo "<td><a class=\"btn btn-info\" href=\"./index.php?id=7&qid=" . $row["id"] . "\">查看</a></td>"; echo "<td><a class=\"btn btn-primary\" href=\"./index.php?id=8&qid=" . $row["id"] . "\">修改</a></td>"; echo "<td><a class=\"btn btn-danger\" href=\"../function/admin/common-action.php?cmd=delete-choice&id=" . $row["id"] . "\">删除</a></td>"; echo "</tr>"; } ?> </tbody> </table> </div> </div>
} array_multisort($rs_online['SUNSHINE_USER_DEPT'], SORT_NUMERIC, SORT_ASC); foreach ($rs_online['SUNSHINE_USER_DEPT'] as $DEPT_LIST) { $DEPT_NAME = $rs_online['SUNSHINE_USER_DEPT_NAME'][$DEPT_LIST]; $len = 20; if ($systemlang == "en") { $DEPT_NAME = 22 < strlen($DEPT_NAME) ? substr($DEPT_NAME, 0, 22) . "..." : $DEPT_NAME; } else { $DEPT_NAME = $len < strlen($DEPT_NAME) ? substr_cut($DEPT_NAME, 0, $len) . "..." : $DEPT_NAME; } foreach ($rs_online['SUNSHINE_DEPT_LIST'][$DEPT_LIST] as $DEPT_USER) { $SUNSHINE_USER_NAME_INDEX = $rs_online[$DEPT_USER]['SUNSHINE_USER_NAME']; $SUNSHINE_USER_NICK_NAME_INDEX = trim($rs_online[$DEPT_USER]['SUNSHINE_USER_NICK_NAME']); $SUNSHINE_USER_PRIV_INDEX = $rs_online[$DEPT_USER]['SUNSHINE_USER_PRIV']; $SUNSHINE_USER_ID_INDEX = $rs_online[$DEPT_USER]['SUNSHINE_USER_ID']; $SUNSHINE_USER_DEPT_INDEX = $rs_online[$DEPT_USER]['SUNSHINE_USER_DEPT']; $SUNSHINE_USER_AVATAR_INDEX = trim($rs_online[$DEPT_USER]['SUNSHINE_USER_AVATAR']); $SUNSHINE_USER_AVATAR_INDEX == "" ? $usergif = "19.gif" : ($usergif = trim($SUNSHINE_USER_AVATAR_INDEX) . ".gif"); $SUNSHINE_USER_NAME_INDEX = 8 < strlen($SUNSHINE_USER_NAME_INDEX) ? substr_cut($SUNSHINE_USER_NAME_INDEX, 10) : $SUNSHINE_USER_NAME_INDEX; if ($SUNSHINE_USER_NICK_NAME_INDEX != "") { $temp_value = $SUNSHINE_USER_NICK_NAME_INDEX; } else { $temp_value = $SUNSHINE_USER_NAME_INDEX; } online_userelement($SUNSHINE_USER_NAME_INDEX, $temp_value, $SUNSHINE_USER_PRIV_INDEX, $usergif); } } echo "<S"; echo "CRIPT language=JavaScript>\r\n\tparent.parent.status_bar.user_count1.value=\""; echo $user_online_num; echo "\";\r\n</SCRIPT>";
for ($k = 0; $k < sizeof($columns); $k++) { $KeyElement = $columns[$k]; if ($_GET[$KeyElement] != "") { //2008-11-12支持一字段多值的过滤方式 $GETValue = $_GET[$KeyElement]; $GETValueArray = explode(',', $GETValue); if (sizeof($GETValueArray) > 1) { //2008-11-12GET值为数组,进行IN判断 $NewGetArray[] = $KeyElement . " IN ('" . implode("','", $GETValueArray) . "')"; } else { //2008-11-12单一值,进行直接判断 $NewGetArray[] = $KeyElement . " like '%" . $_GET[$KeyElement] . "%'"; } //$NewGetArrayValue[] = $KeyElement."(".$_GET[$KeyElement].")"; //$PARA_TEMP = (int)$_GET[$KeyElement]; $PARA_TEMP = substr_cut($_GET[$KeyElement], 8) . "."; //参数做文件名备注使用 $NewGetArrayValue[] = $KeyElement . "(" . $PARA_TEMP . ")"; //参数做文件名备注使用 //$NewGetArrayValue[] = "[".$KeyElement."]"; } else { if ($_GET[$KeyElement . "_最小值"] != "" && $_GET[$KeyElement . "_最大值"] != "") { $TEMP_MIN = $_GET[$KeyElement . "_最小值"]; $TEMP_MAX = $_GET[$KeyElement . "_最大值"]; $TEMP_MIN = $TEMP_MIN - 0.001; $TEMP_MAX = $TEMP_MAX + 0.001; $NewGetArray[] = " {$KeyElement} >= '{$TEMP_MIN}' and {$KeyElement} <= '{$TEMP_MAX}'"; } else { if ($_GET[$KeyElement . "_开始时间"] != "" && $_GET[$KeyElement . "_结束时间"] != "") { $TEMP_MIN = $_GET[$KeyElement . "_开始时间"]; $TEMP_MAX = $_GET[$KeyElement . "_结束时间"];
$考勤时间段 = $班次信息[$i]['考勤时间段']; $排班信息 = GetPaiBanInfor($当前学期, $当前周次, $班次名称); print "<tr class=TableData align=center>"; print "<td>" . $班次名称 . "(" . $考勤时间段 . ")</td>"; for ($j = 1; $j <= 7; $j++) { $返回目标日期 = 返回目标日期($当前周次, $j); $排班数据 = explode("-", $排班信息[$班次名称][$当前周次][$j]); $排班编号 = $排班数据[0]; $排班人员 = $排班数据[1]; print "<td>"; if ($返回目标日期 >= $开始时间X && $返回目标日期 <= $结束时间X) { if ($排班人员 == "") { print "<a href='?action=ChangeTeam&班次名称=" . $班次名称 . "&当前学期=" . $当前学期 . "&当前周次=" . $当前周次 . "&Day=" . $j . "&考勤时间段=" . $考勤时间段 . "'>选择工作组</a><br />\n\t\t\t\t\t\t\t\t\t\t <a href='?action=ChangeWorker&班次名称=" . $班次名称 . "&当前学期=" . $当前学期 . "&当前周次=" . $当前周次 . "&Day=" . $j . "&考勤时间段=" . $考勤时间段 . "'>选择工作人员</a>{$考勤日期}"; } else { $排班人员 = useridtoname($排班人员); $排班人员TEXT = substr_cut($排班人员, 120); print "" . $排班人员TEXT . "<br /><a href='?action=Del&班次名称=" . $班次名称 . "&考勤时间段=" . $考勤时间段 . "&考勤日期=" . $返回目标日期 . "&当前周次=" . $当前周次 . "'><font color=red>删除</font><BR><a href='?action=ChangeWorker&班次名称=" . $班次名称 . "&当前学期=" . $当前学期 . "&当前周次=" . $当前周次 . "&Day=" . $j . "&考勤时间段=" . $考勤时间段 . "'>选择工作人员</a>"; } } else { print "<font color=gray>非工作时间</font>"; } print "</td>"; } print "</tr>"; } ?> </table> <?php require_once '../Help/module_xingzhengkaoqin_paiban.php'; //******************获取所有的人员信息********************// function GetWorkerInfor()
<div class="row"> <?php foreach($videos as $video): ?> <div class="col-sm-6 col-md-4 col-lg-3 "> <div class="thumbnail"> <a href="videodetail.php?videoId=<?=$video['id']?>" title="" target="_blank" onclick="_hmt.push(['_trackEvent', 'tile', 'click', 'codeguide'])"> <img src="uploads/<?=$video['imgFileName']?>" data-src="uploads/<?=$video['imgFileName']?>" style="height:200px;width:252px" /> </a> <div class="caption"> <h5> <a href="videodetail.php?videoId=<?=$video['id']?>" title="<?=$video['name']?>" target="_blank" onclick="_hmt.push(['_trackEvent', 'tile', 'click', 'codeguide'])"><?=$video['name']?><br><small>by <?=$video['teacher_number']?></small></a> </h5> <p> <?=substr_cut($video['content'],8)?> </p> </div> </div> </div> <?php endforeach; ?> </div> </div> <footer class="footer "> <div class="container"> <div class="row footer-top"> <ul class="list-inline text-center">
<th>内容简介</th> <th>操作</th> </tr> </thead> <tbody id="videoListTbody"> <?php foreach($videos as $video): ?> <tr> <td><?=$video['month'] ?></td> <td><?=$video['name']?><input type="hidden" name="id" value="<?=$video['id']?>"</td> <td><?=$video['teacher_name']?><input type="hidden" name="teacher_id" value="<?=$video['teacher_id']?>"></td> <td><?=$video['college_name']?><input type="hidden" name="college_id" value="<?=$video['college_id']?>"></td> <td><?=$video['videoFileName']?><input type="hidden" name="imgFileName" value="<?=$video['imgFileName']?>"></td> <td><?=$video['uploadTime']?></td> <td><?=substr_cut($video['content'],8);?><input type="hidden" name="content" value="<?=$video['content']?>"></td> <td> <button type="button" class="btn btn-default btn-xs" title="编辑" name="updateBtn"> <span class="glyphicon glyphicon-edit"></span> </button> <button type="button" class="btn btn-default btn-xs" title="删除" name="deleteBtn"> <span class="glyphicon glyphicon-remove-circle"></span> </button> </td> </tr> <?php endforeach; ?> </tbody> </table> </div>