本文整理汇总了PHP中escape_single_quotes函数的典型用法代码示例。如果您正苦于以下问题:PHP escape_single_quotes函数的具体用法?PHP escape_single_quotes怎么用?PHP escape_single_quotes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了escape_single_quotes函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: date
}?>
<?php echo date($date_format, mktime(0, 0, 0, $month, $startday, $year)) ." - ". date($date_format, mktime(0, 0, 0, $month, $endday-1, $year))
.' - '. ($user_filter == -1 ? lang('all users') : lang('calendar of', clean($user->getObjectName())));?></span>
</td><td style="width:100px;height:15px;">
<?php if (config_option("show_feed_links")) { ?>
<?php echo checkbox_field("include_subws", true, array("id" => "include_subws", "style" => "float:right;", "onclick" => "javascript:og.change_link_incws('ical_link', 'include_subws')", "title" => lang('check to include sub ws'))) ?>
<?php echo label_tag(lang('subws'), "include_subws", false, array("style" => "float:right;font-size:60%;margin:0px 3px;vertical-align:top;", "title" => lang('check to include sub ws')), "") ?>
<?php
$export_name = active_project() != null ? clean(active_project()->getName()) : clean($user->getObjectName());
$export_ws = active_project() != null ? active_project()->getId() : 0;
?>
<a class="iCalSubscribe" id="ical_link" style="float:right;" href="<?php echo ROOT_URL ."/index.php?c=feed&a=ical_export&n=$export_name&cal=$export_ws&t=".$user->getToken()."&isw=1" ?>"
title="<?php echo lang('copy this url in your calendar client software')?>"
onclick="Ext.Msg.show({
title: '<?php echo escape_single_quotes(lang('import events from third party software')) ?>',
msg: '<?php echo escape_single_quotes(lang('copy this url in your calendar client software')) ."<br><br><br>"?>'+document.getElementById('ical_link').href,
icon: Ext.MessageBox.INFO });return false;"></a>
<?php } ?>
</td></tr></table>
</div>
</td>
</tr>
<tr>
<td class="coViewBody" style="padding:0px;height:100%;" colspan=2>
<div id="chrome_main2" style="width:100%; height:100%">
<div id="allDayGrid" class="inset grid" style="height: <?php echo $alldaygridHeight ?>px; margin-bottom: 5px;background:#E8EEF7;margin-right:15px;margin-left:40px;position:relative;">
<?php
$width_percent = 100/7;
$width = 0;
for ($day_of_week = 0; $day_of_week < 7; $day_of_week++) {
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:viewweek.php
示例2: clean
</legend>
<?php
if ($company->hasLogo()) {
?>
<img src="<?php
echo $company->getLogoUrl();
?>
" alt="<?php
echo clean($company->getName());
?>
logo" />
<p><a class="internalLink" href="<?php
echo $company->getDeleteLogoUrl();
?>
" onclick="return confirm('<?php
echo escape_single_quotes(lang('confirm delete company logo'));
?>
')"><?php
echo lang('delete company logo');
?>
</a></p>
<?php
} else {
?>
<?php
echo lang('no current logo');
}
// if
?>
</fieldset>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:edit_logo.php
示例3: checkbox_link
if ($on_list_page || $counter <= 5) {
$content .= '<tr>';
if ($task->canChangeStatus(logged_user())) {
$content .= '<td class="taskCheckbox">' . checkbox_link($task->getOpenUrl(rawurlencode(get_url('milestone', 'view', array('id' => $milestone->getId())))), true, lang('mark task as open')) . '</td>';
} else {
$content .= '<td class="taskCheckbox"><img src="' . icon_url('checked.jpg') . '" alt="' . lang('completed task') . '" /></td>';
}
// if
$content .= ' <td class="taskText">
<a class="internalLink" href="' . $task->getObjectUrl() . '">' . clean($task->getTitle()) . '</a> ';
if ($task->canEdit(logged_user())) {
$content .= '<a class="internalLink" href="' . $task->getEditListUrl() . '" class="blank" title="' . lang('edit task') . '"><img src="' . icon_url('edit.gif') . '" alt="" /></a> ';
}
// if
if ($task->canDelete(logged_user())) {
$content .= '<a href="' . $task->getDeleteUrl() . '" class="blank internalLink" onclick="return confirm(\'' . escape_single_quotes(lang('confirm delete task')) . '\')" title="' . lang('delete task') . '"><img src="' . icon_url('cancel_gray.gif') . '" alt="" /></a> ';
}
// if <br />
$content .= '<span class="taskCompletedOnBy">(' . lang('completed on by', format_date($task->getCompletedOn()), $task->getCompletedBy() instanceof User ? $task->getCompletedBy()->getCardUrl() : '#', $task->getCompletedBy() instanceof User ? clean($task->getCompletedBy()->getDisplayName()) : lang('n/a')) . ')</span>
</td> <td></td> </tr>';
}
// if
}
// foreach
if (!$on_list_page && $counter > 5) {
$content .= '<tr>
<td colspan="2"><a class="internalLink" href="' . get_url("task", "new_list_tasks", array('status' => '1', 'filter' => 'milestone', 'fval' => $milestone->getId())) . '"> ' . lang('view all completed tasks', $counter) . '</a></td>
</tr>';
}
// if
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:view.php
示例4: lang
?>
<a class="iCalSubscribe" id="ical_link" style="float:right;" href="<?php
echo ROOT_URL . "/index.php?c=feed&a=ical_export&n={$export_name}&cal={$export_ws}&t=" . $user->getToken() . "&isw=1";
?>
"
title="<?php
echo lang('copy this url in your calendar client software');
?>
"
onclick="Ext.Msg.show({
title: '<?php
echo escape_single_quotes(lang('import events from third party software'));
?>
',
msg: '<?php
echo escape_single_quotes(lang('copy this url in your calendar client software')) . "<br><br><br>";
?>
'+document.getElementById('ical_link').href,
icon: Ext.MessageBox.INFO });return false;"></a>
<?php
}
?>
</td></tr></table>
</div>
</td>
</tr>
<tr>
<td class="coViewBody" style="padding:0px;height:100%;" colspan=2>
<div id="chrome_main2" style="width:100%; height:100%;">
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:viewdate.php
示例5: lang
echo $user->isNew() ? lang('new user') : lang('edit user');
?>
</td><td style="text-align:right">
<?php
echo submit_button($user->isNew() ? lang('add user') : lang('save changes'), 's', array('style' => 'margin-top:0px;margin-left:10px', 'tabindex' => '1600'));
?>
</td></tr></table></div>
</div>
<!-- username -->
<div>
<?php
echo label_tag(lang('username'), $genid . 'userFormName', true);
?>
<?php
echo text_field('user[username]', array_var($user_data, 'username'), array('class' => 'medium', 'id' => $genid . 'userFormName', 'tabindex' => '100', 'onchange' => 'og.determinePersonalwsName(this, \'' . escape_single_quotes(new_personal_project_name()) . '\')'));
?>
</div>
<!-- email -->
<div>
<?php
echo label_tag(lang('email address'), 'userFormEmail', true);
?>
<?php
echo text_field('user[email]', array_var($user_data, 'email'), array('class' => 'title', 'id' => 'userFormEmail', 'tabindex' => '200'));
?>
</div>
<!-- company -->
<?php
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:add_user.php
示例6: mktime
$now = mktime(0, 0, 0, $dtv->getMonth(), $dtv->getDay(), $dtv->getYear());
if ($now == mktime(0, 0, 0, $bday->getMonth(), $bday->getDay(), $dtv->getYear())) {
$count++;
if ($count <= 3) {
$output .= '<div class="event_block" id="m_bd_div_' . $contact->getId() . '" style="border-left-color: #B1BFAC;">';
$output .= "<a style='vertical-align:bottom;' href='" . $contact->getViewUrl() . "' onclick=\"og.disableEventPropagation(event);\" >";
$output .= "<img src='" . image_url('/16x16/contacts.png') . "' style='vertical-align: middle;'>";
$output .= "<span>" . $contact->getObjectName() . "</span></a>";
$output .= "</div>";
?>
<script>
addTip('m_bd_div_<?php
echo $contact->getId();
?>
', '<i>' + '<?php
echo escape_single_quotes(lang('birthday'));
?>
' + '</i> - ' + <?php
echo json_encode(clean($contact->getObjectName()));
?>
, '');
</script>
<?php
}
//if count
}
}
//endif birthdays
}
// end foreach event writing loop
if ($count > 3) {
开发者ID:rorteg,项目名称:fengoffice,代码行数:31,代码来源:widget_calendar.php
示例7: implode
<span class="project-replace"><?php
echo implode(',', $project_ids);
?>
</span>
</td>
<?php
$options = array();
if ($cotemplate->canEdit(logged_user())) {
$options[] = '<a class="internalLink" href="' . $cotemplate->getEditUrl() . '&popup=true">' . lang('edit') . '</a>';
}
if (can_manage_workspaces(logged_user())) {
$options[] = '<a class="internalLink" href="' . $cotemplate->getAssignTemplateToWSUrl() . '">' . lang('assign to workspace') . '</a>';
}
// if
if ($cotemplate->canDelete(logged_user())) {
$options[] = '<a class="internalLink" href="' . $cotemplate->getDeleteUrl() . '&popup=true" onclick="return confirm(\'' . escape_single_quotes(lang('confirm delete template')) . '\')">' . lang('delete template') . '</a>';
}
?>
<td style="font-size: 80%;"><?php
echo implode(' | ', $options);
?>
</td>
</tr>
<?php
}
// foreach
?>
</table>
<?php
} else {
?>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:index.php
示例8: logged_user
echo logged_user()->getCardUserUrl();
?>
">
<div class="db-ico unknown ico-user"></div>
</a></td><td><b><a class="internalLink" href="<?php
echo logged_user()->getCardUserUrl();
?>
">
<span><?php
echo lang("me");
?>
</span> </a></b> <?php
if (!$object->isTrashed()) {
?>
(<a class="internalLink" href="#" onclick="if (confirm('<?php
echo escape_single_quotes(lang("confirm unsubscribe"));
?>
')) og.openLink('<?php
echo $object->getUnsubscribeUrl();
?>
');"><?php
echo lang("unsubscribe from object");
?>
</a>)
<?php
}
?>
</td></tr>
<?php
}
?>
开发者ID:abhinay100,项目名称:feng_app,代码行数:31,代码来源:list_subscribers.php
示例9: clean
?>
" style="margin-left: <?php
echo $project->getDepth() * 16;
?>
px" />
<?php
echo clean($project->getName());
?>
</td>
<?php
$options = array();
if ($project->canEdit(logged_user())) {
$options[] = '<a class="internalLink" href="' . $project->getEditUrl() . '">' . lang('edit') . '</a>';
}
if ($project->canDelete(logged_user())) {
$options[] = '<a class="internalLink" href="' . $project->getDeleteUrl() . '" onclick="return confirm(\'' . escape_single_quotes(lang('confirm delete project')) . '\')">' . lang('delete') . '</a>';
}
?>
<td class="middle" style="font-size:80%;"><?php
echo implode(' | ', $options);
?>
</td>
</tr>
<?php
}
// foreach
?>
</table>
<?php
} else {
echo lang('no projects owned by company');
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:projects.php
示例10: confirm
<div class="adminConfiguration" style="height:100%;background-color:white">
<form class="internalForm" action="<?php echo $category->getUpdateUrl() ?>" method="post" onreset="return confirm('<?php echo escape_single_quotes(lang('confirm reset form')) ?>')">
<div class="adminHeader">
<div class="adminTitle">
<table style="width:535px"><tr><td>
<?php echo clean($category->getDisplayName()) ?>
</td><td style="text-align:right">
<?php echo submit_button(lang('save'), 's', array('style' => 'margin-top:0px;')) ?> <button class="submit" type="reset"><?php echo lang('reset') ?></button>
</td></tr></table>
</div>
</div>
<div class="adminSeparator"></div>
<div class="adminMainBlock">
<?php if(isset($options) && is_array($options) && count($options)) { ?>
<div id="configCategoryOptions">
<?php $counter = 0; ?>
<?php foreach($options as $option) { ?>
<?php $counter++; ?>
<div class="configCategoryOtpion <?php echo $counter % 2 ? 'odd' : 'even' ?>" id="configCategoryOption_<?php echo $option->getName() ?>">
<div class="configOptionInfo">
<div class="configOptionLabel"><label><?php echo clean($option->getDisplayName()) ?>:</label></div>
<?php if(trim($option_description = $option->getDisplayDescription())) { ?>
<div class="configOptionDescription desc"><?php echo clean($option_description) ?></div>
<?php } // if ?>
</div>
<div class="configOptionControl">
<?php
if($option->getName() == "working_days"){
echo render_add_working_days();
}else{
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:update_category.php
示例11: function
//og.redrawUserLists(og.contextManager.plainContext());
og.changeTaskRepeat = function() {
var ro = document.getElementById("<?php echo $genid ?>repeat_options");
if (ro) ro.style.display = 'none';
var word = '';
var opt_display = '';
if(document.getElementById("<?php echo $genid ?>daily").selected){
word = '<?php echo escape_single_quotes(lang("days"))?>';
} else if(document.getElementById("<?php echo $genid ?>weekly").selected){
word = '<?php echo escape_single_quotes(lang("weeks"))?>';
} else if(document.getElementById("<?php echo $genid ?>monthly").selected){
word = '<?php echo escape_single_quotes(lang("months"))?>';
} else if(document.getElementById("<?php echo $genid ?>yearly").selected){
word = '<?php echo escape_single_quotes(lang("years"))?>';
} else opt_display = 'none';
document.getElementById("<?php echo $genid ?>word").innerHTML = word;
if (ro) ro.style.display = opt_display;
}
og.reload_task_form_selectors = function() {
var dimension_members_json = Ext.util.JSON.encode(member_selector['<?php echo $genid ?>'].sel_context);
var milestone_el = document.getElementById('<?php echo $genid ?>taskListFormMilestone');
var actual_value = milestone_el ? milestone_el.value : 0;
var milestone_div = Ext.get('<?php $genid ?>add_task_more_div_milestone_combo');
if (milestone_div) {
milestone_div.load({
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:add_task.php
示例12: foreach
<?php
if (is_array($comments) && count($comments)) {
$counter = 0;
foreach ($comments as $comment) {
$counter++;
$options = array();
if ($comment->canEdit(logged_user()) && !$__comments_object->isTrashed()) {
if ($comment->getCreatedById() == logged_user()->getId() || can_write(logged_user(), $comment->getRelObject()->getMembers(), $comment->getObjectTypeId())) {
$options[] = '<a class="internalLink" href="' . $comment->getEditUrl() . '">' . lang('edit') . '</a>';
}
if ($comment->canLinkObject(logged_user())) {
$options[] = render_link_to_object($comment, lang('link objects'), true);
}
}
if ($comment->canDelete(logged_user()) && !$__comments_object->isTrashed()) {
$options[] = '<a class="internalLink" href="' . $comment->getDeleteUrl() . '" onclick="return confirm(\'' . escape_single_quotes(lang('confirm move to trash')) . '\')">' . lang('move to trash') . '</a>';
}
?>
<div class="comment <?php
echo $counter % 2 ? 'even' : 'odd';
?>
" id="comment<?php
echo $comment->getId();
?>
">
<?php
if ($comment->getCreatedBy() instanceof Contact) {
?>
<div class="commentHead">
<table style="width:100%"><tr><td>
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:object_comments.php
示例13: lang
echo "<tr><td colspan=\"2\">";
echo lang("user not subscribed to object");
echo " (";
echo '<a class="internalLink" href="#" onclick="if (confirm(\''.escape_single_quotes(lang("confirm subscribe")).'\')) og.openLink(\''.$object->getSubscribeUrl().'\');">'.lang("subscribe to object").'</a>';
echo ")";
echo "</td></tr>";
}
} else {
?>
<tr class="subscriber<?php echo $counter % 2 ? 'even' : 'odd' ?>">
<td style="padding-left:1px;vertical-align:middle;width:22px">
<a class="internalLink" href="<?php echo logged_user()->getCardUserUrl() ?>">
<div class="db-ico unknown ico-user"></div>
</a></td><td><b><a class="internalLink" href="<?php echo logged_user()->getCardUserUrl() ?>">
<span><?php echo lang("you") ?></span> </a></b> <?php if (!$object->isTrashed()) {?>
(<a class="internalLink" href="#" onclick="if (confirm('<?php echo escape_single_quotes(lang("confirm unsubscribe")) ?>')) og.openLink('<?php echo $object->getUnsubscribeUrl() ?>');"><?php echo lang("unsubscribe from object") ?></a>)
<?php } ?></td></tr>
<?php } ?>
<?php $subscribers = $object->getSubscribers();
if($subscribers){
foreach ($subscribers as $subscriber) {
if (!$subscriber instanceof Contact || $subscriber->getUserType() == 0 || $subscriber->getId() == logged_user()->getId()) continue;
$counter++; ?>
<tr class="subscriber<?php echo $counter % 2 ? 'even' : 'odd' ?>">
<td style="padding-left:1px;vertical-align:middle;width:22px">
<a class="internalLink" href="<?php echo $subscriber->getCardUserUrl() ?>">
<div class="db-ico unknown ico-user"></div>
</a></td><td><b><a class="internalLink" href="<?php echo $subscriber->getCardUserUrl() ?>">
<span><?php echo clean($subscriber->getObjectName()) ?></span> </a></b> </td></tr>
<?php } // foreach
} ?>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:list_subscribers.php
示例14: user_config_option
tpl_assign('date_format', user_config_option('date_format'));
echo tpl_fetch(get_template_path('llo_email', 'object')); break;
default: echo tpl_fetch(get_template_path('llo_generic', 'object'));
} // switch
$counter++;
$moreLinkedObjects = ($counter >= $amountOfObjects || $amountOfObjects == null);
if ($counter >= $amountOfObjects) break;
} // foreach linked object
?>
</table>
<?php if ($moreLinkedObjects) {?>
<a class="internalLink" href="javascript:og.openLink(
og.getUrl(
'object',
'show_all_linked_objects',
{linked_object:'<?php echo $linked_objects_object->getId()?>',
linked_object_name:'<?php echo escape_single_quotes(clean($linked_objects_object->getObjectName())) ?>',
linked_object_ico:'<?php echo 'ico-' . $linked_objects_object->getObjectTypeName()?>'}),
{caller:'linkedobjects'})" >
<?php echo lang('show more') . '…'?>
</a>
<?php }//if?></div><?php
} // foreach group
?></div>
</div>
<?php } else {
if ((!($linked_objects_object->isNew())) && $linked_objects_object->canLinkObject(logged_user()) && $enableAdding) {
echo '<div style="text-align:right;margin:-7px; margin-right:0px">' . render_link_to_object($linked_objects_object,lang('link objects'), true) . '</div>';
} // if?>
<?php
} // if ?>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:list_linked_objects_main.php
示例15: if
<?php $counter++; ?>
<?php if($on_list_page || ($counter <= 5)) { ?>
<tr>
<?php if($task->canChangeStatus(logged_user()) && !$task->isTrashed()) { ?>
<td class="taskCheckbox"><?php echo checkbox_link($task->getOpenUrl(rawurlencode(get_url('task', 'view', array('id' => $task_list->getId())))), true, lang('mark task as open')) ?></td>
<?php } else { ?>
<td class="taskCheckbox"><img src="<?php echo icon_url('checked.jpg') ?>" alt="<?php echo lang('completed task') ?>" /></td>
<?php } // if ?>
<td class="taskText">
<a class="internalLink" href="<?php echo $task->getObjectUrl() ?>"><?php echo clean($task->getObjectName()) ?></a>
<?php if($task->canEdit(logged_user()) && !$task->isTrashed()) { ?>
<a class="internalLink" href="<?php echo $task->getEditListUrl() ?>" class="blank" title="<?php echo lang('edit task') ?>">
<img src="<?php echo icon_url('edit.gif') ?>" alt="" /></a>
<?php } // if ?>
<?php if($task->canDelete(logged_user()) && !$task->isTrashed()) { ?>
<a href="<?php echo $task->getDeleteUrl() ?>" class="blank internalLink" onclick="return confirm('<?php echo escape_single_quotes(lang('confirm delete task')) ?>')" title="<?php echo lang('delete task') ?>">
<img src="<?php echo icon_url('cancel_gray.gif') ?>" alt="" /></a>
<?php } // if ?>
<br />
<?php if ($task->getCompletedBy() instanceof Contact) {?>
<span class="taskCompletedOnBy">(<?php echo lang('completed on by', format_date($task->getCompletedOn()), $task->getCompletedBy()->getCardUserUrl(), clean($task->getCompletedBy()->getObjectName())) ?>)</span>
<?php } else { ?>
<span class="taskCompletedOnBy">(<?php echo lang('completed on by', format_date($task->getCompletedOn()), "#", lang("n/a")) ?>)</span>
<?php } ?>
</td>
<td></td>
</tr>
<?php } // if ?>
<?php } // foreach ?>
<?php if(!$on_list_page && $counter > 5) { ?>
<tr>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:task_list.php
示例16: foreach
eval(member_selector['<?php
echo $genid;
?>
'].properties['<?php
echo $dimension_id;
?>
'].listeners.after_render);
}
</script>
<?php
$dim_count++;
}
foreach ($listeners as $event => $function) {
if ($event == 'after_render_all') {
echo '<script>' . escape_single_quotes($function) . ';</script>';
}
}
if ($default_view) {
?>
<div class="clear"></div><?php
}
?>
</div>
<script>
<?php
if ($dim_count > 0) {
?>
member_selector['<?php
echo $genid;
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:multiple_dimension_selector.php
示例17: submit_button
header_div">
<div style="display: none;">
<table><tr><td>
<?php
echo submit_button(lang('send mail'), '', array('id' => 'sendMail', 'onclick' => "og.setHfValue('{$genid}', 'isDraft', 'false');og.stopAutosave('{$genid}'); return og.attachmentConfirmationAdded('{$genid}');"));
?>
</td><td>
<?php
echo submit_button(lang('save') . " " . lang('draft'), '', array('id' => 'saveMail', 'onclick' => "og.setHfValue('{$genid}', 'isDraft', 'true');og.stopAutosave('{$genid}');"));
?>
</td><td>
<?php
$strDisabled = "";
//array_var($mail_data, 'id') == ''?'disabled':'';
echo submit_button(lang('discard'), '', array('id' => 'discardMail', 'onclick' => "if (!confirm('" . escape_single_quotes(lang('confirm discard email')) . "')) return false; else {var p = og.getParentContentPanel(Ext.get('{$genid}form'));Ext.getCmp(p.id).setPreventClose(false);} og.setDiscard('{$genid}', true);og.stopAutosave('{$genid}');", $strDisabled => ''));
?>
</td>
</tr></table>
</div>
<div>
<table style="width:95%"><tr><td style="width: 60px;">
<label for='mailTo'><?php
echo lang('mail to');
?>
<span class="label_required">*</span></label>
</td><td>
<?php
echo autocomplete_textarea_field('mail[to]', $mail_to, $allEmails, 30, array('class' => 'title', 'tabindex' => '10', 'id' => $genid . 'mailTo'));
?>
开发者ID:rorteg,项目名称:fengoffice,代码行数:31,代码来源:add_mail.php
示例18: lang
}
}
$status .= '</div>';
if ($task_list->getAssignedTo()) {
$description .= '<span style="font-weight:bold">' . lang("assigned to") . ': </span><a class=\'internalLink\' style="color:white" href=\'' . $task_list->getAssignedTo()->getCardUserUrl() . '\' title=\'' . escape_single_quotes(lang('user card of', clean($task_list->getAssignedToName()))) . '\'>' . clean($task_list->getAssignedToName()) . '</a>';
if ($task_list->getAssignedBy() instanceof Contact) {
$description .= ' <span style="font-weight:bold">' . lang("by") . ': </span> <a class=\'internalLink\' style="color:white" href=\'' . $task_list->getAssignedBy()->getCardUserUrl() . '\' title=\'' . escape_single_quotes(lang('user card of', clean($task_list->getAssignedBy()->getObjectName()))) . '\'>' . clean($task_list->getAssignedBy()->getObjectName()) . '</a>';
if ($task_list->getAssignedOn() instanceof DateTimeValue) {
$description .= ' <span style="font-weight:bold">' . lang("on") . ': </span>' . format_date($task_list->getAssignedOn());
}
}
}
$milestone = '';
if ($task_list->getMilestone() instanceof ProjectMilestone) {
$m = $task_list->getMilestone();
$milestone .= '<div class="member-path-dim-block"><div class="og-ico ico-milestone"><b>' . lang('milestones') . ': </b><a class=\'internalLink\' href=\'' . $m->getViewUrl() . '\' title=\'' . escape_single_quotes(lang('view milestone') . '\'>' . clean($m->getObjectName())) . '</a></div>';
}
$priority = '';
if ($task_list->getPriority() >= ProjectTasks::PRIORITY_URGENT) {
$priority = '<div class="og-task-priority-high"><span style="font-weight:bold">' . lang('task priority') . ": </span>" . lang('urgent priority') . '</div>';
} else {
if ($task_list->getPriority() >= ProjectTasks::PRIORITY_HIGH) {
$priority = '<div class="og-task-priority-high"><span style="font-weight:bold">' . lang('task priority') . ": </span>" . lang('high priority') . '</div>';
} else {
if ($task_list->getPriority() <= ProjectTasks::PRIORITY_LOW) {
$priority = '<div class="og-task-priority-low"><span style="font-weight:bold">' . lang('task priority') . ": </span>" . lang('low priority') . '</div>';
}
}
}
$variables = array();
tpl_assign("parentInf", $parentInf);
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:view.php
示例19: if
?>
add_reminders_warning");
} else if(document.getElementById("monthly").selected){
document.getElementById("word").innerHTML = '<?php
echo escape_single_quotes(lang("months"));
?>
';
og.cal_show("cal_extra1");
og.cal_show("cal_extra2");
og.cal_show("<?php
echo $genid;
?>
add_reminders_warning");
} else if(document.getElementById("yearly").selected){
document.getElementById("word").innerHTML = '<?php
echo escape_single_quotes(lang("years"));
?>
';
og.cal_show("cal_extra1");
og.cal_show("cal_extra2");
og.cal_show("<?php
echo $genid;
?>
add_reminders_warning");
} else if(document.getElementById("holiday").selected){
og.cal_show("cal_extra3");
og.cal_show("<?php
echo $genid;
?>
add_reminders_warning");
}
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:event.php
示例20: lang
if (!$user->getDisabled()) {
if ($user->canUpdateProfile(logged_user())) {
$options[] = '<a class="internalLink" href="' . $user->getEditProfileUrl() . '">' . lang('update profile') . '</a>';
$options[] = '<a class="internalLink" href="' . $user->getUpdateAvatarUrl() . '">' . lang('update avatar') . '</a>';
}
if ($user->canChangePassword(logged_user())) {
$options[] = '<a class="internalLink" href="' . $user->getEditPasswordUrl() . '">' . lang('change password') . '</a>';
}
if ($user->canUpdatePermissions(logged_user())) {
$options[] = '<a class="internalLink" href="' . $user->getUpdatePermissionsUrl() . '">' . lang('permissions') . '</a>';
}
if ($user->canDelete(logged_user())) {
if (!$user->hasReferences()) {
$options[] = '<a class="internalLink" href="' . get_url('account', 'delete_user', array('id' => $user->getId())) . '" onclick="return confirm(\'' . escape_single_quotes(lang('confirm delete user')) . '\');">' . lang('delete') . '</a>';
}
$options[] = '<a class="internalLink" href="' . $user->getDisableUrl() . '" onclick="return confirm(\'' . escape_single_quotes(lang('confirm disable user')) . '\');">' . lang('disable') . '</a>';
}
} else {
if ($user->canDelete(logged_user())) {
$options[] = '<a class="internalLink" href="' . get_url('account', 'restore_user', array('id' => $user->getId())) . '">' . lang('activate') . '</a>';
}
}
?>
<div class="userOptions"><?php
echo implode(' | ', $options);
?>
</div>
<div class="clear"></div>
</div>
</div>
<?php
开发者ID:rorteg,项目名称:fengoffice,代码行数:31,代码来源:list_users.php
注:本文中的escape_single_quotes函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论