<select name="category_id"> <?php echo Form_Field::Options($categories, Request::Get('category_id'), 'category_id', 'name'); ?> </select> </span> </div> <div class="field"> <label>Sponsor:</label> <span class="field-container"> <select name="sponsor_id"> <option value="">-- None --</option> <?php $sponsors = $DB->FetchAll('SELECT `sponsor_id`,`name` FROM `tbx_sponsor` ORDER BY `name`'); echo Form_Field::Options($sponsors, Request::Get('sponsor_id'), 'sponsor_id', 'name'); ?> </select> </span> </div> <div class="field"> <label>Comments Allowed:</label> <span class="field-container"> <select name="allow_comments"> <?php $opts = array('No', 'Yes - Add Immediately', 'Yes - Require Approval'); echo Form_Field::OptionsSimple($opts, Request::Get('allow_comments')); ?> </select> </span>
?> style="display: none;"<?php } ?> meta="{t: 'action', r: 'tbxGenericAction(user,disable)'}" /> <img src="images/video-22x22.png" class="item-icon" title="Videos" meta="{t: 'link', u: 'index.php?r=tbxGenericShowSearch(video)&pds=user&username=<?php echo urlencode($original['username']); ?> '}" /> <!--<img src="images/blacklist-22x22.png" class="item-icon" title="Blacklist" meta="{t: 'action', r: 'tbxGenericAction(user,blacklist)'}" />--> <img src="images/edit-22x22.png" class="item-icon" title="Edit" meta="{t: 'dialog', r: 'tbxGenericShowEdit(user)'}" /> <img src="images/email-22x22.png" class="item-icon" title="E-mail" meta="{t: 'dialog', r: 'tbxGenericShowEmail(user)'}" /> <img src="images/delete-22x22.png" class="item-icon" title="Delete" meta="{t: 'action', r: 'tbxGenericAction(user,delete)'}" /> <?php if ($item['status'] == STATUS_PENDING) { ?> <div class="process-pending-section"> <img src="images/approve-22x22.png" class="item-icon" title="Approve" meta="{t: 'action', r: 'tbxGenericAction(user,approve)'}" /> <img src="images/reject-22x22.png" class="item-icon" title="Reject" meta="{t: 'action', r: 'tbxGenericAction(user,reject)', f: '#reason-id'}" /><br /> <select name="reason_id" id="reason-id"> <option value="">-- None --</option> <?php echo Form_Field::Options($rejections, null, 'reason_id', 'short_name'); ?> </select> </div> <?php } ?> </td> </tr>
<input type="hidden" name="r" value="<?php echo isset($editing) ? 'tbxGenericEdit' : 'tbxGenericAdd'; ?> (video-custom-field)" /> <input type="hidden" name="field_id" value="<?php echo Request::Get('field_id'); ?> " /> </form> <div id="validator-master" style="margin: 3px 0; display: none;"> <select name="validator[type][]"> <?php $reflect = new ReflectionClass('Validator_Type'); echo Form_Field::Options(array_flip($reflect->getConstants())); ?> </select> <input type="text" name="validator[message][]" size="40" defaultvalue="Error message" class="defaultvalue" value="Error message" /> <input type="text" name="validator[extras][]" size="10" defaultvalue="Extras" class="defaultvalue" value="Extras" /> <img src="images/add-16x16.png" class="clickable vertical-middle" style="padding-left: 6px;" title="Add" /> <img src="images/remove-16x16.png" class="clickable vertical-middle" style="padding-left: 6px;" title="Remove" /> </div> <?php IncludeJavascript(BASE_DIR . '/admin/js/cp-custom-field-add.js'); ?> <?php if (isset($editing)) { ?>
<div class="field"> <label>Video Format:</label> <span class="field-container"> <select name="video_format"> <?php $formats = array(); if ($si->can_mp4) { $formats[Video_Converter::FORMAT_MP4] = 'MP4 (H.264/AAC)'; } if ($si->can_vp6) { $formats[Video_Converter::FORMAT_VP6] = 'FLV (VP6/MP3)'; } if ($si->can_flv) { $formats[Video_Converter::FORMAT_H263] = 'FLV (H.263/MP3)'; } echo Form_Field::Options($formats, Config::Get('video_format')); ?> </select> </span> </div> <div class="field"> <label>Video Size:</label> <span class="field-container"> <input type="text" name="video_size" size="10" value="<?php echo Config::Get('video_size'); ?> " /> </span> </div>
<div id="dialog-header" class="ui-widget-header ui-corner-all"> <div id="dialog-close"></div> Bulk Edit <?php echo $xnaming->textUpperPlural; ?> </div> <!-- START MASTER DIV FOR UPDATES --> <div class="field update-fields" id="update-master"> <label class="short">Field:</label> <span class="field-container"> <select name="field[]" class="field"> <?php echo Form_Field::Options($fields, null, 'column', 'label'); ?> </select> <label class="inline">Action:</label> <select name="action[]" id="action"> <option value="<?php echo BulkEdit::ACTION_SET; ?> "><?php echo BulkEdit::ACTION_SET; ?> </option> <option value="<?php echo BulkEdit::ACTION_APPEND; ?> "><?php
?> </select> </span> </div> </div> <div class="fieldset"> <div class="legend">Default Settings</div> <div class="field"> <label>Category:</label> <span class="field-container"> <select name="category_id"> <?php echo Form_Field::Options($categories, Request::Get('category_id'), 'category_id', 'name'); ?> </select> </span> </div> <div class="field"> <label>Username:</label> <span class="field-container"><input type="text" size="30" name="username" value="<?php echo Request::Get('username'); ?> " acomplete="tbx_user.username" /></span> </div> <div class="field"> <label>Status:</label>
<?php $opts = array('Pending', 'Active', 'Disabled'); echo Form_Field::OptionsSimple($opts, Request::Get('status')); ?> </select> </span> </div> <div class="field"> <label>User Level:</label> <span class="field-container"> <select name="user_level_id"> <?php $DB = GetDB(); $user_levels = $DB->FetchAll('SELECT * FROM `tbx_user_level` ORDER BY `name`'); echo Form_Field::Options($user_levels, Request::Get('user_level_id'), 'user_level_id', 'name'); ?> </select> </span> </div> <?php if (isset($editing) && Request::Get('avatar_id')) { $avatar = $DB->Row('SELECT * FROM `tbx_upload` WHERE `upload_id`=?', array(Request::Get('avatar_id'))); ?> <div class="field"> <label>Existing Avatar:</label> <span class="field-container"> <div class="checkbox" style="display: block; margin-bottom: 5px;"> <input type="hidden" name="remove_avatar" value="0" /> Remove Avatar
<input type="hidden" name="type" value="<?php echo $table; ?> " /> <input type="hidden" name="r" value="tbxSavedSearchAdd" /> </form> </span> <span id="saved-searches-existing" style="margin-left: 20px;"> <form onsubmit="return false;"> <b>Existing:</b> <select name="id"> <?php $saved_searches = $DB->FetchAll('SELECT * FROM `tbx_saved_search` WHERE `item_type`=? ORDER BY `identifier`', array($table)); echo Form_Field::Options($saved_searches, null, 'search_id', 'identifier'); ?> </select> <img src="images/open-22x22.png" class="icon-load clickable" title="Load" /> <img src="images/save-22x22.png" class="icon-update clickable" title="Update" /> <img src="images/delete-22x22.png" class="icon-delete clickable" title="Delete" /> </form> </span> <img src="images/activity-grey-16x16.gif" class="toolbar-tab-activity" /> </div> </div> </div> </div> <!-- END SAVED SEARCHES -->