コード例 #1
0
ファイル: view.php プロジェクト: abhinay100/feng_app
<?php

$properties = $__properties_object->getCustomProperties();
$cpvCount = CustomPropertyValues::getCustomPropertyValueCount($__properties_object);
if ((!is_array($properties) || count($properties) == 0) && $cpvCount == 0) {
    return "";
}
?>
<div class="commentsTitle"><?php 
echo lang('custom properties');
?>
</div>
<?php 
if ($cpvCount > 0) {
    ?>
<table class="og-custom-properties">
<?php 
    $alt = true;
    $cps = CustomProperties::getAllCustomPropertiesByObjectType($__properties_object->getObjectTypeId());
    foreach ($cps as $customProp) {
        $cpv = CustomPropertyValues::getCustomPropertyValue($__properties_object->getId(), $customProp->getId());
        if ($cpv instanceof CustomPropertyValue && ($customProp->getIsRequired() || $cpv->getValue() != '')) {
            $alt = !$alt;
            ?>
			<tr class="<?php 
            echo $alt ? 'altRow' : '';
            ?>
">
				<td class="name" title="<?php 
            echo clean($customProp->getName());
            ?>
コード例 #2
0
ファイル: view.php プロジェクト: pnagaraju25/fengoffice
<?php

$properties = $__properties_object->getCustomProperties();
$cpvCount = CustomPropertyValues::getCustomPropertyValueCount($__properties_object->getId(), get_class($__properties_object->manager()));
if ((!is_array($properties) || count($properties) == 0) && $cpvCount == 0) {
    return "";
}
?>
<div class="commentsTitle"><?php 
echo lang('custom properties');
?>
</div>
<?php 
if ($cpvCount > 0) {
    ?>
<table class="og-custom-properties">
<?php 
    $alt = true;
    $cps = CustomProperties::getAllCustomPropertiesByObjectType(get_class($__properties_object->manager()));
    foreach ($cps as $customProp) {
        $cpv = CustomPropertyValues::getCustomPropertyValue($__properties_object->getId(), $customProp->getId());
        if ($cpv instanceof CustomPropertyValue && ($customProp->getIsRequired() || $cpv->getValue() != '')) {
            $alt = !$alt;
            ?>
			<tr class="<?php 
            echo $alt ? 'altRow' : '';
            ?>
">
				<td class="name" title="<?php 
            echo clean($customProp->getName());
            ?>