本文整理汇总了PHP中Department::getDepName方法的典型用法代码示例。如果您正苦于以下问题:PHP Department::getDepName方法的具体用法?PHP Department::getDepName怎么用?PHP Department::getDepName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Department
的用法示例。
在下文中一共展示了Department::getDepName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strtoupper
">
<td><?php
echo $teacher->name;
?>
</td>
<td><?php
echo strtoupper($teacher->privilege);
if ($teacher->privilege == 'dean') {
echo ' ACADEMICS';
}
?>
</td>
<td><?php
$d = new Department();
$di = $d->getInfo($teacher->dept_id);
echo $d->getDepName();
?>
</td>
<td><?php
echo $teacher->email;
?>
</td>
<td><?php
echo $teacher->mobile;
?>
</td>
<td><?php
echo $teacher->approved ? 'Approved' : 'Not Approved';
?>
</td>
<td><?php
示例2: Course
<table class="table table-bordered table-striped">
<tbody>
<tr>
<th>Department ID</th>
<td><input type='hidden' name='id' value='<?php
echo Input::get('did');
?>
'><?php
echo Input::get('did');
?>
</td>
</tr>
<tr>
<th>Name</th>
<td><input type="text" placeholder="Name of Department" value="<?php
echo $dep->getDepName();
?>
" name="name"/></td>
</tr>
<tr>
<th>No. of Course(s)</th>
<td>
<?php
$cors = new Course();
$courses = $cors->getInfobyDept(Input::get('did'));
echo $courses->num_rows;
?>
</td>
</tr>
<tr>