예제 #1
0
 }
 foreach ($formDataArray as $key => $value) {
     $newIssue->{$key} = $value;
 }
 $newIssue->save();
 //start building the email body
 $emailMessage = "Subject: {$newIssue->subjectText}\r\n\r\n\r\n\t\t\t\t\tBody: {$newIssue->bodyText}\r\n\r\n\r\n\t\t\t\t\tApplies To: ";
 if ($organizationID) {
     $newIssueRelationship = new IssueRelationship();
     $newIssueRelationship->issueID = $newIssue->primaryKey;
     $newIssueRelationship->entityID = $organizationID;
     $newIssueRelationship->entityTypeID = 1;
     $newIssueRelationship->save();
     $emailMessage .= "{$organization->name}\r\n";
 } else {
     $orgResourcesArray = $sourceOrganization->getResources(5);
     $orgResourcesIndexed = array();
     foreach ($orgResources as $resource) {
         $orgResourcesIndexed[$resource['resourceID']] = $resource;
     }
     foreach ($resourceIDArray as $resourceID) {
         $newIssueRelationship = new IssueRelationship();
         $newIssueRelationship->issueID = $newIssue->primaryKey;
         $newIssueRelationship->entityID = $resourceID;
         $newIssueRelationship->entityTypeID = 2;
         $newIssueRelationship->save();
         unset($newIssueRelationship);
         $emailMessage .= "{$orgResourcesIndexed[$resourceID]->titleText}\r\n";
     }
 }
 if (count($issueEmails) > 0) {
예제 #2
0
        <div style="width: 303px; float:right; border: 1px solid #DAD5C9; padding:5px;">
            <h3>Helpful Links</h3>
	    	<div class='rightPanelLink' style='padding-left:10px;'><a href='summary.php?organizationID=<?php 
        echo $organizationID;
        ?>
' target='_blank' class='helpfulLink'>Print View</a></div>

            <?php 
        //get all possible roles, sort by name, get associated resources
        $org_role_obj = new OrganizationRole();
        $org_roles = $org_role_obj->allAsArray();
        usort($org_roles, function ($a, $b) {
            return strcmp($a["shortName"], $b["shortName"]);
        });
        foreach ($org_roles as $role) {
            $resources = $organization->getResources($role["organizationRoleID"]);
            if (count($resources) > 0) {
                ?>
            <h4 style="margin-top:8px"><?php 
                echo $role["shortName"];
                ?>
 of:</h4>
            <div style="padding-left:10px;">
            <?php 
                foreach ($resources as $resource) {
                    $temp_style = "";
                    if ($resource['archived']) {
                        echo "<span style='color:grey; font-size:80%;'>(archived) </span>";
                        $temp_style = "style='color:#888888'";
                    }
                    echo "<a href='" . $util->getResourceRecordURL() . $resource['resourceID'] . "' target='_BLANK' {$temp_style}>" . $resource['titleText'] . "&nbsp;&nbsp;<img src='images/arrow-up-right.gif' alt='view resource' title='View " . $resource['titleText'] . "' style='vertical-align:top;'></a><br />";
예제 #3
0
				<table class='noBorderTable' style='width:125px;'>
					<tr>
						<td class="text-left"><input type="button" value="submit" name="submitCloseResourceIssue" id="submitCloseResourceIssue"></td>
						<td class='text-right'><input type='button' value='cancel' onclick="tb_remove();"></td>
					</tr>
				</table>

			</form>
		</div>
<?php 
        break;
    case 'getNewIssueForm':
        $organizationID = $_GET["organizationID"];
        $organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
        $organizationContactsArray = $organization->getContacts();
        $organizationResourcesArray = $organization->getResources(5);
        ?>

<form id='newIssueForm'>
	<input type="hidden" id="sourceOrganizationID" name="sourceOrganizationID" value="<?php 
        echo $organizationID;
        ?>
" />
	<table class="thickboxTable">
		<tr>
			<td colspan="2">
				<h1> Report New Problem</h1>
				<span class='error smallDarkRedText'>* required fields</span>
			</td>
		</tr>
		<tr>