Example #1
0
$yui->add_yui_script("datasource/datasource-min.js");
$yui->add_yui_script("datatable/datatable-min.js");
$linksCols = array();
$linksCols[] = array("key" => "name", "label" => "Name", "sortable" => "true", "width" => "400px", "resizeable" => "true");
$linksCols[] = array("key" => "phone", "hidden" => "true");
$linksCols[] = array("key" => "email", "hidden" => "true");
$linksCols[] = array("key" => "onclick", "hidden" => "true");
$linksCols[] = array("key" => "id", "hidden" => "true");
$linkssub = array();
$linkssub[] = array("event" => "cellClickEvent", "code" => "var target = oArgs.target; \r\nvar record = this.getRecord(target); \r\nwindow.location=record.getData('onclick') + record.getData('id');");
$yui->add_datatable("projectLinks", "xml", "project_links_xml.php?project_id=" . $project_id, $linksCols, $linkssub);
$panelProp = array();
$panelProp["width"] = "800px";
$panelProp["visible"] = "false";
$panelProp["fixedcenter"] = "true";
$yui->add_panel("addUser", $panelProp, array());
$yui->add_panel("addLink", $panelProp, array());
$pf = array();
$pf[] = array("post" => "user_id", "id" => "pf_user_id");
$pf[] = array("post" => "action", "id" => "pf_action");
$pf[] = array("post" => "project_id", "id" => "pf_project_id");
$yui->add_ajax_post("user_edit", "project_user_ajax.php", $pf);
$page = new basic_page();
$page->auth->Checklogin();
$page->setPageKeywords('');
$page->setPageDescription('');
$page->setPageTitle("PROJECT INFO");
$page->setActiveButton('8');
$page->setImportCss9('contact_profile.css');
$page->setImportCss1('main_style.css');
$page->setImportCss2('form.css');