本文整理汇总了PHP中img_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP img_edit函数的具体用法?PHP img_edit怎么用?PHP img_edit使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了img_edit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: percentile_actions
/** Possible actions for a caller: delete */
function percentile_actions($percentile_id)
{
$CI =& get_instance();
$edit_link = anchor('percentile/edit/' . $percentile_id, img_edit());
$delete_link = anchor('percentile/delete/' . $percentile_id, img_delete(), warning(lang('sure_delete_percentile')));
return implode(' ', array($edit_link, $delete_link));
}
示例2: testsurvey_actions
/** Possible actions for a testsurvey: edit, view scores, delete */
function testsurvey_actions($testsurvey_id)
{
$inspect_link = anchor('testsurvey/get/' . $testsurvey_id, img_zoom('testsurvey'));
$find_link = anchor('testsurvey/find/' . $testsurvey_id, img_email(lang('testinvite')));
$edit_link = anchor('testsurvey/edit/' . $testsurvey_id, img_edit());
$delete_link = anchor('testsurvey/delete/' . $testsurvey_id, img_delete(), warning(lang('sure_delete_testsurvey')));
return implode(' ', array($inspect_link, $find_link, $edit_link, $delete_link));
}
示例3: user_actions
/** Possible actions for a user: edit, view participants, call, archive, delete */
function user_actions($user_id)
{
$CI =& get_instance();
$u = $CI->userModel->get_user_by_id($user_id);
$edit_link = anchor('user/edit/' . $u->id, img_edit());
$act_link = is_activated($u) ? anchor('user/deactivate/' . $u->id, img_active(TRUE)) : anchor('user/activate/' . $u->id, img_active(FALSE));
$delete_link = is_admin($u) ? img_delete(TRUE) : anchor('user/delete/' . $u->id, img_delete(), warning(lang('sure_delete_user')));
return implode(' ', array($edit_link, $act_link, $delete_link));
}
示例4: testcat_actions
/** Possible actions for a testcat: edit, show scores and delete */
function testcat_actions($testcat_id)
{
$CI =& get_instance();
$scores = $CI->scoreModel->get_scores_by_testcat($testcat_id);
$edit_link = anchor('testcat/edit/' . $testcat_id, img_edit());
$score_link = count($scores) > 0 ? anchor('score/testcat/' . $testcat_id, img_scores()) : img_scores(TRUE);
$delete_link = anchor('testcat/delete/' . $testcat_id, img_delete(), warning(lang('sure_delete_testcat')));
return implode(' ', array($edit_link, $score_link, $delete_link));
}
示例5: editfieldkey
/**
* Output key field for an editable field
* @param text Text of label
* @param htmlname Name of select field
* @param preselected Preselected value for parameter
* @param paramkey Key of parameter (unique if there is several parameter to show)
* @param paramvalue Value of parameter
* @param perm Permission to allow button to edit parameter
* @param typeofdata Type of data (string by default, email, ...)
* @return string HTML edit field
* TODO no GET or POST in class file, use a param
*/
function editfieldkey($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
{
global $langs;
$ret='';
$ret.='<table class="nobordernopadding" width="100%"><tr><td nowrap="nowrap">';
$ret.=$langs->trans($text);
$ret.='</td>';
if (GETPOST('action') != 'edit'.$htmlname && $perm) $ret.='<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit'.$htmlname.'&'.$paramkey.'='.$paramvalue.'">'.img_edit($langs->trans('Edit'),1).'</a></td>';
$ret.='</tr></table>';
return $ret;
}
示例6: comment_actions
/** Possible actions for a comment: prioritize and delete */
function comment_actions($comment_id)
{
$CI =& get_instance();
$c = $CI->commentModel->get_comment_by_id($comment_id);
$p = $CI->participantModel->get_participant_by_id($c->participant_id);
$prio_link = anchor('comment/prioritize/' . $comment_id . ($c->priority ? '/0' : ''), img_star(!$c->priority));
$handled_link = anchor('comment/mark_handled/' . $comment_id . ($c->handled ? '/0' : ''), img_accept(lang('mark_handled'), !$c->handled));
$edit_link = anchor('comment/edit/' . $comment_id, img_edit());
$p_link = anchor('participant/edit/' . $c->participant_id, img_edit_participant($p));
$d_link = anchor('comment/delete/' . $comment_id, img_delete(), warning(lang('sure_delete_comment')));
return implode(' ', array($prio_link, $handled_link, $edit_link, $p_link, $d_link));
}
示例7: Societe
print '</td></tr></table>';
print '</td>';
print '<td colspan="3">';
print $object->display_rib();
print '</td></tr>';
}
// Parent company
if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY))
{
print '<tr><td>';
print '<table width="100%" class="nobordernopadding"><tr><td>';
print $langs->trans('ParentCompany');
print '<td><td align="right">';
if ($user->rights->societe->creer)
print '<a href="'.DOL_URL_ROOT.'/societe/lien.php?socid='.$object->id.'">'.img_edit() .'</a>';
else
print ' ';
print '</td></tr></table>';
print '</td>';
print '<td colspan="3">';
if ($object->parent)
{
$socm = new Societe($db);
$socm->load($object->parent);
print $socm->getNomUrl(1).' '.($socm->code_client?"(".$socm->code_client.")":"");
print $socm->town?' - '.$socm->town:'';
}
else {
print $langs->trans("NoParentCompany");
}
示例8: foreach
print '<td align="center">' . $langs->trans("Unique") . '</td>';
print '<td align="center">' . $langs->trans("Required") . '</td>';
print '<td width="80"> </td>';
print "</tr>\n";
$var = True;
foreach ($extrafields->attribute_type as $key => $value) {
$var = !$var;
print "<tr " . $bc[$var] . ">";
print "<td>" . $extrafields->attribute_pos[$key] . "</td>\n";
print "<td>" . $extrafields->attribute_label[$key] . "</td>\n";
print "<td>" . $key . "</td>\n";
print "<td>" . $type2label[$extrafields->attribute_type[$key]] . "</td>\n";
print '<td align="right">' . $extrafields->attribute_size[$key] . "</td>\n";
print '<td align="center">' . yn($extrafields->attribute_unique[$key]) . "</td>\n";
print '<td align="center">' . yn($extrafields->attribute_required[$key]) . "</td>\n";
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=edit&attrname=' . $key . '">' . img_edit() . '</a>';
print " <a href=\"" . $_SERVER["PHP_SELF"] . "?action=delete&attrname={$key}\">" . img_delete() . "</a></td>\n";
print "</tr>";
// $i++;
}
print "</table>";
dol_fiche_end();
// Buttons
if ($action != 'create' && $action != 'edit') {
print '<div class="tabsAction">';
print "<a class=\"butAction\" href=\"" . $_SERVER["PHP_SELF"] . "?action=create\">" . $langs->trans("NewAttribute") . "</a>";
print "</div>";
}
/* ************************************************************************** */
/* */
/* Creation d'un champ optionnel
示例9: img_edit
print '<td>';
if ($soc->id) {
print $soc->getNomUrl(1);
}
print '</td></tr>';
// Project
if (!empty($conf->projet->enabled)) {
$langs->load('projects');
print '<tr>';
print '<td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans('Project');
print '</td>';
if ($action != 'classify' && $user->rights->deplacement->creer) {
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=classify&id=' . $object->id . '">';
print img_edit($langs->trans('SetProject'), 1);
print '</a></td>';
}
print '</tr></table>';
print '</td><td colspan="3">';
if ($action == 'classify') {
$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'projectid', 0, 0, 1);
} else {
$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'none', 0, 0);
}
print '</td>';
print '</tr>';
}
// Statut
print '<tr><td>' . $langs->trans("Status") . '</td><td>' . $object->getLibStatut(4) . '</td></tr>';
// Other attributes
示例10: img_edit
if ($user->rights->societe->creer) {
print '<a href="' . DOL_URL_ROOT . '/comm/multiprix.php?id=' . $objsoc->id . '">' . img_edit($langs->trans("Modify")) . '</a>';
}
print '</td></tr></table>';
print '</td><td colspan="3">' . $objsoc->price_level . "</td>";
print '</tr>';
}
// Old way to define delivery address (deprecated).
// Now all addresses types (like delivery addresses, invoices addresses,...) are saved as contacts.
if ($conf->global->PROPALE_ADD_DELIVERY_ADDRESS) {
print '<tr><td nowrap>';
print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
print $langs->trans("DeliveriesAddress");
print '<td><td align="right">';
if ($user->rights->societe->creer) {
print '<a href="' . DOL_URL_ROOT . '/comm/address.php?socid=' . $objsoc->id . '">' . img_edit($langs->trans("Modify")) . '</a>';
}
print '</td></tr></table>';
print '</td><td colspan="3">';
$sql = "SELECT count(rowid) as nb";
$sql .= " FROM " . MAIN_DB_PREFIX . "societe_address";
$sql .= " WHERE fk_soc =" . $objsoc->id;
$resql = $db->query($sql);
if ($resql) {
$num = $db->num_rows($resql);
$objal = $db->fetch_object($resql);
print $objal->nb ? $objal->nb : $langs->trans("NoOtherDeliveryAddress");
} else {
dol_print_error($db);
}
print '</td>';
示例11: dol_print_date
print '<input type="hidden" name="action" value="setdate">';
$form->select_date($object->date_bordereau, 'datecreate_', '', '', '', "setdate");
print '<input type="submit" class="button" value="' . $langs->trans('Modify') . '">';
print '</form>';
} else {
print $object->date_bordereau ? dol_print_date($object->date_bordereau, 'day') : ' ';
}
print '</td>';
print '</tr>';
// External ref
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans('RefExt');
print '</td>';
if ($action != 'editrefext') {
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editrefext&id=' . $object->id . '">' . img_edit($langs->trans('SetRefExt'), 1) . '</a></td>';
}
print '</tr></table>';
print '</td><td colspan="2">';
if ($action == 'editrefext') {
print '<form name="setrefext" action="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '" method="post">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="setrefext">';
print '<input type="text" name="ref_ext" value="' . $object->ref_ext . '">';
print '<input type="submit" class="button" value="' . $langs->trans('Modify') . '">';
print '</form>';
} else {
print $object->ref_ext;
}
print '</td>';
print '</tr>';
示例12:
else
{
$html->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
}
print '</td></tr>';
// Project
if ($conf->projet->enabled)
{
$langs->load("projects");
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans('Project').'</td>';
if (1 == 2 && $user->rights->propale->creer)
{
if ($_GET['action'] != 'classer') print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=classer&id='.$object->id.'">'.img_edit($langs->trans('SetProject')).'</a></td>';
print '</tr></table>';
print '</td><td colspan="3">';
if ($_GET['action'] == 'classer')
{
$html->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'projectid');
}
else
{
$html->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
}
print '</td></tr>';
}
else
{
print '</td></tr></table>';
示例13: img_warning
} else {
print '<td align="left" class="nowrap">';
if ($objp->cotisation == 'yes') {
print $langs->trans("SubscriptionNotReceived");
if ($objp->statut > 0) {
print " " . img_warning();
}
} else {
print ' ';
}
print '</td>';
}
// Actions
print '<td align="center">';
if ($user->rights->adherent->creer) {
print '<a href="card.php?rowid=' . $objp->rowid . '&action=edit&return=list.php">' . img_edit() . '</a>';
}
print ' ';
if ($user->rights->adherent->supprimer) {
print '<a href="card.php?rowid=' . $objp->rowid . '&action=resign&return=list.php">' . img_picto($langs->trans("Resiliate"), 'disable.png') . '</a>';
}
print "</td>";
print "</tr>\n";
$i++;
}
print "</table>\n";
if ($num > $conf->liste_limit) {
print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '');
}
} else {
dol_print_error($db);
示例14: price
// Price quantity
print '<td align="right">';
print $objp->price?price($objp->price):"";
print '</td>';
// Unit price
print '<td align="right">';
print $objp->unitprice? price($objp->unitprice) : ($objp->quantity?price($objp->price/$objp->quantity):" ");
print '</td>';
// Modify-Remove
print '<td align="center">';
if ($user->rights->produit->creer || $user->rights->service->creer)
{
print '<a href="fournisseurs.php?id='.$product->id.'&socid='.$objp->socid.'&action=add_price&rowid='.$objp->rowid.'">'.img_edit()."</a>";
print '<a href="fournisseurs.php?id='.$product->id.'&socid='.$objp->socid.'&action=remove_pf&rowid='.$objp->rowid.'">'.img_picto($langs->trans("Remove"),'disable.png').'</a>';
}
print '</td>';
print '</tr>';
$i++;
}
$db->free($resql);
}
else {
dol_print_error($db);
}
示例15: img_edit
print $company->getNomUrl(1);
} else {
print $langs->trans("NoThirdPartyAssociatedToMember");
}
}
print '</td></tr>';
}
// Login Dolibarr
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans("LinkedToDolibarrUser");
print '</td>';
if ($action != 'editlogin' && $user->rights->adherent->creer) {
print '<td align="right">';
if ($user->rights->user->user->creer) {
print '<a href="' . $_SERVER["PHP_SELF"] . '?action=editlogin&rowid=' . $object->id . '">' . img_edit($langs->trans('SetLinkToUser'), 1) . '</a>';
}
print '</td>';
}
print '</tr></table>';
print '</td><td colspan="2" class="valeur">';
if ($action == 'editlogin') {
$form->form_users($_SERVER['PHP_SELF'] . '?rowid=' . $object->id, $object->user_id, 'userid', '');
} else {
if ($object->user_id) {
$form->form_users($_SERVER['PHP_SELF'] . '?rowid=' . $object->id, $object->user_id, 'none');
} else {
print $langs->trans("NoDolibarrAccess");
}
}
print '</td></tr>';