本文整理汇总了PHP中img_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP img_delete函数的具体用法?PHP img_delete怎么用?PHP img_delete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了img_delete函数的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: language_actions
/** Possible actions for a language: prioritize and delete */
function language_actions($language_id)
{
$CI =& get_instance();
$c = $CI->languageModel->get_language_by_id($language_id);
$d_link = anchor('language/delete/' . $c->id, img_delete(), warning(lang('sure_delete_language')));
return $d_link;
}
示例3: 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));
}
示例4: 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));
}
示例5: 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));
}
示例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: testinvite_actions
/** Possible actions for a testinvite: edit, view scores, delete */
function testinvite_actions($testinvite_id)
{
$CI =& get_instance();
$testinvite = $CI->testInviteModel->get_testinvite_by_id($testinvite_id);
$scores = $CI->scoreModel->get_scores_by_testinvite($testinvite_id);
$reminder_available = !$testinvite->datecompleted && $testinvite->datereminder;
$reminder_link = anchor('testinvite/manual_reminder/' . $testinvite_id, img_email(lang('manual_reminder'), FALSE));
$score_link = anchor('score/testinvite/' . $testinvite_id, img_scores(empty($scores)));
$reminder_link = $reminder_available ? $reminder_link : img_email('', TRUE);
$delete_link = anchor('testinvite/delete/' . $testinvite_id, img_delete(), warning(lang('sure_delete_testinvite')));
if (is_caller()) {
$actions = array($reminder_link, $delete_link);
}
if (is_leader()) {
$actions = array($score_link, $reminder_link);
}
if (is_admin()) {
$actions = array($score_link, $reminder_link, $delete_link);
}
return implode(' ', $actions);
}
示例8: showArrayOfBookmark
/**
* \file htdocs/lib/bookmark.lib.php
* \brief List of functions for bookmark module
* \version $Id: bookmark.lib.php,v 1.6 2011/07/31 23:25:41 eldy Exp $
*
* Ensemble de fonctions de base de dolibarr sous forme d'include
*/
function showArrayOfBookmark($fac)
{
$sql = "SELECT s.rowid as socid, s.nom, b.rowid as bid";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."bookmark as b";
$sql .= " WHERE b.fk_soc = s.rowid AND b.fk_user = ".$user->id;
$sql .= " ORDER BY lower(s.nom) ASC";
$resql = $db->query($sql);
if ( $resql )
{
$num = $db->num_rows($resql);
$i = 0;
if ($num)
{
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Bookmarks")."</td></tr>\n";
$var = True;
while ($i < $num)
{
$obj = $db->fetch_object($resql);
$var = !$var;
print "<tr $bc[$var]>";
print '<td><a href="fiche.php?socid='.$obj->socid.'">'.$obj->nom.'</a></td>';
print '<td align="right"><a href="index.php?action=del_bookmark&bid='.$obj->bid.'">'.img_delete().'</a></td>';
print '</tr>';
$i++;
}
print '</table>';
}
$db->free($resql);
}
else
{
dol_print_error($db);
}
}
示例9:
{
if(is_object($value))
{
print "<tr>";
print '<td align="center">'.$value->position.'</td>';
print "<td>".(empty($value->label)?$langs->trans($key1):$langs->trans($value->label))."</td>";
print "<td>".$key1."</td>";
print "<td>".$value->type."</td>";
print '<td align="right">'.$value->length.'</td>';
print '<td class "content_actions" align="right">';
print '<a class="sepV_a" href="'.$_SERVER["PHP_SELF"].'?'.'&fields='.$key.'&attrname='.$key1.'&action='.$acts[$value->enable].'">'.$actl[$value->enable].'</a>';
if($aRow->edit)
{
print '<a class="sepV_a" href="'.$_SERVER["PHP_SELF"].'?action=edit&fields='.$key.'&attrname='.$key1.'">'.img_edit().'</a>';
print '<a class="sepV_a" href="'.$_SERVER["PHP_SELF"].'?action=delete&fields='.$key.'&attrname='.$key1.'">'.img_delete().'</a>';
}
print '</td>';
print "</tr>";
}
}
print "</tbody>";
print "</table>";
print "</div>";
print $extrafields->_datatables($obj,$key);
print end_box();
print '</div>';
}
示例10: dol_print_date
print '<td align="center">' . dol_print_date($db->jdate($objp->date), 'day') . '</td>';
// Date operation
print '<td align="center">' . ($objp->num_chq ? $objp->num_chq : ' ') . '</td>';
print '<td>' . dol_trunc($objp->emetteur, 24) . '</td>';
print '<td>' . dol_trunc($objp->banque, 24) . '</td>';
print '<td align="right">' . price($objp->amount) . '</td>';
print '<td align="center">';
$accountlinestatic->rowid = $objp->rowid;
if ($accountlinestatic->rowid) {
print $accountlinestatic->getNomUrl(1);
} else {
print ' ';
}
print '</td>';
if ($object->statut == 0) {
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=remove&lineid=' . $objp->rowid . '">' . img_delete() . '</a></td>';
} else {
print '<td> </td>';
}
print '</tr>';
$var = !$var;
$i++;
}
print "</table>";
} else {
dol_print_error($db);
}
dol_fiche_end();
}
/*
* Boutons Actions
示例11: listOfLinks
/**
* Show array with linked files
*
* @param Object $object Object
* @param int $permtodelete Deletion is allowed
* @param string $action Action
* @param string $selected ???
* @param string $param More param to add into URL
* @return int Number of links
*/
public function listOfLinks($object, $permtodelete = 1, $action = null, $selected = null, $param = '')
{
global $user, $conf, $langs, $user;
global $bc;
global $sortfield, $sortorder;
$langs->load("link");
require_once DOL_DOCUMENT_ROOT . '/core/class/link.class.php';
$link = new Link($this->db);
$links = array();
if ($sortfield == "name") {
$sortfield = "label";
} elseif ($sortfield == "date") {
$sortfield = "datea";
} else {
$sortfield = null;
}
$res = $link->fetchAll($links, $object->element, $object->id, $sortfield, $sortorder);
$param .= isset($object->id) ? '&id=' . $object->id : '';
// Show list of associated links
print load_fiche_titre($langs->trans("LinkedFiles"));
print '<form action="' . $_SERVER['PHP_SELF'] . ($param ? '?' . $param : '') . '" method="POST">';
print '<table width="100%" class="liste">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Links"), $_SERVER['PHP_SELF'], "name", "", $param, 'align="left"', $sortfield, $sortorder);
print_liste_field_titre("", "", "", "", "", 'align="right"');
print_liste_field_titre($langs->trans("Date"), $_SERVER['PHP_SELF'], "date", "", $param, 'align="center"', $sortfield, $sortorder);
print_liste_field_titre('', $_SERVER['PHP_SELF'], "", "", $param, 'align="center"');
print_liste_field_titre('', '', '');
print '</tr>';
$nboflinks = count($links);
if ($nboflinks > 0) {
include_once DOL_DOCUMENT_ROOT . '/core/lib/images.lib.php';
}
$var = true;
foreach ($links as $link) {
$var = !$var;
print '<tr ' . $bc[$var] . '>';
//edit mode
if ($action == 'update' && $selected === $link->id) {
print '<td>';
print '<input type="hidden" name="id" value="' . $object->id . '">';
print '<input type="hidden" name="linkid" value="' . $link->id . '">';
print '<input type="hidden" name="action" value="confirm_updateline">';
print $langs->trans('Link') . ': <input type="text" name="link" size="50" value="' . $link->url . '">';
print '</td>';
print '<td>';
print $langs->trans('Label') . ': <input type="text" name="label" value="' . $link->label . '">';
print '</td>';
print '<td align="center">' . dol_print_date(dol_now(), "dayhour", "tzuser") . '</td>';
print '<td align="right"></td>';
print '<td align="right">';
print '<input type="submit" name="save" class="button" value="' . dol_escape_htmltag($langs->trans('Save')) . '">';
print '<input type="submit" name="cancel" class="button" value="' . dol_escape_htmltag($langs->trans('Cancel')) . '">';
print '</td>';
} else {
print '<td>';
print '<a data-ajax="false" href="' . $link->url . '" target="_blank">';
print $link->label;
print '</a>';
print '</td>' . "\n";
print '<td align="right"></td>';
print '<td align="center">' . dol_print_date($link->datea, "dayhour", "tzuser") . '</td>';
print '<td align="center"></td>';
print '<td align="right">';
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=update&linkid=' . $link->id . $param . '" class="editfilelink" >' . img_edit() . '</a>';
// id= is included into $param
if ($permtodelete) {
print ' <a href="' . $_SERVER['PHP_SELF'] . '?action=delete&linkid=' . $link->id . $param . '" class="deletefilelink">' . img_delete() . '</a>';
// id= is included into $param
} else {
print ' ';
}
print '</td>';
}
print "</tr>\n";
}
if ($nboflinks == 0) {
print '<tr ' . $bc[false] . '><td colspan="5">';
print $langs->trans("NoLinkFound");
print '</td></tr>';
}
print "</table>";
print '</form>';
return $nboflinks;
}
示例12: img_delete
}
}
print '</td>';
print '<td>';
$label = $langs->trans("Notify_" . $obj->code) != "Notify_" . $obj->code ? $langs->trans("Notify_" . $obj->code) : $obj->label;
print $label;
print '</td>';
print '<td>';
if ($obj->type == 'email') {
print $langs->trans("Email");
}
if ($obj->type == 'sms') {
print $langs->trans("SMS");
}
print '</td>';
print '<td align="right"><a href="fiche.php?socid=' . $socid . '&action=delete&actid=' . $obj->rowid . '">' . img_delete() . '</a></td>';
print '</tr>';
$i++;
}
$db->free($resql);
} else {
dol_print_error($db);
}
print '</table>';
print '<br>';
// List of notifications done
print_fiche_titre($langs->trans("ListOfNotificationsDone"), '', '');
$var = true;
// Line with titles
print '<table width="100%" class="noborder">';
print '<tr class="liste_titre">';
示例13: while
$result = $db->query($sql);
if ($result)
{
$num = $db->num_rows($result);
$i = 0; $total = 0;
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object($result);
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="'.DOL_URL_ROOT.'/compta/bank/budget.php?bid='.$objp->rowid.'">'.$objp->rowid.'</a></td>';
print "<td>$objp->label</td>";
print '<td style="text-align: center;"><a href="categ.php?categid='.$objp->rowid.'&action=delete">'.img_delete().'</a></td>';
print "</tr>";
$i++;
}
$db->free($result);
}
/*
* Affichage ligne ajout de categorie
*/
$var=!$var;
print "<tr $bc[$var]>";
print "<td> </td><td><input name=\"label\" type=\"text\" size=45></td>";
print '<td align="center"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td></tr>';
print "</table></form>";
示例14: list_export_model
/**
* Output list all export models
* TODO Move this into a class htmlxxx.class.php
*
* @return void
*/
function list_export_model()
{
global $conf, $langs;
$sql = "SELECT em.rowid, em.field, em.label, em.type, em.filter";
$sql .= " FROM " . MAIN_DB_PREFIX . "export_model as em";
$sql .= " ORDER BY rowid";
$result = $this->db->query($sql);
if ($result) {
$num = $this->db->num_rows($result);
$i = 0;
while ($i < $num) {
$obj = $this->db->fetch_object($result);
$keyModel = array_search($obj->type, $this->array_export_code);
print "<tr>";
print '<td><a href=export.php?step=2&action=select_model&exportmodelid=' . $obj->rowid . '&datatoexport=' . $obj->type . '>' . $obj->label . '</a></td>';
print '<td>';
print img_object($this->array_export_module[$keyModel]->getName(), $this->array_export_icon[$keyModel]) . ' ';
print $this->array_export_module[$keyModel]->getName() . ' - ';
// recuperation du nom de l'export
$string = $langs->trans($this->array_export_label[$keyModel]);
print $string != $this->array_export_label[$keyModel] ? $string : $this->array_export_label[$keyModel];
print '</td>';
//print '<td>'.$obj->type.$keyModel.'</td>';
print '<td>' . str_replace(',', ' , ', $obj->field) . '</td>';
if (!empty($obj->filter)) {
$filter = json_decode($obj->filter, true);
print '<td>' . str_replace(',', ' , ', $filter['field']) . '</td>';
print '<td>' . str_replace(',', ' , ', $filter['value']) . '</td>';
}
// suppression de l'export
print '<td align="right">';
print '<a href="' . $_SERVER["PHP_SELF"] . '?action=deleteprof&id=' . $obj->rowid . '">';
print img_delete();
print '</a>';
print "</tr>";
$i++;
}
} else {
dol_print_error($this->db);
}
}
示例15: price
print '<td align="right">' . price($line->price) . "</td>";
print '<td align="right">' . price($line->price_ttc) . "</td>";
print '<td align="right">' . price($line->price_min) . '</td>';
print '<td align="right">' . price($line->price_min_ttc) . '</td>';
// User
$userstatic = new User($db);
$userstatic->fetch($line->fk_user);
print '<td align="right">';
print $userstatic->getLoginUrl(1);
print '</td>';
// Todo Edit or delete button
// Action
if ($user->rights->produit->creer || $user->rights->service->creer) {
print '<td align="right">';
print '<a href="' . $_SERVER["PHP_SELF"] . '?action=delete_customer_price&socid=' . $soc->id . '&lineid=' . $line->id . '">';
print img_delete();
print '</a>';
print '<a href="' . $_SERVER["PHP_SELF"] . '?action=edit_customer_price&socid=' . $soc->id . '&lineid=' . $line->id . '">';
print img_edit();
print '</a>';
print '<a href="' . $_SERVER["PHP_SELF"] . '?action=showlog_customer_price&socid=' . $soc->id . '&prodid=' . $line->fk_product . '">';
print img_info();
print '</a>';
print '</td>';
}
print "</tr>\n";
}
print "</table>";
print "</form>";
} else {
print $langs->trans('None');