コード例 #1
0
function compress_file($file, $tipo = 'js')
{
    global $root_dir;
    $result = file_get_contents($root_dir . 'img/' . $file);
    $len_antes = strlen($result);
    echo '<tr><td><b>' . strtoupper($tipo) . '</b></td><td>' . $file . '</td><td align="right"><b>' . num($len_antes) . '</b>bytes</td>';
    switch ($tipo) {
        case 'js':
            $result = minify_js($result);
            break;
        case 'css':
            $result = minify_css($result);
            $result = str_replace('url(img/', 'url(lib/kickstart/css/img/', $result);
            /* corrige URLs de kickstart (codigo malo) */
            $result = str_replace('url(\'img/', 'url(\'lib/kickstart/css/img/', $result);
            /* corrige URLs de kickstart (codigo malo) */
            break;
    }
    $len_ahora = strlen($result);
    echo '<td align="right">- <b>' . num($len_antes - $len_ahora) . '</b>bytes = </td><td align="right"><b>' . num($len_ahora) . '</b>bytes</td><td align="right">' . num(100 - $len_ahora * 100 / $len_antes, 1) . '%</td></tr>';
    $result = '/* ' . $file . ' */' . "\n" . $result . "\n";
    return $result;
}
コード例 #2
0
/**
 * Compiles, and minifies a file
 * @param $file string The filename to process
 */
function parseFile($file)
{
    echo "Compiling {$file}\n";
    $contents = file_get_contents($file);
    $extension = "";
    if (strpos($file, ".coffee")) {
        $ar = compile_coffee($contents, true, $file);
        $contents = $ar["contents"];
        $file = $ar["file"];
        $extension = ".js";
    }
    if (strpos($file, ".js") || $extension == ".js") {
        $ar = minify_js($contents, true, $file);
        $contents = $ar["contents"];
        $file = $ar["file"];
        $extension = ".min.js";
    }
    if (strpos($file, ".css")) {
        $ar = minify_css($contents, true, $file);
        $contents = $ar["contents"];
        $file = $ar["file"];
        $extension = ".min.css";
    }
}
コード例 #3
0
  <td>&nbsp;</td>
  <td style='text-align: left; padding-top:25px;'>
  <select id='year__financialyears' name='year__financialyears' class='drop-down'>
  <?php 
echo get_option_list($this, 'financialyears', 'select', '', array('selected' => get_current_quarter('financial_year')));
?>
  </select></td>
  <td>&nbsp;</td>
</tr>

<tr>
  <td>&nbsp;</td>
  <td class='fill-page' style="vertical-align:top;"><div class='three-columns' id='stat_container'>
<?php 
$this->load->view('reports/pde_stats', array('list' => $list));
?>
</div>
</td>
  <td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('accounts__pde_dashboard', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js'));
?>
</body>
</html>
コード例 #4
0
ファイル: settings.php プロジェクト: nwtug/pss-version-1.0
    ?>
' />
    <input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
    echo base_url() . 'organizations/settings/view/Y';
    ?>
' />
    <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /></td></tr>
</table>
<?php 
}
?>






</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('organizations__settings', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.datepick.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js', 'pss.datepicker.js'));
?>
</body>
</html>
コード例 #5
0
?>
assets/css/pss.shadowbox.css" type="text/css" media="screen" />


<table class='normal-table microform ignoreclear'>

<tr><td><input type="text" id="reason__contactreason" name="reason__contactreason" placeholder="Enter or Select reason" class="drop-down searchable do-not-clear" value="" style="width:100%;"/></td></tr>

<tr><td><textarea id='details' name='details' placeholder='Details (Max 500 characters)' class='limit-chars' data-max='500' style='width:100%;height: 100px;'></textarea></td></tr>


<tr><td><button type="button" id="messagebtn" name="messagebtn" class="btn blue submitmicrobtn" style="width:100%;">Send</button>
<input type='hidden' id='action' name='action' value='<?php 
echo base_url() . $action;
?>
' />
<input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
echo base_url() . $redirect;
?>
' />
<input type='hidden' id='resultsdiv' name='resultsdiv' value='' />

<input name="layerid" id="layerid" type="hidden" value="" />
<input name="idlist" id="idlist" type="hidden" value="<?php 
echo $id_list;
?>
" /></td></tr>
</table>
<?php 
echo minify_js('pages__send_from_list', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.pagination.js'));
コード例 #6
0
echo base_url() . 'bids/best_evaluated';
?>
' />
    <input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
echo base_url() . 'bids/manage/a/best_bidders';
?>
' />
    <input type='hidden' id='resultsdiv' name='resultsdiv' value='' />
    </td></tr>
</table>







</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('new_bid', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.datepick.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js', 'pss.datepicker.js'));
?>
</body>
</html>
コード例 #7
0
ファイル: manage.php プロジェクト: nwtug/pss-version-1.0
</div>
<button type='button' id='refreshlist' name='refreshlist' style='display:none;'></button></td></tr>
</td></tr>
</table>







</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('reports__manage', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js'));
?>

<script>
$(function(){
	$('#paginationdiv__report_list').width($(window).width() - 103);
});
</script>
</body>
</html>
コード例 #8
0
ファイル: schoolregistration.php プロジェクト: nwtug/academia
<!DOCTYPE html>
<html >
  <head>
    <meta charset="UTF-8">
    <title>Academia School Registration </title>    
    <!-- Load CSS Academia Beta --> 
     <link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/academia_beta.css">    
    <!-- Javascript -->
    <?php 
echo minify_js('account-registration', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'registration.js'));
?>
  </head>

  <body>

    <hgroup>
  <h1><img src="<?php 
echo base_url();
?>
assets/images/sims_login.png" /></h1>
</hgroup>
<div class="container">


<form action="<?php 
echo base_url();
?>
registration/register_school_account" method="post" class="formmod col-md-9 ">
コード例 #9
0
ファイル: add_comment.php プロジェクト: nwtug/pss-version-1.0

<table class='normal-table microform ignoreclear'>

<tr><td><textarea id='details' name='details' placeholder='Details (Max 500 characters)' class='limit-chars' data-max='500' style='width:100%;height: 100px;'></textarea></td></tr>


<tr><td><button type="button" id="messagebtn" name="messagebtn" class="btn blue submitmicrobtn" style="width:100%;">Submit</button>
<input type='hidden' id='action' name='action' value='<?php 
echo base_url() . 'forums/add_comment';
?>
' />
<input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
echo base_url() . 'forums/add_comment/a/confirm';
?>
' />
<input type='hidden' id='resultsdiv' name='resultsdiv' value='' />

<input name="layerid" id="layerid" type="hidden" value="" />
<input name="forumid" id="forumid" type="hidden" value="<?php 
echo $d;
?>
" />
<input name="respondingto" id="respondingto" type="hidden" value="<?php 
echo !empty($r) ? $r : '';
?>
" /></td></tr>
</table>
<?php 
echo minify_js('forums__add_comment', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.pagination.js'));
コード例 #10
0
ファイル: providers.php プロジェクト: nwtug/pss-version-1.0
<div class='body-title'>Providers</div>
<div class="body-content"><table>
<tr><td>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec scelerisque blandit nulla non bibendum. Donec blandit ultricies eros. Suspendisse quis nisi volutpat justo tincidunt vehicula vitae sit amet tellus. Sed lacus turpis, dignissim non arcu ac, dictum maximus dui. Nulla congue orci at libero facilisis aliquet. Sed in mauris et eros ornare pretium eu ac quam. Phasellus metus erat, faucibus ut commodo non, varius eu felis. Morbi sit amet lacus maximus, placerat augue eget, ornare velit.
<br /><br />
Ut rhoncus vel lacus nec sagittis. Quisque rutrum lectus sed magna tempus facilisis. Nunc auctor, neque ut cursus blandit, nibh libero pharetra turpis, et dignissim mi dolor sit amet mi. Nullam scelerisque magna eu mi facilisis, at posuere dolor imperdiet. Sed vitae arcu eu libero bibendum scelerisque a nec nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean iaculis efficitur sem, sit amet condimentum enim scelerisque et. Nam mollis turpis a aliquam iaculis. Curabitur cursus sollicitudin ante, eu aliquam dui vehicula eget. Morbi tempor sollicitudin porttitor. Donec in feugiat purus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Donec eget justo orci.
<br /><br />

Ut rhoncus vel lacus nec sagittis. Quisque rutrum lectus sed magna tempus facilisis. Nunc auctor, neque ut cursus blandit, nibh libero pharetra turpis, et dignissim mi dolor sit amet mi. Nullam scelerisque magna eu mi facilisis, at posuere dolor imperdiet. Sed vitae arcu eu libero bibendum scelerisque a nec nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean iaculis efficitur sem, sit amet condimentum enim scelerisque et. Nam mollis turpis a aliquam iaculis. Curabitur cursus sollicitudin ante, eu aliquam dui vehicula eget. Morbi tempor sollicitudin porttitor. Donec in feugiat purus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Donec eget justo orci. 
<br /><br />

<table><tr><td><button class='button btn blue small' data-url='providers'>Registry of Providers</button></td></tr></table>
<br /><br />
</td></tr>
</table></div>


</td>
  <td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/public_footer');
?>

</table>
<?php 
echo minify_js('pages__providers', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js'));
?>
</body>
</html>
コード例 #11
0
ファイル: comments.php プロジェクト: nwtug/pss-version-1.0
<?php

$css = "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.css' type='text/css' media='screen' />" . "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.list.css' type='text/css' media='screen' />";
if (!empty($msg)) {
    echo $css . format_notice($this, $msg);
} else {
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html lang='en'>\n<head><meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t<title>Comments</title>\n    " . $css . "\n</head>\n<body>\n<div id='delete_result'></div>\n<table class='list-table'><tr><th style='width:1%'>&nbsp;</th><th>Comment</th><th>Posted By</th><th>Posted On</th></tr>";
    foreach ($list as $row) {
        echo "<tr id='row_" . $row['comment_id'] . "'>\n<td>";
        if ($this->native_session->get('__user_type') == 'admin' || $this->native_session->get('__user_type') == 'pde' && $this->native_session->get('__organization_id') == $row['entered_by_organization']) {
            echo "<a href='javascript:;' onclick=\"confirmActionToLayer('" . base_url() . "forums/remove_comment/row_id/row_" . $row['comment_id'] . "', 'comments_" . $row['comment_id'] . "', '', 'row_" . $row['comment_id'] . "___delete_result', 'Are you sure you want to remove this comment?')\"><img src='" . IMAGE_URL . "remove_icon.png' border='0'></a>\n\t\n\t<input type='hidden' id='comments_" . $row['comment_id'] . "' name='comments[]' value='" . $row['comment_id'] . "' />";
        } else {
            echo "&nbsp;";
        }
        echo "</td>\n<td>" . $row['comment'] . "</td>\n<td style='vertical-align:top;'>" . $row['entered_by'] . "</td>\n<td style='vertical-align:top;'>" . date(FULL_DATE_FORMAT, strtotime($row['date_added'])) . "</td>\n</tr>";
    }
    echo "</table>\n</div>\n\n<input type='hidden' id='layerid' name='layerid' value='' />";
    echo minify_js('forums__comments', array('jquery-2.1.1.min.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js'));
    echo "</body>\n</html>";
}
コード例 #12
0
ファイル: new_user.php プロジェクト: nwtug/pss-version-1.0
?>
' />
    <input type='hidden' id='resultsdiv' name='resultsdiv' value='' />
<?php 
if (!empty($user['user_id'])) {
    echo "<input type='hidden' id='user_id' name='user_id' value='" . $user['user_id'] . "' />";
}
?>
</td></tr>
</table>







</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('contracts__new_tender', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.datepick.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js', 'pss.datepicker.js'));
?>
</body>
</html>
コード例 #13
0
    echo format_notice($this, $msg);
} else {
    ?>
<table class='normal-table microform ignoreclear'>

<tr><td><select id='user__permissiongroups' name='user__permissiongroups' class='drop-down' style="width:100%;">
<?php 
    echo get_option_list($this, 'permissiongroups');
    ?>
</select></td></tr>

<tr><td><button type="button" id="applygroup" name="applygroup" class="btn blue submitmicrobtn" style="width:100%;">Apply Group</button>
<input type='hidden' id='action' name='action' value='<?php 
    echo base_url() . 'users/update_permissions';
    ?>
' />
<input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
    echo base_url() . 'users/update_permissions/result/msg';
    ?>
' />
<input type='hidden' id='resultsdiv' name='resultsdiv' value='' />

<input name="layerid" id="layerid" type="hidden" value="" />
<input name="idlist" id="idlist" type="hidden" value="<?php 
    echo $id_list;
    ?>
" /></td></tr>
</table>
<?php 
    echo minify_js('users__update_permissions', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.pagination.js'));
}
コード例 #14
0
ファイル: new_link.php プロジェクト: nwtug/pss-version-1.0
    <input type='hidden' id='action' name='action' value='<?php 
echo base_url() . 'links/add';
?>
' />
    <input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
echo base_url() . 'links/manage';
?>
' />
    <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /></td></tr>
</table>







</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('links__new_link', array('jquery-2.1.1.min.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js'));
?>
</body>
</html>
コード例 #15
0
ファイル: home.php プロジェクト: nwtug/pss-version-1.0
?>
documents/index/a/standards'>Get Standard Forms</a></td></tr>
<tr><td><a href='<?php 
base_url();
?>
pages/regulations'>Procurement Regulations</a></td></tr>
<tr><td><a href='<?php 
echo BASE_URL;
?>
documents/index/a/training_activities'>Training Activities</a></td></tr>
<tr><td><a href='<?php 
echo BASE_URL;
?>
documents/index/a/important_links'>Important Links</a></td></tr>
<tr><td><div class='btn stripped-black' data-rel='pages/portal'>More Services</div></td></tr>
</table></div>

</td>
  <td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/public_footer');
?>

</table>
<?php 
echo minify_js('home', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js'));
?>
</body>
</html>
コード例 #16
0
ファイル: list_filter.php プロジェクト: nwtug/pss-version-1.0
?>
assets/css/external-fonts.css" type="text/css">
<link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/pss.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/pss.shadowbox.css" type="text/css" media="screen" />


<table class='normal-table filter-container'>

<tr><td><input type='text' id='phrase' name='phrase' placeholder='Question Search Phrase' data-final='phrase' value='<?php 
echo $this->native_session->get('faq__phrase');
?>
' style='width:100%;'/></td></tr>

<tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('faq')" style="width:100%;">Apply Filter</button>
<input name="layerid" id="layerid" type="hidden" value="" />
<?php 
if (!empty($t)) {
    echo "<input name='area' id='area' data-final='area' type='hidden' value='" . $t . "' />";
}
?>
</td></tr>
</table>
<?php 
echo minify_js('faqs__list_filter', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.pagination.js'));
コード例 #17
0
echo base_url();
?>
assets/css/jquery-ui.css"/>
<link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/external-fonts.css" type="text/css">
<link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/pss.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/pss.shadowbox.css" type="text/css" media="screen" />


<table class='normal-table'>

<tr><td><select id='search__searchsystem' name='search__searchsystem' class='drop-down' style='width:100%;'>
<?php 
echo get_option_list($this, 'search' . $t . $area);
?>
</select></td></tr>

<tr><td><button type="button" id="selectsearcharea" name="selectsearcharea" class="btn blue" onclick="applySearch()" style="width:100%;">Search</button>
</td></tr>
</table>
<?php 
echo minify_js('pages__system_search', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.list.js'));
コード例 #18
0
ファイル: new_group.php プロジェクト: nwtug/pss-version-1.0
    <input type='hidden' id='action' name='action' value='<?php 
echo base_url() . 'permissions/add';
?>
' />
    <input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
echo base_url() . 'permissions/manage';
?>
' />
    <input type='hidden' id='resultsdiv' name='resultsdiv' value='' /></td></tr>
</table>







</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('permissions__new_group', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.datepick.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js', 'pss.datepicker.js'));
?>
</body>
</html>
コード例 #19
0
ファイル: minify.php プロジェクト: rtoi/WebFramework
/**
 * Performs minifying.
 * 
 * This is best called from SysAdmin.
 * @param array $paths Array fo paths to scan for content
 * @param string $target_base_name Base name for the minify files
 * @param string $nc_argument NoCache argument to add to the filename
 * @return void
 */
function minify_all($paths, $target_base_name, $nc_argument)
{
    $target_base_name .= isSSL() ? ".1" : ".0";
    foreach (system_glob($target_base_name . ".*.*") as $f) {
        unlink($f);
    }
    $v = preg_replace('/[^\\d]*/', "", $nc_argument);
    minify_js($paths, $target_base_name . ".{$v}.js");
    minify_css($paths, $target_base_name . ".{$v}.css", $v);
}
コード例 #20
0
}
?>

<tr><td><input type='text' id='registeredemail' name='registeredemail' class='email' autocapitalize='off' placeholder="Registered Email Address" value='' style='width:calc(100% - 20px);' /></td></tr>
<tr><td style="padding-bottom:0px;"><button type="button" id="sendpassword" name="sendpassword" class="btn grey submitmicrobtn" style="width:100%;">Send Temporary Password</button>
    <input type="hidden" name="action" id="action" value="<?php 
echo base_url();
?>
accounts/forgot">
    <input type="hidden" name="resultsdiv" id="resultsdiv" value="forgotmsgdiv">
    </td></tr>
</table>
</form>
</div>


</td>
  <td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/public_footer');
?>


</table>
<?php 
echo minify_js('accounts__recover_password', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js'));
?>
</body>
</html>
コード例 #21
0
ファイル: suspend.php プロジェクト: nwtug/pss-version-1.0

<table class='normal-table microform ignoreclear'>

<tr><td>
<input type='text' id='expiry_date' name='expiry_date' class='calendar clickactivated' onclick='setDatePicker(this)' placeholder='Select Date the Suspension Expires' value='' style='width:100%;'/>
</td></tr>

<tr><td><textarea id='reason' name='reason' placeholder='Reason (Max 500 characters)' class='limit-chars' data-max='500' style='width:100%;height: 100px;'></textarea></td></tr>


<tr><td style='padding-bottom:40px;'><button type="button" id="suspendbtn" name="suspendbtn" class="btn blue submitmicrobtn" style="width:100%;">Suspend</button>
<input type='hidden' id='action' name='action' value='<?php 
echo base_url() . 'providers/suspend';
?>
' />
<input type='hidden' id='redirectaction' name='redirectaction' value='<?php 
echo base_url() . 'providers/suspend/result/Y';
?>
' />
<input type='hidden' id='resultsdiv' name='resultsdiv' value='' />

<input name="layerid" id="layerid" type="hidden" value="" />
<input name="idlist" id="idlist" type="hidden" value="<?php 
echo $id_list;
?>
" /></td></tr>
</table>
<?php 
echo minify_js('providers__suspend', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.datepicker.js', 'pss.pagination.js'));
コード例 #22
0
ファイル: index.php プロジェクト: ryanhellyer/comicjet
$base_url = 'http://dev.comicjet.com/';
$base_path = '/home/ryan/nginx/dev.comicjet.com/';
require 'minify.php';
/**
 * Minifying and concatenating JS.
 */
$scripts = array('functions.js', 'load-comic.js', 'clicks.js', 'templates/home-page.js', 'templates/error-404-page.js', 'templates/legal-notice-page.js', 'templates/root-page.js', 'translation.js', 'handle-back-click.js', 'init.js');
$script_path = $base_path . 'scripts/';
$combined_scripts = '
var home_url = "' . $base_url . '";
';
foreach ($scripts as $script) {
    $combined_scripts .= file_get_contents($script_path . $script);
}
$minified_script = minify_js($combined_scripts);
file_put_contents($base_path . 'public_html/minified.js', $minified_script);
/**
 * Minifying CSS.
 */
$css = file_get_contents('style.css');
$minified_css = minify_css($css);
file_put_contents($base_path . 'public_html/minified.css', $minified_css);
/**
 * Minify HTML.
 */
ob_start();
?>
<!DOCTYPE html>
<html lang="en_US">
<head>
コード例 #23
0
ファイル: js_compress.php プロジェクト: mackraja/practise
<script type="text/javascript">
<?php 
$jsFiles = array('javascript.js');
$buffer = '';
foreach ($jsFiles as $jsFile) {
    $buffer .= file_get_contents($jsFile);
}
echo minify_js($buffer);
?>
</script>
<?php 
function minify_js($input)
{
    if (trim($input) === '') {
        return $input;
    }
    return preg_replace(array('#\\s*("(?:[^"\\\\]++|\\\\.)*+"|\'(?:[^\'\\\\]++|\\\\.)*+\')\\s*|\\s*\\/\\*(?!\\!|@cc_on)(?>[\\s\\S]*?\\*\\/)\\s*|\\s*(?<![\\:\\=])\\/\\/.*(?=[\\n\\r]|$)|^\\s*|\\s*$#', '#("(?:[^"\\\\]++|\\\\.)*+"|\'(?:[^\'\\\\]++|\\\\.)*+\'|\\/\\*(?>.*?\\*\\/)|\\/(?!\\/)[^\\n\\r]*?\\/(?=[\\s.,;]|[gimuy]|$))|\\s*([!%&*\\(\\)\\-=+\\[\\]\\{\\}|;:,.<>?\\/])\\s*#s', '#;+\\}#', '#([\\{,])([\'])(\\d+|[a-z_][a-z0-9_]*)\\2(?=\\:)#i', '#([a-z0-9_\\)\\]])\\[([\'"])([a-z_][a-z0-9_]*)\\2\\]#i'), array('$1', '$1$2', '}', '$1$3', '$1.$3'), $input);
}
コード例 #24
0
ファイル: home.php プロジェクト: nwtug/pss-version-1.0



        </td>
        <td>&nbsp;</td>
    </tr>

    <?php 
$this->load->view('addons/public_footer');
?>

</table>

<?php 
echo minify_js('providers__home', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.list.js', 'pss.pagination.js'));
?>

<?php 
if (!empty($action)) {
    ?>
<script>
$(function() { 
	$(document).find('.filter-list').last().click(); 
});
</script>
<?php 
}
?>
</body>
</html>
コード例 #25
0




</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('accounts__admin_dashboard', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js'));
?>

<?php 
if (!empty($action)) {
    ?>
<script>
$(function() { 
	$(document).find('.filter-list').last().click(); 
});
</script>
<?php 
}
?>
</body>
</html>
コード例 #26
0
ファイル: list_filter.php プロジェクト: nwtug/pss-version-1.0
<input type='hidden' name='pde_id' id='pde_id' data-final='pde_id' value='<?php 
echo $this->native_session->get('contract__pde_id');
?>
' /></td></tr>

<tr><td><input type="text" id="search__tenders" name="search__tenders" placeholder="Search Tender Name" data-final='tender' class="drop-down searchable clear-on-empty" data-clearfield='tender_id' value="<?php 
echo $this->native_session->get('contract__tender');
?>
" style='width:100%;'/>
<input type='hidden' name='tender_id' id='tender_id' data-final='tender_id' value='<?php 
echo $this->native_session->get('contract__tender_id');
?>
' /></td></tr>

<tr><td><input type='text' id='phrase' name='phrase' placeholder='Name Search Phrase' data-final='phrase' value='<?php 
echo $this->native_session->get('contract__phrase');
?>
' style='width:100%;'/></td></tr>

<tr><td><select id='search__contractstatus' name='search__contractstatus' data-final='status' class='drop-down' style='width:100%;'>
<?php 
echo get_option_list($this, 'contractstatus', 'select', '', array('selected' => $this->native_session->get('contract__status')));
?>
</select></td></tr>

<tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('contract')" style="width:100%;">Apply Filter</button>
<input name="layerid" id="layerid" type="hidden" value="" /></td></tr>
</table>
<?php 
echo minify_js('apply_contract_filter', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.datepicker.js', 'pss.pagination.js'));
コード例 #27
0
    
    
    </td>
    <td style='vertical-align:top; width:20%;'><span class='bold'>NOTE:</span>
    <br />
    Any saved applications will
be deleted if not submitted within 30 days.
<br /><br />
If you have questions on how 
to fill this form, see our 
<a href='javascript:;' class='blue'>help section</a> or <a href='javascript:;' class='blue'>drop us a
message</a>.</td>
  </tr></table>
  
  
  
  </td>
  <td>&nbsp;</td>
</tr>


<?php 
$this->load->view('addons/public_footer');
?>

</table>
<?php 
echo minify_js('accounts__register_step_2', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js'));
?>
</body>
</html>
コード例 #28
0
ファイル: list_filter.php プロジェクト: nwtug/pss-version-1.0
</select></td></tr>

<tr><td><input type="text" id="search__pdes" name="search__pdes" placeholder="Search PDE Name" data-final='pde' class="drop-down searchable clear-on-empty" data-clearfield='pde_id' value="<?php 
echo $this->native_session->get('tender__pde');
?>
" style='width:100%;'/>
<input type='hidden' name='pde_id' id='pde_id' data-final='pde_id' value='<?php 
echo $this->native_session->get('tender__pde_id');
?>
' /></td></tr>


<tr><td><input type='text' id='phrase' name='phrase' placeholder='Subject Search Phrase' data-final='phrase' value='<?php 
echo $this->native_session->get('tender__phrase');
?>
' style='width:100%;'/></td></tr>


<tr><td><button type="button" id="applyfilterbtn" name="applyfilterbtn" class="btn blue" onClick="applyFilter('tender')" style="width:100%;">Apply Filter</button>
<input name="layerid" id="layerid" type="hidden" value="" />
<?php 
if (!empty($t)) {
    echo "<input name='status' id='status' data-final='status' type='hidden' value='published' />\n\t<input name='area' id='area' data-final='area' type='hidden' value='" . $t . "' />";
}
?>
</td></tr>
</table>

<?php 
echo minify_js('tenders__list_filter', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'jquery.datepick.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js', 'pss.datepicker.js', 'pss.pagination.js'));
コード例 #29
0
		function showError(error) {
			$("#cover").hide();
			switch(error.code) {
				case error.PERMISSION_DENIED:
					Materialize.toast('User denied request for Geolocation.', 8000);
					break;
				case error.POSITION_UNAVAILABLE:
					Materialize.toast('Location information is unavailable.', 8000);
					break;
				case error.TIMEOUT:
					Materialize.toast('The request to get user location timed out.', 8000);
					break;
				case error.UNKNOWN_ERROR:
					Materialize.toast('An unknown error occurred.', 8000);
					break;
			}
		}

        function populateHeader(lat, lng){
            $('#Lat').html(lat);
            $('#Long').html(lng);
        }

<?php 
$output = ob_get_contents();
ob_end_clean();
echo minify_js($output);
?>
</script>
コード例 #30
0
ファイル: manage.php プロジェクト: nwtug/pss-version-1.0




</td>
<td>&nbsp;</td>
</tr>

<?php 
$this->load->view('addons/secure_footer');
?>

</table>
<?php 
echo minify_js('procurement_plans__manage', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'pss.js', 'pss.shadowbox.js', 'pss.pagination.js', 'pss.fileform.js', 'pss.list.js'));
?>

<?php 
if (!empty($action)) {
    ?>
<script>
$(function() { 
	$(document).find('.filter-list').last().click(); 
});
</script>
<?php 
}
?>
</body>
</html>