Example #1
0
"><?php 
    echo $this->lang->line('files_search_query_files_1_1');
    ?>
</a><?php 
    echo $this->lang->line('files_search_query_files_1_2');
    ?>
</span>
	<?php 
} else {
    ?>
	<h2 style="vertical-align:middle"><img src="<?php 
    echo base_url() . 'img/icons/search_32.png';
    ?>
" class="nb" alt="" /><?php 
    echo $this->lang->line('files_search_query_files_heading');
    ?>
</h2>
	<div id="massActions" style="clear:both; padding-top:4px;">
		<div class="float-right">
			<?php 
    echo generateLinkButton('New Search', site_url('files/search'), base_url() . 'img/icons/new_16.png', NULL);
    ?>
		</div>
	</div>
	<div style=" clear:both;"></div>
	<?php 
    echo $flashMessage;
    ?>
	
	<h3><?php 
    echo $this->lang->line('files_search_query_1');
Example #2
0
<h2 style="vertical-align:middle"><img src="<?php 
echo $base_url . 'img/icons/colors_32.png';
?>
" class="nb" alt="" /> Skin Manager</h2>
<?php 
echo $flashMessage;
?>
	<div id="massActions" style="clear:both; padding-top:4px;">
	<div class="float-right">
		<?php 
echo generateLinkButton('Install New Skins', site_url('admin/skin/installNew'), $base_url . 'img/icons/new_16.png', NULL);
?>
	</div>
</div>
<script>
/*
 * Image preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 
this.imagePreview = function(){	
	/* CONFIG */
		
		xOffset = 10;
		yOffset = 30;
		
Example #3
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/user_group_32.png';
?>
" class="nb" alt="" /> '<?php 
echo $group->name;
?>
' Group - Edit</h2><br />
<?php 
echo generateLinkButton('Manage Groups', site_url('admin/group/view'), base_url() . 'img/icons/back_16.png');
?>
<br />
<form action='<?php 
echo site_url('admin/group/edit/' . $group->id);
?>
' method="post">
	<h3>Edit Group: <?php 
echo ucwords($group->name);
?>
</h3>
    <p>
		<?php 
foreach ($group as $name => $value) {
    if ($name == 'id' or $name == 'status') {
        continue;
    }
    // ------------------------------
    ?>
				<label style="font-weight:bold" for="<?php 
    echo $name;
    ?>
">
Example #4
0
			<span class="float-right">
				<label for="<?php echo $file->id?>_desc"><?php echo $this->lang->line('files_manage_11') ?></label>
				<textarea name="<?php echo $file->id?>_desc" id="<?php echo $file->id?>_desc" cols="30" style="height:180px" rows="2"><?php echo $file->descr?></textarea>
			</span>
            
			<label for="<?php echo $file->id?>_pass"><?php echo $this->lang->line('files_manage_12') ?></label>
			<input name="<?php echo $file->id?>_pass" id="<?php echo $file->id?>_pass" value="<?php echo $file->password?>" size="35" maxlength="32" type="text" /><br />
			
			<label for="<?php echo $file->id?>_tags"><?php echo $this->lang->line('files_manage_tags'); ?></label>
			<input name="<?php echo $file->id?>_tags" id="<?php echo $file->id?>_tags" value="<?php echo $file->tags?>" size="35" maxlength="200" type="text" /><br />
            
            <label for="<?php echo $file->id?>_feat"><?php echo $this->lang->line('files_manage_13') ?></label>
			<input name="<?php echo $file->id?>_feat" id="<?php echo $file->id?>_feat" <?php if($file->feature){?> checked="checked"<? }?> type="checkbox" value="1" /> <?php echo $this->lang->line('files_manage_14') ?><br /><br />
            
			<?php echo generateLinkButton($this->lang->line('files_manage_15'), 'javascript:;', base_url().'img/icons/ok_16.png', 'green', array('onclick' => 'editFileProps(\''.$file->id.'\');'))?>
			<?php echo generateLinkButton('Cancel Edit', 'javascript:;', base_url().'img/icons/close_16.png', 'red', array('onclick' => '$(\'#'.$file->id.'-edit\').hide();'))?><br /><br />
		</td>
	</tr>
	
	<?php 
		$i++;
	}
	?>
</table>
</form>

<?php echo $pagination; ?>

<script type="text/javascript">
	function editFileProps(id)
	{
Example #5
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/user_32.png';
?>
" class="nb" alt="" /> User - Add</h2><br />
<?php 
echo $error;
echo generateLinkButton('Manage Users', site_url('admin/user/home'), base_url() . 'img/icons/back_16.png');
?>
<br />
<form action='<?php 
echo site_url('admin/user/add');
?>
' method="post">
	<h3>Add New User</h3>
    <p>
        <label style="font-weight:bold" for="username">Username</label>
		<input type="text" name="username" value="<?php 
echo $this->validation->username;
?>
" size="50" /><br />
    
        <label style="font-weight:bold" for="email">Email</label>
        <input type="text" name="email" value="<?php 
echo $this->validation->email;
?>
" size="50" /><br />
		
		<label style="font-weight:bold" for="group">User Group</label>
		<select name="group">
			<?php 
foreach ($groups->result() as $group) {
<h2 style="vertical-align:middle"><img src="<?=base_url().'img/icons/user_32.png'?>" class="nb" alt="" /> Manage Users - Search</h2>
<div class="users">
	<?=$flashMessage?>
	<form action="<?=site_url('admin/user/')?>" id="userAdmin" method="post" style="padding:0; margin:0; border:0;">
		<div id="massActions" style="clear:both; padding-top:4px;">
			<div class="float-left">
				<?=generateLinkButton('Delete', 'javascript:;', base_url().'img/icons/close_16.png', 'red', array('onclick' => 'deleteSubmit()'))?>
			</div>
			<div class="float-right">
				<?=generateLinkButton('Search', site_url('admin/user/search'), base_url().'img/icons/search_16.png', NULL)?>
			</div>
		</div>
		<h3 style="clear:both">
			Search Query: "<?php echo $query?>" <br />
			Number of results: <?php echo $res_num?>
		</h3>
		<table class="special" border="0" cellpadding="4" cellspacing="0" style="width:98%">
		<tr>
			<th><div align="center"><input type="checkbox" onchange="switchCheckboxes(this.checked)" /></div></th>
			<th>
				<div align="center">
					<a href="javascript:;" onclick="<?=getSortLink('id', $sort, $direction)?>">
						ID #<?=getSortArrow('id', $sort, $direction)?>
					</a>
				</div>
			</th>
			<th>
				<div align="center">
					<a href="javascript:;" onclick="<?=getSortLink('username', $sort, $direction)?>">
						Name<?=getSortArrow('username', $sort, $direction)?>
					</a>
<table>
<?php 
echo '<tr>';
echo '<td class="translator_table_header">' . ucwords($slaveLang) . '</td>';
echo '<td class="translator_table_header">' . ucwords($langModule) . '</td>';
echo '</tr>';
?>
</table>
<p>
<?php 
echo generateLinkButton('Select Language', site_url('admin/translator'), $base_url . 'img/icons/back_16.png') . '<br />';
?>
</p>
Example #8
0
	{
		?>
		<label style="font-weight:bold" for="captcha"><?php echo $this->lang->line('files_get_19')?></label>
		<code> 
			<span id="captchaImg"><?php echo $captcha?></span> 
			<a href="javascript:;" onclick="getNewCaptcha()">
				<img class="nb" title="Get New Captcha<?php echo $this->lang->line('files_get_20')?>" src="<?php echo $base_url?>img/icons/refresh_16.png" alt="" />
			</a><br />
			<input type="text" size="3" maxlength="3" name="captcha" />
		</code><br />
		<?php 
	}
	echo generateSubmitButton($this->lang->line('files_get_21'), base_url().'img/icons/backup_16.png', 'green');
	if($image)
	{
	    echo generateLinkButton('View This Image', $image['direct_url'], base_url().'img/icons/pictures_16.png', null, array('target' => '_blank'));
	}
	?><br />
	</span>
</div>
</form>

<?php /*File Page Hooks*/ $this->xu_api->hooks->runHooks('files::get::add_section::after_download', null); ?>

<script type="text/javascript">
<?php 
$rand = 'x'.str_replace('-', '', $this->functions->getRandId());
$rand1 = 'y'.str_replace('-', '', $this->functions->getRandId(32));
?>
var <?php echo $rand?> = <?php echo $sec?>;
//var <?php echo $rand?> = <?php // $group->waittimme?>;
Example #9
0
echo $this->lang->line('files_search_headertitle');
?>
</h2>
<form action="<?php 
echo site_url('admin/files/search');
?>
" onsubmit="submitSearch(); return false;"  method="get">
	<p>
		<label><?php 
echo $this->lang->line('files_search_searchlabel');
?>
</label>
		<input type="text" name="query" id="search" value="" /><br /><br />
		
		<?php 
echo generateLinkButton($this->lang->line('files_search_searchbutton'), 'javascript:;', base_url() . 'img/icons/search_16.png', NULL, array('onclick' => 'submitSearch();'));
?>
<br />
	</p>
</form>
<script>
function submitSearch()
{
	if($('#search').val() != '')
	{
		window.location = '<?php 
echo site_url('admin/files/search');
?>
/'+escape($('#search').val());
	}
}
Example #10
0
	<input readonly="readonly" type="text" id="del_<?php 
    echo rand();
    ?>
" size="50" value="<?php 
    echo $link['del'];
    ?>
" onfocus="this.select()" onclick="this.select()" />
	<?php 
}
if (isset($link['img'])) {
    ?>
		<br />
		<label><?php 
    echo $this->lang->line('upload_links_3');
    ?>
</label>
		<a href="<?php 
    echo $link['img'];
    ?>
"><?php 
    echo $link['img'];
    ?>
</a>
		<?php 
}
?>

<div style="clear:both"></div><br />
<?php 
echo generateLinkButton('Upload More Files', site_url('home'), $base_url . 'img/icons/back_16.png', 'green');
Example #11
0
    <span class="desc">View your local PHPINFO, describing all your PHP settings(opens in a new window).</span>
    <?php 
echo generateLinkButton('View PHPINFO Page', site_url('admin/actions/php_info'), base_url() . 'img/icons/about_16.png', NULL, array('rel' => 'external', 'target' => '_blank'));
?>
</p><br /><br />

<h3>Clear Site/Settings Cache</h3>
<p class="action">
    <span class="desc">Clear your local cache files and generate new ones. This is useful if your getting random PHP errors.</span>
    <?php 
echo generateLinkButton('Clear Site/Settings Cache', site_url('admin/actions/clear_cache'), base_url() . 'img/icons/trash_16.png', NULL);
?>
</p><br /><br />

<h3>Run Site Cron</h3>
<p class="action">
    <span class="desc">Run the site cron now, removing all orphaned files and running any extention cron files.</span>
    <?php 
echo generateLinkButton('Run Site Cron', site_url('admin/actions/run_cron'), base_url() . 'img/icons/history_16.png', NULL);
?>
</p><br /><br />

<h3>Sync Server Settings</h3>
<p class="action">
    <span class="desc">Sync out the latest settings to each slave server, config, user groups and plugins.</span>
    <?php 
echo generateLinkButton('Sync Server Settings', site_url('admin/actions/update_server_cache'), base_url() . 'img/icons/sync_16.png', NULL);
?>
</p><br /><br />

Example #12
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/other/server_32.png';
?>
" class="nb" alt="" /> Server Manager</h2>
<?php 
echo $flashMessage;
?>
<div id="massActions" style="clear:both; padding-top:4px;">
	<div class="float-right">
		<?php 
echo generateLinkButton('Add New Server', site_url('admin/server/add'), base_url() . 'img/icons/new_16.png', NULL);
?>
	</div>
</div>
<table border="0" style="width:95%" id="file_list_table">
	<tr>
		<th class="align-left">Name</th>
		<th class="align-left">URL</th>
		<th class="align-left"># Files</th>
		<th class="align-left">Used Space</th>
		<th style="text-align:center">Actions</th>
	</tr>
	<? foreach($servers->result() as $server)
	{
		?>			
		<tr <?php 
echo alternator('class="odd"', 'class="even"');
?>
>
			<td style="font-size:12px; font-weight:bold; color:#006600">
				<?php 
Example #13
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/folder_32.png';
?>
" class="nb" alt="" /> FOlder Manager</h2>
<?php 
echo $flashMessage;
?>
<div id="massActions" style="clear:both; padding-top:4px;">
	<div class="float-right">
		<?php 
echo generateLinkButton('Search', site_url('admin/files/search'), base_url() . 'img/icons/search_16.png', NULL);
?>
	</div>
</div>
<p style=" clear:both;"></p>
<table class="special" border="0" id="file_list_table"cellspacing="0" style="width:98%">
	<tr>
		<th class="align-left">
			Folder name
		</th>
		<th>
			# Files
		</th>
		<th>
			Created
		</th>
		<th>
			Actions
		</th>
	</tr>
	<?php 
Example #14
0
    ?>
 <img title="<?php 
    echo $this->lang->line('upload_url_12');
    ?>
" src="<?php 
    echo $base_url;
    ?>
img/icons/delete_16.png" onclick="clearUploadQueue()" alt="<?php 
    echo $this->lang->line('upload_url_12');
    ?>
" style="cursor:pointer" class="nb" /></th>
				</tr>
			</table>
			<p>
				<span class="float-right"><?php 
    echo generateLinkButton($this->lang->line('upload_url_9'), 'javascript:startUploadQueue();', $base_url . 'img/icons/up_16.png', 'green');
    ?>
<br /><br /></span>
			</p>
		</div>
	</div>
	
	<form action="<?php 
    echo $server . 'upload/url_process';
    ?>
" method="post" id="urlUp" style="display:none">
		<p>
			<input type="hidden" id="fid" name="fid" value="" />	
			<input type="hidden" name="link" id="link" value="" />
			<input type="hidden" name="descr" id="descr" value="" />
			<input type="hidden" name="pass" id="pass" value="" />
Example #15
0
 checked="checked"<?php 
                    }
                    ?>
 />
						<?php 
                    echo $description[1];
                    ?>
<br />
					<?php 
                }
            }
        }
        ?>
				</td>
			</tr>
			
		<?php 
    }
}
?>
	</table>
	<input type="hidden" name="valid" value="yes" />
	<?php 
if ($num_rows > 0) {
    echo generateSubmitButton('Update', base_url() . 'img/icons/ok_16.png', 'green');
} else {
    echo generateLinkButton('Go Back', 'javascript:history.go(-1)', base_url() . 'img/icons/back_16.png');
}
?>
<br />
</form>
Example #16
0
?>
</a><?php 
echo $this->lang->line('files_search_new_search_1_2');
?>
</span>
	<?
}
else
{
	?>
	<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/search_32.png';
?>
" class="nb" alt="" /><?php 
echo $this->lang->line('files_search_new_files_heading');
?>
</h2>
	<?php 
echo $flashMessage;
?>
	
	<form action="<?php 
echo site_url('files/search');
?>
" onsubmit="submitSearch(); return false;"  method="get">
		<p>
			<label><?php 
echo $this->lang->line('files_search_new_files_1');
?>
</label>
			<input type="text" name="query" id="search" value="" /><br /><br />
Example #17
0
" id="userAdmin" method="post" style="padding:0; margin:0; border:0;">
	<div id="massActions" style="clear:both; padding-top:4px;">
		<div class="float-left">
			<?php 
echo generateLinkButton('Delete', 'javascript:;', base_url() . 'img/icons/close_16.png', 'red', array('onclick' => 'deleteSubmit()'));
?>
			<?php 
echo generateLinkButton('Ban', 'javascript:;', base_url() . 'img/icons/lock_16.png', NULL, array('onclick' => 'banSubmit()'));
?>
		</div>
		<div class="float-right">
			<?php 
echo generateLinkButton('Search', site_url('admin/files/search'), base_url() . 'img/icons/search_16.png', NULL);
?>
			<?php 
echo generateLinkButton('All', site_url('admin/files/view'), base_url() . 'img/icons/documents_16.png', NULL);
?>
		</div>
	</div>
	<h3 style="clear:both">
		Search Query: "<?php 
echo $query;
?>
" <br />
		Number of results: <?php 
echo $res_num;
?>
	</h3>
	<table class="special" border="0" id="file_list_table"cellspacing="0" style="width:98%">
		<tr>
			<th>
Example #18
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/sticky_32.png';
?>
" class="nb" alt="" /> Admin Shortcut Manager</h2>
<?php 
echo $flashMessage;
?>
<form action="<?php 
echo site_url('admin/menu_shortcuts/view');
?>
" id="userAdmin" method="post" style="padding:0; margin:0; border:0;">
	
	<div id="massActions" style="clear:both; padding-top:4px;">
		<div class="float-right">
			<?php 
echo generateLinkButton('Add', site_url('admin/menu_shortcuts/add'), base_url() . 'img/icons/add_16.png', 'green');
?>
		</div>
	</div>
	<p style=" clear:both;"></p>
	
	<table class="special" border="0" id="shortcut_list_table"cellspacing="0" style="width:98%">
		<tr>
			<th class="align-left">
				Link Name
			</th>
			<th>
				Link Locaton
			</th>
			<th>
				Actions
Example #19
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/user_group_32.png';
?>
" class="nb" alt="" /> Groups - Manage</h2>
<div class="users">
	<?php 
echo $flashMessage;
?>
	<div id="massActions" style="clear:both; padding-top:4px;">
		<div class="float-right">
			<?php 
echo generateLinkButton('New Group', site_url('admin/group/add'), base_url() . 'img/icons/add_16.png', NULL);
?>
		</div>
	</div>
	<table class="special" border="0" cellpadding="4" cellspacing="0" style="width:98%">
	<tr>
		<th>
			<div align="center">
				Name
			</div>
		</th>
		<th>
			<div align="center">
				Description
			</div>
		</th>
		<th>
			<div align="center">
				Actions
			</div>
Example #20
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/icons/documents_32.png';
?>
" class="nb" alt="" /> <?php 
echo $this->lang->line('files_edit_headertitle');
?>
</h2>
<form action="<?php 
echo site_url('admin/files/edit/' . $id);
?>
" method="post">
<input type="hidden" name="status" value="1" />
	<p>
		<?php 
echo generateLinkButton($this->lang->line('files_edit_managebutton'), site_url('admin/files/view'), base_url() . 'img/icons/back_16.png');
?>
<br /><br />
		<label for="o_filename"><?php 
echo $this->lang->line('files_edit_filename');
?>
</label>
		<input type="text" name="o_filename" value="<?php 
echo $file->o_filename;
?>
"  />
		
		<label for="downloads"><?php 
echo $this->lang->line('files_edit_filedownloads');
?>
</label>
		<input type="text" name="downloads" value="<?php 
Example #21
0
<h2 style="vertical-align:middle"><img src="<?php 
echo base_url() . 'img/other/server_32.png';
?>
" class="nb" alt="" /> Install Server Software</h2>
	<div id="massActions" style="clear:both; padding-top:4px;">
	<div class="float-left">
		<?php 
echo generateLinkButton('Manage Servers', site_url('admin/server/view'), base_url() . 'img/icons/back_16.png');
?>
	</div>
</div>
<p><br /></p>
<h3>Install Complete!</h3>
<p>The server file have been installed on the remote server. If you notice any problems with the install please double check the installer using the server install guid in the docs. Please use the above button to go back to the server manager.</p>
Example #22
0
			$('#alert4').show();
			setTimeout('$("#alert4").hide("normal");', 2500);
			fileToBig = false;
		}
		
		function ___generalError()
		{
			$('#alert5').show();
			setTimeout('$("#alert5").hide("normal");', 2500);
			fileToBig = false;
		}
		
		function ___filePropSaveButtons(id)
		{
			var template = "<?php 
    echo str_replace("\n", '', str_replace('"', '\\"', generateLinkButton('Save Changes', 'javascript:;', base_url() . 'img/icons/ok_16.png', 'green', array('onclick' => 'saveFilePropChanges(\'--id--\');$(\'#--id---details\').hide();$(\'#--id---edit_img\').fadeIn(\'fast\');')) . generateLinkButton('Discard Changes', 'javascript:;', base_url() . 'img/icons/close_16.png', 'red', array('onclick' => '$(\'#--id---details\').hide();$(\'#--id---edit_img\').fadeIn(\'fast\');'))));
    ?>
";
			
			return str_replace('--id--', id, template);
		}
		
		function str_replace (search, replace, subject, count) 
		{
	    	// Replaces all occurrences of search in haystack with replace  
            f = [].concat(search),
            r = [].concat(replace),
            s = subject,
            ra = r instanceof Array, sa = s instanceof Array;    s = [].concat(s);
		    if (count) {
		        this.window[count] = 0;
Example #23
0
<h2 style="vertical-align:middle"><img src="<?=base_url().'img/icons/user_32.png'?>" class="nb" alt="" /> Users - Manage</h2>
<div class="users">
	<?=$flashMessage?>
	<form action="<?=site_url('admin/user/')?>" id="userAdmin" method="post" style="padding:0; margin:0; border:0;">
		<div id="massActions" style="clear:both; padding-top:4px;">
			<div class="float-left">
				<?=generateLinkButton('Delete', 'javascript:;', base_url().'img/icons/close_16.png', 'red', array('onclick' => 'deleteSubmit()'))?>
			</div>
			<div class="float-right">
				<?=generateLinkButton('Search', site_url('admin/user/search'), base_url().'img/icons/search_16.png', NULL)?>
				<?=generateLinkButton('Add', site_url('admin/user/add'), base_url().'img/icons/add_16.png', 'green')?>
			</div>
		</div>
		<p style=" clear:both;"></p>
		<table class="special" border="0" cellpadding="4" cellspacing="0" style="width:98%;">
		<tr>
			<th><div align="center"><input type="checkbox" onchange="switchCheckboxes(this.checked)" /></div></th>
			<th>
				<div align="center">
					<a href="javascript:;" onclick="<?=getSortLink('id', $sort, $direction)?>">
						ID #<?=getSortArrow('id', $sort, $direction)?>
					</a>
				</div>
			</th>
			<th>
				<div align="center">
					<a href="javascript:;" onclick="<?=getSortLink('username', $sort, $direction)?>">
						Name<?=getSortArrow('username', $sort, $direction)?>
					</a>
				</div>
			</th>