本文整理汇总了PHP中FormCompany::selectTypeContact方法的典型用法代码示例。如果您正苦于以下问题:PHP FormCompany::selectTypeContact方法的具体用法?PHP FormCompany::selectTypeContact怎么用?PHP FormCompany::selectTypeContact使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormCompany
的用法示例。
在下文中一共展示了FormCompany::selectTypeContact方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</div>
<div class="tagtd"><?php
echo $conf->global->MAIN_INFO_SOCIETE_NOM;
?>
</div>
<div class="tagtd maxwidthonsmartphone"><?php
echo $form->select_dolusers($user->id, 'userid', 0, !empty($userAlreadySelected) ? $userAlreadySelected : null, 0, null, null, 0, 56);
?>
</div>
<div class="tagtd maxwidthonsmartphone">
<?php
$tmpobject = $object;
if ($object->element == 'shipping' && is_object($objectsrc)) {
$tmpobject = $objectsrc;
}
echo $formcompany->selectTypeContact($tmpobject, '', 'type', 'internal');
?>
</div>
<div class="tagtd"> </div>
<div class="tagtd" align="right"><input type="submit" class="button" value="<?php
echo $langs->trans("Add");
?>
"></div>
</form>
<?php
}
if (empty($hideaddcontactforthirdparty)) {
$var = !$var;
?>
示例2: projectLinesPerDay
$j = 0;
projectLinesPerDay($j, 0, $tasksarray, $level, $projectsrole, $tasksrole, $mine, $restrictviewformytask, $daytoparse);
} else {
print '<tr><td colspan="10">' . $langs->trans("NoTasks") . '</td></tr>';
}
print "</table>";
dol_fiche_end();
print '<div class="center">';
print '<input type="submit" class="button"' . ($disabledtask ? ' disabled' : '') . ' value="' . $langs->trans("Save") . '">';
print '</div>';
print '</form>';
print '<script type="text/javascript">';
print "jQuery(document).ready(function () {\n";
print ' jQuery(".timesheetalreadyrecorded").tipTip({ maxWidth: "600px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50, content: \'' . dol_escape_js($langs->trans("TimeAlreadyRecorded", $user->getFullName($langs))) . '\'});';
print "});";
print '</script>';
// Add a new project/task
print '<br>';
print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
print '<input type="hidden" name="action" value="assign">';
print '<input type="hidden" name="mode" value="' . $mode . '">';
print '<input type="hidden" name="year" value="' . $year . '">';
print '<input type="hidden" name="month" value="' . $month . '">';
print '<input type="hidden" name="day" value="' . $day . '">';
print $langs->trans("AssignTaskToMe") . '<br>';
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, 1, 1);
print $formcompany->selectTypeContact($object, '', 'type', 'internal', 'rowid', 0);
print '<input type="submit" class="button" name="submit" value="' . $langs->trans("AssignTask") . '">';
print '</form>';
llxFooter();
$db->close();
示例3:
print "<tr $bc[$var]>";
print '<td nowrap="nowrap">';
print img_object('','user').' '.$langs->trans("Users");
print '</td>';
print '<td colspan="1">';
print $conf->global->MAIN_INFO_SOCIETE_NOM;
print '</td>';
print '<td colspan="1">';
// On recupere les id des users deja selectionnes
$html->select_users($user->id,'contactid',0);
print '</td>';
print '<td>';
$formcompany->selectTypeContact($project, '', 'type','internal','rowid');
print '</td>';
print '<td align="right" colspan="3" ><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
print '</tr>';
print '</form>';
// Line to add external contact. Only if project is linked to a third party.
if ($project->societe->id)
{
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$id.'" method="POST">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="addcontact">';
print '<input type="hidden" name="source" value="external">';
print '<input type="hidden" name="id" value="'.$id.'">';
示例4: FormCompany
print '</td>';
print '<td>'.$langs->trans('MARGIN_METHODE_FOR_DISCOUNT_DETAILS').'</td>';
print '</tr>';
print '</form>';
// INTERNAL CONTACT TYPE USED AS COMMERCIAL AGENT
$var=!$var;
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print "<input type=\"hidden\" name=\"action\" value=\"contact\">";
print '<tr '.$bc[$var].'>';
print '<td>'.$langs->trans("AgentContactType").'</td>';
print '<td align="left">';
$formcompany = new FormCompany($db);
$facture = new Facture($db);
print $formcompany->selectTypeContact($facture, $conf->global->AGENT_CONTACT_TYPE, "AGENT_CONTACT_TYPE","internal","code",1);
print '</td>';
print '<td>';
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
print '</td>';
print '<td>'.$langs->trans('AgentContactTypeDetails').'</td>';
print '</tr>';
print '</form>';
print '</table>';
dol_fiche_end();
print '<br>';
llxFooter();
示例5:
print "<tr $bc[$var]>";
print '<td nowrap="nowrap">';
print img_object('','user').' '.$langs->trans("Users");
print '</td>';
print '<td colspan="1">';
print $mysoc->name;
print '</td>';
print '<td colspan="1">';
//$userAlreadySelected = $facture->getListContactId('internal'); // On ne doit pas desactiver un contact deja selectionner car on doit pouvoir le seclectionner une deuxieme fois pour un autre type
$html->select_users($user->id,'contactid',0,$userAlreadySelected);
print '</td>';
print '<td>';
$formcompany->selectTypeContact($facture, '', 'type','internal');
print '</td>';
print '<td align="right" colspan="3" ><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
print '</tr>';
print '</form>';
print '<form action="contact.php?facid='.$id.'" method="post">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="addcontact">';
print '<input type="hidden" name="source" value="external">';
print '<input type="hidden" name="id" value="'.$id.'">';
// Ligne ajout pour contact externe
$var=!$var;
print "<tr $bc[$var]>";
示例6:
print '<input type="hidden" name="source" value="internal">';
print '<input type="hidden" name="id" value="' . $id . '">';
// Ligne ajout pour contact interne
print '<tr ' . $bc[$var] . '>';
print '<td nowrap="nowrap">';
print img_object('', 'user') . ' ' . $langs->trans("Users");
print '</td>';
print '<td colspan="1">';
print $conf->global->MAIN_INFO_SOCIETE_NOM;
print '</td>';
print '<td colspan="1">';
//$userAlreadySelected = $object->getListContactId('internal'); // On ne doit pas desactiver un contact deja selectionne car on doit pouvoir le selectionner une deuxieme fois pour un autre type
$form->select_users($user->id, 'contactid', 0, $userAlreadySelected);
print '</td>';
print '<td>';
$formcompany->selectTypeContact($objectsrc, '', 'type', 'internal');
print '</td>';
print '<td align="right" colspan="3" ><input type="submit" class="button" value="' . $langs->trans("Add") . '"></td>';
print '</tr>';
print '</form>';
print '<form action="' . $_SERVER['PHP_SELF'] . '?id=' . $id . '" method="post">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="addcontact">';
print '<input type="hidden" name="source" value="external">';
print '<input type="hidden" name="id" value="' . $id . '">';
// Ligne ajout pour contact externe
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td nowrap="nowrap">';
print img_object('', 'contact') . ' ' . $langs->trans("ThirdPartyContacts");
print '</td>';
示例7:
print '<td nowrap="nowrap">';
print img_object('','user').' '.$langs->trans("Users");
print '</td>';
print '<td>';
print $conf->global->MAIN_INFO_SOCIETE_NOM;
print '</td>';
print '<td>';
// On recupere les id des users deja selectionnes
//$userAlreadySelected = $propal->getListContactId('internal'); // On ne doit pas desactiver un contact deja selectionne car on doit pouvoir le selectionner une deuxieme fois pour un autre type
$html->select_users($user->id,'contactid',0,$userAlreadySelected);
print '</td>';
print '<td>';
$formcompany->selectTypeContact($propal, '', 'type','internal');
print '</td>';
print '<td align="right" colspan="3" ><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
print '</tr>';
print '</form>';
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$id.'" method="POST">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="addcontact">';
print '<input type="hidden" name="id" value="'.$id.'">';
print '<input type="hidden" name="source" value="external">';
// Line to add an external contact
$var=!$var;
print "<tr ".$bc[$var].">";