本文整理汇总了PHP中Subject::single_subject方法的典型用法代码示例。如果您正苦于以下问题:PHP Subject::single_subject方法的具体用法?PHP Subject::single_subject怎么用?PHP Subject::single_subject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Subject
的用法示例。
在下文中一共展示了Subject::single_subject方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Subject
</p>
</div>
<div class="col-xs-6">
<p align="right"><a href="<?php
echo WEB_ROOT;
?>
admin/logout.php"
class="btn btn-info btn-xsm"><span class="glyphicon glyphicon-log-out"></span>Log out</a></p>
</div>
</div>
</div>
</div>
</div>
<?php
$subject = new Subject();
$list = $subject->single_subject($_GET['subjectId']);
?>
<form class="form-horizontal well span9" action="controller.php?action=edit&id=<?php
echo $list->subject_id;
?>
" method="POST">
<fieldset>
<legend>Subject Information</legend>
<div class="form-group" id="subject_id">
<div class="col-md-8">
<label class="col-md-4 control-label" for="subject_id">Subject Number </label>
<div class="col-md-8">
<input class="form-control input-sm" id="subject_id" name="subject_id" type="text" value="<?php
echo $list->subject_id;
?>
示例2: isset
<input class="form-control input-sm" id="studname" name="studname" readonly placeholder=
"Subject Description" type="text" value="<?php
echo isset($cur) ? $cur->LNAME . ' , ' . $cur->FNAME : 'Name';
?>
">
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-8">
<label class="col-md-4 control-label" for=
"subjcode">Subject Code</label>
<?php
$singlesubject = new Subject();
$cur = $singlesubject->single_subject($subjid);
?>
<div class="col-md-8">
<input class="form-control input-sm" id="subjcode" name="subjcode" readonly placeholder=
"Subject Code" type="text" value="<?php
echo isset($cur) ? $cur->SUBJ_CODE : 'Code';
?>
">
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-8">
<label class="col-md-4 control-label" for=
"subjdesc">Subject Description</label>
示例3: Subject
<?php
$subjid = $_GET['id'];
$singlesubject = new Subject();
$object = $singlesubject->single_subject($subjid);
?>
<form class="form-horizontal well span4" action="controller.php?action=edit&id=<?php
echo $subjid;
?>
" method="POST">
<fieldset>
<legend>Edit Subject</legend>
<div class="form-group">
<div class="col-md-8">
<label class="col-md-4 control-label" for=
"subjcode">Subject Code</label>
<div class="col-md-8">
<input class="form-control input-sm" id="subjcode" name="subjcode" placeholder=
"Subject Code" type="text" value="<?php
echo $object->SUBJ_CODE;
?>
">
</div>
</div>
</div>
<div class="form-group">
示例4:
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3"><p align="left"><a href="<?php
echo WEB_ROOT;
?>
admin/index.php?page=2" class="btn btn-info btn-xsm"><span class="glyphicon glyphicon-home"></span> Home</a><p>
</div>
<div class="col-xs-9">
<div class="col-xs-8">
<p ><strong><h5 align="right">
<?php
echo $_SESSION['ACCOUNT_FNAME'] . " " . $_SESSION['ACCOUNT_LNAME'];
?>
</h5></strong></p>
</div>
<div class="col-xs-4">
<div class="col-xs-6">
<p align="left"><a href="<?php
echo WEB_ROOT;
?>
admin/modules/subject/index.php" class="btn btn-info btn-xsm">
<span class="glyphicon glyphicon-step-backward"></span>Back
</a
</p>
</div>
<div class="col-xs-6">
<p align="right"><a href="<?php
echo WEB_ROOT;