当前位置: 首页>>代码示例>>PHP>>正文


PHP License::getDocuments方法代码示例

本文整理汇总了PHP中License::getDocuments方法的典型用法代码示例。如果您正苦于以下问题:PHP License::getDocuments方法的具体用法?PHP License::getDocuments怎么用?PHP License::getDocuments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在License的用法示例。


在下文中一共展示了License::getDocuments方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: License

		<?php 
        }
        ?>
		<br />
		</td></tr>
		</table>

		<?php 
        break;
        //sfx display for the sfx tab on license.php
    //sfx display for the sfx tab on license.php
    case 'getAllSFXProviders':
        $licenseID = $_GET['licenseID'];
        $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
        $document = new Document();
        $documentArray = $license->getDocuments();
        $rowCount = 0;
        //loop through each document separately
        //note - this tab is only displayed for admin users so no validation is required
        foreach ($documentArray as $document) {
            $sfxProvider = new SFXProvider();
            foreach ($document->getSFXProviders as $sfxProvider) {
                $rowCount++;
                if ($rowCount == "1") {
                    ?>
						<table class='verticalFormTable'>
						<tr>
						<th>For Document</th>
						<th>Resource</th>
						<th>&nbsp;</th>
						<th>&nbsp;</th>
开发者ID:veggiematts,项目名称:coral-licensing,代码行数:31,代码来源:ajax_htmldata.php

示例2: array

        echo $expressionID;
        ?>
'>

		<table class="thickboxTable" style="width:340px;">
		<tr>
		<td colspan='2'><span class='headerText'>Expressions</span><br /><span id='span_errors'></span><br /></td>
		</tr>


		<tr>
		<td colspan='2'><label for="documentID" class="formText">Document:</label><br />
		<select name='documentID' id='documentID' style='width:280px;'>
		<?php 
        $display = array();
        foreach ($license->getDocuments() as $display) {
            if ($expression->documentID == $display->documentID) {
                echo "<option value='" . $display->documentID . "' selected>" . $display->shortName . "</option>";
            } else {
                echo "<option value='" . $display->documentID . "'>" . $display->shortName . "</option>";
            }
        }
        ?>
		</select><br />
		</td>
		</tr>


		<tr>
		<td colspan='2'><label for="expressionTypeID" class="formText">Expression Type:</label><br />
		<span id='span_expressionType'>
开发者ID:veggiematts,项目名称:coral-licensing,代码行数:31,代码来源:ajax_forms.php

示例3: archive

		<?php 
        } else {
            if ($displayArchiveInd == "") {
                echo _("(none found)");
            } else {
                if ($displayArchiveInd == "1" || $numRows == "0") {
                    //echo "(no archived documents found)";
                } else {
                    echo "<i>" . $numRows . _(" archive(s) available.") . "  <a href='javascript:updateArchivedDocuments(1)'>" . _("show archives") . "</a></i><br /><br />";
                }
            }
        }
        if ($user->canEdit() && $displayArchiveInd != "") {
            $duglicense = new License(new NamedArguments(array('primaryKey' => $licenseID)));
            $dugArray = $duglicense->getDocuments();
            $numDug = count($dugArray);
            if ($numDug == 0) {
                echo "<a href='ajax_forms.php?action=getUploadDocument&licenseID=" . $licenseID . "&height=310&width=310&modal=true' class='thickbox' id='uploadDocument'>" . _("upload new document") . "</a>";
            } else {
                echo _("Only one active document is allowed.") . " <a href='ajax_forms.php?action=getUploadDocument&licenseID=" . $licenseID . "&isArchived=1&height=310&width=310&modal=true' class='thickbox' id='uploadDocument'>" . _("upload archived document") . "</a>";
            }
            echo '<br /><br />';
        }
        break;
        //display for expressions tab on license.php
    //display for expressions tab on license.php
    case 'getAllExpressions':
        $licenseID = $_GET['licenseID'];
        $documentID = $_GET['documentID'];
        //if 'view expressions' link is clicked on a specific document, we're just displaying expressions for that document
开发者ID:pontifechs,项目名称:management,代码行数:30,代码来源:ajax_htmldata.php


注:本文中的License::getDocuments方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。