?> </select> </td> <td class="noWrap ui-widget-content"> <select class="fullWidth ui-widget-content ui-corner-all form<?php echo $class_name; ?> ModuleRights" id="form<?php echo $class_name; ?> ModuleRights_w_<?php echo $module->id; ?> "> <?php foreach (DS_Right::get_all() as $right) { ?> <option value="<?php echo $right->id; ?> " <?php echo $obj != null && $obj->get_rights_by_module($module->id)->write == $right->id ? "selected" : ""; ?> ><?php echo $right->get_name(); ?> </option> <?php } ?> </select>
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); }