/**
 * Move a chunk of assets under a parent asset to another asset
 * 
 * @param $assetids				The list of asset IDs that need to be moved
 * @param $from_parent_assetid	The old parent asset ID
 * @param $to_parent_assetid	The new parent asset ID
 * @param $link_type			The link type of the links between the old parent asset and the child assets
 * @return void
 */
function moveAssetChunk($assetids, $from_parent_assetid, $to_parent_assetid, $link_type = NULL)
{
    $am = $GLOBALS['SQ_SYSTEM']->am;
    $assets = array();
    foreach ($assetids as $assetid) {
        //get all links between the moving assetids and the parent parent id
        $links = $am->getLinkByAsset($assetid, $from_parent_assetid, $link_type, NULL, 'minor', TRUE);
        //put all the link information to the assets array
        foreach ($links as $link) {
            $assets[$assetid][] = array('linkid' => $link['linkid'], 'link_type' => $link['link_type'], 'parentid' => $from_parent_assetid);
        }
    }
    //get HIPO Herder
    $hh = $GLOBALS['SQ_SYSTEM']->getHipoHerder();
    //create running vars
    $vars = array('link_action' => 'move', 'assets' => $assets, 'to_parent_assetid' => $to_parent_assetid, 'to_parent_pos' => getNextSortOrder($to_parent_assetid));
    $hh->freestyleHipo('hipo_job_create_links', $vars);
}
Esempio n. 2
0
    ?>
					<input type='checkbox' class='checkbox' name='allCheck' value='' onclick="doHandleAll();" />
				<?php 
} else {
    ?>
					&nbsp;
				<?php 
}
?>
			</td>
			<?php 
for ($j = 0; $j < count($headings); $j++) {
    if (!isset($this->getArr['sortOrder' . $j])) {
        $this->getArr['sortOrder' . $j] = 'null';
    }
    $nextSortOrder = getNextSortOrder($this->getArr['sortOrder' . $j]);
    $nextSortInWords = getSortOrderInWords($nextSortOrder);
    ?>
					<td scope="col" width="250" class="listViewThS1">
						<a
							href="#"
							onclick="sortAndSearch(<?php 
    echo $j;
    ?>
, '<?php 
    echo $nextSortOrder;
    ?>
');"
							title="Sort in <?php 
    echo $nextSortInWords;
    ?>
function getSortURL($colNum)
{
    $sortOrder = getNextSortOrder($colNum);
    $url = "./CentralController.php?leavecode=Leave&action=Leave_Summary&sortField={$colNum}&sortOrder{$colNum}={$sortOrder}";
    return $url;
}
Esempio n. 4
0
					<input type='checkbox' class='checkbox' name='allCheck' value='' onclick="doHandleAll();" />
				<?php 
} else {
    ?>
					&nbsp;
				<?php 
}
?>
			</td>
			<?php 
for ($j = 0; $j < count($headings); $j++) {
    if (!isset($this->getArr['sortOrder' . $j])) {
        $this->getArr['sortOrder' . $j] = 'null';
    }
    $sortOrder = $this->getArr['sortOrder' . $j];
    $nextSortOrder = getNextSortOrder($sortOrder);
    $nextSortInWords = nextSortOrderInWords($sortOrder);
    ?>
					<td scope="col">
						<a	href="#" class="<?php 
    echo $sortOrder;
    ?>
"
							onclick="sortAndSearch(<?php 
    echo $j;
    ?>
, '<?php 
    echo $nextSortOrder;
    ?>
');"
							title="<?php 
Esempio n. 5
0
    echo $_SERVER['PHP_SELF'];
    ?>
?reqcode=<?php 
    echo $this->getArr['reqcode'];
    ?>
&amp;VIEW=MAIN&amp;sortField=<?php 
    echo $j;
    ?>
&amp;sortOrder<?php 
    echo $j;
    ?>
=<?php 
    echo getNextSortOrder($this->getArr['sortOrder' . $j]);
    ?>
');" title="Sort in <?php 
    echo SortOrderInWords(getNextSortOrder($this->getArr['sortOrder' . $j]));
    ?>
 order"><?php 
    echo $lang_empview_Supervisor;
    ?>
</a> <img src="../../themes/beyondT/icons/<?php 
    echo $this->getArr['sortOrder' . $j];
    ?>
.png" width="8" height="10" border="0" alt="img" style="vertical-align: middle" />
							</td>
						<?php 
}
?>
					</tr>
					<?php 
if (isset($emplist) && $emplist != '') {
Esempio n. 6
0
echo $lang_empview_SubDivision;
?>
</a>
						</td>
						<?php 
/* Show supervisor only for admin users, not for supervisors */
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin'] == 'Yes') {
    $j = 10;
    $sortOrder = $this->getArr['sortOrder' . $j];
    ?>
							<td scope="col">
							<a href="#" onclick="sortAndSearch(<?php 
    echo $j;
    ?>
, '<?php 
    echo getNextSortOrder($sortOrder);
    ?>
');"
								title="<?php 
    echo nextSortOrderInWords($sortOrder);
    ?>
" class="<?php 
    echo $sortOrder;
    ?>
"><?php 
    echo $lang_empview_Supervisor;
    ?>
</a>
							</td>
						<?php 
}
Esempio n. 7
0
}
?>
						  <td class="listViewThS1" width="180px"><a href="<?php 
echo $_SERVER['PHP_SELF'] . $reqPath;
?>
&VIEW=MAIN&sortField=<?php 
echo $j;
?>
&sortOrder<?php 
echo $j;
?>
=<?php 
echo getNextSortOrder($_GET['sortOrder' . $j]);
?>
" title="Sort in <?php 
echo SortOrderInWords(getNextSortOrder($_GET['sortOrder' . $j]));
?>
 order"><?php 
echo $lang_empview_employeename;
?>
</a> <img src="../../themes/beyondT/icons/<?php 
echo $_GET['sortOrder' . $j];
?>
.png" width="8" height="10" border="0" alt="" ></td>
                  <td background="../../themes/<?php 
echo $styleSheet;
?>
/pictures/table_r2_c3.gif"><img name="table_r2_c3" src="../../themes/beyondT/pictures/spacer.gif" width="1" height="1" border="0" alt=""></td>
                </tr>

        <?php