Esempio n. 1
0
$description = "";
for ($i = 0; $i < sizeof($folders); $i++) {
    $f = $folders[$i];
    $a = explode("_", $f, 2);
    if (sizeof($a) == 2 && strlen($a[0]) >= 6) {
        $b = explode("@", $a[0]);
        if (isDateYYMMDD($b[0])) {
            $date = formatDate($b[0]);
            if ($date == $last_date) {
                $date = "";
            } else {
                $last_date = $date;
            }
            // save last date to detect repeats
            $version = sizeof($b) == 1 ? "" : $b[1];
            $description = formatDescription($version, urldecode($a[1]));
            $url = formatUrl($a[0]);
            if ($date != "" && $i > 0) {
                ?>
      <tr>
        <td colspan="3">&nbsp;</td>
      </tr>
	<?php 
            }
            ?>
  
      <tr>
        <td width="180" align="right" valign="top"><?php 
            echo $date;
            ?>
</td>
Esempio n. 2
0
        if ($newPearlCount > 0) {
            ?>
<small>(<?php 
            echo $newPearlCount;
            ?>
)</small><?php 
        }
        ?>
</a></li>
            <?php 
    }
    ?>
        </ul>
        
        <p><?php 
    echo $perle->description ? formatDescription($perle->description) : 'Bez apraksta';
    ?>
</p>

        <a href="<?php 
    echo $perle->image;
    ?>
" class="thumbnail" target="_blank">
            <img class="img-responsive" src="<?php 
    echo $perle->image;
    ?>
" alt="<?php 
    echo $perle->image;
    ?>
">
        </a>
Esempio n. 3
0
            }
            echo "<td>{$propType}</td>";
            // property value
            if (in_array('Value', $columns)) {
                $defaultVal = $property->getDefaultValue();
                echo "<td>{$defaultVal}</td>";
            }
            // property writable
            if (in_array('Writable', $columns)) {
                $isWritable = $property->isReadOnly() ? '' : 'V';
                echo "<td>{$isWritable}</td>";
            }
            // property description
            if ($property->getName() == "orderBy") {
                /* hack for filters order by */
                $filterEnumOrder = str_replace("Filter", "OrderBy", $object);
                $description = "This parameter sets the order criteria by which objects will be retrieved. ";
                if (class_exists($filterEnumOrder)) {
                    $description .= "This parameter should by set according to the following enumeration: \r\n\t\t\t\t\t\t<a href=\"?object={$filterEnumOrder}\">{$filterEnumOrder}</a>.";
                }
            } else {
                $description = formatDescription($property->getDescription());
            }
            echo "<td>{$description}</td>";
            // end a property row
            echo "</tr>";
        }
        echo '</table></td></tr>';
    }
}
echo "</table>";