print '</td>'; print '<td></td>'; print '</tr>'; print '</table>'; print '<br>'; } // Subsidiaries list $result=show_subsidiaries($conf,$langs,$db,$object); // Contacts list if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) { $result=show_contacts($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id); } // Addresses list if (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT)) { $result=show_addresses($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id); } // Projects list $result=show_projects($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id); } }
} // Add action if ($conf->agenda->enabled && !empty($conf->global->MAIN_REPEATTASKONEACHTAB)) { if ($user->rights->agenda->myactions->create) { print '<a class="butAction" href="' . DOL_URL_ROOT . '/comm/action/fiche.php?action=create&socid=' . $objsoc->id . '">' . $langs->trans("AddAction") . '</a>'; } else { print '<a class="butAction" title="' . dol_escape_js($langs->trans("NotAllowed")) . '" href="#">' . $langs->trans("AddAction") . '</a>'; } } /*if ($user->rights->societe->contact->creer) { print '<a class="butAction" href="'.DOL_URL_ROOT.'/contact/fiche.php?socid='.$objsoc->id.'&action=create">'.$langs->trans("AddContact").'</a>'; }*/ print '</div>'; print "<br>\n"; if (!empty($conf->global->MAIN_REPEATCONTACTONEACHTAB)) { print '<br>'; // List of contacts show_contacts($conf, $langs, $db, $objsoc, $_SERVER["PHP_SELF"] . '?socid=' . $objsoc->id); } if (!empty($conf->global->MAIN_REPEATTASKONEACHTAB)) { // List of todo actions show_actions_todo($conf, $langs, $db, $objsoc); // List of done actions show_actions_done($conf, $langs, $db, $objsoc); } } else { dol_print_error($db, 'Bad value for socid parameter'); } $db->close(); llxFooter('$Date: 2011/08/08 16:15:05 $ - $Revision: 1.283 $');
<?php /* * Documents generes */ $filedir=$conf->societe->multidir_output[$this->control->tpl['entity']].'/'.$socid; $urlsource=$_SERVER["PHP_SELF"]."?socid=".$socid; $genallowed=$user->rights->societe->creer; $delallowed=$user->rights->societe->supprimer; $somethingshown=$formfile->show_documents('company',$socid,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,28,0,'',0,'',$objcanvas->control->object->default_lang); ?> </td> <td></td> </tr> </table> <br> <?php // Subsidiaries list $result=show_subsidiaries($conf,$langs,$db,$soc); // Contacts list $result=show_contacts($conf,$langs,$db,$soc); // Projects list $result=show_projects($conf,$langs,$db,$soc); ?> <!-- END PHP TEMPLATE -->
} } /*if ($user->rights->societe->contact->creer) { print "<a class=\"butAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&action=create\">".$langs->trans("AddContact")."</a>"; }*/ print '</div>'; print '<br>'; if (! empty($conf->global->MAIN_REPEATCONTACTONEACHTAB)) { print '<br>'; // List of contacts show_contacts($conf,$langs,$db,$societe,$_SERVER["PHP_SELF"].'?socid='.$societe->id); } if (! empty($conf->global->MAIN_REPEATTASKONEACHTAB)) { // List of todo actions show_actions_todo($conf,$langs,$db,$societe); // List of done actions show_actions_done($conf,$langs,$db,$societe); } } else { dol_print_error($db); }
<?php /* * Documents generes */ $filedir=$conf->societe->dir_output.'/'.$socid; $urlsource=$_SERVER["PHP_SELF"]."?socid=".$socid; $genallowed=$user->rights->societe->creer; $delallowed=$user->rights->societe->supprimer; $somethingshown=$formfile->show_documents('company',$socid,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,28,0,'',0,'',$objcanvas->control->object->default_lang); ?> </td> <td></td> </tr> </table> <br> <?php // Subsidiaries list $result=show_subsidiaries($conf,$langs,$db,$object); // Contacts list $result=show_contacts($conf,$langs,$db,$object); // Projects list $result=show_projects($conf,$langs,$db,$object); ?> <!-- END PHP TEMPLATE -->
<?php /** * Created by JetBrains PhpStorm. * User: Lukas * Date: 30.05.13 * Time: 14:32 * To change this template use File | Settings | File Templates. */ include "messenger.php"; $user_ID = $_POST['user_id']; $resultDataJSON = show_contacts($user_ID); header('Content-Type: application/json'); echo $resultDataJSON;