예제 #1
0
파일: iframe2.php 프로젝트: name256/crm42
<?php

//ini_set( "display_errors" , 1 );
require_once 'app_code/config.inc.php';
require_once 'class/class.yui.php';
require_once 'class/class.contacts.php';
require_once 'app_code/zipcode.class.php';
require_once 'app_code/class.Event_Contacts.php';
require_once 'class/class.yui.php';
$page = new basic_page();
$page->auth->Checklogin();
$yui = new phpyui("/yui2/");
if (PHONE_SYSTEM == "asterisk") {
    require_once 'class/class.asterisk.php';
    $asterisk = new Asterisk();
}
$uid = $page->auth->Get_user_id();
$yui->add_datatable("asterisk", "xml", "temp.xml.php?user_id={$uid}", array(0 => array("key" => "call")), array(), array("RefreshEvery" => "1000"));
//  ini_set("display_errors" , 1 );
if (PHONE_SYSTEM == 'asterisk') {
    $web = $asterisk->get_web_ext($page->auth->Get_user_id());
    //      print_r( $web );
}
?>
<html >
<head>
    <script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script>
<link rel="stylesheet" type="text/css" href="sidebar.css" />
<!-- Just Playing Around With YUI, DELETE if needed -->
<link rel="stylesheet" type="text/css" href="/yui2/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="/yui2/tabview/assets/skins/sam/tabview.css" />
예제 #2
0
파일: temp.xml.php 프로젝트: name256/crm42
<?php

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//ini_set("display_errors", 1 );
header("content-type: text/xml");
$user_id = $_GET["user_id"];
echo '<?xml version="1.0"?>';
require_once 'class/global.config.php';
require_once 'class/database.inc.php';
require_once 'class/config.inc.php';
require_once 'class/class.yui.php';
require_once 'class/class.asterisk.php';
$yui = new phpyui("/yui2");
if (PHONE_SYSTEM == "asterisk") {
    $phone = new Asterisk();
    $calls = $phone->get_current_calls($user_id);
    $printr = print_r($calls, true);
    /* cid = number
     * name = full name
     * contact_id = cid
     * type = Type
     *
     */
    $printr = "<textarea style='width: 300px;height: 300px;'> {$printr} </textarea>";
    $printr = $yui->string_to_xml($printr);
} else {
    $calls = array();
}
예제 #3
0
<?php

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
ini_set("display_errors", 1);
require_once 'class/class.yui.php';
$yui = new phpyui("/yui2");
echo $yui->string_to_xml('<div id="About" class="Rec"><div id="HANDELNAME" class="Handle">TITLE</div><div class="Info">INNERHTML</div></div>');
?>
<div style="background:#2647a0 url(images/bluebar2.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;height: 80px;width: 100px;">&nbsp;</div>
예제 #4
0
파일: chat.xml.php 프로젝트: name256/crm42
header("Cache-Control: no-cache, must-revalidate");
// HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// Date in the past
echo '<?xml version="1.0"?>';
ini_set("DISPLAY_ERRORS", 0);
ini_set("error_reporting", '');
/*freeat23
 * Normaly most of these are included automaticly in the config, I just wanted to have the fewest ties to the platform
 * That makes it so it is the most flexable
 */
require_once 'class/global.config.php';
require_once 'class/database.inc.php';
require_once 'class/class.yui.php';
require_once 'class/class.chat.php';
$yui = new phpyui();
$chat = new base_chat();
$func = $_GET["function"];
$format = $_REQUEST["format"];
switch ($func) {
    case "web_search":
        $module_id = $_REQUEST["module_id"];
        $module_name = $_REQUEST["module_name"];
        $initial_message = $_REQUEST["message"];
        $session_id = $_REQUEST["session_id"];
        // This can be left blank
        $display_name = $_REQUEST["display_name"];
        $array = $chat->web_session($module_name, $module_id, $initial_message, $session_id, $display_name);
        break;
    case "list_sessions_full":
        $module_id = $_REQUEST["module_id"];
예제 #5
0
<?php

ini_set("display_errors", 1);
$project_id = $_GET["project_id"];
require_once "class/class.projects.php";
require_once "class/config.inc.php";
require_once "class/global.config.php";
require_once "class/class.displaynew.php";
require_once "class/class.displaynew.php";
require_once "class/class.note.php";
$disp = new displaynew();
$proj = new projects();
$yui = new phpyui('/yui2/');
$note = new Note();
$columbsPR = array();
$columbsPR[] = array("key" => "title", "label" => "Position", "sortable" => "true", "resizeable" => "true");
$columbsPR[] = array("key" => "first_name", "label" => "First");
$columbsPR[] = array("key" => "last_name", "label" => "Last ");
$columbsPR[] = array("key" => "email_id", "label" => "Email", "hidden" => "true");
$columbsPR[] = array("key" => "phone", "hidden" => "true");
$columbsPR[] = array("key" => "mobile", "hidden" => "true");
$columbsPR[] = array("key" => "user_id", "hidden" => "true");
$propertys = array();
$propertys["width"] = "300px";
$propertys["visible"] = "false";
$propertys["fixedcenter"] = "true";
$functions = array();
$sub = array();
$sub[] = array("event" => "cellClickEvent", "code" => "var target = oArgs.target; \r\nvar record = this.getRecord(target); \r\nalert('User ID' + record.getData('user_id') );");
$more = array();
$more["tablePropertys"] = array();