コード例 #1
0
 public static function get_all_selectable()
 {
     $result = array();
     $sql = sprintf("SELECT * FROM `%s` WHERE \n            `id`!=%d AND `id`!=%d AND `id`!='%d' AND `id`!='%d'\n            ORDER BY `name` ASC", self::get_mysql_table(), self::START, self::END, self::CUSTOM, self::TEST);
     $z = mysql_query($sql);
     while ($r = mysql_fetch_array($z)) {
         array_push($result, DS_TestSectionType::from_mysql_result($r));
     }
     return $result;
 }
コード例 #2
0
 public function get_TestSectionType()
 {
     return DS_TestSectionType::from_mysql_id($this->TestSectionType_id);
 }
コード例 #3
0
"></span></td>
            <td class="tdSectionColumnIcon"><span id="spanExpandDetail_<?php 
echo $_POST['counter'];
?>
" class="spanExpandDetail spanIcon ui-icon ui-icon-folder-<?php 
echo $_POST['detail'] == 1 ? "open" : "collapsed";
?>
 tooltip" title="<?php 
echo Language::string(390);
?>
" onclick="Test.uiToggleDetails(<?php 
echo $_POST['counter'];
?>
)"></span></td>
            <td class="tdSectionColumnType"><?php 
echo DS_TestSectionType::get_name_by_id(4);
?>
</td>
            <td class="tdSectionColumnAction">
                <table class="fullWidth">
                    <tr>
                        <td style="width:10px;"><?php 
echo Language::string(441);
?>
</td>
                        <td><input type="text" class="fullWidth ui-widget-content ui-corner-all comboboxVars controlValue<?php 
echo $_POST['counter'];
?>
" value="<?php 
echo htmlspecialchars($vals[0], ENT_QUOTES);
?>
コード例 #4
0
?>
"></span></td>
                <td class=""><b><?php 
echo Language::string(122);
?>
:</b></td>
            </tr>
        </table>
    </legend>
    <select id="formTestSelectSectionType" class="fullWidth ui-widget-content ui-corner-all">
        <optgroup label="<?php 
echo Language::string(147);
?>
">
            <?php 
foreach (DS_TestSectionType::get_all_selectable() as $section) {
    ?>
                <option id="optionSectionType<?php 
    echo $section->id;
    ?>
" value="<?php 
    echo $section->id;
    ?>
" class="<?php 
    echo $section->id == DS_TestSectionType::LOWER_LEVEL_R_CODE || $section->id == DS_TestSectionType::LOOP || $section->id == DS_TestSectionType::QTI_INITIALIZATION || $section->id == DS_TestSectionType::QTI_RESPONSE_PROCESSING ? User::view_class() : "";
    ?>
" ><?php 
    echo $section->get_name();
    ?>
 <?php 
    echo $section->id == DS_TestSectionType::LOOP ? Language::string(621) : "";
コード例 #5
0
ファイル: Setup.php プロジェクト: Abuamany/concerto-platform
 public static function reset_db()
 {
     CustomSection::create_db(true);
     CustomSectionVariable::create_db(true);
     DS_Module::create_db(true);
     DS_Right::create_db(true);
     DS_Sharing::create_db(true);
     DS_TestSectionType::create_db(true);
     DS_UserInstitutionType::create_db(true);
     Setting::create_db(true);
     Table::create_db(true);
     TableColumn::create_db(true);
     Template::create_db(true);
     Test::create_db(true);
     TestSection::create_db(true);
     TestSectionValue::create_db(true);
     TestSession::create_db(true);
     TestSessionReturn::create_db(true);
     TestTemplate::create_db(true);
     TestVariable::create_db(true);
     User::create_db(true);
     UserGroup::create_db(true);
     UserType::create_db(true);
     UserTypeRight::create_db(true);
 }