• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_app_data函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: get_app_data

		});
	});
</script>

<div class="row-fluid">
    <div class="span2">
        <?php 
include 'includes/sidebar.php';
?>
    </div> 
    <div class="span10">
    	<div class="row-fluid">
	    	<div class="span12">
		    	<div>
			    	<p class="lead"><?php 
echo get_app_data('app_name');
?>
</p>
		    	</div>
		    	<h2><?php 
echo _('Autoresponders');
?>
</h2>
				<br/>
		    	<p class="well"><?php 
echo _('List');
?>
: <a href="<?php 
echo get_app_info('path');
?>
/subscribers?i=<?php 
开发者ID:5haman,项目名称:Sendy,代码行数:31,代码来源:autoresponders-list.php


示例2: _

echo _('Query string');
?>
</label>
			        <div class="well">
				        <?php 
echo _("Optionally append a query string to all links in your email newsletter. A good use case is Google Analytics tracking. Don't include '?' in your query string.");
?>
			        </div>
			    	<div class="control-group">
				    	<div class="controls">
			              <input type="text" class="input-xlarge" id="query_string" name="query_string" placeholder="eg. utm_source=sendy&utm_medium=email&utm_content=email%20newsletter&utm_campaign=email%20newsletter">
			            </div>
			        </div>
			        
			        <?php 
$allowed_attachments = get_app_data('allowed_attachments');
$allowed_attachments_array = array_map('trim', explode(',', $allowed_attachments));
$allowed_attachments_exts = implode(', ', $allowed_attachments_array);
if ($allowed_attachments != '') {
    ?>
			        <label class="control-label" for="attachments"><?php 
    echo _('Attachments');
    ?>
</label>
		            <div class="control-group">
				    	<div class="controls">
				    		<input type="file" id="attachments" name="attachments[]" multiple />
			            </div>
			            <p class="thirtytwo"><i>Allowed file types: <?php 
    echo $allowed_attachments_exts;
    ?>
开发者ID:ariestiyansyah,项目名称:nggadu,代码行数:31,代码来源:create.php


示例3: get_app_info

</h3>
		    </div>
		    <div class="modal-body">
		    	<form action="<?php 
echo get_app_info('path');
?>
/includes/app/duplicate.php" method="POST" accept-charset="utf-8" class="form-vertical" name="duplicate-form" id="duplicate-form">
		    	<div class="control-group">
		            <label class="control-label" for="on-brand"><?php 
echo _('Choose a brand you\'d like to duplicate this campaign on');
?>
:</label><br/>
		            <div class="controls">
		              <select id="on-brand" name="on-brand">
		              	<?php 
echo '<option value="' . get_app_info('app') . '" id="brand-' . get_app_info('app') . '">' . get_app_data('app_name') . '</option>';
$q = 'SELECT id, app_name FROM apps WHERE userID = ' . get_app_info('main_userID');
$r = mysqli_query($mysqli, $q);
if ($r && mysqli_num_rows($r) > 0) {
    while ($row = mysqli_fetch_array($r)) {
        $app_id = $row['id'];
        $app_name = $row['app_name'];
        //sub users can only duplicate a campaign in their own brand
        if (get_app_info('is_sub_user') != true) {
            if ($app_id != get_app_info('app')) {
                echo '<option value="' . $app_id . '" id="brand-' . $app_id . '">' . $app_name . '</option>';
            }
        }
    }
}
?>
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:app.php


示例4: _

?>
">
			            </div>
			        </div>
			        
			        <label class="control-label" for="reply_to"><?php 
echo _('Reply to email');
?>
</label>
			    	<div class="control-group">
				    	<div class="controls">
			              <input type="text" class="input-xlarge" id="reply_to" name="reply_to" placeholder="<?php 
echo _('Reply to email');
?>
" value="<?php 
echo get_app_data('reply_to');
?>
">
			            </div>
			        </div>
			        
			        <label class="control-label" for="plain"><?php 
echo _('Plain text');
?>
</label>
		            <div class="control-group">
				    	<div class="controls">
			              <textarea class="input-xlarge" id="plain" name="plain" rows="10" placeholder="<?php 
echo _('Plain text of this email');
?>
"></textarea>
开发者ID:bogdanhruban,项目名称:Templates-for-Sendy,代码行数:31,代码来源:template_create.php


示例5: get_app_info

            }
            //Reset current limit to 0 and set the month_of_next_reset to the next month
            $q = 'UPDATE apps SET current_quota = 0, month_of_next_reset = "' . $month_next . '" WHERE id = ' . get_app_info('app');
            $r = mysqli_query($mysqli, $q);
            if ($r) {
                //Update new $brand_month_of_next_reset
                $brand_month_of_next_reset = $month_next;
            }
        }
        //Calculate day of reset for next month
        $month_next = strtotime('1 ' . $brand_month_of_next_reset);
        $month_next = strftime("%m", $month_next);
        $no_of_days_next_month = cal_days_in_month(CAL_GREGORIAN, $month_next, $year_today);
        $brand_limit_resets_on = get_app_data('day_of_reset') > $no_of_days_next_month ? $no_of_days_next_month : get_app_data('day_of_reset');
        //Get sends left
        $brand_current_quota = get_app_data('current_quota');
        $brand_sends_left = $brand_monthly_quota - $brand_current_quota;
        $ses_sends_left = $brand_sends_left;
    } else {
        $ses_sends_left = -1;
    }
    //unlimited sending
} else {
    if ($aws_keys_available == 'true') {
        $ses_sends_left = round($quotaArray[0] - $quotaArray[2]);
    }
}
?>
	        
	        <?php 
if (get_app_info('is_sub_user')) {
开发者ID:5haman,项目名称:Sendy,代码行数:31,代码来源:send-to.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_app_info函数代码示例发布时间:2022-05-15
下一篇:
PHP get_app函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap