public function get_name()
 {
     switch ($this->id) {
         case 1:
             return Language::string(416);
         case 2:
             return Language::string(417);
         case 3:
             return Language::string(418);
     }
 }
예제 #2
0
 public static function get_list_columns()
 {
     $cols = array();
     if (static::$exportable) {
         array_push($cols, array("name" => Language::string(371), "property" => "get_description", "searchable" => false, "sortable" => false, "type" => "string", "groupable" => false, "template" => "<span class='spanIcon ui-icon ui-icon-help tooltip' title='" . '${get_description}' . "'></span>", "width" => 50, "show" => true));
     }
     array_push($cols, array("name" => Language::string(69), "property" => "id", "searchable" => true, "sortable" => true, "type" => "number", "groupable" => false, "width" => 60, "show" => true));
     array_push($cols, array("name" => Language::string(70), "property" => "name", "searchable" => true, "sortable" => true, "type" => "string", "groupable" => false, "show" => true));
     array_push($cols, array("name" => Language::string(665), "property" => "get_updated", "searchable" => false, "sortable" => true, "type" => "string", "groupable" => false, "show" => true));
     return $cols;
 }
예제 #3
0
 public function get_name()
 {
     switch ($this->id) {
         case 1:
             return Language::string(100);
         case 2:
             return Language::string(101);
         case 3:
             return Language::string(102);
     }
 }
예제 #4
0
 public function get_name()
 {
     switch ($this->id) {
         case 1:
             return Language::string(167);
         case 2:
             return Language::string(85);
         case 3:
             return Language::string(89);
         case 6:
             return Language::string(88);
         case 8:
             return Language::string(458);
     }
 }
예제 #5
0
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
if (!isset($ini)) {
    require_once '../../Ini.php';
    $ini = new Ini();
}
$logged_user = User::get_logged_user();
if ($logged_user == null) {
    die(Language::string(81));
}
$file = $_FILES['file'];
$f = new File();
$f->temp_id = $_POST['temp_id'];
$f->file_name = $file['name'];
$f->Module_id = $_POST['Module_id'];
$f->object_id = $_POST['object_id'];
$f->index = $_POST['index'];
$f->temp_name = $file['tmp_name'];
$f->file_size = $file['size'];
$code = 0;
$can_upload = true;
$module = DS_Module::from_mysql_id($_POST['Module_id']);
$class_name = $module->value;
$max_num = $class_name::$max_files_num;
 title="<?php 
echo Language::string(369);
?>
" /></td>
            <td class="tdSectionColumnIcon"><span class="spanIcon tooltip ui-icon ui-icon-trash" onclick="Test.uiRemoveSection(<?php 
echo $_POST['counter'];
?>
)" title="<?php 
echo Language::string(59);
?>
"></span></td>
            <td class="tdSectionColumnButton"><button class="btnAddSection noWrap" onclick="Test.uiAddLogicSection(0,<?php 
echo $_POST['counter'];
?>
)"><?php 
echo Language::string(619);
?>
</button></td>
        </tr>
    </table>
</div>
<div class="divSectionDetail <?php 
echo $_POST['detail'] == 1 || $_POST['oid'] == 0 ? "" : "notVisible";
?>
">
    <textarea id="textareaCodeMirror_<?php 
echo $_POST['counter'];
?>
" class="fullWidth ui-widget-content ui-corner-all textareaCode"><?php 
echo $val;
?>
 public static function get_description_by_id($id)
 {
     switch ($id) {
         case self::CUSTOM:
             return Language::string(48);
         case self::END:
             return Language::string(46);
         case self::GO_TO:
             return Language::string(42);
         case self::IF_STATEMENT:
             return Language::string(43);
         case self::LOAD_HTML_TEMPLATE:
             return Language::string(41);
         case self::R_CODE:
             return Language::string(40);
         case self::SET_VARIABLE:
             return Language::string(44);
         case self::START:
             return Language::string(45);
         case self::TABLE_MOD:
             return Language::string(47);
         case self::TEST:
             return Language::string(393);
         case self::LOOP:
             return Language::string(394);
         case self::LOWER_LEVEL_R_CODE:
             return Language::string(446);
         case self::QTI_INITIALIZATION:
             return Language::string(483);
         case self::QTI_RESPONSE_PROCESSING:
             return Language::string(484);
         case self::FOR_LOOP:
             return Language::string(624);
         case self::WHILE_LOOP:
             return Language::string(625);
     }
 }
예제 #8
0
<?php

/*
 Concerto Platform - Online Adaptive Testing Platform
 Copyright (C) 2011-2012, The Psychometrics Centre, Cambridge University

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License, and not any of the later versions.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
if (!isset($ini)) {
    require_once '../../Ini.php';
    $ini = new Ini();
}
$logged_user = User::get_logged_user();
if ($logged_user == null) {
    die(Language::string(81));
}
$class_name = "User";
$class_label = Language::string(89);
include Ini::$path_internal . "cms/view/includes/tab.inc.php";
예제 #9
0
.uiExport(<?php 
            echo $oid;
            ?>
)"><?php 
            echo Language::string(443);
            ?>
</button>
                <button class="btnUpload" onclick="<?php 
            echo $class_name;
            ?>
.uiUpload(<?php 
            echo $oid;
            ?>
)"><?php 
            echo Language::string(383);
            ?>
</button>
                <?php 
        }
        ?>
        </div>
        <?php 
    }
} else {
    ?>
    <div class="padding margin ui-state-error " align="center"><?php 
    echo Language::string(123);
    ?>
</div>
    <?php 
}
예제 #10
0
foreach (Language::languages() as $lng_node) {
    $attr = $lng_node->getAttributeNode("id");
    ?>
                    <option class="flagIcon_<?php 
    echo $attr->value;
    ?>
" value="<?php 
    echo $attr->value;
    ?>
" <?php 
    echo $_SESSION['lng'] == $attr->value ? "selected" : "";
    ?>
><?php 
    echo $lng_node->nodeValue;
    ?>
</option>
                <?php 
}
?>
            </select>&nbsp;
            <label for="btnLogout"><?php 
echo Language::string(84);
?>
: <b><?php 
echo $user->login . ", " . $user->get_full_name();
?>
</label>
            <button name="btnLogout" id="btnLogout" class="btnLogout" onclick="User.uiLogOut()"/>
        </td>
    </tr>
</table>
예제 #11
0
    ?>
.uiEdit(<?php 
    echo $obj->id;
    ?>
)"><?php 
    echo Language::string(43);
    ?>
</option>
                        <option class="optionDelete" value="<?php 
    echo $class_name;
    ?>
.uiDelete(<?php 
    echo $obj->id;
    ?>
)"><?php 
    echo Language::string(42);
    ?>
</option>
                    </select>
                </td>
            </tr>
        <?php 
}
?>
 
    </tbody>
</table>
<?php 
if ($num_rows == 0) {
    ?>
    <div class="fullWidth ui-widget-content ui-corner-all noWrap" align="center"><?php 
                                <td class="tdSectionColumnIcon"><span class="spanIcon ui-icon ui-icon-help tooltip" title="<?php 
echo Language::string(245);
?>
"></span></td>
                                <td>CONCERTO_TEST_ID</td>
                            </tr>
                            <tr>
                                <td class="tdSectionColumnIcon"><span class="spanIcon ui-icon ui-icon-help tooltip" title="<?php 
echo Language::string(246);
?>
"></span></td>
                                <td>CONCERTO_TEST_SESSION_ID</td>
                            </tr>
                            <tr>
                                <td class="tdSectionColumnIcon"><span class="spanIcon ui-icon ui-icon-help tooltip" title="<?php 
echo Language::string(629);
?>
"></span></td>
                                <td>USER_IP</td>
                            </tr>
                        </table>
                    </div>
                    <div class="notVisible">
                        <input class="inputReturnVar" type="hidden" value="CONCERTO_TEST_ID" />
                        <input class="inputReturnVar" type="hidden" value="CONCERTO_TEST_SESSION_ID" />
                        <input class="inputReturnVar" type="hidden" value="USER_IP" />
                    </div>
                </fieldset>
            </td>
        </tr>
    </table>
예제 #13
0
        <table>
            <tr>
                <td><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php 
echo Language::string(503);
?>
"></span></td>
                <td class=""><b><?php 
echo Language::string(351);
?>
</b></td>
            </tr>
        </table>
    </legend>
    <div id="div<?php 
echo $class_name;
?>
GridDataContainerExpandable">
        <div id="div<?php 
echo $class_name;
?>
DataStructureEmptyCaption" class="ui-state-error margin" style="display:none;"><?php 
echo Language::string(352);
?>
</div>
        <div id="div<?php 
echo $class_name;
?>
GridDataContainer" align="left" class="margin">
        </div>
    </div>
</fieldset>
예제 #14
0
 public static function get_list_columns()
 {
     $cols = parent::get_list_columns();
     array_push($cols, array("name" => Language::string(488), "property" => "format_open", "searchable" => true, "sortable" => true, "type" => "string", "groupable" => true, "width" => 120, "show" => true));
     array_push($cols, array("name" => Language::string(335), "property" => "session_count", "searchable" => true, "sortable" => true, "type" => "number", "groupable" => false, "width" => 120, "show" => true));
     return $cols;
 }
예제 #15
0
            </tr>
        </table>
    </legend>
    <table class="fullWidth">
        <thead>
            <tr>
                <th class="noWrap horizontalPadding ui-widget-header"><?php 
echo Language::string(149);
?>
</th>
                <th class="noWrap horizontalPadding ui-widget-header"><?php 
echo Language::string(150);
?>
</th>
                <th class="noWrap horizontalPadding ui-widget-header"><?php 
echo Language::string(151);
?>
</th>
            </tr>
        </thead>
        <tbody>
<?php 
foreach ($_POST['vars'] as $var) {
    $var = json_decode($var);
    ?>
                <tr>
                    <td class="noWrap horizontalPadding ui-widget-content"><b><?php 
    echo $var->name;
    ?>
</b></td>
                    <td class="horizontalPadding ui-widget-content">
예제 #16
0
.uiDelete(<?php 
echo $class_name;
?>
.checkedList)"><?php 
echo Language::string(515);
?>
</button>
                <?php 
if ($class_name::$exportable) {
    ?>
<button class="btnExportChecked" onclick="<?php 
    echo $class_name;
    ?>
.uiExport(<?php 
    echo $class_name;
    ?>
.checkedList)"><?php 
    echo Language::string(516);
    ?>
</button><?php 
}
?>
            </td>
        </tr>
    </table>
    <div id="div<?php 
echo $class_name;
?>
Grid" class="margin grid">
    </div>
</fieldset>
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
if (!isset($ini)) {
    require_once '../../Ini.php';
    $ini = new Ini();
}
$logged_user = User::get_logged_user();
if ($logged_user == null) {
    echo "<script>location.reload();</script>";
    die(Language::string(278));
}
?>

<div class="divSectionSummary">
    <table class="fullWidth tableSectionHeader">
        <tr>
            <!--<td class="tdSectionColumnIcon"></td>-->
            <td class="ui-widget-header tdSectionColumnCounter" id="tooltipSectionDetail_<?php 
echo $_POST['counter'];
?>
" title=""><?php 
echo $_POST['counter'];
?>
</td>
            <td class="tdSectionColumnIcon"><span class="spanIcon ui-icon ui-icon-help tooltip" title="<?php 
예제 #18
0
?>
"></span></td>
                <td class=""><b><?php 
echo Language::string(359);
?>
</b></td>
            </tr>
        </table>
    </legend>

    <div>
        <table>
            <tr><td style="width:30px;"><span class="spanIcon ui-icon ui-icon-info"></span></td>
                <td><b>Ctrl+Space:</b> <?php 
echo Language::string(688);
?>
, <b>F2:</b> <?php 
echo Language::string(686);
?>
, <b>F11:</b> <?php 
echo Language::string(687);
?>
</td>
            </tr>
        </table>
    </div>
    <textarea id="textareaTestLogic"><?php 
echo htmlspecialchars($obj->code);
?>
</textarea>
</fieldset>
 public function __construct($params = array())
 {
     $this->name = Language::string(457);
     parent::__construct($params);
 }
            <td class="noWrap">
                <b><?php 
echo Language::string(400);
?>
</b>:
            </td>
            <td style="width:50%;">
                <input type="text" class="fullWidth ui-widget-content ui-corner-all comboboxVars controlValue<?php 
echo $_POST['counter'];
?>
" value="<?php 
echo htmlspecialchars($vals[4], ENT_QUOTES);
?>
" />
            </td>
            <td class="noWrap">, <b><?php 
echo Language::string(399);
?>
</b>:</td>
            <td style="width:50%;">
                <input type="text" class="fullWidth ui-widget-content ui-corner-all comboboxVars controlValue<?php 
echo $_POST['counter'];
?>
" value="<?php 
echo htmlspecialchars($vals[5], ENT_QUOTES);
?>
" />
            </td>
        </tr>
    </table>
</div>
)" title="<?php 
    echo Language::string(230);
    ?>
"></span></td>
                </tr>
                <?php 
    $i++;
    $j++;
}
if ($i > 3) {
    ?>
            </table>
            <?php 
}
?>

        <div align="center">
            <table>
                <tr>
                    <td><span class="spanIcon tooltip ui-icon ui-icon-plus" onclick="Test.uiAddIfCond(<?php 
echo $_POST['counter'];
?>
)" title="<?php 
echo Language::string(229);
?>
"></span></td>
                </tr>
            </table>
        </div>
    </fieldset>
</div>
예제 #22
0
<script>
    $(function(){
        Table.uiIniHTMLTooltips();
        
        //table structure
        Table.uiIniStructureGrid();
    });
</script>

<!--grid magic starts here-->

<fieldset class="padding ui-widget-content ui-corner-all margin">
    <legend>
        <table>
            <tr>
                <td><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php 
echo Language::string(502);
?>
"></span></td>
                <td class=""><b><?php 
echo Language::string(350);
?>
</b></td>
            </tr>
        </table>
    </legend>
    <div id="div<?php 
echo $class_name;
?>
GridStructureContainer" align="left" class="margin"></div>
</fieldset>
$sources = isset($_POST['sources']) ? $_POST['sources'] : array();
$i = 0;
for ($i = 0; $i < count($names); $i++) {
    $name = $names[$i];
    $source = $sources[$i];
    if ($name == "") {
        continue;
    }
    ?>

    <tr>
        <td class="ui-widget-content ui-corner-all ui-state-highlight"><b><?php 
    echo $name;
    ?>
</b></td>
        <td class="ui-widget-content ui-corner-all"><?php 
    echo $source;
    ?>
</td>
    </tr>

    <?php 
}
if (!isset($name) || $name == "") {
    ?>
    <tr><td align="center" colspan="2"><?php 
    echo Language::string(9);
    ?>
</td></tr>
<?php 
}
예제 #24
0
><?php 
    echo $lng_node->nodeValue;
    ?>
</option>
                <?php 
}
?>
            </select>
        </td>
        <td valign="middle" class="noWrap">
            <div align="center" id="divViewRadioMenu">
                <input type="radio" id="radioViewSimple" name="radioMenuView" <?php 
echo User::is_simple_view() ? 'checked="checked"' : '';
?>
 onclick="Methods.uiChangeView(0)" />
                <label for="radioViewSimple"><?php 
echo Language::string(634);
?>
</label>
                <input type="radio" id="radioViewAdvanced" name="radioMenuView" <?php 
echo !User::is_simple_view() ? 'checked="checked"' : '';
?>
 onclick="Methods.uiChangeView(1)" />
                <label for="radioViewAdvanced"><?php 
echo Language::string(635);
?>
</label>
            </div>
        </td>
    </tr>
</table>
예제 #25
0
"></span>
                    </td>
                    <td class='tdFunctionToolbarIcon'>
                        <span onclick='Test.uiAddFunctionWidgetFromToolbar($(this).parent().prev().prev().prev().html(), Test.getDocContent($(this).parent().prev().prev().prev().prev().find("textarea").val()))' class="spanIcon ui-icon ui-icon-arrow-1-e tooltip" title="<?php 
    echo Language::string(699);
    ?>
"></span>
                    </td>
                </tr>
                <?php 
}
if ($count == 0) {
    ?>
                <tr>
                    <td colspan='4' class='ui-state-error'><?php 
    echo Language::string(698);
    ?>
</td>
                </tr>
                <?php 
}
?>
        </table>
    </div>
</div>
<div align='right'>
    <button class='btnFunctionToolbarControl ui-state-highlight' onclick='Test.uiToggleFunctionToolbar()'><?php 
echo Language::string(694);
?>
</button>
</div>
예제 #26
0
<script>
    $(function(){
        User.uiIniWorkspaceGrid();
    });
</script>

<!--grid magic starts here-->

<fieldset class="padding ui-widget-content ui-corner-all margin <?php 
echo User::view_class();
?>
">
    <legend>
        <table>
            <tr>
                <td><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php 
echo Language::string(667);
?>
"></span></td>
                <td class=""><b><?php 
echo Language::string(666);
?>
</b></td>
            </tr>
        </table>
    </legend>
    <div id="div<?php 
echo $class_name;
?>
GridWorkspaceContainer" align="left" class="margin"></div>
</fieldset>
예제 #27
0
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
if (!isset($ini)) {
    require_once '../../model/Ini.php';
    $ini = new Ini();
}
$user = User::get_logged_user();
if ($user == null) {
    die(Language::string(85));
}
$file = $_FILES['file'];
$f = new File();
$f->temp_id = $_POST['temp_id'];
$f->file_name = $file['name'];
$f->Module_id = $_POST['Module_id'];
$f->object_id = $_POST['object_id'];
$f->temp_name = $file['tmp_name'];
$f->file_size = $file['size'];
$code = 0;
$can_upload = true;
$module = DS_Module::from_mysql_id($_POST['Module_id']);
$class_name = $module->value;
$max_num = $class_name::$max_files_num;
$obj = $class_name::from_mysql_id($_POST['object_id']);
</div>
                        <?php 
}
?>
                    <div class="notVisible">
                        <?php 
foreach ($returns as $ret) {
    ?>
                            <input class="inputCustomSectionReturnVar" type="hidden" value="<?php 
    echo $ret->name;
    ?>
" />
                            <?php 
}
?>
                    </div>
                    <table>
                        <tr>
                            <td><span class="spanIcon tooltip ui-icon ui-icon-plus" onclick="CustomSection.uiAddReturn()" title="<?php 
echo Language::string(115);
?>
"></span></td>
                        </tr>
                    </table>
                </div>
            </fieldset>
        </td>
    </tr>
</table>

예제 #29
0
    echo Language::string(188);
    ?>
"></span></td>
                    <td class="fullWidth">
                        <div class="horizontalMargin">
                            <input type="text" id="dd_register_inp_email" class="fullWidth ui-widget-content ui-corner-all" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="noWrap horizontalPadding tdFormLabel"><?php 
    echo Language::string(189);
    ?>
:</td>
                    <td><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php 
    echo Language::string(190);
    ?>
"></span></td>
                    <td class="fullWidth">
                        <div class="horizontalMargin">
                            <input type="text" id="dd_register_inp_phone" class="fullWidth ui-widget-content ui-corner-all" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>	 
    </div>
    <?php 
}
?>
<div id="divHiddenThemer" class="notVisible">
예제 #30
0
            </td>
        </tr>
        <tr>
            <td class="noWrap horizontalPadding tdFormLabel"><?php 
echo Language::string(679);
?>
:</td>
            <td><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php 
echo Language::string(680);
?>
"></span></td>
            <td class="fullWidth">
                <div class="horizontalMargin">
                    <select id = "selectUserWorkspaceShareDialog" class = "fullWidth ui-widget-content ui-corner-all">
                        <option value = "0">&lt;<?php 
echo Language::string(650);
?>
&gt;</option>
                        <?php 
$sql = sprintf("SELECT * FROM `%s`.`%s` WHERE `owner_id`='%s' ORDER BY `name` ASC", Ini::$db_master_name, UserWorkspace::get_mysql_table(), $owner->id);
$z = mysql_query($sql);
while ($r = mysql_fetch_array($z)) {
    $ws = UserWorkspace::from_mysql_result($r);
    $ignore = false;
    if (!$ignore) {
        ?>
                                <option value="<?php 
        echo $ws->id;
        ?>
" name="<?php 
        echo $ws->name;