本文整理汇总了PHP中escape_single_quotes函数的典型用法代码示例。如果您正苦于以下问题:PHP escape_single_quotes函数的具体用法?PHP escape_single_quotes怎么用?PHP escape_single_quotes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了escape_single_quotes函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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++) {
示例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>
示例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
示例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%;">
示例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
示例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) {
示例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 {
?>
示例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
}
?>
示例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');
示例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{
示例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({
示例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>
示例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
} ?>
示例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 ?>
示例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>