Esempio n. 1
0
function __ajax_desc_addform()
{
    global $gbl, $sgbl, $login, $ghtml;
    $object = $gbl->__c_object;
    $ghtml->print_message();
    $buttonpath = get_image_path("/button");
    $description = $ghtml->getActionDetails("/display.php?{$ghtml->get_get_from_current_post(null)}", null, $buttonpath, $path, $post, $file, $name, $image, $__t_identity);
    $img = "<img src={$image}>";
    $class = $ghtml->frm_o_cname;
    $dttype = $ghtml->frm_dttype;
    do_addform($object, $class, $dttype);
    $gbl->unsetSessionV('__tmp_redirect_var');
    $gbl->c_session->was();
    $v = ob_get_clean();
    $v = "{$img}{$v}";
    $ret = array('ajax_form_name' => $gbl->__ajax_form_name, 'ajax_need_var' => $gbl->__ajax_need_var, 'allbutton' => $gbl->__ajax_allbutton, 'lx__form' => $v);
    return $ret;
}
Esempio n. 2
0
    function printListAddForm($parent, $class)
    {
        global $gbl, $sgbl, $login, $ghtml;
        $vlist = exec_class_method($class, "addListForm", $parent, $class);
        if (!$vlist) {
            return;
        }
        $unique_name = "{$parent->getClName()}_{$class}";
        $showstring = "Show/Hide";
        $show_all_string = null;
        if ($login->getSpecialObject('sp_specialplay')->isOn('close_add_form')) {
            $visiblity = "visibility:hidden;display:none";
        } else {
            $visiblity = "visibility:visible;display:block";
        }
        $cdesc = get_description($class);
        $cdesc .= " for {$parent->nname}";
        $backgroundstring = "background:#fff;";
        $fontcolor = "black";
        $bordertop = "#d0d0d0";
        if ($sgbl->isBlackBackground()) {
            $backgroundstring = "background:#000;";
            $fontcolor = "#333333";
            $bordertop = "#444444";
        }
        ?>

	<table cellpadding="0" cellspacing="0" background="img/skin/kloxo/default/default/expand.gif">
		<tr>
			<td>
				<font align=left style='color:<?php 
        echo $fontcolor;
        ?>
;font-weight:bold'>
					<a style='color:<?php 
        echo $fontcolor;
        ?>
 ;font-weight:bold'
					   href="javascript:toggleVisibility('listaddform_<?php 
        echo $unique_name;
        ?>
');"> &nbsp; &nbsp; Click Here to
						Add <?php 
        echo $cdesc;
        ?>
 (<?php 
        echo $showstring;
        ?>
) </a> <?php 
        echo $show_all_string;
        ?>
				</font> &nbsp; &nbsp; &nbsp;
			</td>
		</tr>
	</table>

	<div id="listaddform_<?php 
        echo $unique_name;
        ?>
" style="<?php 
        echo $visiblity;
        ?>
">
		<table width="100%" border="0" cellpadding=0 style=' border: 0px solid '>
			<tr>
				<td width="10"></td>
				<td>
					<table cellpadding=0 align=center cellspacing=0 width=90%>
						<tr>
							<td>
								<?php 
        do_addform($parent, $class, null, true);
        ?>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</div>
		<?php 
    }
Esempio n. 3
0
<?php

chdir("../..");
include_once "htmllib/lib/include.php";
include_once "htmllib/phplib/display.php";
initProgram('admin');
do_addform($login, "client", array('var' => 'cttype', 'val' => "customer"));
Esempio n. 4
0
function __ac_desc_addform($object)
{
    global $gbl, $sgbl, $login, $ghtml;
    $cname = $ghtml->frm_o_cname;
    $dttype = $ghtml->frm_dttype;
    if (exec_class_method($cname, "consumeUnderParent")) {
        showParentProperty($object);
    }
    $selflist = $object->getSelfList();
    $alist = exec_class_method($cname, "createAddformAlist", $object, $cname, $dttype);
    if ($alist) {
        $ghtml->print_tab_block($alist);
    } else {
        $object->createShowPropertyList($alist);
        $nalist = $alist['property'];
        $ghtml->print_tab_block($nalist);
    }
    if ($selflist) {
        $ghtml->printShowSelectBox($selflist);
    }
    $ghtml->print_message();
    do_addform($object, $cname, $dttype);
    if (exec_class_method($cname, "createAddformList", $object, $cname)) {
        do_list_class($object, $cname);
    }
}