当前位置: 首页>>代码示例>>PHP>>正文


PHP load_fwobject函数代码示例

本文整理汇总了PHP中load_fwobject函数的典型用法代码示例。如果您正苦于以下问题:PHP load_fwobject函数的具体用法?PHP load_fwobject怎么用?PHP load_fwobject使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了load_fwobject函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pratiche_element_1

function pratiche_element_1()
{
    if (check_perm_mod("pratiche", "r") == 1) {
        $thislist = load_fwobject("lists", "pratiche", 1);
        //print_r ($thislist);
        $output = draw_list($thislist, "pratiche");
        return $output;
    } else {
        return "";
    }
}
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:11,代码来源:objects.php

示例2: contact_element_1

function contact_element_1($link_type = 0)
{
    if (check_perm_mod("contact", "r") == 1) {
        $thissearch = load_fwobject("search", "contact", 1);
        $output = draw_form($thissearch[form]);
        if ($_GET[form_id] == $thissearch[form][name]) {
            $output .= menage_search($thissearch[search]);
        }
        return $output;
    } else {
        return "";
    }
}
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:13,代码来源:objects.php

示例3: calendar_element_2

function calendar_element_2()
{
    if ($_GET[scad_type] == 1) {
        $list_type = 5;
    } elseif ($_GET[scad_type] == 2) {
        $list_type = 4;
    } else {
        $list_type = 2;
    }
    if (check_perm_mod("calendar", "r") == 1) {
        $thislist = load_fwobject("lists", "calendar", $list_type);
        //print_r ($thislist);
        $output = draw_list($thislist, "calendar");
        return $output;
    } else {
        return "";
    }
}
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:18,代码来源:objects.php

示例4: ob_start

<?php

ob_start();
include "../../../framework/framework.php";
include "../functions.php";
// Define page specific text for template
$PAGE[PAGE_PICTITLE] = "ico_prat_med.gif";
$module = "pratiche";
if ($_SESSION[mobile] == true) {
    template_init(6);
    //mobile=6 - normale=2
} else {
    template_init();
    //mobile=6 - normale=2
}
$thisform = load_fwobject("form", "pratiche", 0);
if (isset($_GET[id]) && $_POST[form_id] != $thisform["name"]) {
    $PAGE[PAGE_INTITLE] = PRATICHE_UPD;
    $PAGE[TXT_TITLE] = PRATICHE_UPD;
    $PAGE_ELEMENT[PAGE][1][0][param] = $_GET[id];
    if (check_perm_obj($module, $_GET[id], "w")) {
        insert_last_viewed($_GET[id], $module);
        $rs = $DB->Execute("SELECT * FROM {$module} WHERE id=" . $_GET[id]);
        $result = $rs->FetchRow();
        if ($result[pr_valore] < 0) {
            $result[pr_valore_ignore] = $result[pr_valore];
        }
        $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
        $thisform[Fields][send][content] = "submit||" . PRATICHE_UPD . "||";
        $response[title] = PRATICHE_UPD_DONE;
        $response[text] = PRATICHE_UPD_DONE_TXT . "<br><br>" . make_button("pratiche_view.php", PRATICHE_BACK_LIST);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_pratiche.php

示例5: log_event

    if (check_perm_obj($module, $_GET[ref_parent], "d")) {
        if ($DB->Execute("DELETE FROM {$module} WHERE id=" . $_GET[id])) {
            log_event("D", "prestazioni", $_GET[id]);
            $res_del[title] = FW_DEL_OK;
            print draw_response($res_del);
        } else {
            $res_del[title] = FW_DEL_KO;
            print draw_response($res_del);
        }
    } else {
        $res_del[title] = FW_ERROR_NO_PERM_DEL;
        print draw_response($res_del);
    }
}
if (check_perm_mod($module, "r") == 1) {
    $thissearch = load_fwobject("search", "prestazioni", 0);
    //Check for parent Perm
    //$perm_parent = perm_sql_read("%[PERM]%","pratiche");
    //$perm_parent = str_replace ("permessi","p.permessi",$perm_parent);
    //$perm_parent = str_replace ("id","p.id",$perm_parent);
    //$true_sql="SELECT m.* FROM prestazioni m, pratiche p WHERE $perm_parent AND p.id=m.ref_id ";
    if ($_GET[form_id] == $thissearch[form][name]) {
        $error = check_form($thissearch[form], $_GET, $page);
        if ($error == 1) {
            if (count($_GET[ref_id][realval]) == 1 && strlen($_GET[ref_id][realval]) > 0) {
                $PAGE_ELEMENT[PAGE][1][0][param] = $_GET[ref_id][realval][0];
                if ($_SESSION[history] == 0) {
                    //$PAGE[PAGE_INTITLE].= " &nbsp;&nbsp;<span > ( <a href=\"".$CONF[url_base].$CONF[dir_modules]."prestazioni/pages/new_spesa_studio.php?ref_id=".$_GET[ref_id][realval][0]."\">".STUDIO_ADD_SPESA."</a> )";
                }
            }
            //print draw_form($thissearch[form],$module,$error,$_GET);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:prima_nota_view.php

示例6: template_init

<?php

include "../../../framework/framework.php";
// Define page specific text for template
$PAGE[TXT_TITLE] = ADMIN_MENU_0_3;
$PAGE[PAGE_INTITLE] = ADMIN_MENU_0_3;
$PAGE[PAGE_PICTITLE] = "ico_admin_med.gif";
$module = "admin";
template_init();
template_define_elements();
ob_start();
if (check_perm_mod($module, "r") == 1) {
    $thisobj = load_fwobject("show", "admin", 4);
    print draw_object($thisobj, intval($_GET[id]), $module);
} else {
    $response[title] = FW_ERROR_NO_PERM;
    $response[text] = FW_ERROR_NO_PERM_TXT;
    $iserror = 1;
    print draw_response($response);
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
final_render();
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:23,代码来源:ta_show.php

示例7: template_init

} else {
    template_init();
    //mobile=6 - normale=2
}
//template_init(); //mobile=6 - desktop =()
ob_start();
$rs = $DB->Execute("SELECT * FROM {$module} WHERE id=" . $_GET[id]);
if (!($result = $rs->FetchRow())) {
    $response[title] = FW_ERROR_NO_PERM;
    $response[text] = FW_ERROR_NO_PERM_TXT;
    $iserror = 1;
    print draw_response($response);
} else {
    if (check_perm_obj($module, $result[ref_prat], "r")) {
        $PAGE_ELEMENT[PAGE][1][0][param] = $result[ref_prat];
        $thisobj = load_fwobject("show", "calendar", 0);
        //Prende i dati della pratica
        $rsP = $DB->Execute("SELECT * FROM pratiche WHERE id=" . $result[ref_prat]);
        $resultP = $rsP->FetchRow();
        $id = $resultP[id];
        $curia = str_replace("'", "&acute;", $resultP[pr_comp_desc]);
        $luogocuria = str_replace("'", "&acute;", $resultP[pr_luogo_uff_giud]);
        $giudice = str_replace("'", "&acute;", $resultP[pr_giudice]);
        $avversario = str_replace("'", "&acute;", $resultP[pr_referral]);
        $nRuolo = str_replace("'", "&acute;", $resultP[pr_nRuolo]);
        //Prende i dati relativi al contributo unificato
        $cu_valore = $resultP[pr_valore];
        $cu_giud = $resultP[pr_comp_cod];
        $cu_tipo = $resultP[pr_tipo];
        //calcola il contributo
        $c_un = CalcolaContributoUnificato($cu_valore, $cu_giud, $cu_tipo);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:appunt_show.php

示例8: while

$cnt = 0;
$rs3 = $DB->Execute("SELECT DISTINCT nota1,nota2 FROM prestazioni m, pratiche p WHERE m.ref_id=p.id AND p.pr_ref_idcliente=" . $_GET[id] . " AND nota1 <> '' AND nota2 <> ''");
while (!$rs3->EOF) {
    if ($cnt > 0) {
        $billem .= ", ";
    }
    $nota_emessa = $rs3->FetchRow();
    $billem .= $nota_emessa[nota1] . '/' . $nota_emessa[nota2];
    $cnt++;
}
//Search for fatture done
$cnt = 0;
$rs2 = $DB->Execute("SELECT * FROM contact WHERE id=" . $_GET[id]);
$cont = $rs2->FetchRow();
$tot[billem] = $billem;
$tot[fattem] = $fattem;
$tot[codice] = $cont[codice];
$tot[nome] = $cont[nome];
$tot[pr_oggetto] = $prat[pr_oggetto];
$tot[pr_valore] = $prat[pr_valore];
$tot[pr_fido] = $prat[pr_fido];
$tot[subt1] = $tot[onor] + $tot["dir"];
$tot[subt2] = $tot[simp] + $tot[snimp];
$tot[subt3] = $tot[subt1] + $tot[subt2];
$tot[subm] = $tot[acco] + $tot[anti];
$tot[subf] = $tot[subt3] - $tot[subm];
$thisobj = load_fwobject("show", "contact", 1);
print draw_object($thisobj, "", $module, $tot);
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
final_render();
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:contact_sitcont.php

示例9: template_init

<?php

include "../../../framework/framework.php";
// Define page specific text for template
$PAGE[PAGE_PICTITLE] = "ico_admin_med.gif";
$module = "admin";
template_init();
template_define_elements();
ob_start();
$thisform = load_fwobject("form", $module, 13);
if (isset($_GET[id]) && $_POST[form_id] != $thisform["name"]) {
    $PAGE[PAGE_INTITLE] = ADMIN_TER_PROC_UPD;
    $PAGE[TXT_TITLE] = ADMIN_TER_PROC_UPD;
    $rs = $DB->Execute("SELECT * FROM INT_termini_processuali WHERE id=" . $_GET[id]);
    $result = $rs->FetchRow();
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_TER_PROC_UPD . "||";
    $response[title] = ADMIN_TER_PROC_UPD_DONE;
    $response[text] = ADMIN_TER_PROC_UPD_DONE_TXT . "<br><br>" . make_button("ter_proc_view.php", ADMIN_TER_PROC_BACK_LIST);
} elseif (isset($_GET[id])) {
    $result = $_POST;
    $PAGE[PAGE_INTITLE] = ADMIN_TER_PROC_UPD;
    $PAGE[TXT_TITLE] = ADMIN_TER_PROC_UPD;
    $response[title] = ADMIN_TER_PROC_UPD_DONE;
    $response[text] = ADMIN_TER_PROC_UPD_DONE_TXT . "<br><br>" . make_button("ter_proc_view.php", ADMIN_TER_PROC_BACK_LIST);
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_TER_PROC_UPD . "||";
} else {
    $PAGE[PAGE_INTITLE] = ADMIN_TER_PROC_ADD;
    $PAGE[TXT_TITLE] = ADMIN_TER_PROC_ADD;
    $response[title] = ADMIN_TER_PROC_ADD_DONE;
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_ter_proc.php

示例10: ob_start

ob_start();
include "../../../framework/framework.php";
include "../functions.php";
// Define page specific text for template
$PAGE[PAGE_PICTITLE] = "ico_doc_01_med.gif";
$module = "document";
if ($_SESSION[mobile] == true) {
    template_init(6);
    //mobile=6 - normale=2
} else {
    template_init();
    //mobile=6 - normale=2
}
//template_init(); //mobile=6 - desktop =()
$thisform = load_fwobject("form", "document", 0);
if (isset($_GET[id])) {
    $PAGE[PAGE_INTITLE] = DOCUMENT_UPD;
    $PAGE[TXT_TITLE] = DOCUMENT_UPD;
    $rsf = $DB->Execute("SELECT * FROM {$module} where id=" . $_GET[id]);
    $curfile = $rsf->FetchRow();
    $PAGE_ELEMENT[PAGE][1][0][param] = $curfile[ref_prat];
    /*	if (!check_perm_obj("pratiche",$_GET[pid],"w"))
    	{ 
    		$response[title]=FW_ERROR_NO_PERM;
    		$response[text]=FW_ERROR_NO_PERM_TXT;
    		$iserror=1;
    		print draw_response($response);
    	}
    */
}
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:30,代码来源:mod_document.php

示例11: template_init

$module = "contact";
if ($_SESSION[mobile] == true) {
    template_init(6);
    //mobile=6 - normale=2
} else {
    if (isset($_GET['openpop']) && ($_GET['openpop'] = 1)) {
        template_init(4);
    } else {
        template_init();
    }
    //mobile=6 - normale=2
}
//template_init(); //mobile=6 - desktop =()
template_define_elements();
//Load the form
$thisform = load_fwobject("form", "contact", 0);
if (isset($_GET[id]) && $_POST[form_id] != $thisform["name"]) {
    $PAGE[PAGE_INTITLE] = CONTACT_UPD_CONTACT;
    $PAGE[TXT_TITLE] = CONTACT_UPD_CONTACT;
    if (check_perm_obj($module, $_GET[id], "w")) {
        $rs = $DB->Execute("SELECT * FROM {$module} WHERE id=" . $_GET[id]);
        $result = $rs->FetchRow();
        $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
        $thisform[Fields][send][content] = "submit||" . CONTACT_UPD_CONTACT . "||";
        $response[title] = CONTACT_UPD_DONE;
        $response[text] = CONTACT_UPD_DONE . "<br><br>" . make_button("contacts_view.php", CONTACT_BACK_LIST);
    } else {
        $response[title] = FW_ERROR_NO_PERM;
        $response[text] = FW_ERROR_NO_PERM_TXT;
        $iserror = 1;
        print draw_response($response);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_contact.php

示例12: template_init

<?php

include "../../../framework/framework.php";
// Define page specific text for template
$PAGE[TXT_TITLE] = PRATICHE_MENU_0;
$PAGE[PAGE_INTITLE] = PRATICHE_MENU_0;
$PAGE[PAGE_PICTITLE] = "ico_clienti_med.gif";
$module = "pratiche";
if ($_SESSION[mobile] == true) {
    template_init(6);
    //mobile=6 - normale=2
} else {
    template_init();
    //mobile=6 - normale=2
}
//template_init(); //mobile=6 - desktop =()
template_define_elements();
ob_start();
$thisobj = load_fwobject("show", "pratiche", 0);
print draw_object($thisobj, intval($_GET[id]), $module);
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
final_render();
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:23,代码来源:pratiche_show.php

示例13: make_button

     $thisobj["Fields"]["button_scad"] = make_button($CONF[url_base] . $CONF[dir_modules] . "calendar/pages/app_view.php?form_id=listcont&form_page=1&ref_prat[text]=&ref_prat[realval][]=" . $result[ref_prat], PRATICHE_IMPEGN);
     $thisobj["Fields"]["button_doc"] = make_button($CONF[url_base] . $CONF[dir_modules] . "document/pages/documents_view.php?form_id=listdoc&form_page=1&ref_prat[text]=&ref_prat[realval][]=" . $result[ref_prat], DOCUMENT_TITLE);
     $thisobj["Fields"]["button_dbox"] = make_button($CONF[url_base] . $CONF[dir_modules] . "document/pages/dropbox_view.php?form_id=listdoc&form_page=1&ref_prat[text]=&ref_prat[realval][]=" . $result[ref_prat], DOCUMENT_TITLE_DROPBOX);
     $keymap[54] = $CONF[url_base] . $CONF[dir_modules] . "/pratiche/pages/pratiche_show.php?id=" . $result[ref_prat];
     $keymap[55] = $CONF[url_base] . $CONF[dir_modules] . "/prestazioni/pages/prestazioni_view.php?form_id=listprestaz&form_page=1&ref_id[text]=&ref_id[realval][]=" . $result[ref_prat];
     $keymap[56] = $CONF[url_base] . $CONF[dir_modules] . "/calendar/pages/app_view.php?form_id=listcont&form_page=1&ref_prat[text]=&ref_prat[realval][]=" . $result[ref_prat];
     $keymap[57] = $CONF[url_base] . $CONF[dir_modules] . "document/pages/documents_view.php?form_id=listdoc&form_page=1&ref_prat[text]=&ref_prat[realval][]=" . $result[ref_prat];
     print set_js_keyhandler($keymap);
 } else {
     $thisobj["Fields"]["button_prat"] = "";
     $thisobj["Fields"]["button_pres"] = "";
     $thisobj["Fields"]["button_scad"] = "";
     $thisobj["Fields"]["button_doc"] = "";
 }
 // HISTORY
 $thislist = load_fwobject("lists", "document", 1);
 $thislist[sql_select] .= $_GET[id];
 $rs_tmp = $DB->Execute($thislist[sql_select]);
 if ($result[ref_id] == 0) {
     $rs_lock = $DB->Execute("SELECT * from {$module} WHERE (id=" . $result[id] . " or ref_id=" . $result[id] . ") AND `lock`>0");
 } else {
     $rs_lock = $DB->Execute("SELECT * from {$module} WHERE (id=" . $result[ref_id] . " or ref_id=" . $result[ref_id] . ") AND `lock`>0");
 }
 $thisobj["Fields"]["button_v"] = '<input type="button" value="' . DOCUMENT_OPEN_WEB . '" class="bot-submit" onClick="newwin = window.open(\'' . $CONF[url_base] . $CONF[dir_upload] . 'document/' . $result[filename] . '-' . $result[id] . '-' . $result[version] . '.' . $result[ext] . '\',\'newwin\',\'left=0,top=0,screenX=0,screenY=0,width=800,height=600,resizable=yes,scrollbars=yes\'); newwin.resizeTo(screen.width,screen.height);">';
 $thisobj["Fields"]["button_w"] = FW_MODIFY;
 $thisobj["Fields"]["button_d"] = FW_DELETE;
 if ($rs_lock->RecordCount() == 0) {
     $thisobj["Fields"]["button_v"] = '<input type="button" value="' . DOCUMENT_OPEN_WEB . '" class="bot-submit" onClick="newwin = window.open(\'' . $CONF[url_base] . $CONF[dir_upload] . 'document/' . $result[filename] . '-' . $result[id] . '-' . $result[version] . '.' . $result[ext] . '\',\'newwin\',\'left=0,top=0,screenX=0,screenY=0,width=800,height=600,resizable=yes,scrollbars=yes\'); newwin.resizeTo(screen.width,screen.height);">';
     if ($_SESSION[history] == 0) {
         $thisobj["Fields"]["button_w"] = make_button("mod_document.php?id=" . $_GET[id], FW_MODIFY);
     } else {
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:document_show.php

示例14: date

    $curmonth = date("m");
}
if (isset($_GET[year]) && is_numeric($_GET[year])) {
    $curyear = $_GET[year];
} else {
    $curyear = date("Y");
}
if ($_SESSION[mobile] == true) {
    template_init(6);
    //mobile=6 - normale=2
} else {
    template_init();
    //mobile=6 - normale=2
}
//template_init(); //mobile=6 - desktop =()
$thisform = load_fwobject("form", "calendar", 0);
//Continua INS
if (!isset($_GET[id])) {
    //unset ($thisform[Fields][continuaIns]);
}
?>


<?php 
if (isset($_GET[id])) {
    $rs = $DB->Execute("SELECT * FROM {$module} WHERE id=" . $_GET[id]);
    $resultz = $rs->FetchRow();
    $PAGE_ELEMENT[PAGE][1][0][param] = $resultz[ref_prat];
}
if (isset($_GET[id]) && $_POST[form_id] != $thisform["name"]) {
    $PAGE[PAGE_INTITLE] = CALENDAR_UPD_APP;
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_app.php

示例15: template_init

<?php

include "../../../framework/framework.php";
// Define page specific text for template
$PAGE[TXT_TITLE] = ADMIN_MENU_0_5;
$PAGE[PAGE_INTITLE] = ADMIN_MENU_0_5 . " (tariffario forense)";
$PAGE[PAGE_PICTITLE] = "ico_admin_med.gif";
$module = "admin";
template_init();
template_define_elements();
ob_start();
if (check_perm_mod($module, "r") == 1) {
    $thislist = load_fwobject("lists", "admin", 16);
    print draw_list($thislist, $module);
} else {
    $response[title] = FW_ERROR_NO_PERM;
    $response[text] = FW_ERROR_NO_PERM_TXT;
    $iserror = 1;
    print draw_response($response);
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
final_render();
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:23,代码来源:ta_STD_view.php


注:本文中的load_fwobject函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。