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


PHP param::default_value方法代码示例

本文整理汇总了PHP中param::default_value方法的典型用法代码示例。如果您正苦于以下问题:PHP param::default_value方法的具体用法?PHP param::default_value怎么用?PHP param::default_value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在param的用法示例。


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

示例1:

    echo ">Only your Buddies</option>";
}
?>

                    </select>
                    <?php 
if (in_array($param->driver, $param->joomla_drivers) == true) {
    echo '<br/><br/>Enter group ids separated by commas [user groups created in joomla user manager]<br/>


                                                  
                            <a href="admin_files/home/example_ug_ids.png" target="_blank">click here</a>  to see an example of group ids

                            <div id="fade"></div>

                            <input type="text" name="ug_ids" value="' . $param->default_value("ug_ids") . '"/>
                            <br/><span style="color:#999"><em>if left empty freichat will fetch users as per the previous option else will override it.</em></span>';
}
?>
                    <br/><br/>                <?php 
//echo $param->default_param("link_profile", "enabled");
if (in_array($param->driver, $param->link_profile_supported_drivers) == true) {
    echo '
                        <p>Show link to user\'s profile</p>
                        <select name="link_profile">
                            <option value="enabled" ';
    $param->default_param("link_profile", "enabled");
    echo ' >Yes</option>
                            <option value="disabled" ';
    $param->default_param("link_profile", "disabled");
    echo '>No</option>
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:index.php

示例2:

                <select name="polling">
                    <option value="disabled"<?php 
$param->default_param("polling", "disabled");
?>
>Short Polling</option>
                    <option value="enabled"<?php 
$param->default_param("polling", "enabled");
?>
>Comet</option>
                </select>
                <br/><br/><hr/>
                <br/>
                Polling Time:(only for comet)<br/><br/>

                <input type="text" name="polling_time" value="<?php 
echo $param->default_value('polling_time');
?>
"/> seconds

                <br/><br/>
                <hr/>
                <p>
                <h3>What is Comet?</h3>
                Comet is a web application model in which a long-held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it. Comet is an umbrella term, encompassing multiple techniques for achieving this interaction. All these methods rely on features included by default in browsers, such as JavaScript, rather than on non-default plugins. The Comet approach differs from the original model of the web, in which a browser requests a complete web page at a time.
                The use of Comet techniques in web development predates the use of the word Comet as a neologism for the collective techniques. Comet is known by several other names, including Ajax Push, Reverse Ajax,Two-way-web, HTTP Streaming, and HTTP server push among others

                <br/>
                <br/>
                Pros: you are notified when the server event happens with no delay.<br/> 
                Cons: more complex and more server resources used as the connection is kept alive. 
                </p>
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:index.php

示例3: Time

?>
>Short Polling</option>
                    <option value="enabled"<?php 
$param->default_param("polling", "enabled");
?>
>Comet</option>
                </select>
                <br/><hr/>
                <br/>

                <div class="control-group">
                    <label class="control-label" for="appendedInput">Polling Time (only for comet)</label><br/>
                    <div class="controls">
                        <div class="input-append">
                            <input name="polling_time" value="<?php 
echo $param->default_value('polling_time');
?>
" id="appendedInput"  type="text"><span class="add-on">seconds</span>
                        </div>
                    </div>
                </div>  

                <br/>
                <hr/>



                <p>
                <h3>What is Comet?</h3>
                Comet is a web application model in which a long-held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it. Comet is an umbrella term, encompassing multiple techniques for achieving this interaction. All these methods rely on features included by default in browsers, such as JavaScript, rather than on non-default plugins. The Comet approach differs from the original model of the web, in which a browser requests a complete web page at a time.
                The use of Comet techniques in web development predates the use of the word Comet as a neologism for the collective techniques. Comet is known by several other names, including Ajax Push, Reverse Ajax,Two-way-web, HTTP Streaming, and HTTP server push among others
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:index.php

示例4: theme

$param->default_param(array("plugins", "chatroom", "autoclose"), 'false');
?>
>No</option>

                    </select>
                    <br/><br/>

                    <div class="control-group">
                        <label class="control-label" for="appendedInput">
                            Temporary chatrooms created by users/guests would be deleted after 
                        </label>

                        <div class="controls">
                            <div class="input-append">
                                <input name="chatroom_expiry" value="<?php 
echo $param->default_value(array("plugins", "chatroom", 'chatroom_expiry'), 3);
?>
" id="appendedInput" size="16" type="text"><span class="add-on">seconds</span>
                            </div>
                        </div>
                    </div>  
                    <br/><br/>

                    <p>Take below values from the theme (defined in client/themes/your_theme/argument.php)</p>
                    <select id="overrid_positions" name='override_positions'>
                        <option value='yes' <?php 
$param->default_param(array("plugins", "chatroom", "override_positions"), 'yes');
?>
>Yes</option>
                        <option value='no'  <?php 
$param->default_param(array("plugins", "chatroom", "override_positions"), 'no');
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:index.php

示例5:

                    <div class="parameters">

                        <div id="tabs">

                            <!-- First TAB -->
                            <div id="client">




                                <div class="control-group">
                                    <label class="control-label" for="appendedInput">Maximum file size for uploading</label>
                                    <div class="controls">
                                        <div class="input-append">
                                            <input name="max_file_size" value="<?php 
echo $param->default_value(array("plugins", "file_sender", "file_size"), 3);
?>
" id="appendedInput" size="16" type="text"><span class="add-on">KB</span>
                                        </div>
                                    </div>
                                </div>  

                                <div class="control-group">
                                    <label class="control-label" for="appendedInput">Uploaded files will be deleted after</label>
                                    <div class="controls">
                                        <div class="input-append">
                                            <input name="max_file_expiry" value="<?php 
echo $param->default_value(array("plugins", "file_sender", "expiry"), 3);
?>
" id="appendedInput" size="16" type="text"><span class="add-on">minutes</span>
                                        </div>
开发者ID:bandaaceh,项目名称:slims8_akasia,代码行数:31,代码来源:index.php

示例6: Settings

                                        </select>
                                    </div>
                                </div>  
                                
                                <hr/>
                                
                                <p style="text-align:left"><b>SMTP Related Settings(Required if you choose SMTP)</b></p><br/>



                                <div class="control-group">
                                    <label class="control-label" for="appendedInput">SMTP server</label>
                                    <div class="controls">
                                        <div>
                                            <input name="smtp_server" value="<?php 
echo $param->default_value(array("plugins", "send_conv", "smtp_server"), 3);
?>
" type="text">
                                        </div>
                                    </div>
                                </div>  



                                <div class="control-group">
                                    <label class="control-label" for="appendedInput">SMTP port</label>
                                    <div class="controls">
                                        <div>
                                            <input size="60px" name="smtp_port" value="<?php 
echo $param->default_value(array("plugins", "send_conv", "smtp_port"), 3);
?>
开发者ID:bandaaceh,项目名称:slims8_akasia,代码行数:31,代码来源:index.php


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