当前位置: 首页>>代码示例>>PHP>>正文


PHP show_actions_todo函数代码示例

本文整理汇总了PHP中show_actions_todo函数的典型用法代码示例。如果您正苦于以下问题:PHP show_actions_todo函数的具体用法?PHP show_actions_todo怎么用?PHP show_actions_todo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_actions_todo函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: stdClass

    $objcon = new stdClass();
    $out = '';
    $permok = $user->rights->agenda->myactions->create;
    if ((!empty($objthirdparty->id) || !empty($objcon->id)) && $permok) {
        //$out.='<a href="'.DOL_URL_ROOT.'/comm/action/card.php?action=create';
        if (get_class($objthirdparty) == 'Societe') {
            $out .= '&amp;socid=' . $objthirdparty->id;
        }
        $out .= (!empty($objcon->id) ? '&amp;contactid=' . $objcon->id : '') . '&amp;backtopage=1&amp;percentage=-1';
        //$out.=$langs->trans("AddAnAction").' ';
        //$out.=img_picto($langs->trans("AddAnAction"),'filenew');
        //$out.="</a>";
    }
    print '<div class="tabsAction">';
    if (!empty($conf->agenda->enabled)) {
        if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create)) {
            print '<a class="butAction" href="' . DOL_URL_ROOT . '/comm/action/card.php?action=create' . $out . '">' . $langs->trans("AddAction") . '</a>';
        } else {
            print '<a class="butActionRefused" href="#">' . $langs->trans("AddAction") . '</a>';
        }
    }
    print '</div>';
    print '<br>';
    print load_fiche_titre($langs->trans("ActionsOnCompany"), '', '');
    // List of todo actions
    show_actions_todo($conf, $langs, $db, $object, null, 0, 1);
    // List of done actions
    show_actions_done($conf, $langs, $db, $object);
}
llxFooter();
$db->close();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:agenda.php

示例2: dol_escape_js

    }
    // 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.'&amp;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 $');
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:fiche.php

示例3: assign_values

 /**
  *  Assign custom values for canvas
  *
  *  @param	string		&$action    	Type of action
  *  @param	int			$id				Id
  *  @return	void
  */
 function assign_values(&$action, $id)
 {
     global $conf, $db, $langs, $user;
     global $form;
     $ret = $this->getObject($id);
     parent::assign_values($action, $id);
     $this->tpl['title'] = $this->getTitle($action);
     $this->tpl['error'] = $this->error;
     $this->tpl['errors'] = $this->errors;
     if ($action == 'view') {
         // Card header
         $head = contact_prepare_head($this->object);
         $title = $this->getTitle($action);
         $this->tpl['showhead'] = dol_get_fiche_head($head, 'card', $title, 0, 'contact');
         $this->tpl['showend'] = dol_get_fiche_end();
         $objsoc = new Societe($db);
         $objsoc->fetch($this->object->socid);
         $this->tpl['actionstodo'] = show_actions_todo($conf, $langs, $db, $objsoc, $this->object, 1);
         $this->tpl['actionsdone'] = show_actions_done($conf, $langs, $db, $objsoc, $this->object, 1);
     } else {
         // Confirm delete contact
         if ($action == 'delete' && $user->rights->societe->contact->supprimer) {
             $this->tpl['action_delete'] = $form->formconfirm($_SERVER["PHP_SELF"] . "?id=" . $this->object->id, $langs->trans("DeleteContact"), $langs->trans("ConfirmDeleteContact"), "confirm_delete", '', 0, 1);
         }
     }
     if ($action == 'list') {
         $this->LoadListDatas($GLOBALS['limit'], $GLOBALS['offset'], $GLOBALS['sortfield'], $GLOBALS['sortorder']);
     }
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:36,代码来源:actions_contactcard_default.class.php

示例4: show_contacts

		print "<a class=\"butAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&amp;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);
}
$db->close();

llxFooter('$Date: 2011/07/31 23:57:03 $ - $Revision: 1.140 $');
?>
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:fiche.php

示例5: assign_values

	/**
	 *    Assign custom values for canvas
	 *    @param      action     Type of action
	 */
	function assign_values($action='')
	{
		global $conf, $db, $langs, $user;
		global $form;

		parent::assign_values($action);

        $this->tpl['title'] = $this->getTitle($action);
        $this->tpl['error'] = $this->error;
        $this->tpl['errors']= $this->errors;

		if ($action == 'view')
		{
            // Card header
            $head = contact_prepare_head($this->object);
            $title = $this->getTitle($action);

		    $this->tpl['showhead']=dol_get_fiche_head($head, 'card', $title, 0, 'contact');
		    $this->tpl['showend']=dol_get_fiche_end();

			// Confirm delete contact
        	if ($user->rights->societe->contact->supprimer)
        	{
        		if ($_GET["action"] == 'delete')
        		{
        			$this->tpl['action_delete'] = $form->formconfirm($_SERVER["PHP_SELF"]."?id=".$this->object->id,$langs->trans("DeleteContact"),$langs->trans("ConfirmDeleteContact"),"confirm_delete",'',0,1);
        		}
        	}

        	$objsoc = new Societe($db);
            $objsoc->fetch($this->object->fk_soc);

            $this->tpl['actionstodo']=show_actions_todo($conf,$langs,$db,$objsoc,$this->object,1);

            $this->tpl['actionsdone']=show_actions_done($conf,$langs,$db,$objsoc,$this->object,1);
		}
	}
开发者ID:remyyounes,项目名称:dolibarr,代码行数:41,代码来源:actions_contactcard_default.class.php


注:本文中的show_actions_todo函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。