Home >Backend Development >PHP Tutorial >Simple PHP address book for new scripting language_PHP tutorial

Simple PHP address book for new scripting language_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:31:12967browse


Administrators can manually create menus, select individual department lists from the LDAP server, select multiple recipients and copies, blind copies, and send them using the default email client.
 
There are three files:
 
 ldap.html is a pure framework file.
 ldap.php(as the current mainstream development language) Use the menu to obtain the email address through php(as the current mainstream development language) and create a javascript menu .
 select.html Gets the selected item from ldap.php (as the current mainstream development language) and creates a link for the email client to access.
 
Cut and pasted. Since part of the program code comes from Squirrel Mail, this program is GPL. The skill is not good, please ask a master to modify it. icon_redface.gif
 
 ldap.html (no modification required)
 
 Code:
 
 
 Java Script LDAP Addressbook< ;/title></head><br> <frameset rows="*,130"><br> <frame alt=""http://www.BkJia.com/kf/ware/vc/ " target="_blank" class="keylink">vcWxvtPv0dTQwtPDvPLS17XEcGhwPGZvbnQgY2xhc3M9cmVibGFuaz4o1/bOqs/W1Nq1xNb3wfe/qrei0+/R1Ck8L2ZvbnQ+zajRtrK+" src=http://www.chinaitlab.com/www/news/ ldap.php<font class=reblank>(as now Mainstream development language)</font> name="fr1"><br> <frame alt="Scripting language newly uses simple php<font class=reblank>(as the current mainstream development language)</font>Address Book" src =http://www.chinaitlab.com/www/news/select.html name="fr2"><br> </frameset><br> </html><br> ldap.php<font class="reblank"> (As the current mainstream development language) </font> (Please modify the ldap server link, department list and search basics to meet your needs.) <br> <br> ※Special note, our company’s search is Based on lastname. It is not divided by department. Please modify it yourself to meet your needs. <br> <br> Code:<br> <br> <h3>Free source code company address book query</h3><br> <Script language="javascript"><br> <br> function to_addr($addr)<br> {<br> var prefix = "";<br> var pwintype = typeof parent.fr2.document.selectaddr;<br> <br> $addr = $addr.replace(/ {1 ,35}$/, "");<br> <br> if (pwintype != "undefined") {<br> if (parent.fr2.document.selectaddr.toaddr.value) {<br> prefix = " , ";<br> parent.fr2.document.selectaddr.toaddr.value =<br> parent.fr2.document.selectaddr.toaddr.value + ", " + $addr;<br>} else {<br> parent .fr2.document.selectaddr.toaddr.value = $addr;<br> }<br> }<br> <br> }<br> <br> function cc_addr($addr)<br> {<br> var prefix = "";<br> var pwintype = typeof parent.fr2.document.selectaddr;<br> <br> $addr = $addr.replace(/ {1,35}$/, "");<br> <br> if (pwintype != "undefined") {<br> if (parent.fr2.document.selectaddr.ccaddr.value) {<br> prefix = ", ";<br> parent.fr2.document.selectaddr. ccaddr.value =<br> parent.fr2.document.selectaddr.ccaddr.value + ", " + $addr;<br> } else {<br> parent.fr2.document.selectaddr.ccaddr.value = $addr; <br> }<br> }<br> .document.selectaddr;<br> <br> $addr = $addr.replace(/ {1,35}$/, "");<br> <br> if (pwintype != "undefined") {<br> if (parent.fr2.document.selectaddr.bccaddr.value) {<br> prefix = ", ";<br> parent.fr2.document.selectaddr.bccaddr.value =<br> parent.fr2.document.selectaddr .bccaddr.value + ", " + $addr;<br> } else {<br> parent.fr2.document.selectaddr.bccaddr.value = $addr;<br> }<br> }<br><br> }<br> </Script><br> <br> <form method="post" action=ldap.php<BR>(as the current mainstream development language)<BR>?$query><br> <SELECT NAME="query" SIZE="1" onChange="submit();"><br> <br> <OPTION VLAUE="" SELECTED><br> <OPTION VALUE=01*> 01 R&D Department<font class="reblank"> <OPTION VALUE=02*>02Administration Department</font> <OPTION VALUE=03*>03 Quality Assurance Department<br> <OPTION VALUE=*>List all<br><br> </SELECT><br> </form><br> <br> LDAP is connect, bind, search, interpret search <br></p> <p align="left"></p> <div style="display:none;"> <span id="url" itemprop="url">http://www.bkjia.com/PHPjc/509082.html</span><span id="indexUrl" itemprop="indexUrl">www.bkjia.com</span><span id="isOriginal" itemprop="isOriginal">true</span><span id="isBasedOnUrl" itemprop="isBasedOnUrl">http: //www.bkjia.com/PHPjc/509082.html</span><span id="genre" itemprop="genre">TechArticle</span><span id="description" itemprop="description">Administrators can manually create menus, select individual department lists from the LDAP server, and select multiple recipients and copies, blind copies, and sent using your default email client. ...</span> </div> <div class="art_confoot"></div></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>Statement:</span><div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div></div></div><div class="nphpSytBox"><span>Previous article:<a class="dBlack" title="The official version of Zend Framework 1.0 will be released soon_PHP Tutorial" href="https://m.php.cn/faq/301450.html">The official version of Zend Framework 1.0 will be released soon_PHP Tutorial</a></span><span>Next article:<a class="dBlack" title="The official version of Zend Framework 1.0 will be released soon_PHP Tutorial" href="https://m.php.cn/faq/301452.html">The official version of Zend Framework 1.0 will be released soon_PHP Tutorial</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>Related articles</h2><em><a href="https://m.php.cn/article.html" class="bBlack"><i>See more</i><b></b></a></em><div class="clear"></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><ul class="nphpXgwzList"><li><b></b><a href="https://m.php.cn/faq/1.html" title="How to use cURL to implement Get and Post requests in PHP" class="aBlack">How to use cURL to implement Get and Post requests in PHP</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/1.html" title="How to use cURL to implement Get and Post requests in PHP" class="aBlack">How to use cURL to implement Get and Post requests in PHP</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/1.html" title="How to use cURL to implement Get and Post requests in PHP" class="aBlack">How to use cURL to implement Get and Post requests in PHP</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/1.html" title="How to use cURL to implement Get and Post requests in PHP" class="aBlack">How to use cURL to implement Get and Post requests in PHP</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/2.html" title="All expression symbols in regular expressions (summary)" class="aBlack">All expression symbols in regular expressions (summary)</a><div class="clear"></div></li></ul></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>Public welfare online PHP training,Help PHP learners grow quickly!</p></div><div class="footermid"><a href="https://m.php.cn/about/us.html">About us</a><a href="https://m.php.cn/about/disclaimer.html">Disclaimer</a><a href="https://m.php.cn/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body></html>