Exemplo n.º 1
0
function buildPropRow($propType, $prop, $examples)
{
    $html = '';
    // table row
    $html .= '<tr id="' . $propType . ':' . $prop['name'] . '">' . "\n";
    // property and type
    $html .= '  <td>' . "\n";
    $html .= buildPropertyAndType($propType, $prop['name'], $prop['type']);
    $html .= '  </td>' . "\n";
    // required
    $html .= '  <td class="center">' . buildReq($prop['req']) . '</td>' . "\n";
    // default
    if (array_key_exists('leftAlignDefault', $prop) === true) {
        $html .= '  <td>' . buildDefault($prop['default']) . '</td>' . "\n";
    } else {
        $html .= '  <td class="center">' . buildDefault($prop['default']) . '</td>' . "\n";
    }
    // description
    $html .= '  <td>' . "\n";
    $html .= buildDesc($prop['desc']);
    $html .= '  </td>' . "\n";
    // examples
    $html .= '  <td>' . "\n";
    $html .= buildExamplesCell($prop['examples'], $examples);
    $html .= '  </td>' . "\n";
    $html .= '</tr>' . "\n";
    return $html;
}
Exemplo n.º 2
0
function Networkdefaults(){
$sql="SELECT COUNT(`module`) as tcount FROM thinclient_hardware_modules";
$q=new mysql();
$ligne=@mysql_fetch_array($q->QUERY_SQL($sql,'artica_backup'));
	if($ligne["tcount"]<1){buildDefault();}
}