示例#1
0
    <h3>Manage Content</h3>
    <?/*echo anchor('conventionnext/create/candidate','Add Candidate');?><br/>
    <?echo anchor('admin/view','view all');*/?>
    <br />
		<?php 
echo form_open('admin/');
?>
    <?
		$format = array(
              'name'        => 'cms_name',
              'id'          => 'cms_name',
              'value'       => (isset($cms_name))?$cms_name:$this->validation->cms_name,
              'size'        => '50',
              'class'       => 'txt',
            );
		echo form_format("Name: ",form_input($format),'The name of the page of content, will be used in the URL' ); 
		?>
		<br />
		<br />
		<br />
    <?
     $oFCKeditor = new FCKeditor('cms_text') ;
     $sBasePath = 'fckeditor/';
     $oFCKeditor->BasePath = $sBasePath ;
     $oFCKeditor->Height = '400';
		 $oFCKeditor->Value		= (isset($cms_text))?$cms_text:$this->validation->cms_text;
		 $oFCKeditor->Create() ;
		?>
		<br />
		<?php 
echo form_hidden('cms_id', $cms_id);
示例#2
0
 /**
  * this function will take serialized data
  * and return a form
  * 
  * @param serialized $data
  * @param int $rc row colum grid id
  * @return string $html
  * @author James Kleinschnitz
  **/
 function getForm($data, $rc)
 {
     $html = '';
     $data = unserialize($data);
     //assume it is a feed parse it for data
     $html .= "<div class='mainform'>\n";
     $html .= '<h1>' . $rc . '(ColumnRow)<h1>';
     $html .= form_open('mainpage/edit/' . $rc);
     $html .= form_format("Name: *", form_input('name', isset($data['name']) ? $data['name'] : '', 'class="txt"'));
     $html .= form_format("Feed: *", form_input('feed', isset($data['feed']) ? $data['feed'] : '', 'class="txt"'));
     $html .= form_format("Title: *", form_checkbox('title', 'TRUE', isset($data['title']) ? TRUE : FALSE));
     $html .= form_format("Description: *", form_checkbox('desc', 'TRUE', isset($data['desc']) ? TRUE : FALSE));
     $html .= form_format("Description Limit: *", form_input('desc_limit', isset($data['desc_limit']) ? $data['desc_limit'] : '', 'class="txt"'));
     $html .= form_format("# Items: *", form_input('items', isset($data['items']) ? $data['items'] : '', 'class="txt"'));
     $html .= form_hidden('colrow', $rc);
     //if ($data['custom'])
     //$html .= form_format("Delete Pod: *",form_checkbox('delete', 'TRUE', FALSE));
     $html .= "<br />\n";
     $html .= form_submit('', 'Save', 'class="button"');
     $html .= form_close();
     $html .= "</div>\n";
     return $html;
 }
?>
')" >Today</a></p>
	
	<?//echo form_format("Sunlight ID:",form_input('sunlight_id','','class="txt"') ); ?>
	<?//echo form_format("Event Date: *",form_input('event_date','','class="txt"') ); ?>
	
	<?
		$format = array(
              'name'        => 'location',
              'id'          => 'location',
              'value'       => $this->validation->location,
              'rows'        => '3',
              'cols'        => '48',
              'class'       => 'txt'
            );
		echo form_format("Event Location: *",form_textarea($format),'Write a description of the event location, directions etc.' ); 
		?>
	
	
	<br /><br />
	<br /><br />
	<?php 
echo form_submit('', 'Create Event', 'class="button"');
?>
	<br /><br />
	<small>* required fields</small>
	<?php 
echo form_close();
?>
	</div>
	
示例#4
0
	echo form_format("Low Stream Code: ", form_textarea($format));
	$format = array(
			'name'	=>	'blocked_ips',
			'value'	=>	$this->validation->blocked_ips,
			'rows'	=>	'5',
			'cols'	=>	'48',
			'class'	=>	'txt',
		);
	echo form_format("Blocked IPs: ", form_textarea($format));
	$format = array(
	                  '0'  => 'no',
	                  '1' => 'yes',
	                );

	echo form_format("Streaming:", form_dropdown('streaming', $format, $this->validation->streaming));
	echo form_format("Event Finished:", form_dropdown('event_finished', $format, $this->validation->event_finished));	
	?>
	<br /><br />
	<br /><br />
	<?php 
echo isset($avatar_image_name) && !empty($avatar_image_name) ? form_hidden('old_avatar', './avatars/' . $avatar_image_name) : '';
?>
	<?php 
echo form_submit('', 'Update Event', 'class="button"');
?>
	<br /><br />
	<small>* required fields</small>
	<?php 
echo form_close();
?>
	</div>
</div>
		<? echo form_format("Question:",anchor("question/view/{$event['event_url_name']}/".url_title($question['question_name']),$question['question_name']),'' ); ?>
		<? echo form_format("Question Status: *",$dropdown,'' ); ?>
		<?
		// Show Question Answer text box if the questions is either current or asked
		if ($question['question_status'] == 'current' || $question['question_status'] == 'asked')
		{
			$format = array(
	              'name'        => 'question_answer',
	              'id'          => 'question_answer',
	              'value'       => $question['question_answer'],
	              'rows'        => '6',
	              'cols'        => '65',
	              'class'       => 'txt'
	        );
			echo form_format("Question Answer: *",form_textarea($format),'Write a the answer to the question.' );
		}
		?>
		<? echo form_hidden("question_id",$question['question_id']); ?>  
		<? echo form_hidden("event_url_name",$event['event_url_name']); ?>
		<br /><br />
		<?php 
echo form_submit('', 'Edit Question', 'class="button"');
?>
		
		<?php 
echo form_close();
?>
</div>

<? $this->load->view('view_layout/footer.php'); ?>
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
?>
<?
$data['sub_title'] = "Password Reset"; 
?>
<? $this->load->view('view_layout/header.php',$data); ?>

<div id="content_div">
	<div class='errorArea'><?php 
echo $error;
?>
</div>
	<?php 
echo form_open('user/password_reset_form');
?>
	<?php 
echo form_format('Your e-mail address: ', form_input(array('name' => 'user_email', 'class' => 'txt')));
?>
	<?php 
echo form_submit(array('class' => 'button', 'value' => 'Reset Password'));
?>
	<?php 
echo form_close();
?>
</div>

<?$this->load->view('view_layout/footer.php');?>
示例#7
0
echo $question['question_id'];
?>
_0" style="display: block;margin-left:30px;margin-top:10px;">
			<?php 
echo form_format("", "<b>Selcet a question as result.</b><br><br>");
echo form_format("", form_dropdown('result_question_' . $question['question_id'], $result_question_array));
?>
			</div>
			<div id="other_questions_<?php 
echo $question['question_id'];
?>
_1" style="display: none;margin-left:30px;margin-top:10px;">
			<?php 
echo form_format("", "<b>Select other duplicate questions.</b><br><br>");
foreach ($other_question_array as $k => $data) {
    echo form_format("", form_checkbox($data));
    echo $data['label'] . '<br>';
}
?>
			</div>
		</div>
		<br /><br />
		<input type="button" class="button" value="Flag Question" onclick="new Ajax.Request(site_url+'flag/flagQuestion/<?php 
echo $question['question_id'];
?>
/<?php 
echo $this->session->userdata['user_id'];
?>
/flag', { parameters: $('question_flag_form_<?php 
echo $question['question_id'];
?>
示例#8
0
<?
$data['red_head'] = 'Add comment';
?>

<?$this->load->view('view_includes/header.php',$data);?>

<div id="content_div">
	<h3>Add a comment</h3>
	<? 
	echo form_open('comment/addCommentAction')
	. form_format("Your comment: ",form_input('comment','','class="txt"') )
	. form_hidden('fk_question_id', $question_id)
	. form_hidden('event_type', $event_type)
	. form_hidden('question_name', $question_name)
	. '<input type="submit" value="Submit Comment"/>'
	. form_close();
	?>
</div>

<?$this->load->view('view_includes/footer.php');?>
if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
?>

<? $this->load->view('view_layout/header.php',$data); ?>

<div id="content_div">
	<h3>Reset Password</h3>	
	<div class='errorArea'><?php 
echo $error;
?>
</div>
	<?php 
echo form_open('user/reset_password_form', '', array('user_id' => $user_id, 'auth' => $auth));
?>
	<?php 
echo form_format('New password: '******'name' => 'user_password', 'class' => 'txt')));
?>
	<?php 
echo form_format('Confirm new password: '******'name' => 'user_password_confirm', 'class' => 'txt')));
?>
	<?php 
echo form_submit(array('class' => 'button', 'value' => 'Reset Password'));
?>
	<?php 
echo form_close();
?>
</div>

<?$this->load->view('view_layout/footer.php');?>
示例#10
0
echo $error;
?>
</div>
	<div id="account_form">
	<?php 
echo form_open('user/edit_user_action/' . $user_id);
?>
	
	<?php 
echo form_format("User Name: *", form_input('user_name', $this->validation->user_name, 'class="txt"'));
?>
	<?php 
echo form_format("Password: *", form_input('user_password', $this->validation->user_password, 'class="txt"'));
?>
	<?php 
echo form_format("Avatar:", form_input('user_avatar', $this->validation->user_avatar, 'class="txt"'));
?>
	
	<br /><br />
	<br /><br />
	<?php 
echo form_submit('', 'Edit User', 'class="button"');
?>
	<br /><br />
	<small>* required fields</small>
	<?php 
echo form_close();
?>
	</div>

</div>
          'cols'        => '48',
          'class'       => 'txt'
        );
	echo form_format("Description: ",form_textarea($format),'Write a brief description explaining your question (limit 250 chars).' ); 
	?>
	<br />
	<?
	$format = array(
          'name'        => 'tags',
          'id'          => 'tags',
          'value'       => $this->validation->tags,
          'size'        => '48',
          'class'       => 'txt',
		  'style'	    => 'text-transform:lowercase'
        );
	echo form_format("Tags: ",form_input($format),'Short, generic words separated by spaces example: abortion war politics' ); 
	?>
	<br />
	<br />
	<?php 
echo form_hidden('submitted', 'true');
?>
	<?php 
echo form_hidden('event_url', $event_url);
?>
	<div class="link" onclick="showBox('disclaimer');">Disclaimer</div>
	<br />
	<? if(isset($ajax)): ?>
	<a onClick="javascript:cpUpdater.askQuestion();">Submit Question</a>
	<? else: ?>
	<?php 
示例#12
0
	
	
	<?//= form_format('Candidate Name: ', form_input($can_name_attrs)) ?>
	<?php 
echo form_format('Candidate Display Name: ', form_input($can_display_name_attrs));
?>
	<?php 
echo $action == 'create' ? form_format('Password: '******'';
?>
	<?php 
echo $action == 'create' ? form_format('Confirm Password: '******'';
?>
	<?php 
echo form_format('Biography: ', form_textarea($can_bio_attrs));
?>
	<?php 
echo $action == 'create' ? form_format('Email: ', form_input($can_email_attrs)) : '';
?>
	<?php 
echo form_hidden('submitted', 'true');
?>
	<p><?php 
echo form_submit(null, $submit_text, 'class="button"');
?>
</p>
	<?php 
echo form_close();
?>
</div>

<? $this->load->view('view_includes/footer.php'); ?>
示例#13
0
<br/>
	<?php 
echo form_submit('', 'Get a One Time Account', 'class="button"');
?>
	<?php 
echo form_close();
?>
	<br/>	<h2>Log in</h2>
	<?php 
echo form_open('user/login');
?>
	<?php 
echo form_format("Username: "******"txt_user" id="username"'));
?>
	<?php 
echo form_format("Password: "******"txt_user"'));
?>
	<?php 
echo form_hidden('redirect', $this->uri->uri_string());
?>
	<br /><br /><?php 
echo form_submit('', 'Login', 'class="button"');
?>
	<div id="userloginprompt"><small>You must have cookies enabled to log in to OpenFloor</small></div>
		<?php 
echo form_close();
?>
	<? /*<br /><?php 
echo anchor('/user/password_reset', 'Forgot your username or password?', 'class="link"');
?>
*/?>
示例#14
0
		$format1 = array(
              'name'        => 'custom_1',
              'id'          => 'custom_1',
              'value'       => (isset($custom_1))?$custom_1:$this->validation->custom_1,
              'size'        => '50',
              'class'       => 'txt',
        );
		echo form_format("Custom 1: ",form_input($format1),'Additional field to store information if needed' );
		
		$format2 = array(
              'name'        => 'custom_2',
              'id'          => 'custom_2',
              'value'       => (isset($custom_2))?$custom_2:$this->validation->custom_2,
              'size'        => '50',
              'class'       => 'txt',
        );
		echo form_format("Custom 2: ",form_input($format2),'Additional field to store information if needed' ); 
		?>
		
		<br /><br />
		<?php 
echo form_hidden('cms_id', $cms_id);
?>
		<?php 
echo form_submit('', 'Submit', 'class="button"');
?>
		<?php 
echo form_close();
?>
</div>
<? $this->load->view('view_includes/footer.php',$data); ?>  	
	<? } ?>
	
	
	<?php 
echo form_format("Username: *", form_input('user_name', isset($this->validation->user_name) ? $this->validation->user_name : '', 'class="txt"'));
?>
	<? if ( !isset($openID) ) echo form_format("Password: *",form_password('user_password','','class="txt"') ); ?>
	<? if ( !isset($openID) ) echo form_format("Password Confirm: *",form_password('password_confirm','','class="txt"') ); ?>
	
	<?
	if (isset($openID_email)) $email = $openID_email;
	else if (isset($this->validation->user_email)) $email = $this->validation->user_email;
	else $email= '';
	?>
	<?php 
echo form_format("Email: *", form_input('user_email', $email, 'class="txt"'));
?>
	
	
	<br /><br />
	<?		
	echo $capimage;
	echo '<br />';
	echo '<label>Enter the above characters: *</label>';
	echo form_input('captcha','','class="txt"')
	?>
	<br /><br />
	<?php 
echo form_submit('', 'Create Account', 'class="button"');
?>
	<br /><br />
示例#16
0
              'cols'        => '48',
              'class'       => 'txt'
            );
		echo form_format("Description: ",form_textarea($format),'Write a brief description explaining your video (limit 250 chars).' ); 
		?>
		<br />
		<?
		$format = array(
              'name'        => 'tags',
              'id'          => 'tags',
              'value'       => $this->validation->tags,
              'size'        => '50',
              'class'       => 'txt',
			  			'style'	    => 'text-transform:lowercase'
            );
		echo form_format("Tags: ",form_input($format),'Short, generic words separated by \',\' (commas) example: abortion, lgbt, war' ); 
		?>
		<br />
		<br />
		<?php 
echo form_hidden('submitted', 'true');
?>
		<?php 
echo form_hidden('event_url', $event_url);
?>
		<input type='hidden' name='thumbnail' id='thumbnail' value=''>
		<?php 
echo form_submit('', 'Submit ' . ucfirst($event_type), 'class="button"');
?>
		
		<br />
示例#17
0
?>
	<br /><br /><?php 
echo anchor('/user/password_reset', 'Forgot your username or password?', 'class="link"');
?>
	<?php 
echo form_close();
?>
	
	<br /><br />
	<a class="link" onClick="javascript:new Effect.toggle('open_id_login_div','blind', {queue: 'end'});"><strong>Click here to login with Open ID.</strong</strong></a>
	<div id="open_id_login_div" style="display: none;">
		<?php 
echo form_open('user/loginOpenID');
?>
		<?php 
echo form_format("<img src='images/openid-icon-small.gif'> OpenID Login: "******"txt"'));
?>
		<?php 
echo form_hidden('openid_action', 'login');
?>
		<?php 
echo form_hidden('redirect', $this->uri->uri_string());
?>
		<?php 
echo form_hidden('openid_action', 'login');
?>
		<br />
		<div>
			<small>To login with your OpenID please make sure you register your<br /> OpenID with us first by <?php 
echo anchor('user/createAccount', 'Creating an Account');
?>
示例#18
0
$can_password_attrs = array('name' => 'can_password', 'value' => '', 'class' => 'txt', 'maxlength' => 45);
$can_bio_attrs = array('name' => 'can_bio', 'value' => $can_bio, 'class' => 'txt', 'rows' => '3', 'cols' => '48');
?>

<? $this->load->view('view_includes/header.php');?>
<div id="content_div">	
  <h2>Edit Candidate Biography</h2>	
  	<div class='errorArea'><?php 
echo $error;
?>
</div>
		<?php 
echo form_open('conventionnext/edit/bio/' . url_title($can_display_name), null, array('can_id' => $can_id, 'submitted' => 'true'));
?>
		<?php 
echo form_format('Biography: ', form_textarea($can_bio_attrs));
?>
		<?php 
echo form_format('Candidate password: '******'Edit', 'class="button"');
?>
</p>
		<?php 
echo form_close();
?>
</div>
<? $this->load->view('view_includes/footer.php'); ?>
示例#19
0
?>
	
	<?php 
echo form_format("Username: "******"Email: ", form_input('user_email', $user_email, 'class="txt"'));
?>
	<?php 
echo form_format("OpenID: ", form_input('user_openid', $user_openid, 'class="txt"'));
?>
	<?php 
echo isset($avatar_image_name) ? "<br /><img src=\"./avatars/<?={$avatar_image_name};/>\"" : '';
?>
	<?php 
echo form_format("Avatar: ", form_upload('userfile', $user_avatar, 'class="txt"'), 'must be less then 1024 kb & 1024px768px (image will be resized)');
?>
	<?php 
echo isset($avatar_image_name) ? form_hidden('old_avatar', './avatars/' . $avatar_image_name) : '';
?>
	<br /><br />
	<?php 
echo form_submit('', 'Update Profile', 'class="button"');
?>
	<?php 
echo form_close();
?>
	</div>
	<? } ?>
</div>
<? $this->load->view('view_includes/footer.php'); ?>  				
示例#20
0
		);
	echo form_format("Low Stream Code: ", form_textarea($format));
	$format = array(
			'name'	=>	'blocked_ips',
			'value'	=>	$this->validation->blocked_ips,
			'rows'	=>	'5',
			'cols'	=>	'48',
			'class'	=>	'txt',
		);
	echo form_format("Blocked IPs: ", form_textarea($format));
	$format = array(
	                  '0'  => 'no',
	                  '1' => 'yes',
	                );

	echo form_format("Streaming:", form_dropdown('streaming', $format, $this->validation->streaming));
	?>
	
	<br /><br />
	<br /><br />
	<?php 
echo isset($avatar_image_name) && !empty($avatar_image_name) ? form_hidden('old_avatar', './avatars/' . $avatar_image_name) : '';
?>
	<?php 
echo form_submit('', 'Edit Event', 'class="button"');
?>
	<br /><br />
	<small>* required fields</small>
	<?php 
echo form_close();
?>