本文整理汇总了PHP中Domain::listOfDomains方法的典型用法代码示例。如果您正苦于以下问题:PHP Domain::listOfDomains方法的具体用法?PHP Domain::listOfDomains怎么用?PHP Domain::listOfDomains使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Domain
的用法示例。
在下文中一共展示了Domain::listOfDomains方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Domain
<th>Description</th>
<th>Edit</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<?php
$account_username = $_SESSION['ACCOUNT_USERNAME'];
//$account_password = $_SESSION['ACCOUNT_PASSWORD'];
$account_type = $_SESSION['ACCOUNT_TYPE'];
//echo 'username = '. $account_username;echo " \n";
// echo 'account type = '. $account_type;
//echo 'password = '. $account_password;
if ($account_username != Null) {
$domain = new Domain();
$domainList = $domain->listOfDomains();
foreach ($domainList as $list) {
echo '<tr>';
echo '<td width="5%" align="center"></td>';
echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->domain_id . '"/>';
echo '<td width="25%" >' . $list->name . '</td>';
echo '<td width="25%" >' . $list->description . '</td>';
echo '<td width="15%" ><a href = "index.php?view=edit&id=' . $list->domain_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>';
echo '<td><a href = "index.php?view=view&domainId=' . $list->domain_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>';
echo '</tr>';
}
//}
} else {
echo "wrong info";
}
?>
示例2: Subject
?>
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;
?>
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();
$cur = $subject->single_subject($_GET['id']);
?>
<form class="form-horizontal well span9" action="controller.php?action=edit&id=<?php
echo $cur->subject_id;
?>
" method="POST">
<fieldset>
<legend>Edit subject</legend>
<div class="form-group" id="subject_id">