Example #1
0
function edit_view()
{
    global $wpdb;
    $table1 = $wpdb->prefix . 'iggamelist';
    if (!empty($_REQUEST['edit_id'])) {
        $hidden_edit_id = $_REQUEST['edit_id'];
        $edit_rec = $wpdb->get_results("SELECT * FROM {$table1} where id='" . $_REQUEST['edit_id'] . "'");
    }
    $exp_urlkey = $edit_rec[0]->urlkey;
    ?>
  <?php 
    if (isset($_POST['comp-update'])) {
        ?>
    <div class="updated"><p><?php 
        echo "Comp Updated";
        ?>
</p></div> 
  <?php 
    }
    ?>

	<form name="teamfrm" action="options-general.php?page=igamezone.php&link=viewcomp" method="post" enctype="multipart/form-data">
	
		 <p><label>Game</label>
			<select name="gamedrop"> 
				<?php 
    select_game();
    ?>
			</select>
		 </p>
		 
		<p><label>Tournament</label>
			<select name="tourdrop"> 
				<?php 
    select_tour();
    ?>
			</select>
		 </p>
		 
		 <p><label>Teams</label>
			<select name="tourdrop1"> 
				<?php 
    select_team('team1');
    ?>
			</select>
				<select name="tourdrop2"> 
				<?php 
    select_team('team2');
    ?>
			</select>
			
		 </p>
		 
		 
		 <p><label>Match Time</label>
			
		<div class="combine_div">
			<span class="date_drop"><small>Date</small><?php 
    date_list();
    ?>
</span>
			<span class="time_drop"><small>Time</small><?php 
    time_list();
    ?>
</span>
			<span class="time_zone_drop"><small>Timezone</small><?php 
    timezone_drop();
    ?>
 </span>
		</div>	
		 </p>
		 <p><label>Match Duration</label>
				<span class="match_duration"><?php 
    game_duration();
    ?>
</div>
		 </p>
		 <p><label>URL Link</label>
        <input type="text" name="url_key" id="url" value="<?php 
    echo $exp_urlkey;
    ?>
">		 

		 </p>
 	     <p><input type="hidden" name="hd_edit_id" value="<?php 
    echo $hidden_edit_id;
    ?>
" id="sub"></p>
		 <p><input type="submit" name="comp-update" value="Update" id="sub"></p>
		 
		</form> 
<?php 
}
Example #2
0
</label>
					<div class="col-sm-10">				
						<input type="text" class="form-control" name="phone_num" size="12" value="<?php 
echo $record->phone_num;
?>
">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><?php 
echo lang('label_birth');
?>
</label>
					<div class="col-sm-2">
						<?php 
echo form_dropdown('date', date_list(), $date0, 'class="form-control"');
?>
					</div>
					<div class="col-sm-4">
						<?php 
echo form_dropdown('month', month_list(), $date1, 'class="form-control"');
?>
					</div>
					<div class="col-sm-4">
						<?php 
echo form_dropdown('year', year_list(), $date2, 'class="form-control"');
?>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><?php 
Example #3
0
    ?>
			</select>
				<select name="tourdrop2"> 
				<?php 
    select_team('team2');
    ?>
			</select>
			
		 </p>
		 
		 
		 <p><label>Match Time1</label>
			
		<div class="combine_div">
			<span class="date_drop"><small>Date</small><?php 
    date_list();
    ?>
</span>
			<span class="time_drop"><small>Time</small><?php 
    time_list();
    ?>
</span>
			<span class="time_zone_drop"><small>Timezone</small><?php 
    timezone_drop();
    ?>
 </span>
		</div>	
		 </p>
		 <p><label>Match Duration</label>
				<span class="match_duration"><?php 
    game_duration();
Example #4
0
echo set_value('phone_num');
?>
" placeholder="<?php 
echo lang('info_phone');
?>
">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><?php 
echo lang('label_birth');
?>
</label>
					<div class="col-sm-2">
						<?php 
echo form_dropdown('date', date_list(), set_value('date'), 'class="form-control"');
?>
					</div>
					<div class="col-sm-2">
						<?php 
echo form_dropdown('month', month_list(), set_value('month'), 'class="form-control"');
?>
					</div>
					<div class="col-sm-2">
						<?php 
echo form_dropdown('year', year_list(), set_value('year'), 'class="form-control"');
?>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><?php