getData(); $lngPage = $lng['genders']; $webmasterid = 8221; $webmaster = Webmaster::get($webmasterid); $config = DB::getOne('chat_config', "Where webmasterid=$webmasterid"); $widthGenderIcon = $config->widthGenderIcon; $heightGenderIcon = $config->heightGenderIcon; include 'xcrud/xcrud.php'; $xcrud = Xcrud::get_instance(); $table = 'chat_gender'; $xcrud->table($table); $xcrud->pass_var('webmasterid', $webmasterid); $xcrud->where('webmasterid =', $webmasterid); $xcrud->columns('gender, image, color, canBroadcast, webcamAutoStart, showOnTopofUserList'); $xcrud->fields('gender, image, color, canBroadcast, webcamAutoStart, showOnTopofUserList'); $xcrud->change_type('image', 'image', false, array( 'width' => $widthGenderIcon, 'height' => $heightGenderIcon, 'path' => UPLOAD_GENDERS )); $xcrud->change_type('color','text','#000000', array('id'=>'colorpicker')); $xcrud->field_tooltip('image', $lngPage['image']); $xcrud->field_tooltip('color', $lngPage['color']); $xcrud->field_tooltip('canBroadcast', $lngPage['canBroadcast']); $xcrud->field_tooltip('webcamAutoStart', 'Should that gender auto starts his webcam (ex: females will auto start the webcam)'); $xcrud->field_tooltip('showOnTopofUserList', 'Should user be displayed on the top of the UserList ? (ex: girls on top)'); $xcrud->label(array('image' => sprintf($lngPage['imageL'], $widthGenderIcon, $heightGenderIcon), 'color' => $lngPage['colorL'], 'showOnTopofUserList','webcamAutoStart'=>'Webcam auto start', 'canBroadcast' => $lngPage['canBroadcastL'], 'showOnTopofUserList' => 'Show on Top of UserList' ) ); //$xcrud->label(array('quitUrl' => 'Url where quit', 'showSmileys'=>'Show smileys')); //view, edit, remove, duplicate, add, csv, print, save_new, save_edit, save_return, return. $xcrud->hide_button('save_new'); //$xcrud->hide_button('save_return'); $xcrud->hide_button('return'); //$xcrud->unset_add(); //$xcrud->unset_list(); $xcrud->unset_title(); $xcrud->unset_view(); $xcrud->unset_csv(); $xcrud->unset_limitlist(); $xcrud->unset_numbers(); $xcrud->unset_print(); $xcrud->unset_sortable(); // $xcrud->emails_label(' email'); //$xcrud->show_primary_ai_column(true); ?> <?php echo $lngPage['metaTtitle']; ?>
Icon size px * px. You can change the size
render($webmasterid); ?>