コード例 #1
0
ファイル: application.php プロジェクト: jowino/bd786110cact
function d($mParam, $bExit = 0, $bVarDump = 0)
{
    echo '<hr><pre>';
    ob_start();
    print get_back_trace("\n");
    if (!$bVarDump) {
        print_r($mParam);
    } else {
        var_dump($mParam);
    }
    $sStr = htmlspecialchars(ob_get_contents());
    ob_clean();
    echo $sStr;
    echo '</pre><hr>';
    if ($bExit) {
        exit;
    }
}
コード例 #2
0
             echo '</td><td>';
             echo '<a href="#" class="link-ico ico-delete" onclick="og.removeCPDateValue(\'' . $genid . '\',' . $customProp->getId() . ',' . $count . ')"></a>';
             echo '</td></tr>';
             $count++;
         }
         echo '</table>';
         echo '&nbsp;<a href="#" class="link-ico ico-add" onclick="og.addCPDateValue(\'' . $genid . '\',' . $customProp->getId() . ')">' . lang('add value') . '</a><br/>';
     } else {
         if ($default_value != '') {
             try {
                 $value = DateTimeValueLib::dateFromFormatAndString("Y-m-d H:i:s", $default_value);
             } catch (Exception $e) {
                 try {
                     $value = DateTimeValueLib::dateFromFormatAndString(user_config_option('date_format'), $default_value);
                 } catch (Exception $e2) {
                     Logger::log("Error when setting date custom property value:\n" . $e2->getMessage() . "\n\n" . get_back_trace());
                     $value = '';
                 }
             }
         }
         echo pick_date_widget2($name, $value, null, $startTi + $ti, null, $genid . 'cp' . $customProp->getId());
     }
     break;
 case 'list':
     $options = array();
     if (!$customProp->getIsRequired() || ($customProp->getIsRequired() || $default_value == '')) {
         $options[] = '<option value=""></option>';
     }
     $totalOptions = 0;
     $multValues = CustomPropertyValues::getCustomPropertyValues($_custom_properties_object->getId(), $customProp->getId());
     $toSelect = array();