예제 #1
0
<?php

// Copyright (C) 2010-2011 Aron Racho <*****@*****.**>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<head>
    <script language="javascript" src="<?php 
js_src('bucket.js');
?>
"></script>

    <script type="text/javascript">
        var bucket = new bucket( {} );
        bucket.init();
    </script>
</head>

<!-- category -->
<?php 
echo textfield_row(array("id" => "fld_category_lbl", "name" => "fld_category_lbl", "title" => xl("Category"), "value" => $criteria->getCategoryLabel()));
?>
<br/><a href="javascript:;" id="change_category" onclick="top.restoreSession()">(change)</a>
<input type="hidden" id="fld_category" name="fld_category" value="<?php 
echo $criteria->category;
?>
" />
예제 #2
0
<?php

// Copyright (C) 2010-2011 Aron Racho <*****@*****.**>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
$rule = $viewBean->rule;
?>

<script language="javascript" src="<?php 
js_src('edit.js');
?>
"></script>
<script type="text/javascript">
    var edit = new rule_edit( {});
    edit.init();
</script>

<table class="header">
  <tr>
        <td class="title"><?php 
echo $rule->id ? out(xl('Rule Edit')) : out(xl('Rule Add'));
?>
</td>
        <td>
            <a href="index.php?action=detail!view&id=<?php 
echo out($rule->id);
?>
" class="iframe_medium css_button" onclick="top.restoreSession()">
예제 #3
0
echo out(xl('Remove all rules from plan'));
?>
',
	itemsCount:'<?php 
echo out(xl('rules already in plan'));
?>
'
});
</script>

<script language="javascript" src="<?php 
js_src('list.js');
?>
"></script>
<script language="javascript" src="<?php 
js_src('jQuery.fn.sortElements.js');
?>
"></script>

<script type="text/javascript">
	$(document).ready(function() {	
		//load plans	
		$("#cdr-plans").load('<?php 
library_src('RulesPlanMappingEventHandlers_ajax.php');
?>
');
		
	    $.post(
	    	'<?php 
echo _base_url() . '/library/RulesPlanMappingEventHandlers_ajax.php?action=getNonCQMPlans';
?>
예제 #4
0
// Copyright (C) 2010-2011 Aron Racho <*****@*****.**>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>

<head>
    <script language="javascript" src="<?php 
js_src('jQuery.autocomplete.js');
?>
"></script>
    <script language="javascript" src="<?php 
js_src('typeahead.js');
?>
"></script>
    <link rel="stylesheet" href="<?php 
css_src('rules.css');
?>
" type="text/css">
    <link rel="stylesheet" href="<?php 
css_src('jQuery.autocomplete.css');
?>
" type="text/css">

    <script type="text/javascript">
        var type_ahead = new type_ahead( {
            url: "index.php?action=edit!codes",
            inputId: "fld_value"
예제 #5
0
<?php

// Copyright (C) 2010-2011 Aron Racho <*****@*****.**>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
$rule = $viewBean->rule;
?>

<script language="javascript" src="<?php 
js_src('detail.js');
?>
"></script>
<script type="text/javascript">
    var detail = new rule_detail( {editable: <?php 
echo $rule->isEditable() ? "true" : "false";
?>
});
    detail.init();
</script>

<table class="header">
  <tr >
        <td class="title"><?php 
echo out(xl('Rule Detail'));
?>
</td>
        <td>
            <a href="index.php?action=browse!list" class="iframe_medium css_button" onclick="top.restoreSession()"><span><?php 
예제 #6
0
<?php

// Copyright (C) 2010-2011 Aron Racho <*****@*****.**>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<head>
    <script language="javascript" src="<?php 
js_src('custom.js');
?>
"></script>

    <script type="text/javascript">
        var custom = new custom( { selectedColumn: '<?php 
echo out($criteria->column);
?>
' } );
        custom.init();
    </script>
</head>

<!-- table -->
<p class="row">
    <span class="left_col colhead req" data-field="fld_table"><?php 
echo xl('Table');
?>
</span>
    <span class="end_col">