本文整理汇总了PHP中License::getConsortiumList方法的典型用法代码示例。如果您正苦于以下问题:PHP License::getConsortiumList方法的具体用法?PHP License::getConsortiumList怎么用?PHP License::getConsortiumList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类License
的用法示例。
在下文中一共展示了License::getConsortiumList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Consortium
case 'addConsortium':
if (isset($_GET['shortName']) && $_GET['shortName'] != '') {
$consortium = new Consortium();
$consortium->consortiumID = '';
$consortium->shortName = $_GET['shortName'];
try {
$consortium->save();
} catch (Exception $e) {
echo $e->getMessage();
}
}
echo "<select name='licenseConsortiumID' id='licenseConsortiumID'>";
echo "<option value=''></option>";
$license = new License();
$display = array();
foreach ($license->getConsortiumList() as $display) {
if ($_GET['shortName'] == $display['name']) {
echo "<option value='" . $display['consortiumID'] . "' selected>" . $display['name'] . "</option>";
} else {
echo "<option value='" . $display['consortiumID'] . "'>" . $display['name'] . "</option>";
}
}
echo "</select>";
break;
case 'addProvider':
if (isset($_GET['shortName']) && $_GET['shortName'] != '') {
$provider = new Provider();
$provider->providerID = '';
$provider->shortName = $_GET['shortName'];
try {
$provider->save();
示例2: array
echo $license->organizationID;
?>
'>
<span id='span_error_organizationNameResult' class='errorText'></span>
<br />
</td>
</tr>
<tr>
<td colspan='2'><label for="consortiumID" class="formText">Consortium:</label><br />
<span id='span_consortium'>
<?php
try {
$consortiaArray = array();
$consortiaArray = $license->getConsortiumList();
?>
<select name='licenseConsortiumID' id='licenseConsortiumID'>
<option value=''></option>
<?php
$display = array();
foreach ($consortiaArray as $display) {
if ($license->consortiumID == $display['consortiumID']) {
echo "<option value='" . $display['consortiumID'] . "' selected>" . $display['name'] . "</option>";
} else {
echo "<option value='" . $display['consortiumID'] . "'>" . $display['name'] . "</option>";
}
}
?>
</select>
<?php