Exemplo n.º 1
0
		if (!isActive) {
			action = 'deactivate';
		} 
                 
                var postToggle =
                       {
                          "selected_plan": selected_plan,
                          "plan_pid":  selected_plan_pid,
                          "plan_status": action
                       }
               var dataStringToggle = JSON.stringify(postToggle);

		$.post(
	  '<?php 
echo _base_url() . '/library/RulesPlanMappingEventHandlers_ajax.php?action=togglePlanStatus';
?>
'
               , dataStringToggle).done(function(resp) {
                        var obj = $.parseJSON(resp);
                           if (obj == '007')
                            {
                              alert('<?php 
echo xls('Plan Status Changed');
?>
');
                             }
                           if (obj == '002') {
                              alert('<?php 
echo xls('Plan Status Failed to Change');
?>
Exemplo n.º 2
0
    ?>
			<?php 
}
?>
		</div> <!-- end .log-wrap -->
	<div id="catalog-sidebar" class="catalog-sidebar">
		<h2 class="pressbooks-logo">
			<a href="<?php 
echo network_site_url();
?>
">PressBooks</a>
		</h2>
		<p class="tag-menu assistive-text">Menu</p>
		<div class="sidebar-inner-wrap">
			<a href="<?php 
echo _base_url();
?>
">
			<img class="catalog-logo" src="<?php 
echo _logo_url($profile);
?>
" alt="catalog-logo" width="100" height="99" />
			</a>
			<p class="about-blurb"><?php 
if (!empty($profile['pb_catalog_about'])) {
    echo preg_replace('/<p[^>]*>(.*)<\\/p[^>]*>/i', '$1', $profile['pb_catalog_about']);
}
// Make valid HTML by removing first <p> and last </p>
?>
</p>
			<br />
Exemplo n.º 3
0
function css_src($file)
{
    echo _base_url() . '/www/css/' . $file;
}