<td class="noWrap tdFormLabel"><?php 
    echo Language::string(72);
    ?>
:</td>
                    <td class="tdFormIcon"><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php 
    echo Language::string(160);
    ?>
"></span></td>
                    <td>
                        <div class="divFormControl">
                            <select id="form<?php 
    echo $class_name;
    ?>
SelectSharing" class="fullWidth ui-widget-content ui-corner-all">
                                <?php 
    foreach (DS_Sharing::get_all() as $share) {
        ?>
                                    <option value="<?php 
        echo $share->id;
        ?>
" <?php 
        echo $share->id == $obj->Sharing_id ? "selected" : "";
        ?>
><?php 
        echo $share->get_name();
        ?>
</option>
                                <?php 
    }
    ?>
                            </select>
Example #2
0
 public function get_Sharing()
 {
     return DS_Sharing::from_mysql_id($this->Sharing_id);
 }
Example #3
0
 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);
 }