コード例 #1
0
ファイル: list.php プロジェクト: Albertopf/prueba
 // Accountancy code sell
 if (!empty($arrayfields['p.accountancy_code_buy']['checked'])) {
     print '<td>' . $objp->accountancy_code_buy . '</td>';
 }
 // Extra fields
 if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label)) {
     foreach ($extrafields->attribute_label as $key => $val) {
         if (!empty($arrayfields["ef." . $key]['checked'])) {
             print '<td';
             $align = $extrafields->getAlignFlag($key);
             if ($align) {
                 print ' align="' . $align . '"';
             }
             print '>';
             $tmpkey = 'options_' . $key;
             print $extrafields->showOutputField($key, $objp->{$tmpkey}, '', 1);
             print '</td>';
         }
     }
 }
 // Fields from hook
 $parameters = array('arrayfields' => $arrayfields, 'obj' => $obj);
 $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters);
 // Note that $action and $object may have been modified by hook
 print $hookmanager->resPrint;
 // Date creation
 if (!empty($arrayfields['p.datec']['checked'])) {
     print '<td align="center">';
     print dol_print_date($objp->date_creation, 'dayhour');
     print '</td>';
 }
コード例 #2
0
ファイル: list.php プロジェクト: NoisyBoy86/Dolibarr_test
				}
        		print '</td>';
        	}
        	// Extra fields
        	if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
    		{
    		    foreach($extrafields->attribute_label as $key => $val)
    		    {
    		        if (! empty($arrayfields["ef.".$key]['checked']))
    		        {
    		            print '<td';
    		            $align=$extrafields->getAlignFlag($key);
    		            if ($align) print ' align="'.$align.'"';
    		            print '>';
    		            $tmpkey='options_'.$key;
    		            print $extrafields->showOutputField($key, $obj->$tmpkey, '', 1);
    		            print '</td>';
    		        }
    		    }
    		}
    		// Fields from hook
    		$parameters=array('arrayfields'=>$arrayfields, 'obj'=>$obj);
    		$reshook=$hookmanager->executeHooks('printFieldListValue',$parameters);    // Note that $action and $object may have been modified by hook
    		print $hookmanager->resPrint;
    		// Date creation
    		if (! empty($arrayfields['t.datec']['checked']))
    		{
    		    print '<td align="center">';
    		    print dol_print_date($db->jdate($obj->date_creation), 'dayhour');
    		    print '</td>';
    		}
コード例 #3
0
ファイル: soc.php プロジェクト: nrjacker4/crm-php
            $langs->load("languages");
            $labellang = ($object->default_lang?$langs->trans('Language_'.$object->default_lang):'');
            print $labellang;
            print '</td></tr>';
        }

        // Other attributes
        $parameters=array('socid'=>$socid, 'colspan' => ' colspan="3"');
        $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action);    // Note that $action and $object may have been modified by hook
        if (empty($reshook) && ! empty($extrafields->attribute_label))
        {
            foreach($extrafields->attribute_label as $key=>$label)
            {
                $value=(isset($_POST["options_".$key])?$_POST["options_".$key]:(isset($object->array_options['options_'.$key])?$object->array_options['options_'.$key]:''));
                print '<tr><td>'.$label.'</td><td colspan="3">';
                print $extrafields->showOutputField($key,$value);
                print "</td></tr>\n";
            }
        }

        // Ban
        if (empty($conf->global->SOCIETE_DISABLE_BANKACCOUNT))
        {
            print '<tr><td>';
            print '<table width="100%" class="nobordernopadding"><tr><td>';
            print $langs->trans('RIB');
            print '<td><td align="right">';
            if ($user->rights->societe->creer)
            print '<a href="'.DOL_URL_ROOT.'/societe/rib.php?socid='.$object->id.'">'.img_edit().'</a>';
            else
            print '&nbsp;';
コード例 #4
0
ファイル: list.php プロジェクト: TAASA/Dolibarr-ERP-3.8.1
     $titlealt = 'default';
     if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) {
         $titlealt = $val['label'];
     }
     if ($obj->stcomm_id != $val['id']) {
         print '<a class="pictosubstatus" href="' . $_SERVER["PHP_SELF"] . '?socid=' . $obj->socid . '&stcomm=' . $val['code'] . '&action=setstcomm' . $param . ($page ? '&page=' . urlencode($page) : '') . '">' . img_action($titlealt, $val['code']) . '</a>';
     }
 }
 print '</td>';
 // Extrafields
 if (is_array($extrafields->attribute_list) && count($extrafields->attribute_list)) {
     foreach ($extrafields->attribute_list as $key => $val) {
         if ($val) {
             print '<td>';
             $paramkey = 'options_' . $key;
             print $extrafields->showOutputField($key, $obj->{$paramkey});
             print '</td>';
         }
     }
 }
 // Hook fields
 $parameters = array('obj' => $obj);
 $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters);
 // Note that $action and $object may have been modified by hook
 print $hookmanager->resPrint;
 print '<td align="right">';
 print $prospectstatic->LibStatut($prospectstatic->status, 5);
 print '</td>';
 print '<td></td>';
 print "</tr>\n";
 $i++;