From 902303fd6d0957f9ab92ce111576dbdeeb53119b Mon Sep 17 00:00:00 2001 From: Ebersold Date: Wed, 29 Dec 2021 10:21:14 +0100 Subject: [PATCH] Initial import from svn --- README.php | 16 + accounting/accueil.en_US.UTF-8.xml | 73 + accounting/accueil.fr_FR.UTF-8.xml | 75 + accounting/budget.fr_FR.UTF-8.xml | 13 + accounting/contact.en_US.UTF-8.xml | 34 + accounting/contact.fr_FR.UTF-8.xml | 34 + accounting/copropriete.fr_FR.UTF-8.xml | 8 + accounting/donates.fr_FR.UTF-8.xml | 30 + accounting/fournisseur.fr_FR.UTF-8.xml | 13 + accounting/journaux.fr_FR.UTF-8.xml | 17 + accounting/liens_syndic.en_US.UTF-8.xml | 21 + accounting/liens_syndic.fr_FR.UTF-8.xml | 31 + accounting/plan_comptable.fr_FR.UTF-8.xml | 10 + accounting/products.en_US.UTF-8.xml | 41 + accounting/products.fr_FR.UTF-8.xml | 35 + accounting/services.en_US.UTF-8.xml | 21 + accounting/services.fr_FR.UTF-8.xml | 32 + accueil.en_US.UTF-8.xml | 71 + accueil.fr_FR.UTF-8.xml | 71 + accueil.xml | 98 + activite.en_US.UTF-8.xml | 61 + activite.fr_FR.UTF-8.xml | 62 + activite.xml | 94 + app/admin/index.js | 141 + app/admin/view/index.fr_FR.UTF-8.xml | 351 + app/basic.php | 221 + app/calendar/calendar.php | 25 + app/common.php | 78 + app/compta/Accounting.mysql | 2465 ++ app/compta/Accounting.sql | 864 + app/compta/AccountingCreate.mysql | 579 + app/compta/Budgets.mysql | 85 + app/compta/InitAccounting.mysql | 681 + app/compta/booking.php | 70 + app/compta/budget.js | 302 + app/compta/budget.php | 130 + app/compta/budget_edit.xml | 58 + app/compta/copro.js | 760 + app/compta/copro_decompte.xml | 116 + app/compta/copro_entretien.xml | 47 + app/compta/copro_pay.xml | 75 + app/compta/copro_role.xml | 53 + app/compta/copro_users.xml | 61 + app/compta/exercice.js | 142 + app/compta/exercice.xml | 62 + app/compta/identity.php | 193 + app/compta/index.php | 117 + app/compta/index.xml | 240 + app/compta/journaux.js | 306 + app/compta/journaux.xml | 240 + app/compta/jrnx.xml | 58 + app/compta/jrnx_detail.xml | 72 + app/compta/jrnx_record.xml | 68 + app/compta/ledger_church.xml | 396 + app/compta/ledger_create.xml | 199 + app/compta/ledger_syndic.xml | 537 + app/compta/lot.xml | 119 + app/compta/lot_attribuer.xml | 51 + app/compta/lot_charge.xml | 126 + app/compta/lots.js | 339 + app/compta/parametre.js | 188 + app/compta/parametre.xml | 71 + app/compta/pcmn.js | 321 + app/compta/pcmn.php | 105 + app/compta/pcmn.xml | 395 + app/compta/reports/decompte_charge.php | 158 + app/compta/reports/recu_taxe.php | 195 + app/compta/reports/syndic_annexe1.php | 689 + app/compta/reports/syndic_annexes.php | 1124 + app/compta/retrieve.php | 136 + app/compta/supplier.js | 450 + app/compta/supplier_account.xml | 118 + app/compta/supplier_add.xml | 101 + app/compta/supplier_bill.xml | 120 + app/compta/supplier_pay.xml | 110 + app/compta/supplier_remove.xml | 240 + app/compta/syndic.php | 274 + app/compta/upload.php | 30 + app/compta/users.xml | 240 + app/config/analystictracking_andre.php | 13 + app/config/analystictracking_syndic.php | 13 + app/config/andre.php | 535 + app/config/config.php | 196 + app/config/feebf.php | 161 + app/config/mysql.conf.php.example | 87 + app/config/trinity.php | 355 + app/distro/distribution.php | 232 + app/distro/index.en_US.UTF-8.xml | 75 + app/distro/index.php | 162 + app/distro/packages.js | 47 + app/distro/sql-requests.xml | 56 + app/distro/view.en_US.UTF-8.xml | 51 + app/distro/view.js | 85 + app/distro/view/distribution.xml | 284 + app/distro/view/index.fr_FR.UTF8.xml | 269 + app/distro/view/index.js | 188 + app/distro/view/index.xml | 233 + app/distro/view/pkg.xml | 284 + app/distro/view/tc.xml | 284 + app/ftp/ftp.sql | 68 + app/ftp/proftpd.conf | 49 + app/index.php | 138 + app/index.xml | 360 + app/member/annuaire.mysql | 222 + app/member/annuaire.php | 141 + app/member/annuaire.xml | 145 + app/member/class.db_eglise.php | 88 + app/member/class.db_groups.php | 66 + app/member/class.db_user.php | 271 + app/member/class.json_db_user.php | 113 + app/member/comments.php | 45 + app/member/eglise.php | 61 + app/member/groups.php | 14 + app/member/index.php | 58 + app/member/login.php | 378 + app/member/members.php | 87 + app/member/profile.php | 361 + app/member/sql-andre-requests.xml | 74 + app/member/sql-requests.xml | 70 + app/member/sql-trinity-requests.xml | 73 + app/registration/class.db_stats.php | 24 + app/registration/counting.php | 134 + app/registration/register.php | 160 + app/users.xml | 240 + app/xsd2cpp/view/main.fr_FR.UTF8.xml | 41 + app/xsl/generate_html.xsl | 109 + app/xsl/gui-wizard.xsl | 98 + app/xsl/gui.xsl | 1247 + app/xsl/header_footer.xsl | 58 + app/xsl/menus.xsl | 206 + app/xsl/tree.xsl | 61 + app/xsl/view.xsl | 171 + app/xsl/wsdl-util.xsl | 163 + app/xsl/wsdl2idl.xsl | 382 + app/xsl/wsdl2mico-cpp.xsl | 118 + app/xsl/wsdl2mico-header.xsl | 108 + .../06/06_asn1_sans_craintes.fr_FR.UTF-8.xml | 9 + .../06/06_eloise_blog_page.en_US.UTF-8.xml | 9 + calendar.en_US.UTF-8.xml | 26 + calendar.fr_FR.UTF-8.xml | 27 + calendar.xml | 33 + calendar_doc.xml | 44 + competence.xml | 35 + config.xml | 46 + contact.en_US.UTF-8.xml | 34 + contact.fr_FR.UTF-8.xml | 23 + contact.php | 71 + contact.xml | 72 + corba/csp.xml | 190 + corba/csp_poa.xml | 115 + corba/index.xml | 177 + corba/liens.xml | 26 + corba/liens_php.xml | 26 + corba/log.xml | 121 + corba/query.xml | 85 + corba/sales.xml | 129 + corba/webserver.xml | 103 + css/SyntaxHighlighter.css | 185 + css/andre/default.css | 1253 + css/andre/ie_ahp.css | 71 + css/andre/min-andre.php | 18 + css/andre/theme-andre-bottom.php | 52 + css/andre/theme-andre-menuh.php | 159 + css/andre/theme-andre.php | 1234 + css/andre/theme-syndic.css | 1320 + css/andre/tinymce.css | 93 + css/cssmin-v3.0.1.php | 5082 +++ css/cv.css | 10 + css/jscook/JSCookTree.js | 862 + css/jscook/ThemeLibrary.zip | Bin 0 -> 2444 bytes css/jscook/ThemeNavy.zip | Bin 0 -> 1819 bytes css/jscook/ThemeOffice2003-1.1.zip | Bin 0 -> 4755 bytes css/jscook/ThemeXP.zip | Bin 0 -> 4961 bytes css/jscook/base.gif | Bin 0 -> 908 bytes css/jscook/folder.gif | Bin 0 -> 372 bytes css/jscook/folder1.gif | Bin 0 -> 163 bytes css/jscook/folder2.gif | Bin 0 -> 242 bytes css/jscook/folderopen1.gif | Bin 0 -> 139 bytes css/jscook/join.gif | Bin 0 -> 73 bytes css/jscook/joinbottom.gif | Bin 0 -> 70 bytes css/jscook/jscookmenu-2.0.3.zip | Bin 0 -> 14244 bytes css/jscook/line.gif | Bin 0 -> 70 bytes css/jscook/minus.gif | Bin 0 -> 85 bytes css/jscook/minusbottom.gif | Bin 0 -> 85 bytes css/jscook/page.gif | Bin 0 -> 220 bytes css/jscook/plus.gif | Bin 0 -> 131 bytes css/jscook/plusbottom.gif | Bin 0 -> 89 bytes css/jscook/spacer.gif | Bin 0 -> 58 bytes css/jscook/theme.css | 144 + css/jscook/theme.js | 75 + css/lightbox.css | 27 + css/tree.css | 85 + css/xgui/default.css | 692 + css/xgui/theme-andre.css | 288 + css/xgui/theme-syndic.css | 344 + css/xgui/theme.css | 105 + cv-2011-05-12.en_US.UTF-8.xml | 157 + cv-2011-05-12.fr_FR.UTF-8.xml | 174 + cv.en_US.UTF-8.xml | 274 + cv.fr_FR.UTF-8.xml | 274 + cv.xml | 274 + cv_080610genesis.xml | 278 + cv_alcatel.xml | 170 + cv_dna.xml | 139 + formapre/070316_msg.xml | 196 + formapre/cours.xml | 95 + formapre/devoirs.xml | 117 + formapre/index.xml | 79 + formapre/liens.xml | 30 + formapre/m4c5da.xml | 61 + formapre/m4c5db.xml | 39 + formapre/m5c1da.xml | 39 + formapre/m5c1db.xml | 40 + formapre/m5c2db.xml | 48 + formapre/m5c3da.xml | 42 + formapre/m5c3db.xml | 67 + formapre/m5c4_cours.xml | 733 + formapre/m5c4da.xml | 354 + formapre/m5c4db.xml | 184 + formapre/m5c5_cours.xml | 544 + formapre/m5c5da.xml | 195 + formapre/m5c5db.xml | 137 + formapre/meinau.xml | 47 + formapre/module5_cours3_devoir_B.xml | 26 + formapre/news.xml | 36 + formapre/program.xml | 29 + formapre/subscribe.xml | 50 + generate.bat | 21 + header.xml | 41 + header_php.xml | 45 + images/XML.png | Bin 0 -> 413 bytes images/accounting/NewMenuHBlack60px.png | Bin 0 -> 306 bytes images/accounting/barre_etat.png | Bin 0 -> 6701 bytes images/accounting/book-dolars.png | Bin 0 -> 1499 bytes images/accounting/budget_edit.png | Bin 0 -> 23689 bytes images/accounting/budget_liste.png | Bin 0 -> 7313 bytes images/accounting/budget_menu.png | Bin 0 -> 1833 bytes images/accounting/building.jpg | Bin 0 -> 66146 bytes images/accounting/menu_coprorpiete.png | Bin 0 -> 8728 bytes images/accounting/payer_facture.png | Bin 0 -> 9436 bytes images/accounting/saisie_facture.png | Bin 0 -> 23463 bytes images/accounting/syndic-header-n.png | Bin 0 -> 14533 bytes images/accounting/syndic-logo.png | Bin 0 -> 8673 bytes images/andre-icon-cpp.png | Bin 0 -> 31277 bytes images/andre.jpg | Bin 0 -> 135076 bytes images/appli_evt/add.gif | Bin 0 -> 135 bytes images/appli_evt/alert_high.gif | Bin 0 -> 586 bytes images/appli_evt/alert_icon.gif | Bin 0 -> 216 bytes images/appli_evt/alert_normal.gif | Bin 0 -> 104 bytes images/appli_evt/alert_profile.gif | Bin 0 -> 940 bytes images/appli_evt/arch_files.gif | Bin 0 -> 828 bytes images/appli_evt/bookmarks.gif | Bin 0 -> 583 bytes images/appli_evt/calendar_range.gif | Bin 0 -> 1052 bytes images/appli_evt/cp_depts.png | Bin 0 -> 1890 bytes images/appli_evt/cp_filtersettings.gif | Bin 0 -> 1066 bytes images/appli_evt/cp_mailsettings.gif | Bin 0 -> 966 bytes images/appli_evt/cp_productinfo.png | Bin 0 -> 1668 bytes images/appli_evt/del.gif | Bin 0 -> 104 bytes images/appli_evt/edit.gif | Bin 0 -> 538 bytes images/appli_evt/host_32_icon.gif | Bin 0 -> 1724 bytes images/appli_evt/host_details_icon.gif | Bin 0 -> 919 bytes images/appli_evt/host_group.gif | Bin 0 -> 813 bytes images/appli_evt/host_mini.gif | Bin 0 -> 179 bytes images/appli_evt/last10a.gif | Bin 0 -> 111 bytes images/appli_evt/last10a_dis.gif | Bin 0 -> 885 bytes images/appli_evt/logo_cisco.gif | Bin 0 -> 114 bytes images/appli_evt/logo_linux.gif | Bin 0 -> 585 bytes images/appli_evt/logo_win.gif | Bin 0 -> 1087 bytes images/appli_evt/myreport.gif | Bin 0 -> 605 bytes images/appli_evt/mysql.gif | Bin 0 -> 930 bytes images/appli_evt/port_up.gif | Bin 0 -> 155 bytes images/appli_evt/scheduler_list.gif | Bin 0 -> 878 bytes images/appli_evt/star_home.gif | Bin 0 -> 303 bytes images/appli_evt/started.gif | Bin 0 -> 116 bytes images/appli_evt/sviewer.gif | Bin 0 -> 559 bytes images/bookkeeping-church.png | Bin 0 -> 24671 bytes images/bookkeeping.png | Bin 0 -> 23915 bytes images/btn_help.gif | Bin 0 -> 413 bytes images/btn_rss.gif | Bin 0 -> 210 bytes images/bullet.gif | Bin 0 -> 119 bytes images/button-dessin.svg | 198 + images/caddie-blanc.gif | Bin 0 -> 1240 bytes images/cell.gif | Bin 0 -> 373 bytes images/close.gif | Bin 0 -> 222 bytes images/closelabel.gif | Bin 0 -> 979 bytes images/edit.png | Bin 0 -> 1388 bytes images/faq_docman.gif | Bin 0 -> 168 bytes images/flag-de.png | Bin 0 -> 157 bytes images/flag-en.png | Bin 0 -> 544 bytes images/flag-fr.png | Bin 0 -> 97 bytes images/fondsslogo.jpg | Bin 0 -> 365 bytes images/home/120x90_IMG_5152.jpg | Bin 0 -> 7038 bytes images/home/bleue-bottom.png | Bin 0 -> 2077 bytes images/home/bleue-header.png | Bin 0 -> 24567 bytes images/home/bleue-middle.png | Bin 0 -> 223 bytes images/home/dialogh.png | Bin 0 -> 409 bytes images/home/menuh_item.png | Bin 0 -> 1200 bytes images/home/menuh_item_over.png | Bin 0 -> 1154 bytes images/ico_page.gif | Bin 0 -> 186 bytes images/icon-benifit.gif | Bin 0 -> 307 bytes images/icon-livedemo.gif | Bin 0 -> 1088 bytes images/icon-support.gif | Bin 0 -> 273 bytes images/icon_events.gif | Bin 0 -> 86 bytes images/icon_green_left.gif | Bin 0 -> 51 bytes images/icon_green_notice.gif | Bin 0 -> 399 bytes images/icon_green_right.gif | Bin 0 -> 51 bytes images/icon_yellow_notice.gif | Bin 0 -> 400 bytes images/icons/11x11/disable.gif | Bin 0 -> 61 bytes images/icons/11x11/enable.gif | Bin 0 -> 61 bytes images/icons/16x16/add.png | Bin 0 -> 3374 bytes images/icons/16x16/arrow_down.gif | Bin 0 -> 52 bytes images/icons/16x16/arrow_up.gif | Bin 0 -> 52 bytes images/icons/16x16/bookmark.gif | Bin 0 -> 594 bytes images/icons/16x16/btn_help16.png | Bin 0 -> 515 bytes images/icons/16x16/budget.png | Bin 0 -> 1006 bytes images/icons/16x16/close_hov.gif | Bin 0 -> 323 bytes images/icons/16x16/contact.png | Bin 0 -> 3428 bytes images/icons/16x16/delete.gif | Bin 0 -> 350 bytes images/icons/16x16/drop4.jpg | Bin 0 -> 1229 bytes images/icons/16x16/edit.gif | Bin 0 -> 533 bytes images/icons/16x16/edit_colums.gif | Bin 0 -> 578 bytes images/icons/16x16/edit_list.gif | Bin 0 -> 577 bytes images/icons/16x16/error.gif | Bin 0 -> 339 bytes images/icons/16x16/exe.gif | Bin 0 -> 1053 bytes images/icons/16x16/exprt_excel.gif | Bin 0 -> 230 bytes images/icons/16x16/exprt_file.gif | Bin 0 -> 364 bytes images/icons/16x16/exprt_pdf.gif | Bin 0 -> 358 bytes images/icons/16x16/favorite.gif | Bin 0 -> 349 bytes images/icons/16x16/feed.png | Bin 0 -> 800 bytes images/icons/16x16/flash.gif | Bin 0 -> 1010 bytes images/icons/16x16/help.gif | Bin 0 -> 622 bytes images/icons/16x16/home-gray.png | Bin 0 -> 466 bytes images/icons/16x16/home.png | Bin 0 -> 3478 bytes images/icons/16x16/invite.png | Bin 0 -> 752 bytes images/icons/16x16/list.gif | Bin 0 -> 595 bytes images/icons/16x16/mail.png | Bin 0 -> 3277 bytes images/icons/16x16/mail16.png | Bin 0 -> 617 bytes images/icons/16x16/manual.png | Bin 0 -> 574 bytes images/icons/16x16/modify.gif | Bin 0 -> 357 bytes images/icons/16x16/network.png | Bin 0 -> 3549 bytes images/icons/16x16/pdf-a.png | Bin 0 -> 744 bytes images/icons/16x16/personal-a.png | Bin 0 -> 706 bytes images/icons/16x16/print.gif | Bin 0 -> 612 bytes images/icons/16x16/printer-a.png | Bin 0 -> 1150 bytes images/icons/16x16/refresh.gif | Bin 0 -> 211 bytes images/icons/16x16/related_obj.gif | Bin 0 -> 599 bytes images/icons/16x16/rss.png | Bin 0 -> 745 bytes images/icons/16x16/search.png | Bin 0 -> 841 bytes images/icons/16x16/select.png | Bin 0 -> 3399 bytes images/icons/16x16/sendmail.gif | Bin 0 -> 390 bytes images/icons/16x16/tabular.gif | Bin 0 -> 249 bytes images/icons/16x16/tested_by_obj.gif | Bin 0 -> 588 bytes images/icons/16x16/warning.png | Bin 0 -> 3957 bytes images/icons/17x17/doubledown-a.png | Bin 0 -> 1009 bytes images/icons/17x17/down-a.png | Bin 0 -> 1035 bytes images/icons/17x17/left-a.png | Bin 0 -> 1014 bytes images/icons/17x17/right-a.png | Bin 0 -> 1017 bytes images/icons/20x20/cvs.png | Bin 0 -> 994 bytes images/icons/20x20/docman.png | Bin 0 -> 852 bytes images/icons/20x20/forum.png | Bin 0 -> 1188 bytes images/icons/20x20/home.png | Bin 0 -> 1074 bytes images/icons/20x20/survey.png | Bin 0 -> 807 bytes images/icons/20x20/taskman.png | Bin 0 -> 885 bytes images/icons/20x20/tracker.png | Bin 0 -> 1269 bytes images/icons/24x24/calendar.png | Bin 0 -> 958 bytes images/icons/24x24/group.png | Bin 0 -> 1296 bytes images/icons/24x24/home.png | Bin 0 -> 1445 bytes images/icons/24x24/journal.png | Bin 0 -> 1207 bytes images/icons/24x24/music.png | Bin 0 -> 1095 bytes images/icons/24x24/photos.png | Bin 0 -> 966 bytes images/icons/24x24/read_big.gif | Bin 0 -> 1126 bytes images/icons/24x24/review_big.gif | Bin 0 -> 1151 bytes images/icons/24x24/reviews.png | Bin 0 -> 1251 bytes images/icons/24x24/spy.gif | Bin 0 -> 1179 bytes images/icons/29x29/picto-comptes.png | Bin 0 -> 888 bytes images/icons/29x29/picto-epargne.png | Bin 0 -> 998 bytes images/icons/29x29/picto-titres.png | Bin 0 -> 1140 bytes images/icons/29x29/picto_contrat.png | Bin 0 -> 4152 bytes images/icons/facebook.png | Bin 0 -> 1177 bytes images/icons/flags/flag-en1.png | Bin 0 -> 360 bytes images/icons/flags/flag-es.png | Bin 0 -> 160 bytes images/icons/flags/flag-ja.png | Bin 0 -> 206 bytes images/icons/flags/flag-ru.png | Bin 0 -> 155 bytes images/icons/flags/flag-zh.png | Bin 0 -> 169 bytes images/icons/ico_alerte.png | Bin 0 -> 1669 bytes images/icons/ico_facebook.png | Bin 0 -> 1521 bytes images/icons/ico_home_gray.png | Bin 0 -> 466 bytes images/icons/ico_login.png | Bin 0 -> 1518 bytes images/icons/ico_nav.png | Bin 0 -> 1116 bytes images/icons/ico_newsletter.png | Bin 0 -> 1259 bytes images/icons/ico_rss.png | Bin 0 -> 1771 bytes images/icons/ico_twitter.png | Bin 0 -> 1983 bytes images/icons/ico_user.png | Bin 0 -> 1322 bytes images/icons/news.png | Bin 0 -> 3736 bytes images/icons/news.svg | 80 + images/icons/social_signin_folio.png | Bin 0 -> 21555 bytes images/icons/style.png | Bin 0 -> 4535 bytes images/icons/style.svg | 74 + images/icons/summary.png | Bin 0 -> 4248 bytes images/icons/summary.svg | 80 + images/icons/title.png | Bin 0 -> 3560 bytes images/icons/title.svg | 74 + images/livres/CORBA_fr.jpeg | Bin 0 -> 46933 bytes images/livres/NouveauTestament.jpeg | Bin 0 -> 82239 bytes images/livres/advanced_corba.jpeg | Bin 0 -> 51360 bytes images/livres/ldap.jpeg | Bin 0 -> 86027 bytes images/livres/precis.jpeg | Bin 0 -> 71118 bytes images/loading.gif | Bin 0 -> 2767 bytes images/mail16.png | Bin 0 -> 617 bytes images/menu_green_fl.gif | Bin 0 -> 61 bytes images/menu_violet_fl.gif | Bin 0 -> 61 bytes images/metrics.gif | Bin 0 -> 8735 bytes images/moto600_1.jpg | Bin 0 -> 40151 bytes images/nextlabel.gif | Bin 0 -> 1252 bytes images/panier.gif | Bin 0 -> 2064 bytes images/planpage_100dpi.jpg | Bin 0 -> 97095 bytes images/pre.jpg | Bin 0 -> 377 bytes images/prevlabel.gif | Bin 0 -> 1264 bytes images/pubbackground.jpg | Bin 0 -> 3232 bytes images/ready.png | Bin 0 -> 989 bytes images/search.gif | Bin 0 -> 1145 bytes images/template-trinity.svg | 1412 + images/template.svg | 1245 + images/test-box3D.svg | 225 + images/test-clock.svg | 441 + images/video_ico.gif | Bin 0 -> 386 bytes images/wifi.gif | Bin 0 -> 3042 bytes images/wrench.jpg | Bin 0 -> 874 bytes images/x-click-butcc-donate.gif | Bin 0 -> 1040 bytes images/xgui/Bot_center.gif | Bin 0 -> 74 bytes images/xgui/Bot_left.gif | Bin 0 -> 60 bytes images/xgui/Bot_right.gif | Bin 0 -> 59 bytes images/xgui/Left.gif | Bin 0 -> 74 bytes images/xgui/MozBack.png | Bin 0 -> 2021 bytes images/xgui/MozBot_center.gif | Bin 0 -> 56 bytes images/xgui/MozBot_left.gif | Bin 0 -> 63 bytes images/xgui/MozBot_right.gif | Bin 0 -> 64 bytes images/xgui/MozLeft.gif | Bin 0 -> 59 bytes images/xgui/MozRight.gif | Bin 0 -> 59 bytes images/xgui/MozTop_center.gif | Bin 0 -> 56 bytes images/xgui/MozTop_left.gif | Bin 0 -> 63 bytes images/xgui/MozTop_right.gif | Bin 0 -> 62 bytes images/xgui/Right.gif | Bin 0 -> 74 bytes images/xgui/Top_center.gif | Bin 0 -> 74 bytes images/xgui/Top_left.gif | Bin 0 -> 58 bytes images/xgui/Top_right.gif | Bin 0 -> 58 bytes images/xgui/WinBot_center.gif | Bin 0 -> 69 bytes images/xgui/WinBot_left.gif | Bin 0 -> 47 bytes images/xgui/WinBot_right.gif | Bin 0 -> 46 bytes images/xgui/WinLeft.gif | Bin 0 -> 53 bytes images/xgui/WinRight.gif | Bin 0 -> 53 bytes images/xgui/WinTop_center.gif | Bin 0 -> 178 bytes images/xgui/WinTop_left.gif | Bin 0 -> 206 bytes images/xgui/WinTop_right.gif | Bin 0 -> 206 bytes images/xgui/butBack.gif | Bin 0 -> 135 bytes images/xgui/butLeft.gif | Bin 0 -> 390 bytes images/xgui/butLeftPLain.gif | Bin 0 -> 382 bytes images/xgui/butRight.gif | Bin 0 -> 391 bytes images/xgui/butSpan.gif | Bin 0 -> 1806 bytes images/xgui/disbutBack.gif | Bin 0 -> 880 bytes images/xgui/disbutLeft.gif | Bin 0 -> 993 bytes images/xgui/disbutRight.gif | Bin 0 -> 993 bytes images/xgui/group-bl-orange.gif | Bin 0 -> 66 bytes images/xgui/group-br-orange.gif | Bin 0 -> 90 bytes images/xgui/group-tl-orange.gif | Bin 0 -> 64 bytes images/xgui/group-tr-orange.gif | Bin 0 -> 89 bytes images/xgui/layBot.gif | Bin 0 -> 64 bytes images/xgui/layBotLeft.gif | Bin 0 -> 56 bytes images/xgui/layBotRight.gif | Bin 0 -> 56 bytes images/xgui/layDis.gif | Bin 0 -> 82 bytes images/xgui/layDisBottom.gif | Bin 0 -> 50 bytes images/xgui/layDisLeft.gif | Bin 0 -> 120 bytes images/xgui/layDisLeftBottom.gif | Bin 0 -> 55 bytes images/xgui/layDisRight.gif | Bin 0 -> 119 bytes images/xgui/layDisRightBottom.gif | Bin 0 -> 55 bytes images/xgui/layLeft.gif | Bin 0 -> 67 bytes images/xgui/layRight.gif | Bin 0 -> 67 bytes images/xgui/laySelectCenter.gif | Bin 0 -> 303 bytes images/xgui/laySelectLeft.gif | Bin 0 -> 369 bytes images/xgui/laySelectRight.gif | Bin 0 -> 579 bytes images/xgui/mandatory.gif | Bin 0 -> 150 bytes images/xgui/newButton.xcf | Bin 0 -> 10606 bytes images/xgui/reloadBig.gif | Bin 0 -> 1373 bytes images/xgui/stock_cancel.png | Bin 0 -> 1155 bytes images/xgui/stock_ok.png | Bin 0 -> 846 bytes images/xgui/stock_refresh-blue.png | Bin 0 -> 1061 bytes images/xgui/tabNoteBotSel.gif | Bin 0 -> 55 bytes images/xgui/tabNoteLeftSel.gif | Bin 0 -> 128 bytes images/xgui/tabNoteRightSel.gif | Bin 0 -> 123 bytes images/xgui/table_head.jpg | Bin 0 -> 345 bytes images/xgui/titBack.gif | Bin 0 -> 825 bytes images/xgui/titLeft.gif | Bin 0 -> 916 bytes images/xgui/titRight.gif | Bin 0 -> 917 bytes index.php | 284 + js/NameValuePairCollection.js | 110 + js/Tree-optimized.js | 3503 ++ js/Tree.js | 5692 +++ js/cstutils.js | 11 + js/drawing.js | 206 + js/email.js | 48 + js/jsmin.c | 279 + js/json2.js | 273 + js/lightbox.js | 497 + js/load_request.js | 31 + js/login.js | 509 + js/md5.js | 407 + js/mydate.js | 231 + js/mymenu.js | 230 + js/request.js | 64 + js/scriptaculus/builder.js | 136 + js/scriptaculus/controls.js | 965 + js/scriptaculus/dragdrop.js | 974 + js/scriptaculus/effects.js | 1123 + js/scriptaculus/proto.menu.0.6.js | 99 + js/scriptaculus/prototype.js | 7036 ++++ js/scriptaculus/scriptaculous.js | 68 + js/scriptaculus/slider.js | 275 + js/scriptaculus/sound.js | 59 + js/scriptaculus/unittest.js | 568 + js/slidemenu.js | 307 + js/styleswitcher.js | 70 + js/syntaxhighlight/clipboard.swf | Bin 0 -> 109 bytes js/syntaxhighlight/shBrushBash.js | 51 + js/syntaxhighlight/shBrushCSharp.js | 51 + js/syntaxhighlight/shBrushCpp.js | 75 + js/syntaxhighlight/shBrushCss.js | 82 + js/syntaxhighlight/shBrushDelphi.js | 53 + js/syntaxhighlight/shBrushGroovy.js | 68 + js/syntaxhighlight/shBrushJScript.js | 41 + js/syntaxhighlight/shBrushJava.js | 47 + js/syntaxhighlight/shBrushPhp.js | 80 + js/syntaxhighlight/shBrushPython.js | 49 + js/syntaxhighlight/shBrushRuby.js | 47 + js/syntaxhighlight/shBrushScala.js | 46 + js/syntaxhighlight/shBrushSql.js | 61 + js/syntaxhighlight/shBrushVb.js | 48 + js/syntaxhighlight/shBrushXml.js | 89 + js/syntaxhighlight/shCore.js | 726 + js/tinymce/changelog.txt | 640 + js/tinymce/examples/css/content.css | 51 + js/tinymce/examples/css/word.css | 53 + js/tinymce/examples/full.html | 83 + js/tinymce/examples/index.html | 10 + js/tinymce/examples/lists/image_list.js | 9 + js/tinymce/examples/lists/link_list.js | 10 + js/tinymce/examples/lists/media_list.js | 10 + js/tinymce/examples/lists/template_list.js | 9 + js/tinymce/examples/media/logo.jpg | Bin 0 -> 2729 bytes js/tinymce/examples/media/logo_over.jpg | Bin 0 -> 6473 bytes js/tinymce/examples/media/sample.avi | Bin 0 -> 82944 bytes js/tinymce/examples/media/sample.dcr | 1 + js/tinymce/examples/media/sample.mov | Bin 0 -> 55622 bytes js/tinymce/examples/media/sample.ram | 1 + js/tinymce/examples/media/sample.rm | Bin 0 -> 410 bytes js/tinymce/examples/media/sample.swf | Bin 0 -> 248 bytes js/tinymce/examples/menu.html | 16 + js/tinymce/examples/simple.html | 43 + js/tinymce/examples/skins.html | 212 + js/tinymce/examples/templates/layout1.htm | 15 + js/tinymce/examples/templates/snippet1.htm | 1 + js/tinymce/examples/word.html | 67 + .../jscripts/tiny_mce/filemanager/browser.css | 84 + .../tiny_mce/filemanager/browser.html | 150 + .../filemanager/connectors/php/basexml.php | 68 + .../filemanager/connectors/php/commands.php | 211 + .../filemanager/connectors/php/config.php | 61 + .../filemanager/connectors/php/connector.php | 107 + .../filemanager/connectors/php/io.php | 99 + .../filemanager/connectors/php/util.php | 37 + .../tiny_mce/filemanager/frmactualfolder.html | 63 + .../tiny_mce/filemanager/frmcreatefolder.html | 109 + .../tiny_mce/filemanager/frmfolders.html | 192 + .../filemanager/frmresourceslist.html | 157 + .../tiny_mce/filemanager/frmresourcetype.html | 61 + .../tiny_mce/filemanager/frmupload.html | 109 + .../filemanager/images/ButtonArrow.gif | Bin 0 -> 138 bytes .../tiny_mce/filemanager/images/Folder.gif | Bin 0 -> 128 bytes .../tiny_mce/filemanager/images/Folder32.gif | Bin 0 -> 281 bytes .../filemanager/images/FolderOpened.gif | Bin 0 -> 132 bytes .../filemanager/images/FolderOpened32.gif | Bin 0 -> 264 bytes .../tiny_mce/filemanager/images/FolderUp.gif | Bin 0 -> 132 bytes .../filemanager/images/icons/32/ai.gif | Bin 0 -> 1140 bytes .../filemanager/images/icons/32/avi.gif | Bin 0 -> 454 bytes .../filemanager/images/icons/32/bmp.gif | Bin 0 -> 709 bytes .../filemanager/images/icons/32/cs.gif | Bin 0 -> 224 bytes .../images/icons/32/default.icon.gif | Bin 0 -> 177 bytes .../filemanager/images/icons/32/dll.gif | Bin 0 -> 258 bytes .../filemanager/images/icons/32/doc.gif | Bin 0 -> 260 bytes .../filemanager/images/icons/32/exe.gif | Bin 0 -> 170 bytes .../filemanager/images/icons/32/fla.gif | Bin 0 -> 946 bytes .../filemanager/images/icons/32/gif.gif | Bin 0 -> 704 bytes .../filemanager/images/icons/32/htm.gif | Bin 0 -> 1527 bytes .../filemanager/images/icons/32/html.gif | Bin 0 -> 1527 bytes .../filemanager/images/icons/32/jpg.gif | Bin 0 -> 463 bytes .../filemanager/images/icons/32/js.gif | Bin 0 -> 274 bytes .../filemanager/images/icons/32/mdb.gif | Bin 0 -> 274 bytes .../filemanager/images/icons/32/mp3.gif | Bin 0 -> 454 bytes .../filemanager/images/icons/32/pdf.gif | Bin 0 -> 567 bytes .../filemanager/images/icons/32/ppt.gif | Bin 0 -> 254 bytes .../filemanager/images/icons/32/rdp.gif | Bin 0 -> 1493 bytes .../filemanager/images/icons/32/swf.gif | Bin 0 -> 725 bytes .../filemanager/images/icons/32/swt.gif | Bin 0 -> 724 bytes .../filemanager/images/icons/32/txt.gif | Bin 0 -> 213 bytes .../filemanager/images/icons/32/vsd.gif | Bin 0 -> 277 bytes .../filemanager/images/icons/32/xls.gif | Bin 0 -> 271 bytes .../filemanager/images/icons/32/xml.gif | Bin 0 -> 408 bytes .../filemanager/images/icons/32/zip.gif | Bin 0 -> 368 bytes .../tiny_mce/filemanager/images/icons/ai.gif | Bin 0 -> 403 bytes .../tiny_mce/filemanager/images/icons/avi.gif | Bin 0 -> 249 bytes .../tiny_mce/filemanager/images/icons/bmp.gif | Bin 0 -> 126 bytes .../tiny_mce/filemanager/images/icons/cs.gif | Bin 0 -> 128 bytes .../filemanager/images/icons/default.icon.gif | Bin 0 -> 113 bytes .../tiny_mce/filemanager/images/icons/dll.gif | Bin 0 -> 132 bytes .../tiny_mce/filemanager/images/icons/doc.gif | Bin 0 -> 140 bytes .../tiny_mce/filemanager/images/icons/exe.gif | Bin 0 -> 109 bytes .../tiny_mce/filemanager/images/icons/fla.gif | Bin 0 -> 382 bytes .../tiny_mce/filemanager/images/icons/gif.gif | Bin 0 -> 125 bytes .../tiny_mce/filemanager/images/icons/htm.gif | Bin 0 -> 621 bytes .../filemanager/images/icons/html.gif | Bin 0 -> 621 bytes .../tiny_mce/filemanager/images/icons/jpg.gif | Bin 0 -> 125 bytes .../tiny_mce/filemanager/images/icons/js.gif | Bin 0 -> 139 bytes .../tiny_mce/filemanager/images/icons/mdb.gif | Bin 0 -> 146 bytes .../tiny_mce/filemanager/images/icons/mp3.gif | Bin 0 -> 249 bytes .../tiny_mce/filemanager/images/icons/pdf.gif | Bin 0 -> 230 bytes .../tiny_mce/filemanager/images/icons/ppt.gif | Bin 0 -> 139 bytes .../tiny_mce/filemanager/images/icons/rdp.gif | Bin 0 -> 606 bytes .../tiny_mce/filemanager/images/icons/swf.gif | Bin 0 -> 388 bytes .../tiny_mce/filemanager/images/icons/swt.gif | Bin 0 -> 388 bytes .../tiny_mce/filemanager/images/icons/txt.gif | Bin 0 -> 122 bytes .../tiny_mce/filemanager/images/icons/vsd.gif | Bin 0 -> 136 bytes .../tiny_mce/filemanager/images/icons/xls.gif | Bin 0 -> 138 bytes .../tiny_mce/filemanager/images/icons/xml.gif | Bin 0 -> 231 bytes .../tiny_mce/filemanager/images/icons/zip.gif | Bin 0 -> 235 bytes .../tiny_mce/filemanager/images/spacer.gif | Bin 0 -> 43 bytes .../tiny_mce/filemanager/js/common.js | 34 + .../tiny_mce/filemanager/js/fckxml.js | 109 + js/tinymce/jscripts/tiny_mce/langs/en.js | 170 + js/tinymce/jscripts/tiny_mce/license.txt | 504 + .../tiny_mce/plugins/advhr/css/advhr.css | 5 + .../tiny_mce/plugins/advhr/editor_plugin.js | 1 + .../plugins/advhr/editor_plugin_src.js | 57 + .../tiny_mce/plugins/advhr/js/rule.js | 43 + .../tiny_mce/plugins/advhr/langs/en_dlg.js | 5 + .../jscripts/tiny_mce/plugins/advhr/rule.htm | 57 + .../plugins/advimage/css/advimage.css | 13 + .../plugins/advimage/editor_plugin.js | 1 + .../plugins/advimage/editor_plugin_src.js | 50 + .../tiny_mce/plugins/advimage/image.htm | 232 + .../tiny_mce/plugins/advimage/img/sample.gif | Bin 0 -> 1624 bytes .../tiny_mce/plugins/advimage/js/image.js | 443 + .../tiny_mce/plugins/advimage/langs/en_dlg.js | 43 + .../tiny_mce/plugins/advlink/css/advlink.css | 8 + .../tiny_mce/plugins/advlink/editor_plugin.js | 1 + .../plugins/advlink/editor_plugin_src.js | 61 + .../tiny_mce/plugins/advlink/js/advlink.js | 528 + .../tiny_mce/plugins/advlink/langs/en_dlg.js | 52 + .../tiny_mce/plugins/advlink/link.htm | 333 + .../plugins/autosave/editor_plugin.js | 1 + .../plugins/autosave/editor_plugin_src.js | 422 + .../tiny_mce/plugins/bbcode/editor_plugin.js | 1 + .../plugins/bbcode/editor_plugin_src.js | 120 + .../plugins/compat2x/editor_plugin.js | 1 + .../plugins/compat2x/editor_plugin_src.js | 616 + .../plugins/contextmenu/editor_plugin.js | 1 + .../plugins/contextmenu/editor_plugin_src.js | 147 + .../plugins/directionality/editor_plugin.js | 1 + .../directionality/editor_plugin_src.js | 82 + .../plugins/emotions/editor_plugin.js | 1 + .../plugins/emotions/editor_plugin_src.js | 43 + .../tiny_mce/plugins/emotions/emotions.htm | 40 + .../plugins/emotions/img/smiley-cool.gif | Bin 0 -> 354 bytes .../plugins/emotions/img/smiley-cry.gif | Bin 0 -> 329 bytes .../emotions/img/smiley-embarassed.gif | Bin 0 -> 331 bytes .../emotions/img/smiley-foot-in-mouth.gif | Bin 0 -> 344 bytes .../plugins/emotions/img/smiley-frown.gif | Bin 0 -> 340 bytes .../plugins/emotions/img/smiley-innocent.gif | Bin 0 -> 336 bytes .../plugins/emotions/img/smiley-kiss.gif | Bin 0 -> 338 bytes .../plugins/emotions/img/smiley-laughing.gif | Bin 0 -> 344 bytes .../emotions/img/smiley-money-mouth.gif | Bin 0 -> 321 bytes .../plugins/emotions/img/smiley-sealed.gif | Bin 0 -> 325 bytes .../plugins/emotions/img/smiley-smile.gif | Bin 0 -> 345 bytes .../plugins/emotions/img/smiley-surprised.gif | Bin 0 -> 342 bytes .../emotions/img/smiley-tongue-out.gif | Bin 0 -> 328 bytes .../plugins/emotions/img/smiley-undecided.gif | Bin 0 -> 337 bytes .../plugins/emotions/img/smiley-wink.gif | Bin 0 -> 351 bytes .../plugins/emotions/img/smiley-yell.gif | Bin 0 -> 336 bytes .../tiny_mce/plugins/emotions/js/emotions.js | 22 + .../tiny_mce/plugins/emotions/langs/en_dlg.js | 20 + .../tiny_mce/plugins/example/dialog.htm | 22 + .../tiny_mce/plugins/example/editor_plugin.js | 1 + .../plugins/example/editor_plugin_src.js | 84 + .../tiny_mce/plugins/example/img/example.gif | Bin 0 -> 87 bytes .../tiny_mce/plugins/example/js/dialog.js | 19 + .../tiny_mce/plugins/example/langs/en.js | 3 + .../tiny_mce/plugins/example/langs/en_dlg.js | 3 + .../plugins/fullpage/css/fullpage.css | 182 + .../plugins/fullpage/editor_plugin.js | 1 + .../plugins/fullpage/editor_plugin_src.js | 153 + .../tiny_mce/plugins/fullpage/fullpage.htm | 571 + .../tiny_mce/plugins/fullpage/js/fullpage.js | 471 + .../tiny_mce/plugins/fullpage/langs/en_dlg.js | 85 + .../plugins/fullscreen/editor_plugin.js | 1 + .../plugins/fullscreen/editor_plugin_src.js | 151 + .../plugins/fullscreen/fullscreen.htm | 109 + .../tiny_mce/plugins/iespell/editor_plugin.js | 1 + .../plugins/iespell/editor_plugin_src.js | 54 + .../plugins/inlinepopups/editor_plugin.js | 1 + .../plugins/inlinepopups/editor_plugin_src.js | 635 + .../skins/clearlooks2/img/alert.gif | Bin 0 -> 818 bytes .../skins/clearlooks2/img/button.gif | Bin 0 -> 280 bytes .../skins/clearlooks2/img/buttons.gif | Bin 0 -> 1195 bytes .../skins/clearlooks2/img/confirm.gif | Bin 0 -> 915 bytes .../skins/clearlooks2/img/corners.gif | Bin 0 -> 911 bytes .../skins/clearlooks2/img/horizontal.gif | Bin 0 -> 769 bytes .../skins/clearlooks2/img/vertical.gif | Bin 0 -> 92 bytes .../inlinepopups/skins/clearlooks2/window.css | 90 + .../plugins/inlinepopups/template.htm | 387 + .../plugins/insertdatetime/editor_plugin.js | 1 + .../insertdatetime/editor_plugin_src.js | 83 + .../tiny_mce/plugins/layer/editor_plugin.js | 1 + .../plugins/layer/editor_plugin_src.js | 212 + .../tiny_mce/plugins/media/css/content.css | 6 + .../tiny_mce/plugins/media/css/media.css | 16 + .../tiny_mce/plugins/media/editor_plugin.js | 1 + .../plugins/media/editor_plugin_src.js | 414 + .../tiny_mce/plugins/media/img/flash.gif | Bin 0 -> 241 bytes .../tiny_mce/plugins/media/img/flv_player.swf | Bin 0 -> 36 bytes .../tiny_mce/plugins/media/img/quicktime.gif | Bin 0 -> 303 bytes .../tiny_mce/plugins/media/img/realmedia.gif | Bin 0 -> 439 bytes .../tiny_mce/plugins/media/img/shockwave.gif | Bin 0 -> 387 bytes .../tiny_mce/plugins/media/img/trans.gif | Bin 0 -> 43 bytes .../plugins/media/img/windowsmedia.gif | Bin 0 -> 415 bytes .../tiny_mce/plugins/media/js/embed.js | 73 + .../tiny_mce/plugins/media/js/media.js | 630 + .../tiny_mce/plugins/media/langs/en_dlg.js | 103 + .../jscripts/tiny_mce/plugins/media/media.htm | 817 + .../plugins/nonbreaking/editor_plugin.js | 1 + .../plugins/nonbreaking/editor_plugin_src.js | 53 + .../plugins/noneditable/editor_plugin.js | 1 + .../plugins/noneditable/editor_plugin_src.js | 90 + .../plugins/pagebreak/css/content.css | 1 + .../plugins/pagebreak/editor_plugin.js | 1 + .../plugins/pagebreak/editor_plugin_src.js | 77 + .../plugins/pagebreak/img/pagebreak.gif | Bin 0 -> 325 bytes .../tiny_mce/plugins/pagebreak/img/trans.gif | Bin 0 -> 43 bytes .../jscripts/tiny_mce/plugins/paste/blank.htm | 22 + .../tiny_mce/plugins/paste/css/blank.css | 14 + .../tiny_mce/plugins/paste/css/pasteword.css | 3 + .../tiny_mce/plugins/paste/editor_plugin.js | 1 + .../plugins/paste/editor_plugin_src.js | 952 + .../tiny_mce/plugins/paste/js/pastetext.js | 36 + .../tiny_mce/plugins/paste/js/pasteword.js | 51 + .../tiny_mce/plugins/paste/langs/en_dlg.js | 5 + .../tiny_mce/plugins/paste/pastetext.htm | 27 + .../tiny_mce/plugins/paste/pasteword.htm | 21 + .../tiny_mce/plugins/preview/editor_plugin.js | 1 + .../plugins/preview/editor_plugin_src.js | 53 + .../tiny_mce/plugins/preview/example.html | 28 + .../plugins/preview/jscripts/embed.js | 73 + .../tiny_mce/plugins/print/editor_plugin.js | 1 + .../plugins/print/editor_plugin_src.js | 34 + .../tiny_mce/plugins/safari/blank.htm | 1 + .../tiny_mce/plugins/safari/editor_plugin.js | 1 + .../plugins/safari/editor_plugin_src.js | 460 + .../tiny_mce/plugins/save/editor_plugin.js | 1 + .../plugins/save/editor_plugin_src.js | 101 + .../searchreplace/css/searchreplace.css | 6 + .../plugins/searchreplace/editor_plugin.js | 1 + .../searchreplace/editor_plugin_src.js | 57 + .../plugins/searchreplace/js/searchreplace.js | 130 + .../plugins/searchreplace/langs/en_dlg.js | 16 + .../plugins/searchreplace/searchreplace.htm | 99 + .../plugins/spellchecker/css/content.css | 1 + .../plugins/spellchecker/editor_plugin.js | 1 + .../plugins/spellchecker/editor_plugin_src.js | 417 + .../plugins/spellchecker/img/wline.gif | Bin 0 -> 46 bytes .../tiny_mce/plugins/style/css/props.css | 13 + .../tiny_mce/plugins/style/editor_plugin.js | 1 + .../plugins/style/editor_plugin_src.js | 55 + .../tiny_mce/plugins/style/js/props.js | 641 + .../tiny_mce/plugins/style/langs/en_dlg.js | 63 + .../jscripts/tiny_mce/plugins/style/props.htm | 723 + .../jscripts/tiny_mce/plugins/table/cell.htm | 178 + .../tiny_mce/plugins/table/css/cell.css | 17 + .../tiny_mce/plugins/table/css/row.css | 25 + .../tiny_mce/plugins/table/css/table.css | 13 + .../tiny_mce/plugins/table/editor_plugin.js | 1 + .../plugins/table/editor_plugin_src.js | 1125 + .../tiny_mce/plugins/table/js/cell.js | 286 + .../tiny_mce/plugins/table/js/merge_cells.js | 27 + .../jscripts/tiny_mce/plugins/table/js/row.js | 237 + .../tiny_mce/plugins/table/js/table.js | 449 + .../tiny_mce/plugins/table/langs/en_dlg.js | 74 + .../tiny_mce/plugins/table/merge_cells.htm | 32 + .../jscripts/tiny_mce/plugins/table/row.htm | 155 + .../jscripts/tiny_mce/plugins/table/table.htm | 187 + .../tiny_mce/plugins/template/blank.htm | 12 + .../plugins/template/css/template.css | 23 + .../plugins/template/editor_plugin.js | 1 + .../plugins/template/editor_plugin_src.js | 159 + .../tiny_mce/plugins/template/js/template.js | 106 + .../tiny_mce/plugins/template/langs/en_dlg.js | 15 + .../tiny_mce/plugins/template/template.htm | 31 + .../plugins/visualchars/editor_plugin.js | 1 + .../plugins/visualchars/editor_plugin_src.js | 83 + .../tiny_mce/plugins/xhtmlxtras/abbr.htm | 141 + .../tiny_mce/plugins/xhtmlxtras/acronym.htm | 141 + .../plugins/xhtmlxtras/attributes.htm | 148 + .../tiny_mce/plugins/xhtmlxtras/cite.htm | 141 + .../plugins/xhtmlxtras/css/attributes.css | 11 + .../tiny_mce/plugins/xhtmlxtras/css/popup.css | 9 + .../tiny_mce/plugins/xhtmlxtras/del.htm | 161 + .../plugins/xhtmlxtras/editor_plugin.js | 1 + .../plugins/xhtmlxtras/editor_plugin_src.js | 132 + .../tiny_mce/plugins/xhtmlxtras/ins.htm | 161 + .../tiny_mce/plugins/xhtmlxtras/js/abbr.js | 28 + .../tiny_mce/plugins/xhtmlxtras/js/acronym.js | 28 + .../plugins/xhtmlxtras/js/attributes.js | 126 + .../tiny_mce/plugins/xhtmlxtras/js/cite.js | 28 + .../tiny_mce/plugins/xhtmlxtras/js/del.js | 63 + .../plugins/xhtmlxtras/js/element_common.js | 231 + .../tiny_mce/plugins/xhtmlxtras/js/ins.js | 62 + .../plugins/xhtmlxtras/langs/en_dlg.js | 32 + .../tiny_mce/themes/advanced/about.htm | 54 + .../tiny_mce/themes/advanced/anchor.htm | 26 + .../tiny_mce/themes/advanced/charmap.htm | 52 + .../tiny_mce/themes/advanced/color_picker.htm | 73 + .../themes/advanced/editor_template.js | 1 + .../themes/advanced/editor_template_src.js | 1217 + .../tiny_mce/themes/advanced/image.htm | 80 + .../themes/advanced/img/colorpicker.jpg | Bin 0 -> 3189 bytes .../tiny_mce/themes/advanced/img/icons.gif | Bin 0 -> 11794 bytes .../tiny_mce/themes/advanced/js/about.js | 72 + .../tiny_mce/themes/advanced/js/anchor.js | 37 + .../tiny_mce/themes/advanced/js/charmap.js | 335 + .../themes/advanced/js/color_picker.js | 253 + .../tiny_mce/themes/advanced/js/image.js | 245 + .../tiny_mce/themes/advanced/js/link.js | 156 + .../themes/advanced/js/source_editor.js | 62 + .../tiny_mce/themes/advanced/langs/en.js | 62 + .../tiny_mce/themes/advanced/langs/en_dlg.js | 51 + .../tiny_mce/themes/advanced/link.htm | 58 + .../themes/advanced/skins/default/content.css | 36 + .../themes/advanced/skins/default/dialog.css | 117 + .../advanced/skins/default/img/buttons.png | Bin 0 -> 3274 bytes .../advanced/skins/default/img/items.gif | Bin 0 -> 70 bytes .../advanced/skins/default/img/menu_arrow.gif | Bin 0 -> 68 bytes .../advanced/skins/default/img/menu_check.gif | Bin 0 -> 70 bytes .../advanced/skins/default/img/progress.gif | Bin 0 -> 1787 bytes .../advanced/skins/default/img/tabs.gif | Bin 0 -> 1326 bytes .../themes/advanced/skins/default/ui.css | 213 + .../themes/advanced/skins/o2k7/content.css | 36 + .../themes/advanced/skins/o2k7/dialog.css | 116 + .../advanced/skins/o2k7/img/button_bg.png | Bin 0 -> 5859 bytes .../skins/o2k7/img/button_bg_black.png | Bin 0 -> 3736 bytes .../skins/o2k7/img/button_bg_silver.png | Bin 0 -> 5358 bytes .../themes/advanced/skins/o2k7/ui.css | 215 + .../themes/advanced/skins/o2k7/ui_black.css | 8 + .../themes/advanced/skins/o2k7/ui_silver.css | 5 + .../themes/advanced/source_editor.htm | 25 + .../tiny_mce/themes/simple/editor_template.js | 1 + .../themes/simple/editor_template_src.js | 85 + .../tiny_mce/themes/simple/img/icons.gif | Bin 0 -> 1440 bytes .../tiny_mce/themes/simple/langs/en.js | 11 + .../themes/simple/skins/default/content.css | 25 + .../themes/simple/skins/default/ui.css | 32 + .../themes/simple/skins/o2k7/content.css | 17 + .../simple/skins/o2k7/img/button_bg.png | Bin 0 -> 5102 bytes .../tiny_mce/themes/simple/skins/o2k7/ui.css | 35 + js/tinymce/jscripts/tiny_mce/tiny_mce.js | 1 + .../jscripts/tiny_mce/tiny_mce_popup.js | 5 + js/tinymce/jscripts/tiny_mce/tiny_mce_src.js | 14170 ++++++++ .../tiny_mce/utils/editable_selects.js | 70 + .../jscripts/tiny_mce/utils/form_utils.js | 200 + js/tinymce/jscripts/tiny_mce/utils/mctabs.js | 77 + .../jscripts/tiny_mce/utils/validate.js | 220 + js/urlparams.js | 20 + js/xgui/aebw.bat | 2 + js/xgui/aebw.js | 192 + js/xgui/aebw.sh | 2 + js/xgui/xgui.js | 439 + js/xgui/xgui_asn1.js | 7 + js/xgui/xgui_base64.js | 107 + js/xgui/xgui_button.js | 7 + js/xgui/xgui_calendar.js | 300 + js/xgui/xgui_combobox.js | 79 + js/xgui/xgui_corba.js | 49 + js/xgui/xgui_dialogbox.js | 70 + js/xgui/xgui_hex.js | 46 + js/xgui/xgui_json.js | 81 + js/xgui/xgui_jsonrpc.js | 49 + js/xgui/xgui_menu.js | 67 + js/xgui/xgui_stream.js | 7 + js/xgui/xgui_tab.js | 61 + js/xgui/xgui_table.js | 77 + js/xgui/xgui_wizard.js | 66 + liens.xml | 63 + liens_php.xml | 60 + linux.en_US.UTF-8.xml | 47 + linux.fr_FR.UTF-8.xml | 55 + linux.xml | 78 + linux_embedded.xml | 112 + linux_rt.en_US.UTF-8.xml | 52 + linux_rt.fr_FR.UTF-8.xml | 61 + linux_rt.xml | 86 + locale/fr_FR.UTF-8.mo | Bin 0 -> 2649 bytes locale/fr_FR.UTF-8.po | 268 + locale/fr_FR/LC_MESSAGES/andre.mo | Bin 0 -> 2649 bytes loisirs.en_US.UTF-8.xml | 28 + loisirs.fr_FR.UTF-8.xml | 96 + loisirs.xml | 145 + loisirs_danse.xml | 96 + loisirs_music.xml | 57 + loisirs_sports.xml | 94 + menu.xml | 45 + menu_4saisons.xml | 333 + menu_aliceadsl.xml | 179 + menu_andre.xml | 148 + menu_trinity.xml | 333 + menu_webobject.xml | 333 + news.xml | 41 + phplib/CaptchaSecurityImages.php | 89 + phplib/IXR_Library.inc | 818 + phplib/class.chiffre_lettre.php | 204 + phplib/class.crontab.php | 31 + phplib/class.db.php | 124 + phplib/class.feed.php | 369 + phplib/class.form.php | 237 + phplib/class.fpdfdb.php | 146 + phplib/class.images.php | 124 + phplib/class.json-rpc.php | 116 + phplib/class.menu.php | 168 + phplib/class.nntp.php | 9 + phplib/class.notebook.php | 73 + phplib/class.ofx.php | 91 + phplib/class.page.php | 171 + phplib/class.session.php | 64 + phplib/class.sitemap.php | 59 + phplib/class.smtp.php | 671 + phplib/fpdf/FAQ.htm | 284 + phplib/fpdf/doc/acceptpagebreak.htm | 69 + phplib/fpdf/doc/addfont.htm | 61 + phplib/fpdf/doc/addlink.htm | 28 + phplib/fpdf/doc/addpage.htm | 42 + phplib/fpdf/doc/aliasnbpages.htm | 47 + phplib/fpdf/doc/cell.htm | 106 + phplib/fpdf/doc/close.htm | 23 + phplib/fpdf/doc/error.htm | 25 + phplib/fpdf/doc/footer.htm | 39 + phplib/fpdf/doc/fpdf.htm | 57 + phplib/fpdf/doc/getstringwidth.htm | 23 + phplib/fpdf/doc/getx.htm | 22 + phplib/fpdf/doc/gety.htm | 22 + phplib/fpdf/doc/header.htm | 41 + phplib/fpdf/doc/image.htm | 88 + phplib/fpdf/doc/index.htm | 57 + phplib/fpdf/doc/line.htm | 38 + phplib/fpdf/doc/link.htm | 46 + phplib/fpdf/doc/ln.htm | 28 + phplib/fpdf/doc/multicell.htm | 76 + phplib/fpdf/doc/output.htm | 47 + phplib/fpdf/doc/pageno.htm | 20 + phplib/fpdf/doc/rect.htm | 48 + phplib/fpdf/doc/setauthor.htm | 28 + phplib/fpdf/doc/setautopagebreak.htm | 33 + phplib/fpdf/doc/setcompression.htm | 31 + phplib/fpdf/doc/setcreator.htm | 29 + phplib/fpdf/doc/setdisplaymode.htm | 47 + phplib/fpdf/doc/setdrawcolor.htm | 41 + phplib/fpdf/doc/setfillcolor.htm | 40 + phplib/fpdf/doc/setfont.htm | 98 + phplib/fpdf/doc/setfontsize.htm | 25 + phplib/fpdf/doc/setkeywords.htm | 28 + phplib/fpdf/doc/setleftmargin.htm | 30 + phplib/fpdf/doc/setlinewidth.htm | 29 + phplib/fpdf/doc/setlink.htm | 34 + phplib/fpdf/doc/setmargins.htm | 37 + phplib/fpdf/doc/setrightmargin.htm | 28 + phplib/fpdf/doc/setsubject.htm | 28 + phplib/fpdf/doc/settextcolor.htm | 40 + phplib/fpdf/doc/settitle.htm | 28 + phplib/fpdf/doc/settopmargin.htm | 28 + phplib/fpdf/doc/setx.htm | 29 + phplib/fpdf/doc/setxy.htm | 31 + phplib/fpdf/doc/sety.htm | 29 + phplib/fpdf/doc/text.htm | 39 + phplib/fpdf/doc/write.htm | 53 + phplib/fpdf/font/courier.php | 7 + phplib/fpdf/font/helvetica.php | 15 + phplib/fpdf/font/helveticab.php | 15 + phplib/fpdf/font/helveticabi.php | 15 + phplib/fpdf/font/helveticai.php | 15 + phplib/fpdf/font/makefont/cp1250.map | 251 + phplib/fpdf/font/makefont/cp1251.map | 255 + phplib/fpdf/font/makefont/cp1252.map | 251 + phplib/fpdf/font/makefont/cp1253.map | 239 + phplib/fpdf/font/makefont/cp1254.map | 249 + phplib/fpdf/font/makefont/cp1255.map | 233 + phplib/fpdf/font/makefont/cp1257.map | 244 + phplib/fpdf/font/makefont/cp1258.map | 247 + phplib/fpdf/font/makefont/cp874.map | 225 + phplib/fpdf/font/makefont/iso-8859-1.map | 256 + phplib/fpdf/font/makefont/iso-8859-11.map | 248 + phplib/fpdf/font/makefont/iso-8859-15.map | 256 + phplib/fpdf/font/makefont/iso-8859-16.map | 256 + phplib/fpdf/font/makefont/iso-8859-2.map | 257 + phplib/fpdf/font/makefont/iso-8859-4.map | 256 + phplib/fpdf/font/makefont/iso-8859-5.map | 256 + phplib/fpdf/font/makefont/iso-8859-7.map | 250 + phplib/fpdf/font/makefont/iso-8859-9.map | 256 + phplib/fpdf/font/makefont/koi8-r.map | 256 + phplib/fpdf/font/makefont/koi8-u.map | 256 + phplib/fpdf/font/makefont/makefont.php | 416 + phplib/fpdf/font/symbol.php | 15 + phplib/fpdf/font/times.php | 15 + phplib/fpdf/font/timesb.php | 15 + phplib/fpdf/font/timesbi.php | 15 + phplib/fpdf/font/timesi.php | 15 + phplib/fpdf/font/zapfdingbats.php | 15 + phplib/fpdf/fpdf.css | 23 + phplib/fpdf/fpdf.php | 1647 + phplib/fpdf/histo.htm | 111 + phplib/fpdf/install.txt | 26 + phplib/fpdf/tutorial/20k_c1.txt | 10 + phplib/fpdf/tutorial/20k_c2.txt | 23 + phplib/fpdf/tutorial/calligra.afm | 275 + phplib/fpdf/tutorial/calligra.php | 24 + phplib/fpdf/tutorial/calligra.ttf | Bin 0 -> 40041 bytes phplib/fpdf/tutorial/calligra.z | Bin 0 -> 25604 bytes phplib/fpdf/tutorial/countries.txt | 15 + phplib/fpdf/tutorial/index.htm | 21 + phplib/fpdf/tutorial/logo.png | Bin 0 -> 2373 bytes phplib/fpdf/tutorial/logo_pb.png | Bin 0 -> 2656 bytes phplib/fpdf/tutorial/makefont.php | 6 + phplib/fpdf/tutorial/tuto1.htm | 84 + phplib/fpdf/tutorial/tuto1.php | 9 + phplib/fpdf/tutorial/tuto2.htm | 87 + phplib/fpdf/tutorial/tuto2.php | 41 + phplib/fpdf/tutorial/tuto3.htm | 122 + phplib/fpdf/tutorial/tuto3.php | 83 + phplib/fpdf/tutorial/tuto4.htm | 143 + phplib/fpdf/tutorial/tuto4.php | 113 + phplib/fpdf/tutorial/tuto5.htm | 140 + phplib/fpdf/tutorial/tuto5.php | 101 + phplib/fpdf/tutorial/tuto6.htm | 183 + phplib/fpdf/tutorial/tuto6.php | 122 + phplib/fpdf/tutorial/tuto7.htm | 310 + phplib/fpdf/tutorial/tuto7.php | 11 + phplib/monofont.ttf | Bin 0 -> 41036 bytes phplib/tcpdf/2dbarcodes.php | 332 + phplib/tcpdf/CHANGELOG.TXT | 2500 ++ phplib/tcpdf/LICENSE.TXT | 858 + phplib/tcpdf/README.TXT | 97 + phplib/tcpdf/barcodes.php | 2287 ++ phplib/tcpdf/cache/chapter_demo_1.txt | 19 + phplib/tcpdf/cache/chapter_demo_2.txt | 23 + phplib/tcpdf/cache/table_data_demo.txt | 15 + phplib/tcpdf/cache/utf8test.txt | 128 + phplib/tcpdf/composer.json | 38 + phplib/tcpdf/config/lang/afr.php | 47 + phplib/tcpdf/config/lang/ara.php | 47 + phplib/tcpdf/config/lang/aze.php | 47 + phplib/tcpdf/config/lang/bel.php | 47 + phplib/tcpdf/config/lang/bra.php | 47 + phplib/tcpdf/config/lang/bul.php | 47 + phplib/tcpdf/config/lang/cat.php | 47 + phplib/tcpdf/config/lang/ces.php | 47 + phplib/tcpdf/config/lang/chi.php | 47 + phplib/tcpdf/config/lang/cym.php | 47 + phplib/tcpdf/config/lang/dan.php | 47 + phplib/tcpdf/config/lang/eng.php | 47 + phplib/tcpdf/config/lang/est.php | 47 + phplib/tcpdf/config/lang/eus.php | 47 + phplib/tcpdf/config/lang/far.php | 47 + phplib/tcpdf/config/lang/fra.php | 47 + phplib/tcpdf/config/lang/ger.php | 47 + phplib/tcpdf/config/lang/gle.php | 47 + phplib/tcpdf/config/lang/glg.php | 47 + phplib/tcpdf/config/lang/hat.php | 47 + phplib/tcpdf/config/lang/heb.php | 47 + phplib/tcpdf/config/lang/hrv.php | 47 + phplib/tcpdf/config/lang/hun.php | 47 + phplib/tcpdf/config/lang/hye.php | 47 + phplib/tcpdf/config/lang/ind.php | 47 + phplib/tcpdf/config/lang/ita.php | 47 + phplib/tcpdf/config/lang/jpn.php | 47 + phplib/tcpdf/config/lang/kat.php | 47 + phplib/tcpdf/config/lang/kor.php | 47 + phplib/tcpdf/config/lang/mkd.php | 47 + phplib/tcpdf/config/lang/mlt.php | 47 + phplib/tcpdf/config/lang/msa.php | 47 + phplib/tcpdf/config/lang/nld.php | 47 + phplib/tcpdf/config/lang/nob.php | 47 + phplib/tcpdf/config/lang/pol.php | 47 + phplib/tcpdf/config/lang/por.php | 47 + phplib/tcpdf/config/lang/ron.php | 47 + phplib/tcpdf/config/lang/rus.php | 47 + phplib/tcpdf/config/lang/slv.php | 47 + phplib/tcpdf/config/lang/spa.php | 47 + phplib/tcpdf/config/lang/sqi.php | 47 + phplib/tcpdf/config/lang/srp.php | 47 + phplib/tcpdf/config/lang/swa.php | 47 + phplib/tcpdf/config/lang/swe.php | 47 + phplib/tcpdf/config/lang/ukr.php | 47 + phplib/tcpdf/config/lang/urd.php | 47 + phplib/tcpdf/config/lang/yid.php | 47 + phplib/tcpdf/config/lang/zho.php | 47 + phplib/tcpdf/config/tcpdf_config.php | 258 + phplib/tcpdf/config/tcpdf_config_alt.php | 252 + phplib/tcpdf/datamatrix.php | 1149 + phplib/tcpdf/doc/index.html | 11 + phplib/tcpdf/encodings_maps.php | 846 + phplib/tcpdf/examples/example_001.php | 106 + phplib/tcpdf/examples/example_002.php | 87 + phplib/tcpdf/examples/example_003.php | 118 + phplib/tcpdf/examples/example_004.php | 121 + phplib/tcpdf/examples/example_005.php | 158 + phplib/tcpdf/examples/example_006.php | 332 + phplib/tcpdf/examples/example_007.php | 113 + phplib/tcpdf/examples/example_008.php | 97 + phplib/tcpdf/examples/example_009.php | 146 + phplib/tcpdf/examples/example_010.php | 150 + phplib/tcpdf/examples/example_011.php | 138 + phplib/tcpdf/examples/example_012.pdf | Bin 0 -> 13216 bytes phplib/tcpdf/examples/example_012.php | 205 + phplib/tcpdf/examples/example_013.php | 229 + phplib/tcpdf/examples/example_014.php | 194 + phplib/tcpdf/examples/example_015.php | 161 + phplib/tcpdf/examples/example_016.php | 134 + phplib/tcpdf/examples/example_017.php | 117 + phplib/tcpdf/examples/example_018.php | 131 + phplib/tcpdf/examples/example_019.php | 106 + phplib/tcpdf/examples/example_020.php | 146 + phplib/tcpdf/examples/example_021.php | 91 + phplib/tcpdf/examples/example_022.php | 146 + phplib/tcpdf/examples/example_023.php | 113 + phplib/tcpdf/examples/example_024.php | 140 + phplib/tcpdf/examples/example_025.php | 118 + phplib/tcpdf/examples/example_026.php | 145 + phplib/tcpdf/examples/example_027.php | 418 + phplib/tcpdf/examples/example_028.php | 138 + phplib/tcpdf/examples/example_029.php | 124 + phplib/tcpdf/examples/example_030.php | 188 + phplib/tcpdf/examples/example_031.php | 103 + phplib/tcpdf/examples/example_032.php | 93 + phplib/tcpdf/examples/example_033.php | 105 + phplib/tcpdf/examples/example_034.php | 96 + phplib/tcpdf/examples/example_035.php | 111 + phplib/tcpdf/examples/example_036.php | 89 + phplib/tcpdf/examples/example_037.php | 143 + phplib/tcpdf/examples/example_038.php | 87 + phplib/tcpdf/examples/example_039.php | 104 + phplib/tcpdf/examples/example_040.php | 116 + phplib/tcpdf/examples/example_041.php | 90 + phplib/tcpdf/examples/example_042.php | 102 + phplib/tcpdf/examples/example_043.php | 85 + phplib/tcpdf/examples/example_044.php | 128 + phplib/tcpdf/examples/example_045.php | 130 + phplib/tcpdf/examples/example_046.php | 123 + phplib/tcpdf/examples/example_047.php | 117 + phplib/tcpdf/examples/example_048.php | 313 + phplib/tcpdf/examples/example_049.php | 126 + phplib/tcpdf/examples/example_050.php | 210 + phplib/tcpdf/examples/example_051.php | 145 + phplib/tcpdf/examples/example_052.php | 121 + phplib/tcpdf/examples/example_053.php | 108 + phplib/tcpdf/examples/example_054.php | 128 + phplib/tcpdf/examples/example_055.php | 114 + phplib/tcpdf/examples/example_056.php | 117 + phplib/tcpdf/examples/example_057.php | 268 + phplib/tcpdf/examples/example_058.php | 94 + phplib/tcpdf/examples/example_059.php | 190 + phplib/tcpdf/examples/example_060.php | 108 + phplib/tcpdf/examples/example_061.php | 273 + phplib/tcpdf/examples/example_062.php | 140 + phplib/tcpdf/examples/example_063.php | 131 + phplib/tcpdf/examples/example_064.php | 176 + phplib/tcpdf/examples/example_065.php | 98 + phplib/tcpdf/examples/index.php | 89 + phplib/tcpdf/fonts/aealarabiya.ctg.z | Bin 0 -> 1849 bytes phplib/tcpdf/fonts/aealarabiya.php | 15 + phplib/tcpdf/fonts/aealarabiya.z | Bin 0 -> 56010 bytes phplib/tcpdf/fonts/aefurat.ctg.z | Bin 0 -> 1843 bytes phplib/tcpdf/fonts/aefurat.php | 15 + phplib/tcpdf/fonts/aefurat.z | Bin 0 -> 73899 bytes phplib/tcpdf/fonts/cid0cs.php | 16 + phplib/tcpdf/fonts/cid0ct.php | 16 + phplib/tcpdf/fonts/cid0jp.php | 16 + phplib/tcpdf/fonts/cid0kr.php | 16 + phplib/tcpdf/fonts/courier.php | 12 + phplib/tcpdf/fonts/courierb.php | 12 + phplib/tcpdf/fonts/courierbi.php | 12 + phplib/tcpdf/fonts/courieri.php | 12 + .../fonts/dejavu-fonts-ttf-2.33/._AUTHORS | Bin 0 -> 4096 bytes .../tcpdf/fonts/dejavu-fonts-ttf-2.33/._BUGS | Bin 0 -> 4096 bytes .../fonts/dejavu-fonts-ttf-2.33/._LICENSE | Bin 0 -> 4096 bytes .../tcpdf/fonts/dejavu-fonts-ttf-2.33/._NEWS | Bin 0 -> 4096 bytes .../fonts/dejavu-fonts-ttf-2.33/._README | Bin 0 -> 4096 bytes .../dejavu-fonts-ttf-2.33/._langcover.txt | Bin 0 -> 4096 bytes .../fonts/dejavu-fonts-ttf-2.33/._status.txt | Bin 0 -> 4096 bytes .../dejavu-fonts-ttf-2.33/._unicover.txt | Bin 0 -> 4096 bytes .../tcpdf/fonts/dejavu-fonts-ttf-2.33/AUTHORS | 53 + phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/BUGS | 3 + .../tcpdf/fonts/dejavu-fonts-ttf-2.33/LICENSE | 99 + phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/NEWS | 1315 + .../tcpdf/fonts/dejavu-fonts-ttf-2.33/README | 59 + .../fonts/dejavu-fonts-ttf-2.33/langcover.txt | 242 + .../fonts/dejavu-fonts-ttf-2.33/status.txt | 6657 ++++ .../fonts/dejavu-fonts-ttf-2.33/unicover.txt | 215 + phplib/tcpdf/fonts/dejavusans.ctg.z | Bin 0 -> 10120 bytes phplib/tcpdf/fonts/dejavusans.php | 15 + phplib/tcpdf/fonts/dejavusans.z | Bin 0 -> 361229 bytes phplib/tcpdf/fonts/dejavusansb.ctg.z | Bin 0 -> 9854 bytes phplib/tcpdf/fonts/dejavusansb.php | 15 + phplib/tcpdf/fonts/dejavusansb.z | Bin 0 -> 333391 bytes phplib/tcpdf/fonts/dejavusansbi.ctg.z | Bin 0 -> 8757 bytes phplib/tcpdf/fonts/dejavusansbi.php | 15 + phplib/tcpdf/fonts/dejavusansbi.z | Bin 0 -> 311758 bytes phplib/tcpdf/fonts/dejavusanscondensed.ctg.z | Bin 0 -> 10120 bytes phplib/tcpdf/fonts/dejavusanscondensed.php | 15 + phplib/tcpdf/fonts/dejavusanscondensed.z | Bin 0 -> 314538 bytes phplib/tcpdf/fonts/dejavusanscondensedb.ctg.z | Bin 0 -> 9854 bytes phplib/tcpdf/fonts/dejavusanscondensedb.php | 15 + phplib/tcpdf/fonts/dejavusanscondensedb.z | Bin 0 -> 310831 bytes .../tcpdf/fonts/dejavusanscondensedbi.ctg.z | Bin 0 -> 8757 bytes phplib/tcpdf/fonts/dejavusanscondensedbi.php | 15 + phplib/tcpdf/fonts/dejavusanscondensedbi.z | Bin 0 -> 298581 bytes phplib/tcpdf/fonts/dejavusanscondensedi.ctg.z | Bin 0 -> 8996 bytes phplib/tcpdf/fonts/dejavusanscondensedi.php | 15 + phplib/tcpdf/fonts/dejavusanscondensedi.z | Bin 0 -> 295442 bytes phplib/tcpdf/fonts/dejavusansextralight.ctg.z | Bin 0 -> 3833 bytes phplib/tcpdf/fonts/dejavusansextralight.php | 15 + phplib/tcpdf/fonts/dejavusansextralight.z | Bin 0 -> 164360 bytes phplib/tcpdf/fonts/dejavusansi.ctg.z | Bin 0 -> 8996 bytes phplib/tcpdf/fonts/dejavusansi.php | 15 + phplib/tcpdf/fonts/dejavusansi.z | Bin 0 -> 311974 bytes phplib/tcpdf/fonts/dejavusansmono.ctg.z | Bin 0 -> 6318 bytes phplib/tcpdf/fonts/dejavusansmono.php | 15 + phplib/tcpdf/fonts/dejavusansmono.z | Bin 0 -> 196935 bytes phplib/tcpdf/fonts/dejavusansmonob.ctg.z | Bin 0 -> 6083 bytes phplib/tcpdf/fonts/dejavusansmonob.php | 15 + phplib/tcpdf/fonts/dejavusansmonob.z | Bin 0 -> 189280 bytes phplib/tcpdf/fonts/dejavusansmonobi.ctg.z | Bin 0 -> 4936 bytes phplib/tcpdf/fonts/dejavusansmonobi.php | 15 + phplib/tcpdf/fonts/dejavusansmonobi.z | Bin 0 -> 142395 bytes phplib/tcpdf/fonts/dejavusansmonoi.ctg.z | Bin 0 -> 5173 bytes phplib/tcpdf/fonts/dejavusansmonoi.php | 15 + phplib/tcpdf/fonts/dejavusansmonoi.z | Bin 0 -> 144067 bytes phplib/tcpdf/fonts/dejavuserif.ctg.z | Bin 0 -> 6388 bytes phplib/tcpdf/fonts/dejavuserif.php | 15 + phplib/tcpdf/fonts/dejavuserif.z | Bin 0 -> 201425 bytes phplib/tcpdf/fonts/dejavuserifb.ctg.z | Bin 0 -> 6123 bytes phplib/tcpdf/fonts/dejavuserifb.php | 15 + phplib/tcpdf/fonts/dejavuserifb.z | Bin 0 -> 187662 bytes phplib/tcpdf/fonts/dejavuserifbi.ctg.z | Bin 0 -> 6131 bytes phplib/tcpdf/fonts/dejavuserifbi.php | 15 + phplib/tcpdf/fonts/dejavuserifbi.z | Bin 0 -> 187962 bytes phplib/tcpdf/fonts/dejavuserifcondensed.ctg.z | Bin 0 -> 6388 bytes phplib/tcpdf/fonts/dejavuserifcondensed.php | 15 + phplib/tcpdf/fonts/dejavuserifcondensed.z | Bin 0 -> 180739 bytes .../tcpdf/fonts/dejavuserifcondensedb.ctg.z | Bin 0 -> 6123 bytes phplib/tcpdf/fonts/dejavuserifcondensedb.php | 15 + phplib/tcpdf/fonts/dejavuserifcondensedb.z | Bin 0 -> 171838 bytes .../tcpdf/fonts/dejavuserifcondensedbi.ctg.z | Bin 0 -> 6131 bytes phplib/tcpdf/fonts/dejavuserifcondensedbi.php | 15 + phplib/tcpdf/fonts/dejavuserifcondensedbi.z | Bin 0 -> 189956 bytes .../tcpdf/fonts/dejavuserifcondensedi.ctg.z | Bin 0 -> 6359 bytes phplib/tcpdf/fonts/dejavuserifcondensedi.php | 15 + phplib/tcpdf/fonts/dejavuserifcondensedi.z | Bin 0 -> 192309 bytes phplib/tcpdf/fonts/dejavuserifi.ctg.z | Bin 0 -> 6359 bytes phplib/tcpdf/fonts/dejavuserifi.php | 15 + phplib/tcpdf/fonts/dejavuserifi.z | Bin 0 -> 190085 bytes .../tcpdf/fonts/freefont-20100919/._AUTHORS | Bin 0 -> 4096 bytes .../tcpdf/fonts/freefont-20100919/._COPYING | Bin 0 -> 4096 bytes .../tcpdf/fonts/freefont-20100919/._CREDITS | Bin 0 -> 4096 bytes .../tcpdf/fonts/freefont-20100919/._ChangeLog | Bin 0 -> 4096 bytes .../tcpdf/fonts/freefont-20100919/._INSTALL | Bin 0 -> 4096 bytes phplib/tcpdf/fonts/freefont-20100919/._README | Bin 0 -> 4096 bytes phplib/tcpdf/fonts/freefont-20100919/AUTHORS | 235 + phplib/tcpdf/fonts/freefont-20100919/COPYING | 674 + phplib/tcpdf/fonts/freefont-20100919/CREDITS | 581 + .../tcpdf/fonts/freefont-20100919/ChangeLog | 6325 ++++ phplib/tcpdf/fonts/freefont-20100919/INSTALL | 86 + phplib/tcpdf/fonts/freefont-20100919/README | 108 + phplib/tcpdf/fonts/freemono.ctg.z | Bin 0 -> 6782 bytes phplib/tcpdf/fonts/freemono.php | 15 + phplib/tcpdf/fonts/freemono.z | Bin 0 -> 161631 bytes phplib/tcpdf/fonts/freemonob.ctg.z | Bin 0 -> 3860 bytes phplib/tcpdf/fonts/freemonob.php | 15 + phplib/tcpdf/fonts/freemonob.z | Bin 0 -> 90912 bytes phplib/tcpdf/fonts/freemonobi.ctg.z | Bin 0 -> 3320 bytes phplib/tcpdf/fonts/freemonobi.php | 15 + phplib/tcpdf/fonts/freemonobi.z | Bin 0 -> 95447 bytes phplib/tcpdf/fonts/freemonoi.ctg.z | Bin 0 -> 4124 bytes phplib/tcpdf/fonts/freemonoi.php | 15 + phplib/tcpdf/fonts/freemonoi.z | Bin 0 -> 115416 bytes phplib/tcpdf/fonts/freesans.ctg.z | Bin 0 -> 8176 bytes phplib/tcpdf/fonts/freesans.php | 15 + phplib/tcpdf/fonts/freesans.z | Bin 0 -> 372168 bytes phplib/tcpdf/fonts/freesansb.ctg.z | Bin 0 -> 4683 bytes phplib/tcpdf/fonts/freesansb.php | 15 + phplib/tcpdf/fonts/freesansb.z | Bin 0 -> 183889 bytes phplib/tcpdf/fonts/freesansbi.ctg.z | Bin 0 -> 4477 bytes phplib/tcpdf/fonts/freesansbi.php | 15 + phplib/tcpdf/fonts/freesansbi.z | Bin 0 -> 161417 bytes phplib/tcpdf/fonts/freesansi.ctg.z | Bin 0 -> 4698 bytes phplib/tcpdf/fonts/freesansi.php | 15 + phplib/tcpdf/fonts/freesansi.z | Bin 0 -> 241961 bytes phplib/tcpdf/fonts/freeserif.ctg.z | Bin 0 -> 10877 bytes phplib/tcpdf/fonts/freeserif.php | 15 + phplib/tcpdf/fonts/freeserif.z | Bin 0 -> 873623 bytes phplib/tcpdf/fonts/freeserifb.ctg.z | Bin 0 -> 5646 bytes phplib/tcpdf/fonts/freeserifb.php | 15 + phplib/tcpdf/fonts/freeserifb.z | Bin 0 -> 301278 bytes phplib/tcpdf/fonts/freeserifbi.ctg.z | Bin 0 -> 4762 bytes phplib/tcpdf/fonts/freeserifbi.php | 15 + phplib/tcpdf/fonts/freeserifbi.z | Bin 0 -> 257310 bytes phplib/tcpdf/fonts/freeserifi.ctg.z | Bin 0 -> 4984 bytes phplib/tcpdf/fonts/freeserifi.php | 15 + phplib/tcpdf/fonts/freeserifi.z | Bin 0 -> 362277 bytes phplib/tcpdf/fonts/helvetica.php | 13 + phplib/tcpdf/fonts/helveticab.php | 12 + phplib/tcpdf/fonts/helveticabi.php | 12 + phplib/tcpdf/fonts/helveticai.php | 12 + phplib/tcpdf/fonts/hysmyeongjostdmedium.php | 48 + phplib/tcpdf/fonts/kozgopromedium.php | 65 + phplib/tcpdf/fonts/kozminproregular.php | 63 + phplib/tcpdf/fonts/msungstdlight.php | 38 + phplib/tcpdf/fonts/pdfacourier.php | 15 + phplib/tcpdf/fonts/pdfacourier.z | Bin 0 -> 37462 bytes phplib/tcpdf/fonts/pdfacourierb.php | 15 + phplib/tcpdf/fonts/pdfacourierb.z | Bin 0 -> 39522 bytes phplib/tcpdf/fonts/pdfacourierbi.php | 15 + phplib/tcpdf/fonts/pdfacourierbi.z | Bin 0 -> 44630 bytes phplib/tcpdf/fonts/pdfacourieri.php | 15 + phplib/tcpdf/fonts/pdfacourieri.z | Bin 0 -> 35215 bytes phplib/tcpdf/fonts/pdfahelvetica.php | 15 + phplib/tcpdf/fonts/pdfahelvetica.z | Bin 0 -> 25225 bytes phplib/tcpdf/fonts/pdfahelveticab.php | 15 + phplib/tcpdf/fonts/pdfahelveticab.z | Bin 0 -> 25573 bytes phplib/tcpdf/fonts/pdfahelveticabi.php | 15 + phplib/tcpdf/fonts/pdfahelveticabi.z | Bin 0 -> 32904 bytes phplib/tcpdf/fonts/pdfahelveticai.php | 15 + phplib/tcpdf/fonts/pdfahelveticai.z | Bin 0 -> 29045 bytes phplib/tcpdf/fonts/pdfasymbol.php | 15 + phplib/tcpdf/fonts/pdfasymbol.z | Bin 0 -> 30439 bytes phplib/tcpdf/fonts/pdfatimes.php | 15 + phplib/tcpdf/fonts/pdfatimes.z | Bin 0 -> 38971 bytes phplib/tcpdf/fonts/pdfatimesb.php | 15 + phplib/tcpdf/fonts/pdfatimesb.z | Bin 0 -> 38101 bytes phplib/tcpdf/fonts/pdfatimesbi.php | 15 + phplib/tcpdf/fonts/pdfatimesbi.z | Bin 0 -> 40653 bytes phplib/tcpdf/fonts/pdfatimesi.php | 15 + phplib/tcpdf/fonts/pdfatimesi.z | Bin 0 -> 35856 bytes phplib/tcpdf/fonts/pdfazapfdingbats.php | 15 + phplib/tcpdf/fonts/pdfazapfdingbats.z | Bin 0 -> 50713 bytes phplib/tcpdf/fonts/stsongstdlight.php | 39 + phplib/tcpdf/fonts/symbol.php | 12 + phplib/tcpdf/fonts/times.php | 12 + phplib/tcpdf/fonts/timesb.php | 12 + phplib/tcpdf/fonts/timesbi.php | 12 + phplib/tcpdf/fonts/timesi.php | 12 + phplib/tcpdf/fonts/uni2cid_ac15.php | 6 + phplib/tcpdf/fonts/uni2cid_ag15.php | 6 + phplib/tcpdf/fonts/uni2cid_aj16.php | 6 + phplib/tcpdf/fonts/uni2cid_ak12.php | 6 + phplib/tcpdf/fonts/zapfdingbats.php | 12 + phplib/tcpdf/htmlcolors.php | 199 + phplib/tcpdf/images/_blank.png | Bin 0 -> 137 bytes phplib/tcpdf/images/alpha.png | Bin 0 -> 13168 bytes phplib/tcpdf/images/bug.eps | 1809 + phplib/tcpdf/images/image_demo.jpg | Bin 0 -> 573845 bytes phplib/tcpdf/images/image_with_alpha.png | Bin 0 -> 230267 bytes phplib/tcpdf/images/img.png | Bin 0 -> 81634 bytes phplib/tcpdf/images/logo_example.gif | Bin 0 -> 21022 bytes phplib/tcpdf/images/logo_example.jpg | Bin 0 -> 32732 bytes phplib/tcpdf/images/logo_example.png | Bin 0 -> 19411 bytes phplib/tcpdf/images/pelican.ai | 147 + phplib/tcpdf/images/tcpdf_cell.png | Bin 0 -> 38415 bytes phplib/tcpdf/images/tcpdf_logo.jpg | Bin 0 -> 17633 bytes phplib/tcpdf/images/tcpdf_signature.png | Bin 0 -> 67931 bytes phplib/tcpdf/images/testsvg.svg | 328 + phplib/tcpdf/images/tiger.ai | 3599 ++ phplib/tcpdf/images/tux.svg | 1487 + phplib/tcpdf/pdf417.php | 991 + phplib/tcpdf/qrcode.php | 2866 ++ phplib/tcpdf/sRGB.icc | Bin 0 -> 3048 bytes phplib/tcpdf/spotcolors.php | 60 + phplib/tcpdf/tcpdf.crt | 40 + phplib/tcpdf/tcpdf.fdf | Bin 0 -> 1286 bytes phplib/tcpdf/tcpdf.p12 | Bin 0 -> 1749 bytes phplib/tcpdf/tcpdf.php | 29927 ++++++++++++++++ phplib/tcpdf/tcpdf_filters.php | 477 + phplib/tcpdf/tcpdf_parser.php | 510 + phplib/tcpdf/unicode_data.php | 18371 ++++++++++ phplib/utils.php | 33 + robots.txt | 8 + site/article.xsl | 75 + site/cv.xsl | 279 + site/footer.xsl | 16 + site/generate_header.xsl | 134 + site/generate_html.xsl | 461 + site/menuh.xsl | 102 + site/menuv.xsl | 235 + site/news.xsl | 226 + site/page.xsl | 1250 + site/root.xsl | 10 + site/test.xsl | 15 + sitemap.php | 69 + sitemap_alice.xml | 27 + spirituel.xml | 59 + temperature.xml | 117 + tools/gen_tex.bat | 15 + tools/generate.bat | 32 + tools/generate.sh | 136 + tools/generate.wsf | 116 + update.php | 694 + web.xml | 89 + 1418 files changed, 237413 insertions(+) create mode 100644 README.php create mode 100644 accounting/accueil.en_US.UTF-8.xml create mode 100644 accounting/accueil.fr_FR.UTF-8.xml create mode 100755 accounting/budget.fr_FR.UTF-8.xml create mode 100644 accounting/contact.en_US.UTF-8.xml create mode 100644 accounting/contact.fr_FR.UTF-8.xml create mode 100755 accounting/copropriete.fr_FR.UTF-8.xml create mode 100755 accounting/donates.fr_FR.UTF-8.xml create mode 100755 accounting/fournisseur.fr_FR.UTF-8.xml create mode 100755 accounting/journaux.fr_FR.UTF-8.xml create mode 100644 accounting/liens_syndic.en_US.UTF-8.xml create mode 100644 accounting/liens_syndic.fr_FR.UTF-8.xml create mode 100755 accounting/plan_comptable.fr_FR.UTF-8.xml create mode 100644 accounting/products.en_US.UTF-8.xml create mode 100644 accounting/products.fr_FR.UTF-8.xml create mode 100644 accounting/services.en_US.UTF-8.xml create mode 100644 accounting/services.fr_FR.UTF-8.xml create mode 100644 accueil.en_US.UTF-8.xml create mode 100644 accueil.fr_FR.UTF-8.xml create mode 100644 accueil.xml create mode 100644 activite.en_US.UTF-8.xml create mode 100644 activite.fr_FR.UTF-8.xml create mode 100644 activite.xml create mode 100644 app/admin/index.js create mode 100644 app/admin/view/index.fr_FR.UTF-8.xml create mode 100644 app/basic.php create mode 100644 app/calendar/calendar.php create mode 100644 app/common.php create mode 100755 app/compta/Accounting.mysql create mode 100644 app/compta/Accounting.sql create mode 100755 app/compta/AccountingCreate.mysql create mode 100644 app/compta/Budgets.mysql create mode 100755 app/compta/InitAccounting.mysql create mode 100644 app/compta/booking.php create mode 100644 app/compta/budget.js create mode 100644 app/compta/budget.php create mode 100644 app/compta/budget_edit.xml create mode 100644 app/compta/copro.js create mode 100644 app/compta/copro_decompte.xml create mode 100644 app/compta/copro_entretien.xml create mode 100644 app/compta/copro_pay.xml create mode 100644 app/compta/copro_role.xml create mode 100644 app/compta/copro_users.xml create mode 100644 app/compta/exercice.js create mode 100644 app/compta/exercice.xml create mode 100644 app/compta/identity.php create mode 100644 app/compta/index.php create mode 100644 app/compta/index.xml create mode 100644 app/compta/journaux.js create mode 100644 app/compta/journaux.xml create mode 100644 app/compta/jrnx.xml create mode 100644 app/compta/jrnx_detail.xml create mode 100644 app/compta/jrnx_record.xml create mode 100644 app/compta/ledger_church.xml create mode 100644 app/compta/ledger_create.xml create mode 100644 app/compta/ledger_syndic.xml create mode 100644 app/compta/lot.xml create mode 100644 app/compta/lot_attribuer.xml create mode 100644 app/compta/lot_charge.xml create mode 100644 app/compta/lots.js create mode 100644 app/compta/parametre.js create mode 100644 app/compta/parametre.xml create mode 100644 app/compta/pcmn.js create mode 100644 app/compta/pcmn.php create mode 100644 app/compta/pcmn.xml create mode 100644 app/compta/reports/decompte_charge.php create mode 100644 app/compta/reports/recu_taxe.php create mode 100644 app/compta/reports/syndic_annexe1.php create mode 100644 app/compta/reports/syndic_annexes.php create mode 100644 app/compta/retrieve.php create mode 100644 app/compta/supplier.js create mode 100644 app/compta/supplier_account.xml create mode 100644 app/compta/supplier_add.xml create mode 100644 app/compta/supplier_bill.xml create mode 100644 app/compta/supplier_pay.xml create mode 100644 app/compta/supplier_remove.xml create mode 100644 app/compta/syndic.php create mode 100644 app/compta/upload.php create mode 100644 app/compta/users.xml create mode 100644 app/config/analystictracking_andre.php create mode 100644 app/config/analystictracking_syndic.php create mode 100644 app/config/andre.php create mode 100644 app/config/config.php create mode 100644 app/config/feebf.php create mode 100644 app/config/mysql.conf.php.example create mode 100644 app/config/trinity.php create mode 100644 app/distro/distribution.php create mode 100644 app/distro/index.en_US.UTF-8.xml create mode 100644 app/distro/index.php create mode 100644 app/distro/packages.js create mode 100644 app/distro/sql-requests.xml create mode 100644 app/distro/view.en_US.UTF-8.xml create mode 100644 app/distro/view.js create mode 100644 app/distro/view/distribution.xml create mode 100644 app/distro/view/index.fr_FR.UTF8.xml create mode 100644 app/distro/view/index.js create mode 100644 app/distro/view/index.xml create mode 100644 app/distro/view/pkg.xml create mode 100644 app/distro/view/tc.xml create mode 100644 app/ftp/ftp.sql create mode 100644 app/ftp/proftpd.conf create mode 100644 app/index.php create mode 100644 app/index.xml create mode 100644 app/member/annuaire.mysql create mode 100644 app/member/annuaire.php create mode 100644 app/member/annuaire.xml create mode 100644 app/member/class.db_eglise.php create mode 100644 app/member/class.db_groups.php create mode 100644 app/member/class.db_user.php create mode 100644 app/member/class.json_db_user.php create mode 100644 app/member/comments.php create mode 100644 app/member/eglise.php create mode 100644 app/member/groups.php create mode 100644 app/member/index.php create mode 100644 app/member/login.php create mode 100644 app/member/members.php create mode 100644 app/member/profile.php create mode 100755 app/member/sql-andre-requests.xml create mode 100644 app/member/sql-requests.xml create mode 100644 app/member/sql-trinity-requests.xml create mode 100644 app/registration/class.db_stats.php create mode 100644 app/registration/counting.php create mode 100644 app/registration/register.php create mode 100644 app/users.xml create mode 100644 app/xsd2cpp/view/main.fr_FR.UTF8.xml create mode 100644 app/xsl/generate_html.xsl create mode 100644 app/xsl/gui-wizard.xsl create mode 100644 app/xsl/gui.xsl create mode 100644 app/xsl/header_footer.xsl create mode 100644 app/xsl/menus.xsl create mode 100644 app/xsl/tree.xsl create mode 100644 app/xsl/view.xsl create mode 100644 app/xsl/wsdl-util.xsl create mode 100644 app/xsl/wsdl2idl.xsl create mode 100644 app/xsl/wsdl2mico-cpp.xsl create mode 100644 app/xsl/wsdl2mico-header.xsl create mode 100644 blog/2011/06/06_asn1_sans_craintes.fr_FR.UTF-8.xml create mode 100644 blog/2011/06/06_eloise_blog_page.en_US.UTF-8.xml create mode 100644 calendar.en_US.UTF-8.xml create mode 100644 calendar.fr_FR.UTF-8.xml create mode 100644 calendar.xml create mode 100644 calendar_doc.xml create mode 100644 competence.xml create mode 100644 config.xml create mode 100644 contact.en_US.UTF-8.xml create mode 100644 contact.fr_FR.UTF-8.xml create mode 100644 contact.php create mode 100644 contact.xml create mode 100644 corba/csp.xml create mode 100644 corba/csp_poa.xml create mode 100644 corba/index.xml create mode 100644 corba/liens.xml create mode 100644 corba/liens_php.xml create mode 100644 corba/log.xml create mode 100644 corba/query.xml create mode 100644 corba/sales.xml create mode 100644 corba/webserver.xml create mode 100644 css/SyntaxHighlighter.css create mode 100644 css/andre/default.css create mode 100644 css/andre/ie_ahp.css create mode 100644 css/andre/min-andre.php create mode 100644 css/andre/theme-andre-bottom.php create mode 100644 css/andre/theme-andre-menuh.php create mode 100644 css/andre/theme-andre.php create mode 100644 css/andre/theme-syndic.css create mode 100644 css/andre/tinymce.css create mode 100755 css/cssmin-v3.0.1.php create mode 100644 css/cv.css create mode 100644 css/jscook/JSCookTree.js create mode 100644 css/jscook/ThemeLibrary.zip create mode 100644 css/jscook/ThemeNavy.zip create mode 100644 css/jscook/ThemeOffice2003-1.1.zip create mode 100644 css/jscook/ThemeXP.zip create mode 100644 css/jscook/base.gif create mode 100644 css/jscook/folder.gif create mode 100644 css/jscook/folder1.gif create mode 100644 css/jscook/folder2.gif create mode 100644 css/jscook/folderopen1.gif create mode 100644 css/jscook/join.gif create mode 100644 css/jscook/joinbottom.gif create mode 100644 css/jscook/jscookmenu-2.0.3.zip create mode 100644 css/jscook/line.gif create mode 100644 css/jscook/minus.gif create mode 100644 css/jscook/minusbottom.gif create mode 100644 css/jscook/page.gif create mode 100644 css/jscook/plus.gif create mode 100644 css/jscook/plusbottom.gif create mode 100644 css/jscook/spacer.gif create mode 100644 css/jscook/theme.css create mode 100644 css/jscook/theme.js create mode 100644 css/lightbox.css create mode 100644 css/tree.css create mode 100644 css/xgui/default.css create mode 100644 css/xgui/theme-andre.css create mode 100644 css/xgui/theme-syndic.css create mode 100644 css/xgui/theme.css create mode 100644 cv-2011-05-12.en_US.UTF-8.xml create mode 100644 cv-2011-05-12.fr_FR.UTF-8.xml create mode 100644 cv.en_US.UTF-8.xml create mode 100644 cv.fr_FR.UTF-8.xml create mode 100644 cv.xml create mode 100644 cv_080610genesis.xml create mode 100644 cv_alcatel.xml create mode 100644 cv_dna.xml create mode 100644 formapre/070316_msg.xml create mode 100644 formapre/cours.xml create mode 100644 formapre/devoirs.xml create mode 100644 formapre/index.xml create mode 100644 formapre/liens.xml create mode 100644 formapre/m4c5da.xml create mode 100644 formapre/m4c5db.xml create mode 100644 formapre/m5c1da.xml create mode 100644 formapre/m5c1db.xml create mode 100644 formapre/m5c2db.xml create mode 100644 formapre/m5c3da.xml create mode 100644 formapre/m5c3db.xml create mode 100644 formapre/m5c4_cours.xml create mode 100644 formapre/m5c4da.xml create mode 100644 formapre/m5c4db.xml create mode 100644 formapre/m5c5_cours.xml create mode 100644 formapre/m5c5da.xml create mode 100644 formapre/m5c5db.xml create mode 100644 formapre/meinau.xml create mode 100644 formapre/module5_cours3_devoir_B.xml create mode 100644 formapre/news.xml create mode 100644 formapre/program.xml create mode 100644 formapre/subscribe.xml create mode 100644 generate.bat create mode 100644 header.xml create mode 100644 header_php.xml create mode 100644 images/XML.png create mode 100755 images/accounting/NewMenuHBlack60px.png create mode 100755 images/accounting/barre_etat.png create mode 100755 images/accounting/book-dolars.png create mode 100755 images/accounting/budget_edit.png create mode 100755 images/accounting/budget_liste.png create mode 100755 images/accounting/budget_menu.png create mode 100755 images/accounting/building.jpg create mode 100755 images/accounting/menu_coprorpiete.png create mode 100755 images/accounting/payer_facture.png create mode 100755 images/accounting/saisie_facture.png create mode 100755 images/accounting/syndic-header-n.png create mode 100755 images/accounting/syndic-logo.png create mode 100755 images/andre-icon-cpp.png create mode 100644 images/andre.jpg create mode 100644 images/appli_evt/add.gif create mode 100644 images/appli_evt/alert_high.gif create mode 100644 images/appli_evt/alert_icon.gif create mode 100644 images/appli_evt/alert_normal.gif create mode 100644 images/appli_evt/alert_profile.gif create mode 100644 images/appli_evt/arch_files.gif create mode 100644 images/appli_evt/bookmarks.gif create mode 100644 images/appli_evt/calendar_range.gif create mode 100644 images/appli_evt/cp_depts.png create mode 100644 images/appli_evt/cp_filtersettings.gif create mode 100644 images/appli_evt/cp_mailsettings.gif create mode 100644 images/appli_evt/cp_productinfo.png create mode 100644 images/appli_evt/del.gif create mode 100644 images/appli_evt/edit.gif create mode 100644 images/appli_evt/host_32_icon.gif create mode 100644 images/appli_evt/host_details_icon.gif create mode 100644 images/appli_evt/host_group.gif create mode 100644 images/appli_evt/host_mini.gif create mode 100644 images/appli_evt/last10a.gif create mode 100644 images/appli_evt/last10a_dis.gif create mode 100644 images/appli_evt/logo_cisco.gif create mode 100644 images/appli_evt/logo_linux.gif create mode 100644 images/appli_evt/logo_win.gif create mode 100644 images/appli_evt/myreport.gif create mode 100644 images/appli_evt/mysql.gif create mode 100644 images/appli_evt/port_up.gif create mode 100644 images/appli_evt/scheduler_list.gif create mode 100644 images/appli_evt/star_home.gif create mode 100644 images/appli_evt/started.gif create mode 100644 images/appli_evt/sviewer.gif create mode 100644 images/bookkeeping-church.png create mode 100644 images/bookkeeping.png create mode 100644 images/btn_help.gif create mode 100644 images/btn_rss.gif create mode 100644 images/bullet.gif create mode 100644 images/button-dessin.svg create mode 100644 images/caddie-blanc.gif create mode 100644 images/cell.gif create mode 100644 images/close.gif create mode 100644 images/closelabel.gif create mode 100644 images/edit.png create mode 100644 images/faq_docman.gif create mode 100644 images/flag-de.png create mode 100644 images/flag-en.png create mode 100644 images/flag-fr.png create mode 100644 images/fondsslogo.jpg create mode 100644 images/home/120x90_IMG_5152.jpg create mode 100644 images/home/bleue-bottom.png create mode 100644 images/home/bleue-header.png create mode 100644 images/home/bleue-middle.png create mode 100644 images/home/dialogh.png create mode 100644 images/home/menuh_item.png create mode 100644 images/home/menuh_item_over.png create mode 100644 images/ico_page.gif create mode 100644 images/icon-benifit.gif create mode 100644 images/icon-livedemo.gif create mode 100644 images/icon-support.gif create mode 100644 images/icon_events.gif create mode 100644 images/icon_green_left.gif create mode 100644 images/icon_green_notice.gif create mode 100644 images/icon_green_right.gif create mode 100644 images/icon_yellow_notice.gif create mode 100644 images/icons/11x11/disable.gif create mode 100644 images/icons/11x11/enable.gif create mode 100644 images/icons/16x16/add.png create mode 100755 images/icons/16x16/arrow_down.gif create mode 100755 images/icons/16x16/arrow_up.gif create mode 100755 images/icons/16x16/bookmark.gif create mode 100644 images/icons/16x16/btn_help16.png create mode 100755 images/icons/16x16/budget.png create mode 100755 images/icons/16x16/close_hov.gif create mode 100644 images/icons/16x16/contact.png create mode 100755 images/icons/16x16/delete.gif create mode 100644 images/icons/16x16/drop4.jpg create mode 100755 images/icons/16x16/edit.gif create mode 100755 images/icons/16x16/edit_colums.gif create mode 100755 images/icons/16x16/edit_list.gif create mode 100755 images/icons/16x16/error.gif create mode 100644 images/icons/16x16/exe.gif create mode 100755 images/icons/16x16/exprt_excel.gif create mode 100755 images/icons/16x16/exprt_file.gif create mode 100755 images/icons/16x16/exprt_pdf.gif create mode 100755 images/icons/16x16/favorite.gif create mode 100644 images/icons/16x16/feed.png create mode 100644 images/icons/16x16/flash.gif create mode 100755 images/icons/16x16/help.gif create mode 100755 images/icons/16x16/home-gray.png create mode 100644 images/icons/16x16/home.png create mode 100644 images/icons/16x16/invite.png create mode 100755 images/icons/16x16/list.gif create mode 100644 images/icons/16x16/mail.png create mode 100644 images/icons/16x16/mail16.png create mode 100644 images/icons/16x16/manual.png create mode 100755 images/icons/16x16/modify.gif create mode 100644 images/icons/16x16/network.png create mode 100644 images/icons/16x16/pdf-a.png create mode 100644 images/icons/16x16/personal-a.png create mode 100755 images/icons/16x16/print.gif create mode 100644 images/icons/16x16/printer-a.png create mode 100755 images/icons/16x16/refresh.gif create mode 100755 images/icons/16x16/related_obj.gif create mode 100644 images/icons/16x16/rss.png create mode 100644 images/icons/16x16/search.png create mode 100644 images/icons/16x16/select.png create mode 100755 images/icons/16x16/sendmail.gif create mode 100755 images/icons/16x16/tabular.gif create mode 100755 images/icons/16x16/tested_by_obj.gif create mode 100755 images/icons/16x16/warning.png create mode 100644 images/icons/17x17/doubledown-a.png create mode 100644 images/icons/17x17/down-a.png create mode 100644 images/icons/17x17/left-a.png create mode 100644 images/icons/17x17/right-a.png create mode 100644 images/icons/20x20/cvs.png create mode 100644 images/icons/20x20/docman.png create mode 100644 images/icons/20x20/forum.png create mode 100644 images/icons/20x20/home.png create mode 100644 images/icons/20x20/survey.png create mode 100644 images/icons/20x20/taskman.png create mode 100644 images/icons/20x20/tracker.png create mode 100644 images/icons/24x24/calendar.png create mode 100644 images/icons/24x24/group.png create mode 100644 images/icons/24x24/home.png create mode 100644 images/icons/24x24/journal.png create mode 100644 images/icons/24x24/music.png create mode 100644 images/icons/24x24/photos.png create mode 100644 images/icons/24x24/read_big.gif create mode 100644 images/icons/24x24/review_big.gif create mode 100644 images/icons/24x24/reviews.png create mode 100644 images/icons/24x24/spy.gif create mode 100755 images/icons/29x29/picto-comptes.png create mode 100755 images/icons/29x29/picto-epargne.png create mode 100755 images/icons/29x29/picto-titres.png create mode 100755 images/icons/29x29/picto_contrat.png create mode 100644 images/icons/facebook.png create mode 100644 images/icons/flags/flag-en1.png create mode 100644 images/icons/flags/flag-es.png create mode 100644 images/icons/flags/flag-ja.png create mode 100644 images/icons/flags/flag-ru.png create mode 100644 images/icons/flags/flag-zh.png create mode 100755 images/icons/ico_alerte.png create mode 100755 images/icons/ico_facebook.png create mode 100755 images/icons/ico_home_gray.png create mode 100755 images/icons/ico_login.png create mode 100755 images/icons/ico_nav.png create mode 100755 images/icons/ico_newsletter.png create mode 100755 images/icons/ico_rss.png create mode 100755 images/icons/ico_twitter.png create mode 100755 images/icons/ico_user.png create mode 100644 images/icons/news.png create mode 100644 images/icons/news.svg create mode 100644 images/icons/social_signin_folio.png create mode 100644 images/icons/style.png create mode 100644 images/icons/style.svg create mode 100644 images/icons/summary.png create mode 100644 images/icons/summary.svg create mode 100644 images/icons/title.png create mode 100644 images/icons/title.svg create mode 100644 images/livres/CORBA_fr.jpeg create mode 100644 images/livres/NouveauTestament.jpeg create mode 100644 images/livres/advanced_corba.jpeg create mode 100644 images/livres/ldap.jpeg create mode 100644 images/livres/precis.jpeg create mode 100644 images/loading.gif create mode 100644 images/mail16.png create mode 100644 images/menu_green_fl.gif create mode 100644 images/menu_violet_fl.gif create mode 100644 images/metrics.gif create mode 100644 images/moto600_1.jpg create mode 100644 images/nextlabel.gif create mode 100644 images/panier.gif create mode 100644 images/planpage_100dpi.jpg create mode 100644 images/pre.jpg create mode 100644 images/prevlabel.gif create mode 100644 images/pubbackground.jpg create mode 100644 images/ready.png create mode 100644 images/search.gif create mode 100644 images/template-trinity.svg create mode 100644 images/template.svg create mode 100644 images/test-box3D.svg create mode 100644 images/test-clock.svg create mode 100644 images/video_ico.gif create mode 100644 images/wifi.gif create mode 100644 images/wrench.jpg create mode 100644 images/x-click-butcc-donate.gif create mode 100644 images/xgui/Bot_center.gif create mode 100644 images/xgui/Bot_left.gif create mode 100644 images/xgui/Bot_right.gif create mode 100644 images/xgui/Left.gif create mode 100644 images/xgui/MozBack.png create mode 100644 images/xgui/MozBot_center.gif create mode 100644 images/xgui/MozBot_left.gif create mode 100644 images/xgui/MozBot_right.gif create mode 100644 images/xgui/MozLeft.gif create mode 100644 images/xgui/MozRight.gif create mode 100644 images/xgui/MozTop_center.gif create mode 100644 images/xgui/MozTop_left.gif create mode 100644 images/xgui/MozTop_right.gif create mode 100644 images/xgui/Right.gif create mode 100644 images/xgui/Top_center.gif create mode 100644 images/xgui/Top_left.gif create mode 100644 images/xgui/Top_right.gif create mode 100644 images/xgui/WinBot_center.gif create mode 100644 images/xgui/WinBot_left.gif create mode 100644 images/xgui/WinBot_right.gif create mode 100644 images/xgui/WinLeft.gif create mode 100644 images/xgui/WinRight.gif create mode 100644 images/xgui/WinTop_center.gif create mode 100644 images/xgui/WinTop_left.gif create mode 100644 images/xgui/WinTop_right.gif create mode 100644 images/xgui/butBack.gif create mode 100644 images/xgui/butLeft.gif create mode 100644 images/xgui/butLeftPLain.gif create mode 100644 images/xgui/butRight.gif create mode 100644 images/xgui/butSpan.gif create mode 100644 images/xgui/disbutBack.gif create mode 100644 images/xgui/disbutLeft.gif create mode 100644 images/xgui/disbutRight.gif create mode 100644 images/xgui/group-bl-orange.gif create mode 100644 images/xgui/group-br-orange.gif create mode 100644 images/xgui/group-tl-orange.gif create mode 100644 images/xgui/group-tr-orange.gif create mode 100644 images/xgui/layBot.gif create mode 100644 images/xgui/layBotLeft.gif create mode 100644 images/xgui/layBotRight.gif create mode 100644 images/xgui/layDis.gif create mode 100644 images/xgui/layDisBottom.gif create mode 100644 images/xgui/layDisLeft.gif create mode 100644 images/xgui/layDisLeftBottom.gif create mode 100644 images/xgui/layDisRight.gif create mode 100644 images/xgui/layDisRightBottom.gif create mode 100644 images/xgui/layLeft.gif create mode 100644 images/xgui/layRight.gif create mode 100644 images/xgui/laySelectCenter.gif create mode 100644 images/xgui/laySelectLeft.gif create mode 100644 images/xgui/laySelectRight.gif create mode 100644 images/xgui/mandatory.gif create mode 100644 images/xgui/newButton.xcf create mode 100644 images/xgui/reloadBig.gif create mode 100644 images/xgui/stock_cancel.png create mode 100644 images/xgui/stock_ok.png create mode 100644 images/xgui/stock_refresh-blue.png create mode 100644 images/xgui/tabNoteBotSel.gif create mode 100644 images/xgui/tabNoteLeftSel.gif create mode 100644 images/xgui/tabNoteRightSel.gif create mode 100644 images/xgui/table_head.jpg create mode 100644 images/xgui/titBack.gif create mode 100644 images/xgui/titLeft.gif create mode 100644 images/xgui/titRight.gif create mode 100644 index.php create mode 100644 js/NameValuePairCollection.js create mode 100644 js/Tree-optimized.js create mode 100644 js/Tree.js create mode 100644 js/cstutils.js create mode 100644 js/drawing.js create mode 100644 js/email.js create mode 100644 js/jsmin.c create mode 100644 js/json2.js create mode 100644 js/lightbox.js create mode 100644 js/load_request.js create mode 100644 js/login.js create mode 100644 js/md5.js create mode 100644 js/mydate.js create mode 100644 js/mymenu.js create mode 100644 js/request.js create mode 100644 js/scriptaculus/builder.js create mode 100644 js/scriptaculus/controls.js create mode 100644 js/scriptaculus/dragdrop.js create mode 100644 js/scriptaculus/effects.js create mode 100644 js/scriptaculus/proto.menu.0.6.js create mode 100644 js/scriptaculus/prototype.js create mode 100644 js/scriptaculus/scriptaculous.js create mode 100644 js/scriptaculus/slider.js create mode 100644 js/scriptaculus/sound.js create mode 100644 js/scriptaculus/unittest.js create mode 100644 js/slidemenu.js create mode 100644 js/styleswitcher.js create mode 100644 js/syntaxhighlight/clipboard.swf create mode 100644 js/syntaxhighlight/shBrushBash.js create mode 100644 js/syntaxhighlight/shBrushCSharp.js create mode 100644 js/syntaxhighlight/shBrushCpp.js create mode 100644 js/syntaxhighlight/shBrushCss.js create mode 100644 js/syntaxhighlight/shBrushDelphi.js create mode 100644 js/syntaxhighlight/shBrushGroovy.js create mode 100644 js/syntaxhighlight/shBrushJScript.js create mode 100644 js/syntaxhighlight/shBrushJava.js create mode 100644 js/syntaxhighlight/shBrushPhp.js create mode 100644 js/syntaxhighlight/shBrushPython.js create mode 100644 js/syntaxhighlight/shBrushRuby.js create mode 100644 js/syntaxhighlight/shBrushScala.js create mode 100644 js/syntaxhighlight/shBrushSql.js create mode 100644 js/syntaxhighlight/shBrushVb.js create mode 100644 js/syntaxhighlight/shBrushXml.js create mode 100644 js/syntaxhighlight/shCore.js create mode 100644 js/tinymce/changelog.txt create mode 100644 js/tinymce/examples/css/content.css create mode 100644 js/tinymce/examples/css/word.css create mode 100644 js/tinymce/examples/full.html create mode 100644 js/tinymce/examples/index.html create mode 100644 js/tinymce/examples/lists/image_list.js create mode 100644 js/tinymce/examples/lists/link_list.js create mode 100644 js/tinymce/examples/lists/media_list.js create mode 100644 js/tinymce/examples/lists/template_list.js create mode 100644 js/tinymce/examples/media/logo.jpg create mode 100644 js/tinymce/examples/media/logo_over.jpg create mode 100644 js/tinymce/examples/media/sample.avi create mode 100644 js/tinymce/examples/media/sample.dcr create mode 100644 js/tinymce/examples/media/sample.mov create mode 100644 js/tinymce/examples/media/sample.ram create mode 100644 js/tinymce/examples/media/sample.rm create mode 100644 js/tinymce/examples/media/sample.swf create mode 100644 js/tinymce/examples/menu.html create mode 100644 js/tinymce/examples/simple.html create mode 100644 js/tinymce/examples/skins.html create mode 100644 js/tinymce/examples/templates/layout1.htm create mode 100644 js/tinymce/examples/templates/snippet1.htm create mode 100644 js/tinymce/examples/word.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/browser.css create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/browser.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/basexml.php create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/commands.php create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/config.php create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/connector.php create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/io.php create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/util.php create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/frmactualfolder.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/frmcreatefolder.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/frmfolders.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/frmresourceslist.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/frmresourcetype.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/frmupload.html create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/ButtonArrow.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/Folder.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/Folder32.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/FolderOpened.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/FolderOpened32.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/FolderUp.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/ai.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/avi.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/bmp.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/cs.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/default.icon.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/dll.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/doc.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/exe.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/fla.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/gif.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/htm.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/html.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/jpg.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/js.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/mdb.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/mp3.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/pdf.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/ppt.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/rdp.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/swf.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/swt.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/txt.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/vsd.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/xls.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/xml.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/zip.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/ai.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/avi.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/bmp.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/cs.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/default.icon.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/dll.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/doc.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/exe.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/fla.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/gif.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/htm.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/html.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/jpg.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/js.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/mdb.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/mp3.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/pdf.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/ppt.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/rdp.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/swf.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/swt.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/txt.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/vsd.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/xls.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/xml.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/icons/zip.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/images/spacer.gif create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/js/common.js create mode 100644 js/tinymce/jscripts/tiny_mce/filemanager/js/fckxml.js create mode 100644 js/tinymce/jscripts/tiny_mce/langs/en.js create mode 100644 js/tinymce/jscripts/tiny_mce/license.txt create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/css/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/css/media.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/flash.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/quicktime.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/realmedia.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/shockwave.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/trans.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/img/windowsmedia.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/js/media.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/media/media.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/pagebreak/css/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/trans.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/blank.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/css/blank.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/css/pasteword.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/preview/example.html create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/safari/blank.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/style/css/props.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/style/js/props.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/style/props.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/cell.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/css/row.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/css/table.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/js/row.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/js/table.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/row.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/table/table.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/blank.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/css/template.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/js/template.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/template/template.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js create mode 100644 js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/about.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/link.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/items.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/progress.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/langs/en.js create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/skins/default/ui.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png create mode 100644 js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css create mode 100644 js/tinymce/jscripts/tiny_mce/tiny_mce.js create mode 100644 js/tinymce/jscripts/tiny_mce/tiny_mce_popup.js create mode 100644 js/tinymce/jscripts/tiny_mce/tiny_mce_src.js create mode 100644 js/tinymce/jscripts/tiny_mce/utils/editable_selects.js create mode 100644 js/tinymce/jscripts/tiny_mce/utils/form_utils.js create mode 100644 js/tinymce/jscripts/tiny_mce/utils/mctabs.js create mode 100644 js/tinymce/jscripts/tiny_mce/utils/validate.js create mode 100644 js/urlparams.js create mode 100644 js/xgui/aebw.bat create mode 100644 js/xgui/aebw.js create mode 100644 js/xgui/aebw.sh create mode 100644 js/xgui/xgui.js create mode 100644 js/xgui/xgui_asn1.js create mode 100644 js/xgui/xgui_base64.js create mode 100644 js/xgui/xgui_button.js create mode 100644 js/xgui/xgui_calendar.js create mode 100644 js/xgui/xgui_combobox.js create mode 100644 js/xgui/xgui_corba.js create mode 100644 js/xgui/xgui_dialogbox.js create mode 100644 js/xgui/xgui_hex.js create mode 100644 js/xgui/xgui_json.js create mode 100644 js/xgui/xgui_jsonrpc.js create mode 100644 js/xgui/xgui_menu.js create mode 100644 js/xgui/xgui_stream.js create mode 100644 js/xgui/xgui_tab.js create mode 100644 js/xgui/xgui_table.js create mode 100644 js/xgui/xgui_wizard.js create mode 100644 liens.xml create mode 100644 liens_php.xml create mode 100644 linux.en_US.UTF-8.xml create mode 100644 linux.fr_FR.UTF-8.xml create mode 100644 linux.xml create mode 100644 linux_embedded.xml create mode 100644 linux_rt.en_US.UTF-8.xml create mode 100644 linux_rt.fr_FR.UTF-8.xml create mode 100644 linux_rt.xml create mode 100644 locale/fr_FR.UTF-8.mo create mode 100644 locale/fr_FR.UTF-8.po create mode 100644 locale/fr_FR/LC_MESSAGES/andre.mo create mode 100644 loisirs.en_US.UTF-8.xml create mode 100644 loisirs.fr_FR.UTF-8.xml create mode 100644 loisirs.xml create mode 100644 loisirs_danse.xml create mode 100644 loisirs_music.xml create mode 100644 loisirs_sports.xml create mode 100644 menu.xml create mode 100644 menu_4saisons.xml create mode 100644 menu_aliceadsl.xml create mode 100644 menu_andre.xml create mode 100644 menu_trinity.xml create mode 100644 menu_webobject.xml create mode 100644 news.xml create mode 100644 phplib/CaptchaSecurityImages.php create mode 100644 phplib/IXR_Library.inc create mode 100644 phplib/class.chiffre_lettre.php create mode 100644 phplib/class.crontab.php create mode 100644 phplib/class.db.php create mode 100644 phplib/class.feed.php create mode 100644 phplib/class.form.php create mode 100644 phplib/class.fpdfdb.php create mode 100644 phplib/class.images.php create mode 100644 phplib/class.json-rpc.php create mode 100644 phplib/class.menu.php create mode 100644 phplib/class.nntp.php create mode 100644 phplib/class.notebook.php create mode 100644 phplib/class.ofx.php create mode 100644 phplib/class.page.php create mode 100644 phplib/class.session.php create mode 100644 phplib/class.sitemap.php create mode 100644 phplib/class.smtp.php create mode 100644 phplib/fpdf/FAQ.htm create mode 100644 phplib/fpdf/doc/acceptpagebreak.htm create mode 100644 phplib/fpdf/doc/addfont.htm create mode 100644 phplib/fpdf/doc/addlink.htm create mode 100644 phplib/fpdf/doc/addpage.htm create mode 100644 phplib/fpdf/doc/aliasnbpages.htm create mode 100644 phplib/fpdf/doc/cell.htm create mode 100644 phplib/fpdf/doc/close.htm create mode 100644 phplib/fpdf/doc/error.htm create mode 100644 phplib/fpdf/doc/footer.htm create mode 100644 phplib/fpdf/doc/fpdf.htm create mode 100644 phplib/fpdf/doc/getstringwidth.htm create mode 100644 phplib/fpdf/doc/getx.htm create mode 100644 phplib/fpdf/doc/gety.htm create mode 100644 phplib/fpdf/doc/header.htm create mode 100644 phplib/fpdf/doc/image.htm create mode 100644 phplib/fpdf/doc/index.htm create mode 100644 phplib/fpdf/doc/line.htm create mode 100644 phplib/fpdf/doc/link.htm create mode 100644 phplib/fpdf/doc/ln.htm create mode 100644 phplib/fpdf/doc/multicell.htm create mode 100644 phplib/fpdf/doc/output.htm create mode 100644 phplib/fpdf/doc/pageno.htm create mode 100644 phplib/fpdf/doc/rect.htm create mode 100644 phplib/fpdf/doc/setauthor.htm create mode 100644 phplib/fpdf/doc/setautopagebreak.htm create mode 100644 phplib/fpdf/doc/setcompression.htm create mode 100644 phplib/fpdf/doc/setcreator.htm create mode 100644 phplib/fpdf/doc/setdisplaymode.htm create mode 100644 phplib/fpdf/doc/setdrawcolor.htm create mode 100644 phplib/fpdf/doc/setfillcolor.htm create mode 100644 phplib/fpdf/doc/setfont.htm create mode 100644 phplib/fpdf/doc/setfontsize.htm create mode 100644 phplib/fpdf/doc/setkeywords.htm create mode 100644 phplib/fpdf/doc/setleftmargin.htm create mode 100644 phplib/fpdf/doc/setlinewidth.htm create mode 100644 phplib/fpdf/doc/setlink.htm create mode 100644 phplib/fpdf/doc/setmargins.htm create mode 100644 phplib/fpdf/doc/setrightmargin.htm create mode 100644 phplib/fpdf/doc/setsubject.htm create mode 100644 phplib/fpdf/doc/settextcolor.htm create mode 100644 phplib/fpdf/doc/settitle.htm create mode 100644 phplib/fpdf/doc/settopmargin.htm create mode 100644 phplib/fpdf/doc/setx.htm create mode 100644 phplib/fpdf/doc/setxy.htm create mode 100644 phplib/fpdf/doc/sety.htm create mode 100644 phplib/fpdf/doc/text.htm create mode 100644 phplib/fpdf/doc/write.htm create mode 100644 phplib/fpdf/font/courier.php create mode 100644 phplib/fpdf/font/helvetica.php create mode 100644 phplib/fpdf/font/helveticab.php create mode 100644 phplib/fpdf/font/helveticabi.php create mode 100644 phplib/fpdf/font/helveticai.php create mode 100644 phplib/fpdf/font/makefont/cp1250.map create mode 100644 phplib/fpdf/font/makefont/cp1251.map create mode 100644 phplib/fpdf/font/makefont/cp1252.map create mode 100644 phplib/fpdf/font/makefont/cp1253.map create mode 100644 phplib/fpdf/font/makefont/cp1254.map create mode 100644 phplib/fpdf/font/makefont/cp1255.map create mode 100644 phplib/fpdf/font/makefont/cp1257.map create mode 100644 phplib/fpdf/font/makefont/cp1258.map create mode 100644 phplib/fpdf/font/makefont/cp874.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-1.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-11.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-15.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-16.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-2.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-4.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-5.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-7.map create mode 100644 phplib/fpdf/font/makefont/iso-8859-9.map create mode 100644 phplib/fpdf/font/makefont/koi8-r.map create mode 100644 phplib/fpdf/font/makefont/koi8-u.map create mode 100644 phplib/fpdf/font/makefont/makefont.php create mode 100644 phplib/fpdf/font/symbol.php create mode 100644 phplib/fpdf/font/times.php create mode 100644 phplib/fpdf/font/timesb.php create mode 100644 phplib/fpdf/font/timesbi.php create mode 100644 phplib/fpdf/font/timesi.php create mode 100644 phplib/fpdf/font/zapfdingbats.php create mode 100644 phplib/fpdf/fpdf.css create mode 100644 phplib/fpdf/fpdf.php create mode 100644 phplib/fpdf/histo.htm create mode 100644 phplib/fpdf/install.txt create mode 100644 phplib/fpdf/tutorial/20k_c1.txt create mode 100644 phplib/fpdf/tutorial/20k_c2.txt create mode 100644 phplib/fpdf/tutorial/calligra.afm create mode 100644 phplib/fpdf/tutorial/calligra.php create mode 100644 phplib/fpdf/tutorial/calligra.ttf create mode 100644 phplib/fpdf/tutorial/calligra.z create mode 100644 phplib/fpdf/tutorial/countries.txt create mode 100644 phplib/fpdf/tutorial/index.htm create mode 100644 phplib/fpdf/tutorial/logo.png create mode 100644 phplib/fpdf/tutorial/logo_pb.png create mode 100644 phplib/fpdf/tutorial/makefont.php create mode 100644 phplib/fpdf/tutorial/tuto1.htm create mode 100644 phplib/fpdf/tutorial/tuto1.php create mode 100644 phplib/fpdf/tutorial/tuto2.htm create mode 100644 phplib/fpdf/tutorial/tuto2.php create mode 100644 phplib/fpdf/tutorial/tuto3.htm create mode 100644 phplib/fpdf/tutorial/tuto3.php create mode 100644 phplib/fpdf/tutorial/tuto4.htm create mode 100644 phplib/fpdf/tutorial/tuto4.php create mode 100644 phplib/fpdf/tutorial/tuto5.htm create mode 100644 phplib/fpdf/tutorial/tuto5.php create mode 100644 phplib/fpdf/tutorial/tuto6.htm create mode 100644 phplib/fpdf/tutorial/tuto6.php create mode 100644 phplib/fpdf/tutorial/tuto7.htm create mode 100644 phplib/fpdf/tutorial/tuto7.php create mode 100644 phplib/monofont.ttf create mode 100644 phplib/tcpdf/2dbarcodes.php create mode 100644 phplib/tcpdf/CHANGELOG.TXT create mode 100644 phplib/tcpdf/LICENSE.TXT create mode 100644 phplib/tcpdf/README.TXT create mode 100644 phplib/tcpdf/barcodes.php create mode 100644 phplib/tcpdf/cache/chapter_demo_1.txt create mode 100644 phplib/tcpdf/cache/chapter_demo_2.txt create mode 100644 phplib/tcpdf/cache/table_data_demo.txt create mode 100644 phplib/tcpdf/cache/utf8test.txt create mode 100644 phplib/tcpdf/composer.json create mode 100644 phplib/tcpdf/config/lang/afr.php create mode 100644 phplib/tcpdf/config/lang/ara.php create mode 100644 phplib/tcpdf/config/lang/aze.php create mode 100644 phplib/tcpdf/config/lang/bel.php create mode 100644 phplib/tcpdf/config/lang/bra.php create mode 100644 phplib/tcpdf/config/lang/bul.php create mode 100644 phplib/tcpdf/config/lang/cat.php create mode 100644 phplib/tcpdf/config/lang/ces.php create mode 100644 phplib/tcpdf/config/lang/chi.php create mode 100644 phplib/tcpdf/config/lang/cym.php create mode 100644 phplib/tcpdf/config/lang/dan.php create mode 100644 phplib/tcpdf/config/lang/eng.php create mode 100644 phplib/tcpdf/config/lang/est.php create mode 100644 phplib/tcpdf/config/lang/eus.php create mode 100644 phplib/tcpdf/config/lang/far.php create mode 100644 phplib/tcpdf/config/lang/fra.php create mode 100644 phplib/tcpdf/config/lang/ger.php create mode 100644 phplib/tcpdf/config/lang/gle.php create mode 100644 phplib/tcpdf/config/lang/glg.php create mode 100644 phplib/tcpdf/config/lang/hat.php create mode 100644 phplib/tcpdf/config/lang/heb.php create mode 100644 phplib/tcpdf/config/lang/hrv.php create mode 100644 phplib/tcpdf/config/lang/hun.php create mode 100644 phplib/tcpdf/config/lang/hye.php create mode 100644 phplib/tcpdf/config/lang/ind.php create mode 100644 phplib/tcpdf/config/lang/ita.php create mode 100644 phplib/tcpdf/config/lang/jpn.php create mode 100644 phplib/tcpdf/config/lang/kat.php create mode 100644 phplib/tcpdf/config/lang/kor.php create mode 100644 phplib/tcpdf/config/lang/mkd.php create mode 100644 phplib/tcpdf/config/lang/mlt.php create mode 100644 phplib/tcpdf/config/lang/msa.php create mode 100644 phplib/tcpdf/config/lang/nld.php create mode 100644 phplib/tcpdf/config/lang/nob.php create mode 100644 phplib/tcpdf/config/lang/pol.php create mode 100644 phplib/tcpdf/config/lang/por.php create mode 100644 phplib/tcpdf/config/lang/ron.php create mode 100644 phplib/tcpdf/config/lang/rus.php create mode 100644 phplib/tcpdf/config/lang/slv.php create mode 100644 phplib/tcpdf/config/lang/spa.php create mode 100644 phplib/tcpdf/config/lang/sqi.php create mode 100644 phplib/tcpdf/config/lang/srp.php create mode 100644 phplib/tcpdf/config/lang/swa.php create mode 100644 phplib/tcpdf/config/lang/swe.php create mode 100644 phplib/tcpdf/config/lang/ukr.php create mode 100644 phplib/tcpdf/config/lang/urd.php create mode 100644 phplib/tcpdf/config/lang/yid.php create mode 100644 phplib/tcpdf/config/lang/zho.php create mode 100644 phplib/tcpdf/config/tcpdf_config.php create mode 100644 phplib/tcpdf/config/tcpdf_config_alt.php create mode 100644 phplib/tcpdf/datamatrix.php create mode 100644 phplib/tcpdf/doc/index.html create mode 100644 phplib/tcpdf/encodings_maps.php create mode 100644 phplib/tcpdf/examples/example_001.php create mode 100644 phplib/tcpdf/examples/example_002.php create mode 100644 phplib/tcpdf/examples/example_003.php create mode 100644 phplib/tcpdf/examples/example_004.php create mode 100644 phplib/tcpdf/examples/example_005.php create mode 100644 phplib/tcpdf/examples/example_006.php create mode 100644 phplib/tcpdf/examples/example_007.php create mode 100644 phplib/tcpdf/examples/example_008.php create mode 100644 phplib/tcpdf/examples/example_009.php create mode 100644 phplib/tcpdf/examples/example_010.php create mode 100644 phplib/tcpdf/examples/example_011.php create mode 100644 phplib/tcpdf/examples/example_012.pdf create mode 100644 phplib/tcpdf/examples/example_012.php create mode 100644 phplib/tcpdf/examples/example_013.php create mode 100644 phplib/tcpdf/examples/example_014.php create mode 100644 phplib/tcpdf/examples/example_015.php create mode 100644 phplib/tcpdf/examples/example_016.php create mode 100644 phplib/tcpdf/examples/example_017.php create mode 100644 phplib/tcpdf/examples/example_018.php create mode 100644 phplib/tcpdf/examples/example_019.php create mode 100644 phplib/tcpdf/examples/example_020.php create mode 100644 phplib/tcpdf/examples/example_021.php create mode 100644 phplib/tcpdf/examples/example_022.php create mode 100644 phplib/tcpdf/examples/example_023.php create mode 100644 phplib/tcpdf/examples/example_024.php create mode 100644 phplib/tcpdf/examples/example_025.php create mode 100644 phplib/tcpdf/examples/example_026.php create mode 100644 phplib/tcpdf/examples/example_027.php create mode 100644 phplib/tcpdf/examples/example_028.php create mode 100644 phplib/tcpdf/examples/example_029.php create mode 100644 phplib/tcpdf/examples/example_030.php create mode 100644 phplib/tcpdf/examples/example_031.php create mode 100644 phplib/tcpdf/examples/example_032.php create mode 100644 phplib/tcpdf/examples/example_033.php create mode 100644 phplib/tcpdf/examples/example_034.php create mode 100644 phplib/tcpdf/examples/example_035.php create mode 100644 phplib/tcpdf/examples/example_036.php create mode 100644 phplib/tcpdf/examples/example_037.php create mode 100644 phplib/tcpdf/examples/example_038.php create mode 100644 phplib/tcpdf/examples/example_039.php create mode 100644 phplib/tcpdf/examples/example_040.php create mode 100644 phplib/tcpdf/examples/example_041.php create mode 100644 phplib/tcpdf/examples/example_042.php create mode 100644 phplib/tcpdf/examples/example_043.php create mode 100644 phplib/tcpdf/examples/example_044.php create mode 100644 phplib/tcpdf/examples/example_045.php create mode 100644 phplib/tcpdf/examples/example_046.php create mode 100644 phplib/tcpdf/examples/example_047.php create mode 100644 phplib/tcpdf/examples/example_048.php create mode 100644 phplib/tcpdf/examples/example_049.php create mode 100644 phplib/tcpdf/examples/example_050.php create mode 100644 phplib/tcpdf/examples/example_051.php create mode 100644 phplib/tcpdf/examples/example_052.php create mode 100644 phplib/tcpdf/examples/example_053.php create mode 100644 phplib/tcpdf/examples/example_054.php create mode 100644 phplib/tcpdf/examples/example_055.php create mode 100644 phplib/tcpdf/examples/example_056.php create mode 100644 phplib/tcpdf/examples/example_057.php create mode 100644 phplib/tcpdf/examples/example_058.php create mode 100644 phplib/tcpdf/examples/example_059.php create mode 100644 phplib/tcpdf/examples/example_060.php create mode 100644 phplib/tcpdf/examples/example_061.php create mode 100644 phplib/tcpdf/examples/example_062.php create mode 100644 phplib/tcpdf/examples/example_063.php create mode 100644 phplib/tcpdf/examples/example_064.php create mode 100644 phplib/tcpdf/examples/example_065.php create mode 100644 phplib/tcpdf/examples/index.php create mode 100644 phplib/tcpdf/fonts/aealarabiya.ctg.z create mode 100644 phplib/tcpdf/fonts/aealarabiya.php create mode 100644 phplib/tcpdf/fonts/aealarabiya.z create mode 100644 phplib/tcpdf/fonts/aefurat.ctg.z create mode 100644 phplib/tcpdf/fonts/aefurat.php create mode 100644 phplib/tcpdf/fonts/aefurat.z create mode 100644 phplib/tcpdf/fonts/cid0cs.php create mode 100644 phplib/tcpdf/fonts/cid0ct.php create mode 100644 phplib/tcpdf/fonts/cid0jp.php create mode 100644 phplib/tcpdf/fonts/cid0kr.php create mode 100644 phplib/tcpdf/fonts/courier.php create mode 100644 phplib/tcpdf/fonts/courierb.php create mode 100644 phplib/tcpdf/fonts/courierbi.php create mode 100644 phplib/tcpdf/fonts/courieri.php create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._AUTHORS create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._BUGS create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._LICENSE create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._NEWS create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._README create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._langcover.txt create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._status.txt create mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._unicover.txt create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/AUTHORS create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/BUGS create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/LICENSE create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/NEWS create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/README create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/langcover.txt create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/status.txt create mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/unicover.txt create mode 100644 phplib/tcpdf/fonts/dejavusans.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusans.php create mode 100644 phplib/tcpdf/fonts/dejavusans.z create mode 100644 phplib/tcpdf/fonts/dejavusansb.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansb.php create mode 100644 phplib/tcpdf/fonts/dejavusansb.z create mode 100644 phplib/tcpdf/fonts/dejavusansbi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansbi.php create mode 100644 phplib/tcpdf/fonts/dejavusansbi.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensed.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensed.php create mode 100644 phplib/tcpdf/fonts/dejavusanscondensed.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedb.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedb.php create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedb.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedbi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedbi.php create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedbi.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedi.php create mode 100644 phplib/tcpdf/fonts/dejavusanscondensedi.z create mode 100644 phplib/tcpdf/fonts/dejavusansextralight.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansextralight.php create mode 100644 phplib/tcpdf/fonts/dejavusansextralight.z create mode 100644 phplib/tcpdf/fonts/dejavusansi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansi.php create mode 100644 phplib/tcpdf/fonts/dejavusansi.z create mode 100644 phplib/tcpdf/fonts/dejavusansmono.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansmono.php create mode 100644 phplib/tcpdf/fonts/dejavusansmono.z create mode 100644 phplib/tcpdf/fonts/dejavusansmonob.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansmonob.php create mode 100644 phplib/tcpdf/fonts/dejavusansmonob.z create mode 100644 phplib/tcpdf/fonts/dejavusansmonobi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansmonobi.php create mode 100644 phplib/tcpdf/fonts/dejavusansmonobi.z create mode 100644 phplib/tcpdf/fonts/dejavusansmonoi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavusansmonoi.php create mode 100644 phplib/tcpdf/fonts/dejavusansmonoi.z create mode 100644 phplib/tcpdf/fonts/dejavuserif.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserif.php create mode 100644 phplib/tcpdf/fonts/dejavuserif.z create mode 100644 phplib/tcpdf/fonts/dejavuserifb.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifb.php create mode 100644 phplib/tcpdf/fonts/dejavuserifb.z create mode 100644 phplib/tcpdf/fonts/dejavuserifbi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifbi.php create mode 100644 phplib/tcpdf/fonts/dejavuserifbi.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensed.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensed.php create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensed.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedb.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedb.php create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedb.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedbi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedbi.php create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedbi.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedi.php create mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedi.z create mode 100644 phplib/tcpdf/fonts/dejavuserifi.ctg.z create mode 100644 phplib/tcpdf/fonts/dejavuserifi.php create mode 100644 phplib/tcpdf/fonts/dejavuserifi.z create mode 100755 phplib/tcpdf/fonts/freefont-20100919/._AUTHORS create mode 100755 phplib/tcpdf/fonts/freefont-20100919/._COPYING create mode 100755 phplib/tcpdf/fonts/freefont-20100919/._CREDITS create mode 100755 phplib/tcpdf/fonts/freefont-20100919/._ChangeLog create mode 100755 phplib/tcpdf/fonts/freefont-20100919/._INSTALL create mode 100755 phplib/tcpdf/fonts/freefont-20100919/._README create mode 100644 phplib/tcpdf/fonts/freefont-20100919/AUTHORS create mode 100644 phplib/tcpdf/fonts/freefont-20100919/COPYING create mode 100644 phplib/tcpdf/fonts/freefont-20100919/CREDITS create mode 100644 phplib/tcpdf/fonts/freefont-20100919/ChangeLog create mode 100644 phplib/tcpdf/fonts/freefont-20100919/INSTALL create mode 100644 phplib/tcpdf/fonts/freefont-20100919/README create mode 100644 phplib/tcpdf/fonts/freemono.ctg.z create mode 100644 phplib/tcpdf/fonts/freemono.php create mode 100644 phplib/tcpdf/fonts/freemono.z create mode 100644 phplib/tcpdf/fonts/freemonob.ctg.z create mode 100644 phplib/tcpdf/fonts/freemonob.php create mode 100644 phplib/tcpdf/fonts/freemonob.z create mode 100644 phplib/tcpdf/fonts/freemonobi.ctg.z create mode 100644 phplib/tcpdf/fonts/freemonobi.php create mode 100644 phplib/tcpdf/fonts/freemonobi.z create mode 100644 phplib/tcpdf/fonts/freemonoi.ctg.z create mode 100644 phplib/tcpdf/fonts/freemonoi.php create mode 100644 phplib/tcpdf/fonts/freemonoi.z create mode 100644 phplib/tcpdf/fonts/freesans.ctg.z create mode 100644 phplib/tcpdf/fonts/freesans.php create mode 100644 phplib/tcpdf/fonts/freesans.z create mode 100644 phplib/tcpdf/fonts/freesansb.ctg.z create mode 100644 phplib/tcpdf/fonts/freesansb.php create mode 100644 phplib/tcpdf/fonts/freesansb.z create mode 100644 phplib/tcpdf/fonts/freesansbi.ctg.z create mode 100644 phplib/tcpdf/fonts/freesansbi.php create mode 100644 phplib/tcpdf/fonts/freesansbi.z create mode 100644 phplib/tcpdf/fonts/freesansi.ctg.z create mode 100644 phplib/tcpdf/fonts/freesansi.php create mode 100644 phplib/tcpdf/fonts/freesansi.z create mode 100644 phplib/tcpdf/fonts/freeserif.ctg.z create mode 100644 phplib/tcpdf/fonts/freeserif.php create mode 100644 phplib/tcpdf/fonts/freeserif.z create mode 100644 phplib/tcpdf/fonts/freeserifb.ctg.z create mode 100644 phplib/tcpdf/fonts/freeserifb.php create mode 100644 phplib/tcpdf/fonts/freeserifb.z create mode 100644 phplib/tcpdf/fonts/freeserifbi.ctg.z create mode 100644 phplib/tcpdf/fonts/freeserifbi.php create mode 100644 phplib/tcpdf/fonts/freeserifbi.z create mode 100644 phplib/tcpdf/fonts/freeserifi.ctg.z create mode 100644 phplib/tcpdf/fonts/freeserifi.php create mode 100644 phplib/tcpdf/fonts/freeserifi.z create mode 100644 phplib/tcpdf/fonts/helvetica.php create mode 100644 phplib/tcpdf/fonts/helveticab.php create mode 100644 phplib/tcpdf/fonts/helveticabi.php create mode 100644 phplib/tcpdf/fonts/helveticai.php create mode 100644 phplib/tcpdf/fonts/hysmyeongjostdmedium.php create mode 100644 phplib/tcpdf/fonts/kozgopromedium.php create mode 100644 phplib/tcpdf/fonts/kozminproregular.php create mode 100644 phplib/tcpdf/fonts/msungstdlight.php create mode 100644 phplib/tcpdf/fonts/pdfacourier.php create mode 100644 phplib/tcpdf/fonts/pdfacourier.z create mode 100644 phplib/tcpdf/fonts/pdfacourierb.php create mode 100644 phplib/tcpdf/fonts/pdfacourierb.z create mode 100644 phplib/tcpdf/fonts/pdfacourierbi.php create mode 100644 phplib/tcpdf/fonts/pdfacourierbi.z create mode 100644 phplib/tcpdf/fonts/pdfacourieri.php create mode 100644 phplib/tcpdf/fonts/pdfacourieri.z create mode 100644 phplib/tcpdf/fonts/pdfahelvetica.php create mode 100644 phplib/tcpdf/fonts/pdfahelvetica.z create mode 100644 phplib/tcpdf/fonts/pdfahelveticab.php create mode 100644 phplib/tcpdf/fonts/pdfahelveticab.z create mode 100644 phplib/tcpdf/fonts/pdfahelveticabi.php create mode 100644 phplib/tcpdf/fonts/pdfahelveticabi.z create mode 100644 phplib/tcpdf/fonts/pdfahelveticai.php create mode 100644 phplib/tcpdf/fonts/pdfahelveticai.z create mode 100644 phplib/tcpdf/fonts/pdfasymbol.php create mode 100644 phplib/tcpdf/fonts/pdfasymbol.z create mode 100644 phplib/tcpdf/fonts/pdfatimes.php create mode 100644 phplib/tcpdf/fonts/pdfatimes.z create mode 100644 phplib/tcpdf/fonts/pdfatimesb.php create mode 100644 phplib/tcpdf/fonts/pdfatimesb.z create mode 100644 phplib/tcpdf/fonts/pdfatimesbi.php create mode 100644 phplib/tcpdf/fonts/pdfatimesbi.z create mode 100644 phplib/tcpdf/fonts/pdfatimesi.php create mode 100644 phplib/tcpdf/fonts/pdfatimesi.z create mode 100644 phplib/tcpdf/fonts/pdfazapfdingbats.php create mode 100644 phplib/tcpdf/fonts/pdfazapfdingbats.z create mode 100644 phplib/tcpdf/fonts/stsongstdlight.php create mode 100644 phplib/tcpdf/fonts/symbol.php create mode 100644 phplib/tcpdf/fonts/times.php create mode 100644 phplib/tcpdf/fonts/timesb.php create mode 100644 phplib/tcpdf/fonts/timesbi.php create mode 100644 phplib/tcpdf/fonts/timesi.php create mode 100644 phplib/tcpdf/fonts/uni2cid_ac15.php create mode 100644 phplib/tcpdf/fonts/uni2cid_ag15.php create mode 100644 phplib/tcpdf/fonts/uni2cid_aj16.php create mode 100644 phplib/tcpdf/fonts/uni2cid_ak12.php create mode 100644 phplib/tcpdf/fonts/zapfdingbats.php create mode 100644 phplib/tcpdf/htmlcolors.php create mode 100644 phplib/tcpdf/images/_blank.png create mode 100644 phplib/tcpdf/images/alpha.png create mode 100644 phplib/tcpdf/images/bug.eps create mode 100644 phplib/tcpdf/images/image_demo.jpg create mode 100644 phplib/tcpdf/images/image_with_alpha.png create mode 100644 phplib/tcpdf/images/img.png create mode 100644 phplib/tcpdf/images/logo_example.gif create mode 100644 phplib/tcpdf/images/logo_example.jpg create mode 100644 phplib/tcpdf/images/logo_example.png create mode 100644 phplib/tcpdf/images/pelican.ai create mode 100644 phplib/tcpdf/images/tcpdf_cell.png create mode 100644 phplib/tcpdf/images/tcpdf_logo.jpg create mode 100644 phplib/tcpdf/images/tcpdf_signature.png create mode 100644 phplib/tcpdf/images/testsvg.svg create mode 100644 phplib/tcpdf/images/tiger.ai create mode 100644 phplib/tcpdf/images/tux.svg create mode 100644 phplib/tcpdf/pdf417.php create mode 100644 phplib/tcpdf/qrcode.php create mode 100644 phplib/tcpdf/sRGB.icc create mode 100644 phplib/tcpdf/spotcolors.php create mode 100644 phplib/tcpdf/tcpdf.crt create mode 100644 phplib/tcpdf/tcpdf.fdf create mode 100644 phplib/tcpdf/tcpdf.p12 create mode 100644 phplib/tcpdf/tcpdf.php create mode 100644 phplib/tcpdf/tcpdf_filters.php create mode 100644 phplib/tcpdf/tcpdf_parser.php create mode 100644 phplib/tcpdf/unicode_data.php create mode 100644 phplib/utils.php create mode 100644 robots.txt create mode 100644 site/article.xsl create mode 100644 site/cv.xsl create mode 100644 site/footer.xsl create mode 100644 site/generate_header.xsl create mode 100644 site/generate_html.xsl create mode 100644 site/menuh.xsl create mode 100644 site/menuv.xsl create mode 100644 site/news.xsl create mode 100644 site/page.xsl create mode 100644 site/root.xsl create mode 100644 site/test.xsl create mode 100644 sitemap.php create mode 100644 sitemap_alice.xml create mode 100644 spirituel.xml create mode 100644 temperature.xml create mode 100644 tools/gen_tex.bat create mode 100644 tools/generate.bat create mode 100644 tools/generate.sh create mode 100644 tools/generate.wsf create mode 100644 update.php create mode 100644 web.xml diff --git a/README.php b/README.php new file mode 100644 index 0000000..1408c33 --- /dev/null +++ b/README.php @@ -0,0 +1,16 @@ + diff --git a/accounting/accueil.en_US.UTF-8.xml b/accounting/accueil.en_US.UTF-8.xml new file mode 100644 index 0000000..7d14cd2 --- /dev/null +++ b/accounting/accueil.en_US.UTF-8.xml @@ -0,0 +1,73 @@ + + + + + + Welcome page of Aeb +

Welcome page to aeb website. You can find a porto folio of our realizations.

+ C++,CV,Linux,Development + $Date: 2010/08/25 15:10:02 $ + $Id: accueil.en_US.UTF-8.xml,v 1.4 2010/08/25 15:10:02 aebersol Exp $ + +
+
+
+
+
Who I am
+
+

Senior Software Engineer
+

39 years old
Married 1 child

+

Company : Alcatel Lucent

+

+

Specialized in C/C++ development

+
+
+
+
Studies / Projects
+
+
    +
  • Flash driver enhancement
  • +
  • Web reverse proxy comparison
  • +
  • Encapsulation of binary flow in http chucks
  • +
  • OmniPCX Office feature improvements
  • +
  • Porting Linux 2.4 drivers to kernel 2.6
  • +
  • Migration of x86 application to powerpc
  • +
+
+
+
+
+
+
+
News Events
+
+ +
+
+
+
Activities
+
+
    +
  • I work for Alcatel Lucent as a sub-contractor
  • +
  • I remotely maintain a server (from dedibox) for an association
  • +
+
+
+
+
+
+ +
diff --git a/accounting/accueil.fr_FR.UTF-8.xml b/accounting/accueil.fr_FR.UTF-8.xml new file mode 100644 index 0000000..5776169 --- /dev/null +++ b/accounting/accueil.fr_FR.UTF-8.xml @@ -0,0 +1,75 @@ + + + + + + La page d'accueil de la gestion de copropriete en ligne. +

En tant que syndics bénévoles, nous sommes fièrs de vous présenter notre solution de gestion pour le syndic bénévole. Cette application, simple d'utilisation, réponds précisément au besoin des syndics bénévoles qui gèrent de petite copropriété. Tous les services de comptabilités sont facile d'accès et vous permettent de gagner un temps précieux.

+ $Date: 2010/08/25 15:10:02 $ + $Id: accueil.fr_FR.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ + SYNDIC,Bénévole,STRASBOURG,ANDRE,EBERSOLD,COMPTABILITE,CLOUD, syndic bénévole, le syndic bénévole, les syndics bénévoles, syndic bénévole compta + + + +
+
Bookkeeping for trustee
+

+

Solution de gestion comptable

+

pour les Syndics Bénévoles

+
+
+

Expérimentez la comptabilité pour le syndic en toute simplicité. Une nouvelle manière de gérer votre bâtiment et vos copropriétaires.
Joignez la communauté en ligne des syndics bénévoles qui ont choisis la comptabilité en ligne.

+
+
+
Services
+
+
    +
  • Disponible en tout temps
  • +
  • Détail des comptes
  • +
  • Gestion de lots
  • +
  • Gestion des fournisseurs
  • +
  • Gestion des copropriétaires
  • +
  • Synthèse à la cloture conforme aux exigences de la loi
  • +
+
+
+ +
+
Syndic bénévole
+
+ +

+
    +
+
+
+
+
En toute Simplicité
+
+
    +
  • Des fenêtres de saisies adaptées
  • +
  • Pour lancer les appels de fonds
  • +
  • Enregistrer les factures
  • +
  • Enregistrer les payements
  • +
  • Enregistrer les versements des corpropriértaires
  • +
  • Gérer les lots de la copropriété
  • +
  • Toutes les annexes comptable à la cloture conformes aux exigences de la loi
  • +
+
+
+
+
+ +
diff --git a/accounting/budget.fr_FR.UTF-8.xml b/accounting/budget.fr_FR.UTF-8.xml new file mode 100755 index 0000000..5143ff3 --- /dev/null +++ b/accounting/budget.fr_FR.UTF-8.xml @@ -0,0 +1,13 @@ + +accounting/budgetLiens,SYNDIC,Budget,gestionGestion du budget de la copropriété. +

L'onglet Budget

+

Les options offertes aux syndics bénévoles pour gérer les budgets

+

Il permet au syndic de préparer les budgets prévisionnels pour les années à venirs. Ces budgets sont automatiquement intégré dans les annexes comptable en fin d'exercice.

+

Cet espace de travail fournit deux service. La liste des budgets, la création d'un nouveau budget. Le logiciel se base sur le plan comptable pour créer les lignes qui doivent être budgété.

+

Liste des budgets

+

C'est un simple tableau qui affiche la liste de tous les budgets qui ont été créé. Le syndic peut supprimer un budget en cliquant sur le croix d'une ligne, ou il peut simplement selection un budget pour passer en mode édition.

+
Un tableau qui donne la liste des budgets que le syndic a créé.
+

Edition d'un budget

+

L'édition du budget est enfantine. Il suffit de selectionner un celulle dans la colonne "N". Le champ se met alors en mode édition et vous pouvez saisir la montant que vous souhaiter budgéter pour le poste en question. Il vous suffit de valider la saisie en appuyant sur entré. La celulle change de nouveau d'état et votre montant est enregistré. Le Total est égalelement mis à jour.

+
La fenêtre d'édition du budget. permet au syndic de sélectionner la class de compte. Puis, pour chaque entrée de la classe il peut affecter une valeur et une clé de charge.
+

diff --git a/accounting/contact.en_US.UTF-8.xml b/accounting/contact.en_US.UTF-8.xml new file mode 100644 index 0000000..dbcae01 --- /dev/null +++ b/accounting/contact.en_US.UTF-8.xml @@ -0,0 +1,34 @@ + + + + + Contact + Contact + Willkommen + $Date: 2009/04/27 06:38:44 $ + $Id: contact.xml,v 1.6 2009/04/27 06:38:44 aeb Exp $ + +

Contact

+

Feel free to leave a message or comments.

+
+
Comments:
+
Security
+ +
+
+ + +
+
+ diff --git a/accounting/contact.fr_FR.UTF-8.xml b/accounting/contact.fr_FR.UTF-8.xml new file mode 100644 index 0000000..60652aa --- /dev/null +++ b/accounting/contact.fr_FR.UTF-8.xml @@ -0,0 +1,34 @@ + + + + + Contact + Contact + Willkommen + $Date: 2009/04/27 06:38:44 $ + $Id: contact.xml,v 1.6 2009/04/27 06:38:44 aeb Exp $ + +

Contact

+

Laissez nous votre message.

+
+
Comments:
+
Security
+ +
+
+ + +
+
+ diff --git a/accounting/copropriete.fr_FR.UTF-8.xml b/accounting/copropriete.fr_FR.UTF-8.xml new file mode 100755 index 0000000..8c246ce --- /dev/null +++ b/accounting/copropriete.fr_FR.UTF-8.xml @@ -0,0 +1,8 @@ + +accounting/coprorietesyndic bénévole,gestion copropriété, créer comptabilité, exercice comptable,gestion de lots,gestion des postes de chargeDéscription générale des fonctions qui sont offert par la solution de gestion en ligne. +

L'onglet Copropriété

+

Les options de configuration de la copropriété.Il fournit tous les services relatifs à la configuration de la copropriété.

+

Un premier groupe permet de voir la liste des copropriétés dont vous faites partie. Il vous est possible de créer un nouvel environnement de gestion à l'aide du lien Nouvelle Organisation.

+

Un second groupe permet de gérer les exercices des périodes comptable.

+

Un troisième groupe permet de gérer les lots

+

Et enfin un dernier groupe permet de gérer l'attribution des cotes part suivant le poste de charge.

diff --git a/accounting/donates.fr_FR.UTF-8.xml b/accounting/donates.fr_FR.UTF-8.xml new file mode 100755 index 0000000..f8b9736 --- /dev/null +++ b/accounting/donates.fr_FR.UTF-8.xml @@ -0,0 +1,30 @@ + +Faites un dont pour nous soutenirSYNDIC,bénévoles,dons,comptabilité,STRASBOURG,gestion,fondsFaire des dons pour l'utilisation de l'application +

Faire Un don

+

Vous aimez la solution de ce site et vous souhaitez qu'elle vive parce qu'elle vous rend un service incommensurable par rapport à la gestion traditionnelle, alors, n'hésitez pas à faire un don annuel en fonction de la taille de votre copropriété.

+

Les fonds vont servir à financer le fournisseur de service qui héberge le site ainsi qu'au financement des futurs évolutions.

+
+ + + + + + + + + + + + + + + + + + + +
Pour une copropriété de 1 à 10 lots:Faites un don de 15 euros/ans
Pour une copropriété de 10 à 20 lots:Faites un don de 30 euros/ans
Pour une copropriété de 20 à 30 lots:Faites un don de 45 euros/ans
Pour une copropriété de plus de 30 lots:
+

Il vos mieux nous contacter

+
+
+
La mise en place des donnation n'est pas opérationnel à ce jour. Vous pouvez malgré tout utiliser l'application de comptabilité.
diff --git a/accounting/fournisseur.fr_FR.UTF-8.xml b/accounting/fournisseur.fr_FR.UTF-8.xml new file mode 100755 index 0000000..593f825 --- /dev/null +++ b/accounting/fournisseur.fr_FR.UTF-8.xml @@ -0,0 +1,13 @@ + +accounting/fournisseurLiens,SYNDICDescription générale des fonctions qui sont offert par la solution de gestion en ligne pour géré les aspects comptable liés aux fournisseurs.. +

L'onglet fournisseur.

+

Enregistrement des factures

+

Ci-dessous, un aperçu de la fenêtre de saisie d'une facture.

+
Fenêtre de sasie d'une nouvelle facture. Les champs que le syndic bénévole doit saisir pour enregistrer une nouvelle facture.
+

Après avoir sélectionné l'onglet Fournisseurs, puis l'entrée Nouvelle facture dans le menu gauche, le syndic peu commencer à faire la saisie. Il choisira un intitulé approprié, ensuite il selectionnera le fournisseur dans la liste déroulante aussi que le compte de charge à débiter. Bien sûr il ne faut pas oublier la date de la facture, son montant ainsi que sa référence. Avant d'enregistrer le tout, si le syndic dispose d'un scanner, il peut joindre à l'enregistrement une version électronique de la facture via l'entrée Fichier. Ce document pourra être consulté ultérieument sous plusieurs vue.

+

Une fois que tous les champs sont saisis (sans oublier la clé de charge), le syndic peu en toute tranquilité enregistrer la facture. Cette dernière sera automatiquement répartie au prorata des cotes parts des lots sur l'ensemble des propriétaires.

+

La saisie du payement d'une facture.

+
La fenêtre de saisie pour enregistrer le payement d'un fournisseur.
+

L'état des comptes d'un fournisseur

+

Ci-dessous, un aperçu des informations auquelles on peut rapidement avoir accès sans se casser la tête. En quatres clics vous avez accès au détail du compte d'un fournisseur.

+
Fenêtre qui affiche l'état du compte d'un fournisseur.
diff --git a/accounting/journaux.fr_FR.UTF-8.xml b/accounting/journaux.fr_FR.UTF-8.xml new file mode 100755 index 0000000..16acc2c --- /dev/null +++ b/accounting/journaux.fr_FR.UTF-8.xml @@ -0,0 +1,17 @@ + +accounting/journauxLiens,SYNDIC,syndic,bénévoles,journaux,comptabilité,consulter,strasbourg,compte,gestion

Déscription générale des fonctions qui sont offert par la solution de gestion en ligne.

+

Les Journaux

+

Le menu pour consulter les journaux.La gestion des journaux. est un onglet qui offre deux principaux services. Le premier est bien sûr celui de consulter les journaux. Le second celui de voir le détail d'un compte.

+

+

Le journal

+

Un journal répertorie toutes les opérations qui se sont déroulé durant un exercice donnée. La solution de gestion propose 7 types de journaux comme on peu le voir dans la figure ci-dessous.

+

Le premier type, appelé "Banque" répertorie toutes les opérations bancaires. Le syndic bénévole peut ainsi facilement controler les transactions enregistrées par la banque et celle qu'il a enregistré dans la comptabilité en ligne.

+

Le second type: "Ventes" ne devrait à priori pas être utilisé.

+

Le troisième type: "Achats et frais" concerne répertorie toutes les opérations d'achat. En principe on devrait y voir apparaître les mouvements entre des comptes de fournisseurs et des comptes de charges.

+

Le quatrième type: "Opération divers" sera utilisé pour toutes les opérations qui ne rentre dans aucun type prédéfini.

+

Le cinquième type: "Appels de fonds" répertorie toutes les opérations d'appels de fonds. C'est à dire les mouvements entre les comptes de la classe 7 et celle des copropriétaires qui devront régler l'appel de fonds.

+

La sixième catégorie:"Remboursement appels de fonds" est utilisé à la cloture des comptes où le syndic rembourse tous les appels de fonds. Après de remboursement des appels de fonds, le syndic vera apparaître sur les comptes des copropriétaires le trop percu ou le reste à percevoir.

+

La septième catégorie:"Report à nouveau" est utilisée pour l'enregistrement des mouvements en début d'exercice. Il s'agit de reporter les soldes créditeurs et débiteurs de l'exercice clos sur le nouvel exercice.

+

Le fenêtre journal. Le syndic bénévole peut séléctionner le journal et voir toutes les transations du journal pour l'exercice en cours

+

+

Détail d'un compte

diff --git a/accounting/liens_syndic.en_US.UTF-8.xml b/accounting/liens_syndic.en_US.UTF-8.xml new file mode 100644 index 0000000..1fa14dd --- /dev/null +++ b/accounting/liens_syndic.en_US.UTF-8.xml @@ -0,0 +1,21 @@ + + + + Hobbies + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ + + + +

Useful Links

+ +

+
+
+ + +
diff --git a/accounting/liens_syndic.fr_FR.UTF-8.xml b/accounting/liens_syndic.fr_FR.UTF-8.xml new file mode 100644 index 0000000..3334838 --- /dev/null +++ b/accounting/liens_syndic.fr_FR.UTF-8.xml @@ -0,0 +1,31 @@ + + + + Liens vers d'autre site relatif a la gestion de copropriete + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ + + Liens,SYNDIC,strasbourg,bénévoles,conseil,loi,copropriété,conseilLiens utiles pour le syndic bénévole. + +

Liens utiles

+

Les Associations de syndic bénévoles

+

UNARC, l'assocation des résponsables de copropriété.

+

ASIB, l'association des syndics d'immeuble bénévoles.

+

Conseil syndical de Besançon.

+

Ce que dit la loi

+

JPM-COPRO Droit et pratique de la copropriété de Jean-Pierre MANTELET une source d'information bien utile que vous pouvez consulter.

+

La répartition des charges

+

Loi N° 65-557 du 10 juillet 1965 fixant le status de la copropriété des immeubles bâtis.

+

Décret n°67-223 du 17 mars 1967 pris pour l'application de la loi n° 65-557 du 10 juillet 1965 fixant le statut de la copropriété des immeubles bâtis

+

Taux d'intéret légaux en cas de retard de versement des appels de fonds.

+

Quelques définitions utiles

+

Le conseil syndical Il a pour rôle d'assister le syndic dans ses décisions.

+

La répartition des charges

+

Un article de l'ADIL qui donne une définition claire sur les différents postes de charges.

+

Un autre article de l'ANIL donne une définition similaire.

+

Une description exhaustive des types de charges sur le site de syneval.

+
+ + + +
diff --git a/accounting/plan_comptable.fr_FR.UTF-8.xml b/accounting/plan_comptable.fr_FR.UTF-8.xml new file mode 100755 index 0000000..c604e79 --- /dev/null +++ b/accounting/plan_comptable.fr_FR.UTF-8.xml @@ -0,0 +1,10 @@ + +accounting/plan_comptableSYNDIC,logiciel,cloud,syndic bénévole édition du plan comptable,plan comptable,plan comptable,comptabilité,gestion,syndicLogiciel de gestion comptable en ligne: La gestion du plan comptable. C'est une interface simple et intuitive. +

Le Plan comptable

+

Un plan comptable est créé automatiquement lors de la création d'un compte.

+

Le menu relatif au plan comptable

+

Le menu gauche du plan comptable. Le syndic bénévole peut choisir la classe de compte qu'il souhaite éditer ou visualiser.Pour plus de clarté sur la présentation du plan comptable, un menu sur le coté gauche permet de sélectionner la classe de compte qu'on souhaite visualiser ou éditer.

+

Cette sélection étant effectué le syndic peut maintenant aisément ajouter ou supprimer un comptes.

+

Tableau du plan comptable pour une classe de compte

+

L'ajout d'un compte se fait en choisissant un numéro de compte, un libellé, puis on selectionne le bouton ajouter.

+

La suppression de compte est tout aussi simple. Il suffit de cliquer sur "delete" pour supprimer un compte. (Attention aux conséquences de la suppression d'un compte. Toutes les opérations qui sont associées à ce compte seront supprimés. Le logiciel ne supprime pas le compte si celui-ci n'est pas soldé).

diff --git a/accounting/products.en_US.UTF-8.xml b/accounting/products.en_US.UTF-8.xml new file mode 100644 index 0000000..9680d9f --- /dev/null +++ b/accounting/products.en_US.UTF-8.xml @@ -0,0 +1,41 @@ + + + + + Mes activités privées + Activities + Willkommen + Activity + Description des mes activités de développement personnel + $Date: 2010/08/25 15:10:02 $ + $Id: activite.en_US.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ + + + +
+
+
Bookkeeping for trustee
+
+

Bookkeeping for trustees.

+Experiment the Bookkeeping for trustee. A new way to to manage your building and deal with your part owners.
Join the great community of online accounting managers.
+
+
+
Bookkeeping for churches
+
+

Bookkeeping for churches.

+Experiment the Bookkeeping for churches. A new way to to manage the finances of the church and your members.
+
+
+ +
+ +
+ diff --git a/accounting/products.fr_FR.UTF-8.xml b/accounting/products.fr_FR.UTF-8.xml new file mode 100644 index 0000000..600a770 --- /dev/null +++ b/accounting/products.fr_FR.UTF-8.xml @@ -0,0 +1,35 @@ + + + + + Les solutions de gestion en ligne + SYNDIC,Comptabilité, Copropriété,Gestion + Description des mes activités de développement personnel + $Date: 2010/08/25 15:10:02 $ + $Id: activite.fr_FR.UTF-8.xml,v 1.2 2010/08/25 15:10:02 aebersol Exp $ + + + +
+
+
Bookkeeping for trustee
+
+

Comptabilité pour le syndic

+Experimentez la comptabilité pour le syndic Une nouvelle manière de gérer votre batiment et vos copropriétaires.
Joignez la communauté en ligne des syndics qui ont choisis la comptabilité en ligne.
+
+
+
Comptabilité pour les associations cultuelles
+
+

Comptabilité pour les associations cultuelles.

+Créé votre comptabilité en ligne pour associations cultuelles. Une façon simple pour maintenir les comptes de votre association.
+
+
+ + +
+ +
+ diff --git a/accounting/services.en_US.UTF-8.xml b/accounting/services.en_US.UTF-8.xml new file mode 100644 index 0000000..1fa14dd --- /dev/null +++ b/accounting/services.en_US.UTF-8.xml @@ -0,0 +1,21 @@ + + + + Hobbies + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ + + + +

Useful Links

+ +

+
+
+ + +
diff --git a/accounting/services.fr_FR.UTF-8.xml b/accounting/services.fr_FR.UTF-8.xml new file mode 100644 index 0000000..24340f7 --- /dev/null +++ b/accounting/services.fr_FR.UTF-8.xml @@ -0,0 +1,32 @@ + + + + <p>Documentation, les généralités</p> + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ + + +
+
+
+
Profile
+
+

+Ingénieur Informatique
Marié 1 enfant
Français

+

Société : Adival Services

+

Spécialisé dans le développement C/C++

+
+
+
+
Projet et études
+
+
    +
  • Amélioration d'un driver flash
  • +
  • Comparaison de diférent reverse proxy
  • +
  • Encapsulation d'un flux binaire dans des chunks http
  • +
  • OmniPCX Office feature improvement
  • +
  • Porting Linux 2.4 drivers to kernel 2.6
  • +
  • Migration of x86 application to powerpc
  • +
+
+
+
+
+
+
Nouvelles
+
+ +
+
+
+
Activités
+
+
    +
  • Je travaille en tant que consultant pour Alcatel-Lucent
  • +
  • Pour le compte d'une association, je maintiens une dedibox
  • +
  • Source formating
  • +
+
+
+
+
+
+ +
diff --git a/accueil.xml b/accueil.xml new file mode 100644 index 0000000..50b696c --- /dev/null +++ b/accueil.xml @@ -0,0 +1,98 @@ + + + + + + La page d'accueil d'Andre EBERSOLD + About + Willkommen + + $Date: 2010/04/21 17:10:20 $ + $Id: accueil.xml,v 1.25 2010/04/21 17:10:20 aebersol Exp $ + + Accueil + About +

Introduction

+

Introduction

+

Introduction

+ + This site intends to help creating + relations, by showing my + and + + + Bienvenu sur ce site dont le but premier est de me faire connaitre au travers + des différentes activités et de mes centres d'intérets. + + + faire connaître / créer de nouveaux contactes / Promouvoir mon savoir faire (compétences) et + les projets personnels que j'ai développé. + + + De plus en plus, Internet devient un moyen pour + échanger, trouver du travail, créer de nouveaux contacts. + C'est le but de ce site qui présente mon cursus + professionnel au travers du + et de mes . + +

Compétences

+ + Mon activité principale est le développement en C et C++. Ceci aussi + bien sous Windows que sous Unix. Dans ce context rentre également la + gestion des sources, la mise en place de procedures de fabrications + de programmes. + +
+
+ Who I am + Senior Software Engineer +
+
+ Studies / Projects + +
    +
  • Flash driver enhancement
  • +
  • Web reverse proxy comparison
  • +
  • Encapsulation of binary flow in http chucks
  • +
  • OmniPCX Office feature improvements
  • +
  • Porting Linux 2.4 drivers to kernel 2.6
  • +
  • Migration of x86 application to powerpc
  • +
+
+
+
+ +
+
+ News Events + +
    +
  • Studied packagers for embedded systems (rpm, opkg/ipkg, npm,...)
  • +
  • Wrote distro, a small distribution builder
  • +
+
+
+
+ Activities + +
    +
  • I work for Alcatel Lucent as contracting
  • +
  • I maintain remotly a remote server (from dedibox) for an association
  • +
+
+
+ +
+
+ +
diff --git a/activite.en_US.UTF-8.xml b/activite.en_US.UTF-8.xml new file mode 100644 index 0000000..0e8b0f7 --- /dev/null +++ b/activite.en_US.UTF-8.xml @@ -0,0 +1,61 @@ + + + + + Mes activités privées + Activities + Willkommen + Activity + Description des mes activités de développement personnel + $Date: 2010/08/25 15:10:02 $ + $Id: activite.en_US.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ + + +

Activities

+

Ajax application

+ +
+
+
Bookkeeping for trustee
+
+ +

Bookkeeping for trustees.

Experiment the + Bookkeeping for trustee. A new way to + to manage your building and deal with your part owners. +
+ Join the great community of online accounting managers. +
+
+
+
Bookkeeping for churches
+
+ +

Bookkeeping for churches.

+ Experiment the + Bookkeeping for churches. A new way to + to manage the finances of the church and your members. +
+
+
+
+ +
+ +
+ diff --git a/activite.fr_FR.UTF-8.xml b/activite.fr_FR.UTF-8.xml new file mode 100644 index 0000000..451018f --- /dev/null +++ b/activite.fr_FR.UTF-8.xml @@ -0,0 +1,62 @@ + + + + + Mes activités privées + Activities + Willkommen + Activity + Description des mes activités de développement personnel + $Date: 2010/08/25 15:10:02 $ + $Id: activite.fr_FR.UTF-8.xml,v 1.2 2010/08/25 15:10:02 aebersol Exp $ + + + + +

Activités

+

Internet

+

La création et le maintien de ce site internet représente une activité en sois. Toujours à l'affut de nouvelles informations technologiques et de services à offrir, je mets ce site à jours régulièrement.

+ +
+
+
Bookkeeping for trustee
+
+ +

Comptabilité pour le syndic

Experimentez la + comptabilité pour le syndic + Une nouvelle manière de gérer votre batiment et vos copropriétaires. +
+ Joignez la communauté en ligne des syndics qui ont choisis la comptabilité en ligne. +
+
+
+
Comptabilité pour les associations cultuelles
+
+ +

Comptabilité pour les églises.

+ Créé votre comptabilité en ligne pour + associations cultuelles. + Une façon simple pour maintenir les comptes de votre association. +
+
+
+
+ + +
+ +
+ diff --git a/activite.xml b/activite.xml new file mode 100644 index 0000000..add563e --- /dev/null +++ b/activite.xml @@ -0,0 +1,94 @@ + + + + + Mes activités privées + Activities + Willkommen + Activity + Description des mes activités de développement personnel + $Date: 2010/08/24 15:42:30 $ + $Id: activite.xml,v 1.11 2010/08/24 15:42:30 aebersol Exp $ + + Activité + Activities +

Internet

+ + +
    +
  • Not sur if this works
  • +
  • Wow this is really new
  • +
  • Why here ? é
  • +
+

Internet Explorer

+

Introduction

+

Rien, c'est peu dire.

+

Un titre

+

Est-ce

+ + La création et le maintien de ce site internet représente une activité en sois. Toujours + à l'affut de nouvelles informations technologiques et de services à offrir, je mets ce + site à jours régulièrement. + + + Un composant en cours de développement et déjà bien avancé est le + écrit en Javascript. La ne va pas tarder ainsi que de nouvelles features que vous + pourrez tester directement. + + + De plus en plus, Internet devient un moyen pour + échanger, trouver du travail, créer de nouveaux contacts. + C'est le but de ce site qui présente mon cursus + professionnel au travers du + et de mes . + +

Corba

+

Corba

+ + Mon activité principale est le développement en C et C++. Ceci aussi + bien sous Windows que sous Unix. Dans ce context rentre également la + gestion des sources, la mise en place de procedures de fabrications + de programmes. + + + I am able to develop applications on windows or Unix,in C and C++. + +

F.E.E.B.F

+

F.E.E.B.F.

+ + Pour la Fédération des Eglises Evangéliques Baptistes de France, je + participe à trois principaux chantiers. + +
    +
  • Dématérialisation des données
  • +
  • Partage de l'information
  • +
  • Refonte du site internet
  • +
+ + Le commence par + la mise en place d'une infrastructure réseau qui permettent le travail à + distance sécurisé. Afin de minimiser les coûts de gestion d'une infrastructure + informatique, nous pensons nous orienter vers la + d'un server pour réaliser la + dématérialisation des données. + + + +
+ +
+ diff --git a/app/admin/index.js b/app/admin/index.js new file mode 100644 index 0000000..6022623 --- /dev/null +++ b/app/admin/index.js @@ -0,0 +1,141 @@ +/** + * This is my first try to associate javascript code with the user interface. + * It's still under work. + * First, I should remove prototype dependances here. I do have all I need. + */ + +AEBW.declare("Admin",AEBW.JsonRpc, { + listSection:function(section) { + this.handle({onSuccess: function(res) { + try { + $("dist-section").childElements().each (function (e) {e.remove();}); + var dists= $("dist-section"); + res.each(function(e) {dists.insert("");}); + } catch (e) + { + alert("Yes got Exception: "+e+"it:"+res); + } + } + ,onFailure:function(res) {alert("Finally failed:"+res);}}, + "listSection",{'section':section}) ; + }, + listDistributions:function(distId) { + this.handle( { + onSuccess:function(res) { + var cb=$("cbDists"); + cb.childElements().each(function(e) {e.remove();}); + res.each(function(e) { + if (e.id == distId) { + cb.insert(""); + $("enDistVersion").value = e.version; + $("enDistBoard").value = e.board_name; + } else { + cb.insert(""); + } + cb.childElements().each(function(e) {if (e.value==distId) e.selected=true;}); + }); + }, + onFailure:function(res) { + alert("Failed load Distributions:"+res); + } + }, + "listDistributions",{} + ); + }, + DistPackageList:function(d_id) { + this.handle( { + onSuccess:function(res) { + var selDist = $("dist-packages"); + selDist.childElements().each(function(e) {e.remove();}); + res.each( function(e) { + selDist.insert(""); + }); + }, + onFailure:function(res) { + alert("Failed Get Packages:"+res); + var selDist = $("dist-packages"); + selDist.childElements().each(function(e) {e.remove();}); + } + }, + "DistPackageList",{"dist": d_id} + ); + }, + newDistribution:function() { + this.handle( { + onSuccess:function(res) { + }, + onFailure:function(res) { + } + }, + "newDistribution",{} + ); + }, + addPackage:function(DistId,PkgId) { + this.handle( { + onSuccess:function(res) { + }, + onFailure:function(res) { + alert('addPackage Failed'+res); + } + }, + "addPackage",Array([ DistId , PkgId]) + ); + }, + rmPackage:function(PkgId) { + this.handle( { + onSuccess:function(res) { + }, + onFailure:function(res) { + alert("Failed remove Package and do not know why"+res); + } + }, + "rmPackage",Array([PkgId]) + ); + } + +}); + +AEBW.declare("Admin.Pages",AEBW.JsonRpc, { + }); + +if (!AEBW.admin) {} + +var d = new Admin(alias+"/app/admin/Admin.php"); + + +Event.observe('btNewPage','click',function (evt) { + alert("Call 1"); + var form =$("createPage"); + var str=form.serialize(); + alert("Call "+alias+" "+str); + new Ajax.Request(alias+"/update.php", + { + method:"post", + postBody:str + + }); + }); +/* +var pkgs = new AEBW.distro.packages; +Event.observe('btSearchPackage','click',function (evt) { + pkgs.search($('ipPackage').value); + }); + +Event.observe('cbDists','change',function (e) { + d.listDistributions(e.element().value); + d.DistPackageList(e.element().value); + }); + +Event.observe('btDistAdd','click',function(e) { + var sel = $('dist-section'); + var e = Element.extend(sel.options[sel.selectedIndex]); + d.addPackage($('cbDists').value,e.value); + d.DistPackageList($('cbDists').value); + }); +Event.observe('btDistRemove','click',function(e) { + var sel = $('dist-packages'); + var e = Element.extend(sel.options[sel.selectedIndex]); + d.rmPackage(e.value); + d.DistPackageList($('cbDists').value); + }); +*/ diff --git a/app/admin/view/index.fr_FR.UTF-8.xml b/app/admin/view/index.fr_FR.UTF-8.xml new file mode 100644 index 0000000..8719e6b --- /dev/null +++ b/app/admin/view/index.fr_FR.UTF-8.xml @@ -0,0 +1,351 @@ + + + + + + + Distro + + + +

Administration

+

+ sa chaine de compilation, les paquets logiciels devant se trouver dans la distribution + final. +

+ +
+ + + + + Utilisateur + + + Hardware + + + + + +
+ + + + + + +
+
+ + + binutils + + display boxes : enable + + + + + Utilisateur + + Liste des utilisateurs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
List des utilisateurs
UtilisateurNom RealEmailGroupe
+ + +

+ + + + +
Search
+ +
d1d1d1d5
2 + 22
+ End Table +
+
+
+
+ + + + Groupes + + + Distribution + +
+ + + + +
+ + +
+
+ + +
+
+
+
+
+
+ + Catégories + + Base + + Core + + + Shell + + + Kernel + + + + Librarie + + + + +
+
+ + +
+ + + +

+ +
+
+ + + + Menu + +

Gestion des Menus

+ + Les Menus + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDNameLienLangueDirectionStyle
+ + + + + + + + + + +
1HMenu/fr/accueil.htmlfrHORIZONTALmenu1
+
+
+ +
+
+ + Style + + Test Table Stuff + + + + + + + + + + + +
Titre du tableau
r1r2
Un test pour voird1
Un bouton +
Un test pour voird1
Un bouton +
+ End Table +
+
+ + + Pages + +

Find existing pages or create new once.

+ + Pages + +
+ + + + + + + + + + + + + + + + +
Titre du tableau
TitleTypeStatus
accueild2
Un bouton +
Un test pour voird1
Un bouton +
+ + +
+
+ + Add Page + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Titre du tableau
ChampValeur
Titre:
Langue: + + + +
+
Type: + + + +
+
Résumé:
Mots Cle:
+ +
+ + +
+
+ +
+
+
+ + + + + + + Selection de la classe + +
+ + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + +
CompteLibelléN-1N
Total:0.00.0
+
+
+ +
+
diff --git a/app/compta/copro.js b/app/compta/copro.js new file mode 100644 index 0000000..73db506 --- /dev/null +++ b/app/compta/copro.js @@ -0,0 +1,760 @@ + +AEBW.declare("DlgCoproPaye",AEBW.control.dialogbox ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + + //var spA = new AEBW.control.table('copro_table_decompte'); + //this.TableDecompte = function() {return spA;}; + this.Url = function() {return jurl;}; + }, + doRecord : function() { + var params = { + 'transi' : { 'voucher_date' : $('copro_voucher_date').value, 'act_trans_date' : $('copro_date').value + }, + 'entries' : [ + { 'entry_date' : $('copro_date').value, + 'voucher_ref' : $('copro_voucher_ref').value , + 'acc_id' : $('copro_id').value, + 'amount': $('copro_amount').value, + 'dc':'c', + 'desc':$('copro_desc').value, + 'entry_type': 'BQ'}, + { 'entry_date' : $('copro_date').value, + 'voucher_ref' : $("copro_voucher_ref").value, + 'acc_id' : $('copro_banque').value, + 'amount': $('copro_amount').value, + 'dc':'d','desc':$('copro_desc').value, + 'entry_type' : 'BQ'} + ] + + }; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + var supp = this; + SupplReq.handlefct('booking','postTransaction',params,function(res) {supp.onRecorded(res);}, function () { + alert("Failed booking call by on Failure on url:"+url); + }); + }, + onRecorded: function(response) { + new Effect.Fade('copro_payement',{ + afterFinish: function() { + $('copro_result').innerHTML = "

Le payement a ete enregistre.

"; + } + }); + }, + doAppel: function() { + var params = { + 'transi' : { 'voucher_date' : $('tfDate').value, 'act_trans_date' : $('tfDate').value + }, + 'entries' : [ + { 'entry_date' : $('tfDate').value, + 'voucher_ref' : "" , + 'acc_id' : $('copro_id').value, + 'amount': $('tfMontant').value, + 'dc':'d', + 'desc':$('tfTitle').value, + 'entry_type': 'AF'}, + { 'entry_date' : $('tfDate').value, + 'voucher_ref' : "", + 'acc_id' : "701000", + 'amount': $('tfMontant').value, + 'dc':'c','desc':$('tfTitle').value, + 'entry_type' : 'AF'} + ] + + }; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + var supp = this; + SupplReq.handlefct('booking','postTransaction',params,function(res) {supp.onAppel(res);}, function () { + alert("Failed booking call by on Failure on url:"+url); + }); + }, + onAppel: function(response) { + new Effect.Fade('copro_appel',{ + afterFinish: function() { + $('copro_result').innerHTML = "

L'appel de fond a ete enregistre.

"; + } + }); + }, + getFournisseur: function() { + var params ={ + categorie : '401', + like: "lik" + }; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + var supp = this; + SupplReq.handlefct('pcmn','getAccountList',params,function (res) { + supp.onFournisseur(res); + } ,function() { + alert("Failed getFournisseur"); + }); + }, + onFournisseur: function (response) { + var cb = $('suppl_id'); + cb.options.length = 0; + for(var i = 0; i it[3]) { + row.cells[4].style.color="red"; + } + } + var res= response.result.solde; + $('coproSoldeDebit').innerHTML=res[0]; + $('coproSoldeCredit').innerHTML=res[1]; + $('coproSoldeDecompte').innerHTML="Solde : "+res[2]; + if (parseFloat(res[2]) < 0.0 ) { + $('coproSoldeDecompte').setStyle({color: "#FF0000"}); + } else { + $('coproSoldeDecompte').setStyle({color: "#000000"}); + } + this.getSoldeDecompte(); + }, + + getSoldeDecompte : function() { + var params ={ + period : $('cbCoproExercice').value, + acc_id: $('cbCoproDecompte').value + }; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + var supp = this; + SupplReq.handlefct('retrieve','getSoldeAccount',params,function (res) { + supp.onGetSoldeDecompte(res); + } ,function() { + alert("Failed getSoldeAccount"); + }); + }, + onGetSoldeDecompte : function(response) { + var bilan =""; + var res= response.result.solde; + var detail_charge = response.result.detail_charge; + var total_charge = parseFloat(response.result.total_charge).toFixed(2); + var total_appel = parseFloat(response.result.total_appel).toFixed(2); + var total_ss_af = 0; + if (parseFloat(res[2]) < 0.0 ) { + total_ss_af = parseFloat(res[2]) + parseFloat(total_appel); + } else + total_ss_af = parseFloat(res[2]) - parseFloat(total_appel); + $('coproSoldeDebit').innerHTML=res[0]; + $('coproSoldeCredit').innerHTML=res[1]; + $('coproSoldeDecompte').innerHTML="Solde : "+res[2]+" euros, (Solde sans appel de fonds:"+total_ss_af.toFixed(2)+" euros si non clos)" ; + if (parseFloat(res[2]) < 0.0 ) { + $('coproSoldeDecompte').setStyle({color: "#FF0000"}); + } else { + $('coproSoldeDecompte').setStyle({color: "#000000"}); + } + try { + bilan+="

Total appel de fonds:"+total_appel+" euros, total charges : "+total_charge+" euros

"; + for(var c = 0 ; c < detail_charge.length; c++) { + var i = detail_charge[c]; + bilan += "

"+i[0]+" "+i[1]+" euros

"; + } + $('copro_detail').innerHTML=bilan; + } catch (e) { + alert("Bilan Failed = "+e.message); + } + + }, + cleanTable : function(tb,sz) { + for (var i = 0 ; i < sz; i++) { + tb.delRow(0); + } + } +, + getExercices : function() { + var params =""; + var obj = this; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('syndic','getExercices',params, + function(response) {obj.onGetExercices(response);}, + function() { alert("Failed getExercices");} + ); + }, + onGetExercices : function(response) { + var d = new Date(); + var cb = $('cbCoproExercice'); + cb.options.length = 0; + for(var i = 0; i " + it[4] + " " + it[5]; + //tb.getCell(tb._NbRows-1,4).innerHTML = it[4]; + tb.getCell(tb._NbRows-1,3).innerHTML = it[6]; + tb.getCell(tb._NbRows-1,4).innerHTML = it[7]; + } + }, + addCopro : function (i) { + var params ={'org_id' : 0, // Current one + ident : {'uid':0, + 'name' : i.name, + 'firstname' : i.firstname, + 'address' : i.address, + 'postalcode': i.code, + 'ville' : i.ville, + 'email' : i.email1, + 'mobile' : i.mobile } + }; + var obj = this; + var url = this.Url(); + var Req = new AEBW.Json(url); + Req.handlefct('ident','addUserInOrg',params, + function(response) {obj.onAddCopro(response);}, + function() { alert("Failed addCopro");} + ); + }, + onAddCopro: function(response) { + alert("added"); + }, + onShow: function() { + this._tbe = new AEBW.control.table('copro_users'); + var obj = this; + Event.observe($("btUpdateCoproUser"),"click", function () { + alert("Triggered new updateCopro"); + }); + Event.observe($("btNewCoproIdentity"),"click", function () { + var i = {}; + i.name = $('copro_name').value; + i.firstname = $('copro_firstname').value; + i.address = $('copro_address').value; + i.code = $('copro_code').value; + i.ville = $('copro_ville').value; + i.mobile = $('copro_mobile').value; + i.email1 = $('copro_email1').value; + i.email2 = $('copro_email2').value; + obj.addCopro(i); + + }); + } +}); + +AEBW.declare("DlgCoproRole",AEBW.control.dialogbox ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + this.Url = function() {return jurl;}; + }, + getRoles : function () { + }, + getUsersRole : function(role) { + var params ={'role' : role}; + var obj = this; + var url = this.Url(); + var Req = new AEBW.Json(url); + Req.handlefct('ident','getUsersRole',params, + function(response) {obj.onGetUsersRole(response);}, + function() { alert("Failed getEntetien");} + ); + }, + onGetUsersRole : function(response) { + var tb = this._tbe; + tb.eraseAllRows(); + var entries = response.result; + var obj = this; + for(var i = 0 ; i + + + + + User Managment + + + + +

Décompte de charges

+

+ + + + + Information Générales + +
+ + +
+ + + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
Compte
DateRéfDésignaionDébitCrédit
02/01/201312435Facture fioul100
05/01/201398547Charge Assurance87
06/01/2013d1Virement211
10/01/2013xc1234Charge EDF PC2 178
Solde:0.00.0
+
+ + + +
+
+
diff --git a/app/compta/copro_entretien.xml b/app/compta/copro_entretien.xml new file mode 100644 index 0000000..8da2716 --- /dev/null +++ b/app/compta/copro_entretien.xml @@ -0,0 +1,47 @@ + + + + + + Carnet d'entretien + + + + + + Période d'entretien + +
+ + + + +
+
+
+ + Saisir + +
+ +
+
+ +
+ +
+ + + + + + + + + + diff --git a/app/compta/copro_pay.xml b/app/compta/copro_pay.xml new file mode 100644 index 0000000..cddb8da --- /dev/null +++ b/app/compta/copro_pay.xml @@ -0,0 +1,75 @@ + + + + + + User Managment + + + + + + +

Enregistré un payment

+ +Versement + +
+
+ + + + + + + +
+ + + +
+ + +
+ +
+ + + + + + + + +

Enregistré un appel de fond

+ + Appel de fond + +
+
+ + + + + + + +
+ + +
+ +
+ + + + + + + + + + diff --git a/app/compta/copro_role.xml b/app/compta/copro_role.xml new file mode 100644 index 0000000..2772843 --- /dev/null +++ b/app/compta/copro_role.xml @@ -0,0 +1,53 @@ + + + + + + User Managment + + + + + + + + Selection Role + +
+ + + + +
+
+
+ + + + + + + + + + + + + + + + + +
NomPrénomSel
+
+
+ +
+
diff --git a/app/compta/copro_users.xml b/app/compta/copro_users.xml new file mode 100644 index 0000000..603b5ab --- /dev/null +++ b/app/compta/copro_users.xml @@ -0,0 +1,61 @@ + + + + + + User Managment + + + + +

Nouveau copropriétaire

+ + Information Copropriétaire + +
+ +
+ +
+ +
+ +
+
+
+ +
+ + + + + + + +

Coordonnées des copropriétaires

+ + + + + + + + + + + + + + + + +
Nom / PrénomAdresseTélEmail
+
+ + + + diff --git a/app/compta/exercice.js b/app/compta/exercice.js new file mode 100644 index 0000000..1c6ef03 --- /dev/null +++ b/app/compta/exercice.js @@ -0,0 +1,142 @@ + +AEBW.declare("DlgExercice",AEBW.control.dialogbox ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + this.tableExercices = function() { + return new AEBW.control.table('table_exercice'); + }; + + //var spA = new AEBW.control.table('copro_table_decompte'); + //this.TableDecompte = function() {return spA;}; + this.Url = function() {return jurl;}; + }, + getExercices : function() { + var params ={ + }; + var obj = this; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('syndic','getExercices',params, + function(response) {obj.onGetExercices(response);}, + function() { alert("Failed getExercices");} + ); + }, + onGetExercices : function(response) { + var tb = this.tableExercices(); + var Ex = this; + //alert('ongetAccountist Cleaning before rows: '); + for(var i = 0 ; i + + + + + Exercice Managment + + + + + + + +Nouvel Exercice + +
+
+ +
+
+ +
+ + + + + + +

Les exerices

+ + + + + + + + + + + + + +
ExerciceDate de DébutDate de Fin
+
+ +

Cloture de compte

+
+ + + + + + diff --git a/app/compta/identity.php b/app/compta/identity.php new file mode 100644 index 0000000..dc4a95a --- /dev/null +++ b/app/compta/identity.php @@ -0,0 +1,193 @@ +session = new Session(); + } + + /** + * Check if the organisation exists if not create it. + * Add the current user in the organization as admin or syndic ? + */ + function createOrg( $ident) { + // Check if exists + $q=<<doQueryI($q); + if ($res['records'][0][0] != 0 ) { + throw new Exception(_("create organisation failed. The entry already exists.")); + } + // Create new entry + $q=<<doQueryI($q); + $orgid = $this->insert_id(); + $id = $this->session->id(); + $dbname = "SYNDIC_".$orgid; + $q1 =<<doQueryI($q1); + return array("org_id" => $orgid); + } + /* Basic function that allows the user to work on several accounting systems */ + function switchOrg( $org) { + // Check if the organisation exists and that I'm part of it. + $dbs = $this->getApplicationDbs(); + for ($i = 0 ; $i < count($dbs) ; $i++) { + if ($dbs[$i][0] == $org) { + // Found switch and exit + $_SESSION["compta_db"] = $dbs[$i][2]; + $_SESSION["compta_org"] = $dbs[$i][0]; + $_SESSION["compta_name"] = $dbs[$i][1]; + error_log("switchOrg: Org id :".$dbs[$i][0]." Name=".$dbs[$i][1]." Db Name=".$dbs[$i][2]); + $roles = $this->getUserRolesInOrg( $this->session->id(),$_SESSION['compta_org']); + return $dbs[$i]; + } + } + throw new Exception(_("Unkown organisation for user")); + } + function currentOrg () { + if (isset($_SESSION["compta_org"]) ){ + return array($_SESSION["compta_org"],$_SESSION['compta_name']); + } else { + throw new Exception(_("No organisation defined for you")); + } + } + /** + */ + function addUserInOrg($org_id,$ident) { + $org = $org_id; + if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { + throw new Exception(_("Only syndic can add a user in organisation")); + } + if ($org == 0 ) { + // Check if there is an org in session if not, die + if (isset($_SESSION['compta_org'])) { + $org = $_SESSION['compta_org']; + } else { + error_log("FAILED compta_org is not defined"); + throw new Exception(_("ORGANISATION NOT DEFINED")); + } + } + // Check if exists + $q=<<doQueryI($q); + if ($res['records'][0][0] != 0 ) { + $id = $res['records'][0][0]; + $q1 =<<doQueryI($q1); + throw new Exception(_("User creation failed. The entry already exists.")); + } + // + $q=<<doQueryI($q); + $id = $this->insert_id(); + $q1 =<<doQueryI($q1); + return array(""); + } + + + function removeUserFromOrg($uid,$with_ident= false) { + + + } + + /** + * + */ + function getUsersRole($role) { + $q =<<org} + LEFT JOIN UserRoles as ur on u.ident_id = ur.ur_user_id and ur.ur_role_id = {$role} and ur.ur_org_id ={$this->org} + GROUP BY u.ident_id ; +EOF; + $res = $this->doQueryI($q); + return $res["records"]; + } + + function setUserRole($oid,$uid,$role) { + if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { + throw new Exception(_("Only syndic can change role in organisation")); + } + if (isset($_SESSION['compta_org'])) { + $org = $_SESSION['compta_org']; + } else { + error_log("FAILED compta_org is not defined"); + throw new Exception(_("ORGANISATION NOT DEFINED TO SET ROLE")); + } + if ($uid == 0) { + error_log("FAILED setUserRole : uid is 0"); + throw new Exception(_("Cannot Set role for uid 0")); + } + $q=<<doQueryI($q); + return array(""); + } + + function resetUserRole($oid,$uid,$role) { + if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { + throw new Exception(_("Only syndic can change role in organisation")); + } + if (isset($_SESSION['compta_org'])) { + $org = $_SESSION['compta_org']; + } else { + error_log("FAILED compta_org is not defined"); + throw new Exception(_("ORGANISATION NOT DEFINED TO SET ROLE")); + } + if ($uid == 0) { + error_log("FAILED setUserRole : uid is 0"); + throw new Exception(_("Cannot Set role for uid 0")); + } + $q=<<doQueryI($q); + return array(""); + } +} + +?> diff --git a/app/compta/index.php b/app/compta/index.php new file mode 100644 index 0000000..809a98e --- /dev/null +++ b/app/compta/index.php @@ -0,0 +1,117 @@ +getApplicationDbs(); + $_SESSION["compta_db"] = $dbs[0][2]; + $_SESSION["compta_name"] = $dbs[0][1]; + $_SESSION["compta_org"] = $dbs[0][0]; + error_log("Compta: Org id :".$dbs[0][0]." Name=".$dbs[0][1]." Db Name=".$dbs[0][2]); + $roles = $u->getUserRolesInOrg( $s->id(),$_SESSION['compta_org']); + } + } + function getDb() { + if (isset($_SESSION['compta_db'])) { + return $_SESSION["compta_db"] ; + } else + return 'test'; + } + + function Service($request) { + // return "pcmn"; + return $request['service']; + } +} + +/* + :vim:et:ts=2:sw=2:encoding=utf-8 + */ + + $s = new Session(); + if ($s->is_logged_in() ) { + $p = New Compta("/sql-requests.xml"); + if ($_SERVER['REQUEST_METHOD'] == "POST") { + $request = $p->getContent(); + switch ($p->Service($request)) { + case "pcmn": + require_once(dirname(__FILE__)."/pcmn.php"); + $pcmn = new Pcmn($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], + $p->getDb()); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + log_error("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + case "identold": + require_once(dirname(__FILE__)."/../member/class.json_db_user.php"); + $u = new JsonUser( $AppDb['host'] , $AppDb['user'], $AppDb['password'],$AppDb['name']); + if ( ! JsonRPCServer::handle($u,$request) ) { + error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + case "ident": + require_once(dirname(__FILE__)."/identity.php"); + $u = new Identity( $AppDb['host'] , $AppDb['user'], $AppDb['password'],$AppDb['name']); + if ( ! JsonRPCServer::handle($u,$request) ) { + error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + break; + case "retrieve": + require_once(dirname(__FILE__)."/retrieve.php"); + $pcmn = new Retrieve($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], + $p->getDb()); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + case "booking": + require_once(dirname(__FILE__)."/booking.php"); + $pcmn = new Booking($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], + $p->getDb()); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + case "budget": + require_once(dirname(__FILE__)."/budget.php"); + $pcmn = new Budget($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], + $p->getDb()); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + case "syndic": + require_once(dirname(__FILE__)."/syndic.php"); + $pcmn = new Syndic($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], + $p->getDb()); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + default: + $res = array('id' => '1','result' => 'failed', 'error' => 'Unkonwn service'); + header('X-JSON: '.json_encode($res)); + } + } else { + $res = array('id' => "1",'result' => 'failed', 'error' => 'Unkonwn service wrong'); + header('X-JSON: '.json_encode($res)); + + } + } else { + $res = array('result' => 'failed', 'reason' => 'Not auth'); + header('X-JSON: '.json_encode($res)); + } + + +?> diff --git a/app/compta/index.xml b/app/compta/index.xml new file mode 100644 index 0000000..284419e --- /dev/null +++ b/app/compta/index.xml @@ -0,0 +1,240 @@ + + + + + + User Managment + + + + +

Administration des utilisateurs

+

+

+ +
+ + + + + Utilisateur + +
+ Her +
+ + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
+
+

Test What happens here

+ + System + + + +

+ + + Groupes + + simpe test + + + + Frogs + + Ok, + + Info Gen + + Une info: + + + + + + +
+
+
+
+ + + + + Groupes + + Strange + + authentication + +

Test Content

+ +
+
+ + alias + + display boxes : enable + + + + ssl + + display boxes: + enable + disable + + + + + +
+
+ + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
Titre du tableau
r1r2
Un test pour voird1
Un bouton +
Un test pour voird1
Un bouton +
+ End Table + +
+
+ + Calendar + + Test12 +
+ +
+
+
+ +
+
diff --git a/app/compta/journaux.js b/app/compta/journaux.js new file mode 100644 index 0000000..3d32ec4 --- /dev/null +++ b/app/compta/journaux.js @@ -0,0 +1,306 @@ + +AEBW.declare("DlgJrnx",Compta.Dialog ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + + this.table = function() { + return new AEBW.control.table('table_jrnx'); + }; + this.Url = function() {return jurl;}; + }, + getJrnxType:function() { + var params ={}; + var obj = this; + var url = this.Url(); + var Req = new AEBW.Json(url); + Req.handlefct('retrieve','getEntryTypes',params, + function(response) {obj.onGetJrnxType(response);}, + function() { alert("Failed getJrnxType");} + ); + }, + onGetJrnxType: function(response) { + var obj = this; + try { + var cb = $('jrnxBook'); + cb.options.length = 0; + for(var i = 0 ; i"; + //tb.getCell(tb._NbRows-1,0).setAttribute('record',it[0]); + //tb.getCell(tb._NbRows-1,0).onclick = function() { alert('Remove '+this.getAttribute('record'));}; + tb.getCell(tb._NbRows-1,0).innerHTML = it['0']; + //tb.getCell(tb._NbRows-1,1).onclick = function() { alert('Cliked ');}; + tb.getCell(tb._NbRows-1,1).innerHTML = it['1']; + tb.getCell(tb._NbRows-1,2).innerHTML = it['2']; + tb.getCell(tb._NbRows-1,3).innerHTML = it['3']; + if (it[4] > 0.0 ) { + tb.getCell(tb._NbRows-1,4).innerHTML = it['4']; + row.cells[4].style.textAlign="right"; + } else { + tb.getCell(tb._NbRows-1,4).innerHTML = ""; + } + if (it[5] > 0.0 ) { + tb.getCell(tb._NbRows-1,5).innerHTML = it['5']; + row.cells[5].style.textAlign="right"; + } else { + tb.getCell(tb._NbRows-1,5).innerHTML = ""; + } + } + $('jrnxSoldeDebit').innerHTML = response.result.solde[0][0]; + $('jrnxSoldeCredit').innerHTML = response.result.solde[0][1]; + }, + + ongetExercices: function(response) { + var d = new Date(); + var cb = $('cbJrnxPeriod'); + cb.options.length = 0; + for(var i = 0; i it[3]) { + row.cells[4].style.color="red"; + } + } + var res= response.result.solde; + $('jrnxSoldeDebit').innerHTML=res[0]; + $('jrnxSoldeCredit').innerHTML=res[1]; + $('jrnxSoldeDecompte').innerHTML="Solde : "+res[2]; + if (parseFloat(res[2]) < 0.0 ) { + $('jrnxSoldeDecompte').setStyle({color: "#FF0000"}); + } else { + $('jrnxSoldeDecompte').setStyle({color: "#000000"}); + } + + }, + ongetListeComptes : function(response) { + var cb = $('cbJrnxCompte'); + cb.options.length = 0; + for(var i = 0; i + + + + + User Managment + + + + +

Administration des utilisateurs

+

+

+ +
+ + + + + Utilisateur + +
+ Her +
+ + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
+
+

Test What happens here

+ + System + + + +

+ + + Groupes + + simpe test + + + + Frogs + + Ok, + + Info Gen + + Une info: + + + + + + +
+
+
+
+ + + + + Groupes + + Strange + + authentication + +

Test Content

+ +
+
+ + alias + + display boxes : enable + + + + ssl + + display boxes: + enable + disable + + + + + +
+
+ + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
Titre du tableau
r1r2
Un test pour voird1
Un bouton +
Un test pour voird1
Un bouton +
+ End Table + +
+
+ + Calendar + + Test12 +
+ +
+
+
+ +
+
diff --git a/app/compta/jrnx.xml b/app/compta/jrnx.xml new file mode 100644 index 0000000..6011280 --- /dev/null +++ b/app/compta/jrnx.xml @@ -0,0 +1,58 @@ + + + + + + User Managment + + + + + + + + Selection du journal + +
+ + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + +
DateCompteRéfLibelléDébitCrédit
Solde:0.00.0
+
+
+ +
+
diff --git a/app/compta/jrnx_detail.xml b/app/compta/jrnx_detail.xml new file mode 100644 index 0000000..04aa897 --- /dev/null +++ b/app/compta/jrnx_detail.xml @@ -0,0 +1,72 @@ + + + + + + Détail de compte. + + + + +

Détail de compte

+

+ + + + + Compte / Exercice + +
+ + +
+ + + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
Compte
DateRéfDésignaionDébitCrédit
02/01/201312435Facture fioul100
05/01/201398547Charge Assurance87
06/01/2013d1Virement211
10/01/2013xc1234Charge EDF PC2 178
Solde:0.00.0
+
+ +
+
+
diff --git a/app/compta/jrnx_record.xml b/app/compta/jrnx_record.xml new file mode 100644 index 0000000..e255654 --- /dev/null +++ b/app/compta/jrnx_record.xml @@ -0,0 +1,68 @@ + + + + + + User Managment + + + + + + + + Selection du journal + +
+ + + + + + + + + +
+
+
+ + +
+ + + + +
+ + +
+
+ + + + + + + + + + + + + + + + + +
DateCompteRéfLibelléDébitCrédit
Solde:0.00.0
+
+
+ +
+
diff --git a/app/compta/ledger_church.xml b/app/compta/ledger_church.xml new file mode 100644 index 0000000..29fc2e6 --- /dev/null +++ b/app/compta/ledger_church.xml @@ -0,0 +1,396 @@ + + + + + + Gestion comptable + + + + +

Gestion Comptable

+

+

+ +
+ + + + Organisation + + + + + Organisation + + + + + + + Exercice + + + + + + + + Type de compte + + + + + + + + + + + + + + + Plan + + + + + + Type de comptes + + + + + + + + + + + + + + +

Plan comptable

+ + + + + + + + + + + + + + + + + + + + + + + + +
Titre du tableau
classLibelléType
+ + Actif + Passif + Produit + Charge + Banque + + + +
1Compte de testActif + +
+ +

+
+
+
+
+ + + Fournisseurs + + + + + Facture + + + + + + + Gestion + + + + + + + + + + + +Nouvelle Facture + +
+
+ + + + + + + +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + + + + Membres + + + + + Don + + + + + + Gestion + + + + + + + + + + +Don + +
+
+ + + + + + + +
+ + + +
+ + +
+ +
+ + + + + + + + + + + + Eglise + + + + + Membres + + + + + + + Gestion + + + + + + + +

Status

+
+
+
+
+ + Bilan + + + + Exercice + + + + + + + + + + + + + +
Bilan de L'exercice
CompteLibelleDebitCreditSolde
10Immoblisation000
+
+ +
+
+ + Trésorier + + +

Information Générales sur le trésorier

+
+ + General + +
+ +
+ + +
+ + +
+ + +
+
+ +
+ + + + + + + + + + + + + + + + + + + diff --git a/app/compta/ledger_create.xml b/app/compta/ledger_create.xml new file mode 100644 index 0000000..4a3cc8b --- /dev/null +++ b/app/compta/ledger_create.xml @@ -0,0 +1,199 @@ + + + + + + + Wizard pour la creation d'un environnement de compta + + + + +

Création d'une nouvelle organisation

+

+

+ +
+ + + + + Organisation + + + + + + +

Information sur l'organisation

+ + + Organisation + +
+
+
+ +
+ +
+ +
+
+ +
+
+

+ + + + Syndic + + + Plan comptable + + + + + Coproprietaire + + Ok, + + Info Gen + + Une info: + + + + + + + +
+
+
+
+ + + + + Plan Comptable + + Strange + + authentication + +

Test Content

+ +
+
+ + alias + + display boxes : enable + + + + ssl + + display boxes: + enable + disable + + + + + +
+
+ + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
Titre du tableau
r1r2
Un test pour voird1
Un bouton +
Un test pour voird1
Un bouton +
+ End Table + +
+
+ + Calendar + + Test12 +
+ +
+
+
+ + +
+ +
diff --git a/app/compta/ledger_syndic.xml b/app/compta/ledger_syndic.xml new file mode 100644 index 0000000..9a3adde --- /dev/null +++ b/app/compta/ledger_syndic.xml @@ -0,0 +1,537 @@ + + + + + + Gestion comptable + + + + +

Gestion Comptable :

+ + + + + Copropriété + + + + + Organisation + + + + + + + Exercice + + + + + + + + Lots + + + + + + + Clé de charges + + + + + + + + + + + + + +

Les organisations dont vous faites partie

+
+
+
+
+
+
+ + + + Plan + + + + + Type de comptes + + + + + + + + + + + + +

Plan comptable

+ + + + + + + + + + + + + + + + + + + + + + + + +
Titre du tableau
classLibelléType
+ + Actif + Passif + Produit + Charge + Banque + + + +
1Compte de testActif + +
+ +

+
+
+
+
+ + + Fournisseurs + + + + + + + Facture + + + + + + + Gestion + + + + + + + + + + + + + + Nouvelle Facture + +
+
+ + + + + + + +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + + + + + + Coproprietaires + + + + + Fonds + + + + + + + + Gestion des Tiers + + + + + + + + + + + + +Versement + +
+
+ + + + + + + +
+ + + +
+ + +
+ +
+ + + + + + + + + + + + + + + + Journaux + + + + + journaux + + + + + + + Détail Comptes + + + + + + + + + + + + + Selection du journal + +
+ + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + +
DateN° CompteRéfLibelléDébitCrédit
Solde:0.00.0
+
+
+ +
+
+
+
+ + Bilan + + + + Exercice + + + + + + + + + + + + + + + + + +
Bilan de L'exercice
CompteLibelleDebitCreditSolde
10Immoblisation000
+
+ +
+
+ + + + Budget + + + + + Budget + + + + + + + + + Nouveau + +
+ + +
+ + +
+ + + + + + + + + + + + + + + + + + + +
AnnéeLibellé
+
+ + + + + + + + + + + + + + + + diff --git a/app/compta/lot.xml b/app/compta/lot.xml new file mode 100644 index 0000000..0fcddc1 --- /dev/null +++ b/app/compta/lot.xml @@ -0,0 +1,119 @@ + + + + + + User Managment + + + + + + + +Nouveau Lot + +
+
+ + + + + + +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
NameBatEtgPorteTypeSurf.
+
+ + + + diff --git a/app/compta/lot_attribuer.xml b/app/compta/lot_attribuer.xml new file mode 100644 index 0000000..d4a2809 --- /dev/null +++ b/app/compta/lot_attribuer.xml @@ -0,0 +1,51 @@ + + + + + + User Managment + + + + + + + + Selection Copropriétaire + +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + +
NuméroNom du lotSel
+
+
+ +
+
diff --git a/app/compta/lot_charge.xml b/app/compta/lot_charge.xml new file mode 100644 index 0000000..f67c29a --- /dev/null +++ b/app/compta/lot_charge.xml @@ -0,0 +1,126 @@ + + + + + + User Managment + + + + + + + +

Création d'un nouveau type de charges

+ + Nouveau Poste de Charge + +
+ + +
+ +
+ + + + + + + +

Selection du Poste de Charge pour affectation des Tantiemes

+ + Selection Poste pour affecation + +
+ + + + + + +
+
+
+
+ +

Affectation Tantieme

+ + + + + + + + + + + + + + + +
N° LotTantieme
Total:
+
+ + + + diff --git a/app/compta/lots.js b/app/compta/lots.js new file mode 100644 index 0000000..02d1a03 --- /dev/null +++ b/app/compta/lots.js @@ -0,0 +1,339 @@ + +AEBW.declare("DlgLot",Compta.Dialog ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + + this.tableLots = function() { + return new AEBW.control.table('table_lots'); + }; + this.Url = function() {return jurl;}; + }, + + ongetLots : function(response) { + var tb = this.tableLots(); + var obj= this; + this.cleanTable(tb,tb._NbRows); + //alert('ongetAccountist Cleaning before rows: '); + for(var i = 0 ; iupdate"; + tb.getCell(tb._NbRows-1,0).innerHTML = ""; + //tb.getCell(tb._NbRows-1,0).writeAttribute('onclick',"javascript:alert('Remove "+it[0]+"')"); + tb.getCell(tb._NbRows-1,0).setAttribute('record',it[0]); + tb.getCell(tb._NbRows-1,0).onclick = function() { + alert('Remove '+this.getAttribute('record')); + obj.removeLot(this.getAttribute('record')); + }; + tb.getCell(tb._NbRows-1,1).innerHTML = it['0']; + //tb.getCell(tb._NbRows-1,1).writeAttribute('onclick',"javascript:alert('Cliked"+it[0]+"')"); + tb.getCell(tb._NbRows-1,1).onclick = function() { alert('Cliked ');}; + tb.getCell(tb._NbRows-1,2).innerHTML = it['4']; + tb.getCell(tb._NbRows-1,3).innerHTML = it['6']; + tb.getCell(tb._NbRows-1,4).innerHTML = it['1']; + tb.getCell(tb._NbRows-1,5).innerHTML = it['7']; /* porte */ + tb.getCell(tb._NbRows-1,6).innerHTML = it['5']; + tb.getCell(tb._NbRows-1,7).innerHTML = it['2']; + // tb.getCell(tb._NbRows-1,8).innerHTML = it['7']; + } + }, + + addLot : function() { + var params = { + 'number' : $('lot_number').value, + 'type' : $('lot_type').value, + 'building' : $('lot_building').value , + 'floor' : $('lot_floor').value , + 'door' : $('lot_door').value, + 'size' : $('lot_size').value, + 'name' : $('lot_name').value, + 'desc' : $('lot_desc').value + } ; + var obj = this; + var url = this.Url(); + var Req = new AEBW.Json(url); + Req.handlefct('syndic','addLot',params, + function(response) {obj.onaddLot(response);}, + function() { alert("Failed addLot");} + ); + }, + onaddLot: function (response) { + this.getLots(); + }, + removeLot : function(lotnum) { + var params = { + 'number' : lotnum + }; + var obj = this; + var url = this.Url(); + var Req = new AEBW.Json(url); + Req.handlefct('syndic','removeLot',params, + function(response) {obj.onremoveLot(response);}, + function() { alert("Failed removeLot");} + ); + + }, + onremoveLot : function(response) { + this.getLots(); + }, + cleanTable : function(tb,sz) { + for (var i = 0 ; i < sz; i++) { + tb.delRow(0); + } + } + +}); + + +AEBW.declare("DlgLotCharge",Compta.Dialog ,{ + constructor : function(div_id,uipath,jurl ) { + this.tableLots = function() { + return this._tbe; + }; + }, + + ongetKeysCharge : function(response) { + var cb = $('lot_charge_sel'); + cb.options.length = 0; + for(var i = 0; i Creer Poste Charge +*/ +Event.observe($("btParamPosteChargeCreate"),"click", function () { + LotsCharge.show(); + LotsCharge.getKeysCharge(); + LotsCharge.getLotsTantieme($('lot_charge_sel').value); + // Event.observe($('btLotsAdd'), "click", function () { + // alert("Add Lot to be code"); + // Lots.getLots(); + // } + // ); + $('panel-charge-nouveau').removeClassName("hidden"); + //$('group-charge-selection').addClassName("hidden"); + $('panel-charge-selection').addClassName("hidden"); + $('panel-charge-attribuer').addClassName("hidden"); + }); + +Event.observe($("btParamPosteChargeAttribute"),"click", function () { + LotsCharge.show(); + LotsCharge.getKeysCharge(); + LotsCharge.getLotsTantieme($('lot_charge_sel').value); + $("panel-charge-nouveau").addClassName("hidden"); +}); +Event.observe($("btParamPosteChargeRemove"),"click", function () { + LotsCharge.show(); + LotsCharge.getKeysCharge(); + LotsCharge.getLotsTantieme($('lot_charge_sel').value); + $("panel-charge-nouveau").addClassName("hidden"); + $('panel-charge-attribuer').addClassName("hidden"); +}); + diff --git a/app/compta/parametre.js b/app/compta/parametre.js new file mode 100644 index 0000000..2367d12 --- /dev/null +++ b/app/compta/parametre.js @@ -0,0 +1,188 @@ + +AEBW.declare("DlgParameter",AEBW.control.dialogbox ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + this.Url = function() {return jurl;}; + this.Current = 0; + }, + getAccountInfo: function () { + var params= { + identity : "" + }; + var obj = this; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('pcmn','getAccountInfo',params, + function(response) {obj.ongetAccountInfo(response);}, + function() { alert("Failed getAccountInfo");} + ); + }, + ongetAccountInfo: function(response) { + var result = response.result; + //alert("Ok, got Answer :"+result); + $('addr').value = result.addr; + $('act').value = result.act; + $('ville').value = result.ville; + $('cp').value = result.cp; + }, + getDossiers : function() { + var params= { + identity : "" + }; + var obj = this; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('ident','getApplicationDbs',params, + function(response) {obj.ongetDossiers(response);}, + function() { alert("Failed getDossiers");} + ); + }, + ongetDossiers : function(response) { + var res = response.result; + var sum ="
    "; + try { + for (var i = 0 ; i < res.length ; i++) { + var row = res[i]; + // if (this.Current ==0 ) this.Current = row[0]; + if (this.Current == row[0]) { + sum += "
  • En cours d'utilisation "+row[1]+" voir ("; + sum += "detail)"; + sum +="
  • "; + } else { + sum += "
  • "+row[1]+""; + sum +="
  • "; + } + } + sum+="
"; + $('parameters-list').innerHTML = sum; + } catch (e) { + alert("Failed"+e.message); + } + }, + + switchDossier: function(dossier) { + var params= { + "org" : dossier + }; + var obj = this; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('ident','switchOrg',params, + function(response) {obj.onswitchDossier(response);}, + function() { alert("Failed getDossiers");} + ); + }, + onswitchDossier: function(response) { + this.Current = response.result[0]; + $('gestion-compta').innerHTML = response.result[1]; + this.getDossiers(); + }, + getCurrentOrg : function() { + var params= { + }; + var obj = this; + var url = this.Url(); + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('ident','currentOrg',params, + function(response) {obj.ongetCurrentOrg(response);}, + function() { alert("Failed getCurrentOrg");} + ); + }, + ongetCurrentOrg: function(response) { + this.Current = response.result[0]; + $('gestion-compta').innerHTML = response.result[1]; + }, + showList:function() { + this.show(); + $("parameters").addClassName("hidden"); + this.getCurrentOrg(); + this.getDossiers(); + }, + showDetail:function() { + this.show(); + $("parameters-summary").addClassName("hidden"); + this.getAccountInfo(); + }, + onShow : function () { +// if (this.Current == 0 ) this.getCurrentOrg(); + } + +}); + +AEBW.declare("DlgWizard",AEBW.control.dialogbox, { +constructor: function (div_id,uipath,jurl) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + this._wizard = null; + this.Url = function() {return jurl;}; + } , + onShow : function() { + this._wizard = new AEBW.control.Wizard('wizard',['wp1','wp2','wp3','wp4','wp6']); + AEBW.mixin(this._wizard,this); + }, + onNext : function(curr_id) { + switch(curr_id) { + case "wp1" : /*Register Organisation then Create DB then Add User in ORG */ + this.createOrg(); + break; + case "wp2" : + break; + case "wp3" : + break; + case "wp4" : + break; + } + }, + onPrev: function(curr_id) { + }, + uploadCsv: function (name, obj) { + var req = AEBW.HTTPRequest(); + try { + var data = new FormData(); + data.append(name,obj); // The file to be uploadrd and add some aditionnal attributes + req.open("POST",alias+"/app/compta/upload.php",true); + req.send(data); + } catch (e) { + alert("uploadCsv Failed:"+e.message); + } + }, + createOrg : function() { + alert("Launch create Org"); +  }, + onCreateOrg : function(response) { + } +}); + +var Params = new DlgParameter("parameter", + "./basic.php?app=compta&panel=parameter", + alias+"/app/compta/index.php"); +Params.getCurrentOrg(); +var Wizard = new DlgWizard("parameter", + "./basic.php?app=compta&panel=wizard", + alias+"/app/compta/index.php"); + + +if ($('btOrgList') != null) { +Event.observe($("btOrgList"),"click", function () { + Params.showList(); + }); + +} + +var myWizard = null; + +Event.observe($("btOrgNew"),"click", function () { + Wizard.show(); + }); + + + +/* +*/ +setTimeout(function() { + Params.showList(); + if ($("btNewIdentity") != null) + Event.observe($("btNewIdentity"),"click", function () {alert("to be coded 2");}); + +},2000); diff --git a/app/compta/parametre.xml b/app/compta/parametre.xml new file mode 100644 index 0000000..f79e69d --- /dev/null +++ b/app/compta/parametre.xml @@ -0,0 +1,71 @@ + + + + + + Exercice Managment + + + + + + +

Information Générales

+ + Idendité + +
+
+
+ +
+ +
+ +
+
+ +
+ + + + + + + + Devises + +
+ + + + + +
+ +
+
+
+ + Copropriété Lots + +
+ +
+
+
+ + + +

Les organisations dont vous faites partie

+
+
+ + diff --git a/app/compta/pcmn.js b/app/compta/pcmn.js new file mode 100644 index 0000000..390889d --- /dev/null +++ b/app/compta/pcmn.js @@ -0,0 +1,321 @@ +/** + * Here goes all the code that will control the + * view. + * - Creation of the social reason, + * - Creation, update of the Plan Comptable + * - Creation of Journals, + * - + */ +AEBW.require('xgui_dialogbox'); +AEBW.require('xgui_json'); +AEBW.declare("Compta.pcmn",AEBW.Json, { + constructor: function(url) { + this.url = url; + var myPcmn = new AEBW.control.table('pcmn'); + var myBilan = new AEBW.control.table('bilan'); + this.myPcmn = function () {return myPcmn;}; + this.TableBilan = function() { return myBilan; }; + + }, + getPcmn: function() { + }, + addAccount: function() { + params = { + num : $("class").value, + libelle : $("lib").value + }; + this.handle('pcmn','addAccount',params); + }, + onaddAccount:function (response) { + var myPcmn= this.myPcmn(); + myPcmn.addRow(); + + myPcmn.getCell(myPcmn._NbRows-1,0).innerHTML = $("class").value; + myPcmn.getCell(myPcmn._NbRows-1,1).innerHTML = $("lib").value; + //myPcmn.getCell(myPcmn._NbRows-1,2).innerHTML = $("parent").value; + myPcmn.getCell(myPcmn._NbRows-1,3).innerHTML = "delete"; + /* Does not work properly when deleting rows ... + * I need another way to get the row number. */ + var de = $("pcmn_del"+myPcmn._NbRows); + Event.observe(de,"click",function() { + var id=this.id.replace(new RegExp("[a-z_]*"),""); + myPcmn.delRow(id-1); + }); + + }, + getAccount:function() { + this.handle('pcmn','getAccount',''); + }, + ongetAccount:function(response) { + alert('Yes ongetAccount'); + }, + + getAccountList:function(nm) { + var params ={ + categorie : nm, + like: "lik" + }; + this.handle('pcmn','getAccountList',params); + }, + ongetAccountList:function (response) { + //alert('Yes ongetAccountist '+response.result[0].acc_id+" sz="+response.result.length); + var tb = this.myPcmn(); + //alert('ongetAccountist Cleaning before rows: '+tb._NbRows); + this.cleanTable(tb,tb._NbRows); + // alert('ongetAccountist Cleaning After rows: '+tb._NbRows); + for(var i = 0 ; idelete"; + } + }, + cleanTable : function(tb,sz) { + //var tb = this.myPcmn(); + for (var i = 0 ; i < sz; i++) { + tb.delRow(0); + } + }, + getBilan : function (period) { + var params ={ + 'period': period + }; + this.handle('pcmn','getBilan',params); + }, + ongetBilan : function(response) { + var tb = this.TableBilan(); + this.cleanTable(tb,tb._NbRows); + for(var i = 0 ; i parseFloat(it[3])) { + row.cells[4].style.color="red"; + } else { + row.cells[4].style.color="black"; + } + } + }, + getExercices : function() { + var params ={ + }; + var obj = this; + var url = this.url; + var SupplReq = new AEBW.Json(url); + SupplReq.handlefct('syndic','getExercices',params, + function(response) {obj.ongetExercices(response);}, + function() { alert("Failed getExercices");} + ); + }, + ongetExercices : function(response) { + var ct = new Date(); + var cb = $('cbBilanExercice'); + cb.options.length = 0; + for(var i = 0; i doQueryI($q.$w); + return array('acc_id' => $num,'acc_desc' =>'Added '.$libelle); + } + /** + * + */ + function getAccount() { + return array( + 'acc_id' => '401001', + 'acc_desc' => 'test', + 'acc_type' => 'Charge', + ); + } + /** + * + */ + function deleteAccount($num,$libelle,$type) { + return array('acc_id' => $num,'acc_desc' =>'Deleted '.$libelle); + } + /** + * + */ + function getAccountInfo($identity) { + global $AppDb; + if (isset($_SESSION['compta_org'])) { + require_once(dirname(__FILE__)."/../member/class.json_db_user.php"); + $u = new JsonUser( $AppDb['host'] , $AppDb['user'], $AppDb['password'],$AppDb['name']); + $res = $u->getOrg($_SESSION["compta_org"]); + $q = $res[0]; + return array('act' => $q[0] , + 'addr' => $q[1], + 'cp' => $q[2], + 'ville' => $q[3] , + 'region' => '', + 'pays' => '', + 'siret' => '0', + 'ape' => '0', + 'actv' => 'SYNDIC 25 RUE PFEFFINFER' + ); + } else + return array('act' => 'Not Found', + 'addr' => 'Not Defined', + 'cp' => '', + 'ville' => '', + 'region' => '', + 'pays' => '', + 'siret' => '0', + 'ape' => '0', + 'actv' => '' + ); + } + function getAccountList($category) { + $q="select a.acc_id ,a.acc_name from Account as a "; + $w=" WHERE a.acc_id LIKE '".$category."%';"; + $res = $this->doQueryI($q.$w); + $ident = $res['records']; + $arr = array(); + foreach ($ident as $row) + { + array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); + } + return $arr; + } + function getBilan($period) { + $q="CALL bilan('".$period."');"; + $res = $this->doQueryI($q); + return $res['records']; + + } + /** + * + */ + function initDatabase() { + } +} + +?> diff --git a/app/compta/pcmn.xml b/app/compta/pcmn.xml new file mode 100644 index 0000000..8db16cb --- /dev/null +++ b/app/compta/pcmn.xml @@ -0,0 +1,395 @@ + + + + + + Gestion comptable + + + + +

Gestion Comptable

+ +
+ + + + Société + + + + + Organisation + + + + + + + Exercice + + + + + + + + Lots + + + + +

+
+
+ + Type de compte + + + + +

+
+
+ +
+ +

Information generales

+ +
+ +
+
+
+ + + + Plan + + + + + + Type de comptes + + + + + + + + + + + + + + +

Plan comptable

+ + + + + + + + + + + + + + + + + + + + + + + + +
Titre du tableau
classLibelléType
+ + Actif + Passif + Produit + Charge + Banque + + + +
1Compte de testActif + +
+ +

+
+
+
+
+ + + Fournisseurs + + + + + Facture + + + + + + + Gestion + + + + + + + + + + + Nouvelle Facture + +
+ + + + + + + + +
+ +
+
+
+
+
+
+
+ + + Coproprietaires + + + + + Facture + + + + + + Gestion + + + + + + + + + + Vide + + + + + + + Eglise + + + + + Membres + + + + + + + Gestion + + + + + + + +

Status

+
+
+
+
+ + Bilan + + + + Exercice + + + + + + + + + + + + + +
Bilan de L'exercice
CompteLibelleDebitCreditSolde
10Immoblisation000
+ End Table +
+ +
+
+ + Syndic + + +

Information General du syndic

+
+ + General + +
+ +
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + diff --git a/app/compta/reports/decompte_charge.php b/app/compta/reports/decompte_charge.php new file mode 100644 index 0000000..7885389 --- /dev/null +++ b/app/compta/reports/decompte_charge.php @@ -0,0 +1,158 @@ +SetFillColor(255); + $this->SetFont('Arial','',10); + $this->Cell(50,5,"SYNDIC de Copropriete Fleury & Ebersold"); + $this->Ln(); + $this->Cell(50,5,"25 Rue Pfeffinger"); + $this->Ln(); + $this->Cell(50,5,"67100 STRASBOURG"); + $this->Ln(); + $this->Cell(50,5,"Tel: 06 70 43 73 80"); + + $this->SetFont('Arial','',14); + $this->SetFillColor(200); + $this->RoundedRect(120,10,75,10,5,"1234","DF"); + $this->Text(125,17,"Decompte de Charges"); + + } + + // Better table + function ImprovedTable($header, $data) + { + $i = 0; + // Column widths + $w = array(20, 35, 70, 30,30); + // Header + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); + $this->Ln(); + // Data + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR'); + $this->Cell($w[1],6,$row[1],'LR'); + $this->Cell($w[2],6,$row[2],'LR',0,'R'); + if ($row[3] == 0.0 ) { + $this->Cell($w[3],6,'','LR',0,'R'); + } else + $this->Cell($w[3],6,number_format($row[3],2),'LR',0,'R'); + if ($row[4] == 0.0) { + $this->Cell($w[4],6,'','LR',0,'R'); + } else + $this->Cell($w[4],6,number_format($row[4],2),'LR',0,'R'); + $this->Ln(); + if ($i++ > 30) + { + $i = 0; + $this->AddPage(); + $this->Ln(); + } + } + // Closing line + $this->Cell(array_sum($w),0,'','T'); + } + // + + function Solde($period,$compte) { + $w = array(125, 30,30); + $header = array('Solde','Debit','Credit'); + $q = 'CALL solde_compte_ss_af("'.$period.'","'.$compte.'",2);'; + $this->Ln(); + // Header +// for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); +// $this->Ln(); + + $res = $this->doQueryImpr($q); + if ($res['records'] != "Failed") { + $fields = $res['records'][0]; + $this->Cell($w[0],6,'Total','LR'); + $this->Cell($w[1],6,$fields[0],'LR',0,'R'); + $this->Cell($w[2],6,$fields[1],'LR',0,'R'); + $this->Ln(); + } else { + $this->Cell($w[0],6,'Total','LR'); + $this->Cell($w[1],6,'0','LR',0,'R'); + $this->Cell($w[2],6,'0','LR',0,'R'); + $this->Ln(); + } + $this->Cell(array_sum($w),0,'','T'); + $this->Ln(); + $this->Ln(); + if ($res['records'][0][2] > 0.0) { + $this->Cell(50,5,"Votre compte presente un solde crediteur de ".$res['records'][0][2]." euros"); + } else { + $this->Cell(50,5,"Votre compte presente un solde debiteur de ".abs($res['records'][0][2])." euros"); + } + + } + + function Copro($compte) { + $x = 120; + $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; + $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; + $res = $this->doQueryImpr($q.$qj); + $ident = $res['records'][0]; + $this->Text($x,40,"".$ident[0]." ".$ident[1] ); + $this->Text($x,46,"".$ident[2]); + $this->Text($x,52,"".$ident[3]." ".$ident[4]); + $this->setY(60); + } + + function Decompte($period,$compte) { + $header = array('Date','Reference','Designation','Debit','Credit'); + $q = 'CALL detail_compte_sans_solde_ss_af("'.$period.'","'.$compte.'",2);'; + //$q = 'select * from TransactionEntry;'; + $res = $this->doQueryImpr($q); + + //echo "

".$q."

"; + //print_r($res); + $this->SetFont('Arial','',10); + $this->AddPage(); + //$this->Cell(40,10,$q." Size of records:".sizeof($res['total_matches'])); + $this->Ln(); + $this->Ln(); + $this->Copro($compte); + $this->Ln(); + $this->ImprovedTable( $header,$res['records']); + //$this->AddPage(); + $this->Solde($period,$compte); + $this->Output(); + } +} + +$ldb =""; +if (isset($_SESSION['compta_db'])) { + $ldb = $_SESSION["compta_db"] ; +} else + $ldb = 'test'; +$p = new DecompteCharge($conf['auth']['mysql']['host'], + $conf['auth']['mysql']['user'], + $conf['auth']['mysql']['password'], + $ldb); + +if (isset($_GET['compte']) && isset($_GET['period'])) { + $p->Decompte($_GET['period'],$_GET['compte']); +} else { + $p->Decompte("2013","450001"); +} + +?> + diff --git a/app/compta/reports/recu_taxe.php b/app/compta/reports/recu_taxe.php new file mode 100644 index 0000000..ff8827a --- /dev/null +++ b/app/compta/reports/recu_taxe.php @@ -0,0 +1,195 @@ +SetFillColor(255); + $this->SetFont('Arial','',10); + $this->Cell(50,5,"CERFA N 11580*02 "); + $this->Text(140,14," Numéro d'ordre du reçu : "); + $this->Ln(); + $this->Cell(50,5,"Assiciation TICOS"); + $this->Ln(); + $this->Cell(50,5,"16 rue St Louis ..."); + $this->Ln(); + $this->Cell(50,5,"60100 STRASBOURG"); + $this->Ln(); + $this->Ln(); + $this->Ln(); + + $this->SetFont('Arial','',14); + $this->SetFillColor(220); + $this->RoundedRect(80,20,95,20,5,"1234","DF"); + $this->Text(85,27,"Reçu au titre de dons au oeuvres"); + $this->SetFont('Arial','',10); + $this->Text(85,32,"(Article 200 et 238 bis du Code Général des impôts)"); + + } + + // Better table + function ImprovedTable($header, $data) + { + $i = 0; + // Column widths + $w = array(20, 35, 70, 30,30); + // Header + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); + $this->Ln(); + // Data + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR'); + $this->Cell($w[1],6,$row[1],'LR'); + $this->Cell($w[2],6,$row[2],'LR',0,'R'); + if ($row[3] == 0.0 ) { + $this->Cell($w[3],6,'','LR',0,'R'); + } else + $this->Cell($w[3],6,number_format($row[3],2),'LR',0,'R'); + if ($row[4] == 0.0) { + $this->Cell($w[4],6,'','LR',0,'R'); + } else + $this->Cell($w[4],6,number_format($row[4],2),'LR',0,'R'); + $this->Ln(); + if ($i++ > 30) + { + $i = 0; + $this->AddPage(); + $this->Ln(); + } + } + // Closing line + $this->Cell(array_sum($w),0,'','T'); + } + // + + function Solde($period,$compte) { + $w = array(125, 30,30); + $header = array('Solde','Debit','Credit'); + $q = 'CALL solde_compte("'.$period.'","'.$compte.'");'; + $this->Ln(); + + $res = $this->doQueryImpr($q); + $this->Cell(array_sum($w),0,'','T'); + $this->Ln(); + $this->Ln(); + $c = new chiffreEnLettre(); + + $v = $res['records'][0][2]; + $this->Cell(10,5,"Le bénéficiaire reconnait avoir reçu au titre des dons et versements ouvrant droit à réduction d'impôt,"); + $this->Ln(); + $this->Cell(10,5,"la somme de :".$res['records'][0][2]." euros"); + $this->Ln(); + $this->Cell(50,5,"Somme en toutes lettres: ".$c->ConvNumberLetter($v,1,0)); + $this->Ln(); + $this->Cell(10,6,"Date du versement :"); + $this->Ln(); + $this->Cell(10,6,"Mode du versement :"); + + } + function Beneficiaire($compte) { + $x = 10; + $this->SetFont('Arial','',12); + $this->Cell(10,6,"Bénéficiaire des dons"); + $this->SetFont('Arial','',10); + $this->Ln(); + $this->Ln(); + $y = $this->getY(); + $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; + $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; + $res = $this->doQueryImpr($q.$qj); + $ident = $res['records'][0]; + $this->Text($x,$y ,"Nom : "); + $this->Text($x+25,$y,"".$ident[0]." ".$ident[1] ); + $this->Text($x,$y+6 ,"Adresse : "); + $this->Text($x+25,$y+6,"".$ident[2]); + $this->Text($x,$y +12,"Code Postal : "); + $this->Text($x+25,$y +12,"".$ident[3]." ".$ident[4]); + $this->setY($y+18); + } + + + function Donateur($compte) { + $x = 10; + $this->SetFont('Arial','',12); + $this->Cell(10,6,"Donateur"); + $this->SetFont('Arial','',10); + $this->Ln(); + $this->Ln(); + $y = $this->getY(); + $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; + $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; + $res = $this->doQueryImpr($q.$qj); + $ident = $res['records'][0]; + $this->Text($x,$y ,"Nom : "); + $this->Text($x+25,$y,"".$ident[0]." ".$ident[1] ); + $this->Text($x,$y+6 ,"Adresse : "); + $this->Text($x+25,$y+6,"".$ident[2]); + $this->Text($x,$y +12,"Code Postal : "); + $this->Text($x+25,$y +12,"".$ident[3]." ".$ident[4]); + $this->setY($y+18); + } + + + function Copro($compte) { + $x = 120; + $y = 60; + $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; + $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; + $res = $this->doQueryImpr($q.$qj); + $ident = $res['records'][0]; + $this->Text($x,$y,"".$ident[0]." ".$ident[1] ); + $this->Text($x,$y+6,"".$ident[2]); + $this->Text($x,$y +12,"".$ident[3]." ".$ident[4]); + $this->setY($y+18); + } + + function Decompte($period,$compte) { + $header = array('Date','Reference','Designation','Debit','Credit'); + $q = 'CALL detail_compte_sans_solde("'.$period.'","'.$compte.'");'; + //$q = 'select * from TransactionEntry;'; + $res = $this->doQueryImpr($q); + + //echo "

".$q."

"; + //print_r($res); + $this->SetFont('Arial','',10); + $this->AddPage(); + //$this->Cell(40,10,$q." Size of records:".sizeof($res['total_matches'])); + $this->Ln(); + $this->Ln(); + $this->Copro($compte); + $this->Ln(); + $this->Beneficiaire($compte); + $this->Donateur($compte); + //$this->ImprovedTable( $header,$res['records']); + //$this->AddPage(); + $this->Solde($period,$compte); + $this->Output(); + } +} + +//$p = new DecompteCharge('localhost','root','admin','test'); +$p = new DecompteCharge($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'],'test'); + +if (isset($_GET['compte']) && isset($_GET['period'])) { + $p->Decompte($_GET['period'],$_GET['compte']); +} else { + $p->Decompte("2013","450001"); +} + +?> + diff --git a/app/compta/reports/syndic_annexe1.php b/app/compta/reports/syndic_annexe1.php new file mode 100644 index 0000000..eb0e821 --- /dev/null +++ b/app/compta/reports/syndic_annexe1.php @@ -0,0 +1,689 @@ +pdf = new TCPDF('L',PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + $this->period = date("Y"); + } + function __destruct() { + } + + function getAccountList($category) { + $q="select a.acc_id ,a.acc_name from Account as a "; + $w=" WHERE a.acc_id LIKE '".$category."%' and not a.acc_id='450000';"; + $res = $this->doQueryI($q.$w); + $ident = $res['records']; + $arr = array(); + foreach ($ident as $row) + { + array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); + } + return $arr; + } + function getAccountListWhere($where) { + $q="select a.acc_id ,a.acc_name from Account as a "; + $w=" WHERE ".$where.";"; + $res = $this->doQueryI($q.$w); + $ident = $res['records']; + $arr = array(); + foreach ($ident as $row) + { + array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); + } + return $arr; + } + + function fillTresorerie($period,&$total) + { + $cpts = array('50','51','53'); + // Retrieve banque accounts + $result = array(); + foreach($cpts as $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; + $res = $this->doQueryI($q); + $result[$compte] = $res['records'][0][2]; + $total += ($result[$compte]*-1); + } + $str = ($result['50'])."

".number_format(($result['51']*-1),2)."


".$result['53']; + return $str; + // Retrieve Caisse + // + } + function fillProvision($period) { + $cpts = array('102','103','1031','1032','1033','131','12'); + $result = array(); + foreach($cpts as $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; + $res = $this->doQueryI($q); + $result[$compte] = $res['records'][0][2]; + } + $str = $result['102']."
".$result['103']."
".$result['1031']."
".$result['1032']."
".$result['1033']."
"; + $str= $str.$result['131']."
".$result[12]; + return $str; + + } + function fillCopro(&$copro,$period,$key) { + foreach($copro as $k => $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; + $res = $this->doQueryI($q); + $copro[$k][$key] = $res['records'][0][2]; + } + } + function fillTier(&$cpts,$period,$key) { + foreach($cpts as $k => $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$k."%\"');"; + $res = $this->doQueryI($q); + $cpts[$k][$key] = $res['records'][0][2]; + } + } + function fillAccounts(&$cpts,$period,$key) { + foreach($cpts as $k => $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; + $res = $this->doQueryI($q); + $cpts[$k][$key] = $res['records'][0][2]; + $cpts[$k][$key."_debit"] = $res['records'][0][0]; + $cpts[$k][$key."_credit"] = $res['records'][0][1]; + } + } + + function tableau() { + $tiers = array("40" => array('acc_id' => 40), + '42' => array('acc_id' => 42), + '43' => array('acc_id' => 43), + '44' => array('acc_id' => 44), + '46' => array('acc_id' => 46), + '47' => array('acc_id' => 47), + '48' => array('acc_id' => 48), + '49' => array('acc_id' => 49) + ); + $pdf = $this->pdf; + $total_tresorerie = 0.0; + $total_tresorerie_clos = 0.0; + $tresorerie = $this->fillTresorerie($this->period-1,$total_tresorerie); + $tresorerie_clos = $this->fillTresorerie($this->period,$total_tresorerie_clos ); + $prov = $this->fillProvision($this->period-1); + $prov_clos = $this->fillProvision($this->period); + $copro = $this->getAccountList("45"); + $this->fillCopro($copro,$this->period-1,"solde"); + $this->fillCopro($copro,$this->period,"solde_clos"); + $this->fillTier($tiers,$this->period-1,"solde"); + $this->fillTier($tiers,$this->period,"solde_clos"); + $copro_str = ""; + $copro_creance = ""; + $copro_dette = ""; + $copro_creance_clos = ""; + $copro_dette_clos = ""; + $tiers_creance =""; + $tiers_creance_clos =""; + $tiers_dette =""; + $tiers_dette_clos =""; + $total_creance = 0.0; + $total_creance_clos = 0.0; + $total_dette =0.0; + $total_dette_clos =0.0; + foreach($copro as $item) { + $copro_str = $copro_str.$item['acc_id']." ".$item['acc_desc']."
"; + if ($item['solde'] > 0 ) { + $copro_creance = $copro_creance."0.0"."
"; + $copro_dette = $copro_dette.number_format($item['solde'],2)."
"; + $total_dette += $item['solde']; + } else { + $copro_creance = $copro_creance.number_format($item['solde']*-1,2)."
"; + $total_creance += $item['solde']*-1; + $copro_dette = $copro_dette."0.0"."
"; + } + if ($item['solde_clos'] > 0 ) { + $copro_creance_clos = $copro_creance_clos."0.0"."
"; + $copro_dette_clos = $copro_dette_clos.number_format($item['solde_clos'],2)."
"; + $total_dette_clos += $item['solde_clos']; + } else { + $copro_creance_clos = $copro_creance_clos.number_format($item['solde_clos']*-1,2)."
"; + $total_creance_clos += $item['solde_clos']*-1; + $copro_dette_clos = $copro_dette_clos."0.0"."
"; + } + + } + // Fill Comtpes de tiers + foreach ($tiers as $k => $compte) { + if ($compte['solde'] > 0.0 ) { + $tiers[$k]['solde_str'] = $compte["solde"]; + $total_dette += $compte['solde']; + } else { + $tiers[$k]['solde_str'] = "0.0"; + $total_creance += $compte['solde']*-1; + } + } + foreach ($tiers as $k => $compte) { + if ($compte['solde_clos'] > 0.0 ) { + $tiers[$k]['dette_clos_str'] = $compte["solde_clos"]; + $tiers[$k]['creance_clos_str'] = "0.0"; + $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; + $total_dette_clos += $compte['solde_clos']; + } else { + $tiers[$k]['dette_clos_str'] = "0.0"; + $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; + $total_creance_clos += $compte['solde_clos']*-1; + } + } + $total_g_creance = $total_creance + $total_tresorerie; + $total_g_creance_clos = $total_creance_clos + $total_tresorerie_clos; + $tbl = << + I- SITUATION FINANCIERE ET TRESORERIE +  
Trésorerie
+ 50 Fonds placés
+
+ 51 Banques ou fonds disponibles en banque
+
+
+ 53 Caisse
+
+ + Exercice prédédent approuvé + Exercice Clos +  
Provisions et avances
+ 102 Provisions pour travaux
+ 103 Avances
+ 1031 Avances de trésorerie
+ 1032 Avances travaux
+ 1033 Autres avances
+ 131 Subventions et instance d'affectation
+ 12 Solde en attente sur travaux ou opérations exceptionnel +
+ + Exercice prédédent approuvé + Exercice Clos + +  
+ $tresorerie + + +  
+ $tresorerie_clos + +  
+ $prov
+
+ +  
+ $prov_clos
+
+ Trésorerie disponible total{$total_tresorerie}{$total_tresorerie_clos}Total + II - CREANCESDETTES + +  
+ + 45 Coproriétaires - sommes exigibles restant à recevoir
+ $copro_str +
+ Comptes de Tiers
+ 42 Autres créances
+ 43 Autres créances
+ 44 Autres créances
+ 46 Débiteurs divers
+ 47 Comptes d'attente
+ 48 Comptes de régularisation
+
+ + Exercice prédédent approuvé + Exercice Clos +  
+ + 45 Copropriétaires - excédents versés
+ $copro_str +
+ Comptes de Tiers
+ 40 fournisseurs
+ 42 Autres dettes
+ 43 Autres dettes
+ 44 Autres dettes
+ 46 Créditeurs divers
+ 47 Compte d'attentes
+ 48 Comptes de régularisation
+ 49 Dépréciation des comptes de tiers
+
+ + Exercice prédédent approuvé + Exercice Clos + + + + + +
+ $copro_creance +

+ {$tiers[42]["solde_str"]}
+ {$tiers[43]["solde_str"]}
+ {$tiers[44]["solde_str"]}
+ {$tiers[46]["solde_str"]}
+ {$tiers[47]["solde_str"]}
+ {$tiers[48]["solde_str"]}
+
+ +
+ $copro_creance_clos +

+ {$tiers[42]["creance_clos_str"]}
+ {$tiers[43]["creance_clos_str"]}
+ {$tiers[44]["creance_clos_str"]}
+ {$tiers[46]["creance_clos_str"]}
+ {$tiers[47]["creance_clos_str"]}
+ {$tiers[48]["creance_clos_str"]}
+
+ +
+ $copro_dette +

+ {$tiers[40]["solde_str"]}
+ {$tiers[42]["solde_str"]}
+ {$tiers[43]["solde_str"]}
+ {$tiers[44]["solde_str"]}
+ {$tiers[46]["solde_str"]}
+ {$tiers[47]["solde_str"]}
+ {$tiers[48]["solde_str"]}
+ {$tiers[49]["solde_str"]}
+ +
+ +
+ $copro_dette_clos +

+ {$tiers[40]["dette_clos_str"]}
+ {$tiers[42]["dette_clos_str"]}
+ {$tiers[43]["dette_clos_str"]}
+ {$tiers[44]["dette_clos_str"]}
+ {$tiers[46]["dette_clos_str"]}
+ {$tiers[47]["dette_clos_str"]}
+ {$tiers[48]["dette_clos_str"]}
+ {$tiers[49]["dette_clos_str"]}
+
+ Total II{$total_creance}{$total_creance_clos}Total II + {$total_dette}{$total_dette_clos} + Total général (I) + (II) + {$total_g_creance}{$total_g_creance_clos}Total général (I) + (II)0.00.0 + Emprunt: montant restant du + +EOF; + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $tbl, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + } + + function annexe2() { + $width = 160; + $pdf = $this->pdf; + $charge_str =""; + $charge_exercice_str = ""; + $charge_exercice_clos_str = ""; + + $chgr_str =""; + $prod_str =""; + $prod_exercice_str = ""; + $prod_exercice_clos_str = ""; + $st = array(); + $charge = $this->getAccountListWhere("a.acc_id like '60%' or a.acc_id like '61%' or a.acc_id like '62%' or a.acc_id like '63%'" ); + $this->fillAccounts($charge,$this->period-1,"solde"); + $this->fillAccounts($charge,$this->period,"solde_clos"); + // Handler charges + foreach( $charge as $k => $cpt) { + $charge_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,32)."
"; + $charge_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + $st['charge'] += $cpt["solde_debit"]; + $charge_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + $st['charge_clos'] += $cpt["solde_clos_debit"]; + } + // Handle Charge exceptionnel + $chrg_exp = $this->getAccountListWhere("a.acc_id REGEXP '(661.*|671.*|672.*)'"); + $this->fillAccounts($chrg_exp,$this->period-1,"solde"); + $this->fillAccounts($chrg_exp,$this->period,"solde_clos"); + foreach( $chrg_exp as $k => $cpt) { + $chrg_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,31)."
"; + $chrg_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + //$st['charge'] += $cpt["solde_debit"]; + $charge_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + //$st['charge_clos'] += $cpt["solde_clos_debit"]; + } + + // Handler produit + $prod = $this->getAccountListWhere("a.acc_id REGEXP '(^701.*|^71.*)'"); + $this->fillAccounts($prod,$this->period-1,"solde"); + $this->fillAccounts($prod,$this->period,"solde_clos"); + foreach( $prod as $k => $cpt) { + $prod_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,32)."
"; + $prod_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + $prod_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + } + + // Handle produit exceptionnel + $prod_exp = $this->getAccountListWhere("a.acc_id REGEXP '(^70[234].*|^71[123468].*|^78.*)'"); + $this->fillAccounts($prod_exp,$this->period-1,"solde"); + $this->fillAccounts($prod_exp,$this->period,"solde_clos"); + foreach( $prod_exp as $k => $cpt) { + $prod_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,32)."
"; + $prod_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + $prod_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + } +$html =<<Comptes de gestion général de l'exercice clos réalisé (N) du .... au .... +

et budget prévisionnel de l'exercice (N+2) du .... au ....

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CHARGES POUR OPERATIONS COURANTESPRODUITS POUR OPERATIONS COURANTES
Pour Approbation des comptesPour le vote du budget prévisonnelPour Approbation des comptesPour le vote du budget prévisonnel
Exercice précédent
approuvé
N-1
Exercice clos
Budge voté
N
Exercice Clos réalisé
à approuver
N
Budget prévisionnel
en cours voté
N+1
Budget prévisonneel
à voter
N+2
Exercice
Precedent
N-1
Exercice
clos budge
N
Exercice clos
réaliser à
N
Budget
Prévisionnel en
N+1
Budget prévisionnel
à voter
N+2

+ 60 Achats de matières et fournitures
+ {$charge_str} +
+

+
+ {$charge_exercice_str} +

+
+

+
+ {$charge_exercice_clos_str} +
+ +
+ {$prod_str} +

+ {$prod_exercice_str} +
+
+ {$prod_exercice_clos_str} +
+ +
Sous-total + + + {$st['charge']} + + + {$st['charge_clos']} + Sous-total
Solde(excèdent s opérations courantes affecté au + coprorpiétaires) + + + N/C + + N/CN/CSolde(insuffisance s/opérations courantes affectée aux corpropriétaires)N/CN/CN/C
Total I + + + + + Total I
+ CHARGES POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES + + + + PRODUITS POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES +

+ {$chrg_exp_str} +
+

+

+

+

+ {$prod_exp_str}

+ {$prod_exp_exercice_clos_str} +
Solde(excédent) + + + + + Solde(insuffisant)
Total II + + + + + Total II
+ +EOF; + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + } + /** + * + */ + function test() { + $pdf = $this->pdf; + $pdf->SetCreator(PDF_CREATOR); + $pdf->SetAuthor('EBERSOLD André'); + $pdf->SetTitle('ANNEXE N 1'); + $pdf->SetSubject('Etat Financier après répartition au'); + $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + + // set default header data + $h = "SYNDIC 25 RUE PFEFFINGER \n67100 STRASBOURG"; + $pdf->SetHeaderData(/*PDF_HEADER_LOGO*/"", 0, 'SYNDICAT DES COPRORPIETAIRES ANNEXE 1', $h, array(0,64,255), array(0,64,128)); + $pdf->setFooterData($tc=array(0,64,0), $lc=array(0,64,128)); + +// set header and footer fonts + $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); + $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font + $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins + $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); + $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); + $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks + $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor + $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings + //$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set default font subsetting mode + $pdf->setFontSubsetting(true); + +// Set font +// dejavusans is a UTF-8 Unicode font, if you only need to +// print standard ASCII chars, you can use core fonts like +// helvetica or times to reduce file size. + $pdf->SetFont('dejavusans', '', 14, '', true); + +// Add a page +// This method has several options, check the source code documentation for more information. + $pdf->AddPage(); +$html = <<Etat financier après répartition au (date de clôture de l'exercice) +EOD; + $pdf->setHeaderTemplateAutoreset(true); +// Print text using writeHTMLCell() + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + $pdf->SetFont('dejavusans', '', 8, '', true); + $this->tableau() ; + $pdf->SetHeaderData(/*PDF_HEADER_LOGO*/"", 0, 'SYNDICAT DES COPRORPIETAIRES ANNEXE 2', $h, array(0,64,255), array(0,64,128)); + $pdf->AddPage(); + $this->annexe2() ; + } + + function Output($fn,$m) { + $this->pdf->Output($fn,$m); + } +} +/** + * For test purpose + */ +$ldb =""; +if (isset($_SESSION['compta_db'])) { + $ldb = $_SESSION["compta_db"] ; +} else + $ldb = 'test'; +$t = new annexe1($conf['auth']['mysql']['host'], + $conf['auth']['mysql']['user'], + $conf['auth']['mysql']['password'], + $ldb); + +$t->test(); +$t->Output('annexe1.pdf', 'I'); + +/** + vim:et:sw=2:ts=2:fileencoding=utf-8 +*/ +?> diff --git a/app/compta/reports/syndic_annexes.php b/app/compta/reports/syndic_annexes.php new file mode 100644 index 0000000..c0e65e6 --- /dev/null +++ b/app/compta/reports/syndic_annexes.php @@ -0,0 +1,1124 @@ +pdf = new TCPDF('P',PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + $this->period = date("Y"); + } + function __destruct() { + } + + function getPeriod($per) { + $q = "SELECT per_begin,per_end FROM Period where per_string ='".$per."';"; + $r = $this->doQueryI($q.$w); + $this->per_begin = $r['records'][0][0]; + $this->per_end = $r['records'][0][1]; + } + + function getAccountList($category) { + $q="select a.acc_id ,a.acc_name from Account as a "; + $w=" WHERE a.acc_id LIKE '".$category."%' and not a.acc_id='450000';"; + $res = $this->doQueryI($q.$w); + $ident = $res['records']; + $arr = array(); + foreach ($ident as $row) + { + array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); + } + return $arr; + } + function getAccountListWhere($where) { + $q="select a.acc_id ,a.acc_name from Account as a "; + $w=" WHERE ".$where.";"; + $res = $this->doQueryI($q.$w); + $ident = $res['records']; + $arr = array(); + foreach ($ident as $row) + { + array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); + } + return $arr; + } + function getBudgetListWhere($anne,$where) { + $q=<<doQueryI($q); + + return $res['records']; + } + + function fillTresorerie($period,&$total) + { + $cpts = array('50','51','53'); + // Retrieve banque accounts + $result = array(); + foreach($cpts as $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; + $res = $this->doQueryI($q); + $result[$compte] = $res['records'][0][2]; + $total += ($result[$compte]*-1); + } + $str = ($result['50'])."

".number_format(($result['51']*-1),2)."


".$result['53']; + return $str; + // Retrieve Caisse + // + } + function fillProvision($period) { + $cpts = array('102','103','1031','1032','1033','131','12'); + $result = array(); + foreach($cpts as $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; + $res = $this->doQueryI($q); + $result[$compte] = $res['records'][0][2]; + } + $str = $result['102']."
".$result['103']."
".$result['1031']."
".$result['1032']."
".$result['1033']."
"; + $str= $str.$result['131']."
".$result[12]; + return $str; + + } + function fillCopro(&$copro,$period,$key) { + foreach($copro as $k => $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; + $res = $this->doQueryI($q); + $copro[$k][$key] = $res['records'][0][2]; + } + } + function fillTier(&$cpts,$period,$key) { + foreach($cpts as $k => $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$k."%\"');"; + $res = $this->doQueryI($q); + $cpts[$k][$key] = $res['records'][0][2]; + } + } + function fillAccounts(&$cpts,$period,$key) { + foreach($cpts as $k => $compte) { + $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; + $res = $this->doQueryI($q); + $cpts[$k][$key] = $res['records'][0][2]; + $cpts[$k][$key."_debit"] = $res['records'][0][0]; + $cpts[$k][$key."_credit"] = $res['records'][0][1]; + } + } + function fillAccountsWhere (&$cpts,$period,$where,$res_key) { + $q =<<doQueryI($q); + foreach ($res['records'] as $line) { + $cpts[$line[0]][$res_key] = $line[2]; + $cpts[$line[0]]['name'] = $line[1]; + $cpts[$line[0]][$period]['name'] = $line[1]; + $cpts[$line[0]][$period]['pc'] = $line[3]; + $cpts[$line[0]][$period.$line[3].$res_key] = $line[2]; + } + //WHERE a.acc_id REGEXP '(^6.*)' + } + function fillBudget(&$cpts,$period,$key) { + foreach($cpts as $k => $compte) { + // $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; + $q=<<doQueryI($q); + $cpts[$k][$key] = $res['records'][0][0]; + } + } + function fillBudgetListWhere(&$cpts,$period,$where,$key) { + $q=<<doQueryI($q); + + foreach ($res['records'] as $b) { + $acc = $b[0]; + $e = $period.$b[3].$key; + error_log("SET: ".$b[0]." ".$period.$b[3].$key." =".$b[2]); + $cpts[$acc][$e] = $b[2]; + $cpts[$acc][$period][$key.'_pc'] = $b[3]; + // $cpts["".$b[0]][$period][$b[3]][$key] = $b[2]; + } + + } + + function annexe1() { + $width = 420; + $tiers = array("40" => array('acc_id' => 40), + '42' => array('acc_id' => 42), + '43' => array('acc_id' => 43), + '44' => array('acc_id' => 44), + '46' => array('acc_id' => 46), + '47' => array('acc_id' => 47), + '48' => array('acc_id' => 48), + '49' => array('acc_id' => 49) + ); + $pdf = $this->pdf; + $total_tresorerie = 0.0; + $total_tresorerie_clos = 0.0; + $tresorerie = $this->fillTresorerie($this->period-1,$total_tresorerie); + $tresorerie_clos = $this->fillTresorerie($this->period,$total_tresorerie_clos ); + $prov = $this->fillProvision($this->period-1); + $prov_clos = $this->fillProvision($this->period); + $copro = $this->getAccountList("45"); + $this->fillCopro($copro,$this->period-1,"solde"); + $this->fillCopro($copro,$this->period,"solde_clos"); + $this->fillTier($tiers,$this->period-1,"solde"); + $this->fillTier($tiers,$this->period,"solde_clos"); + $copro_str = ""; + $copro_creance = ""; + $copro_dette = ""; + $copro_creance_clos = ""; + $copro_dette_clos = ""; + $tiers_creance =""; + $tiers_creance_clos =""; + $tiers_dette =""; + $tiers_dette_clos =""; + $total_creance = 0.0; + $total_creance_clos = 0.0; + $total_dette =0.0; + $total_dette_clos =0.0; + foreach($copro as $item) { + $copro_str = $copro_str.$item['acc_id']." ".$item['acc_desc']."
"; + if ($item['solde'] > 0 ) { + $copro_creance = $copro_creance."0.0"."
"; + $copro_dette = $copro_dette.number_format($item['solde'],2)."
"; + $total_dette += $item['solde']; + } else { + $copro_creance = $copro_creance.number_format($item['solde']*-1,2)."
"; + $total_creance += $item['solde']*-1; + $copro_dette = $copro_dette."0.0"."
"; + } + if ($item['solde_clos'] > 0 ) { + $copro_creance_clos = $copro_creance_clos."0.0"."
"; + $copro_dette_clos = $copro_dette_clos.number_format($item['solde_clos'],2)."
"; + $total_dette_clos += $item['solde_clos']; + } else { + $copro_creance_clos = $copro_creance_clos.number_format($item['solde_clos']*-1,2)."
"; + $total_creance_clos += $item['solde_clos']*-1; + $copro_dette_clos = $copro_dette_clos."0.0"."
"; + } + + } + // Fill Comtpes de tiers + foreach ($tiers as $k => $compte) { + if ($compte['solde'] > 0.0 ) { + $tiers[$k]['solde_str'] = $compte["solde"]; + $total_dette += $compte['solde']; + } else { + $tiers[$k]['solde_str'] = "0.0"; + $total_creance += $compte['solde']*-1; + } + } + foreach ($tiers as $k => $compte) { + if ($compte['solde_clos'] > 0.0 ) { + $tiers[$k]['dette_clos_str'] = $compte["solde_clos"]; + $tiers[$k]['creance_clos_str'] = "0.0"; + $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; + $total_dette_clos += $compte['solde_clos']; + } else { + $tiers[$k]['dette_clos_str'] = "0.0"; + $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; + $total_creance_clos += $compte['solde_clos']*-1; + } + } + $total_g_creance = $total_creance + $total_tresorerie; + $total_g_creance_clos = $total_creance_clos + $total_tresorerie_clos; + $tbl = << + I- SITUATION FINANCIERE ET TRESORERIE +  
Trésorerie
+ 50 Fonds places
+
+ 51 Banques ou fonds disponibles en banque
+
+
+ 53 Caisse
+

+ + Exercice précédent approuvé + Exercice Clos + +  
+ $tresorerie +
+
+
+
+ + +  
+ $tresorerie_clos +
+
+
+
+ + + Trésorerie disponible total{$total_tresorerie}{$total_tresorerie_clos} + +  
Provisions et avances
+ 102 Provisions pour travaux
+ 103 Avances
+ 1031 Avances de trésorerie
+ 1032 Avances travaux
+ 1033 Autres avances
+ 131 Subventions et instance d'affectation
+ 12 Solde en attente sur travaux ou opérations exceptionnel +
+ + Exercice précédent approuvé + Exercice Clos + +   +
+ {$prov}
+
+ +   +
+ {$prov_clos}
+
+ + + Total II + II - CREANCES +  
+ + 45 Copropriétaires - sommes exigibles restant percevoir
+ $copro_str +
+ Comptes de Tiers
+ 42 Autres créances
+ 43 Autres créances
+ 44 Autres créances
+ 46 Dbiteurs divers
+ 47 Comptes d'attente
+ 48 Comptes de régularisation
+
+ + Exercice précédent approuvé + Exercice Clos + + + + +
+ $copro_creance +

+ {$tiers[42]["solde_str"]}
+ {$tiers[43]["solde_str"]}
+ {$tiers[44]["solde_str"]}
+ {$tiers[46]["solde_str"]}
+ {$tiers[47]["solde_str"]}
+ {$tiers[48]["solde_str"]}
+
+ + +
+ $copro_creance_clos +

+ {$tiers[42]["creance_clos_str"]}
+ {$tiers[43]["creance_clos_str"]}
+ {$tiers[44]["creance_clos_str"]}
+ {$tiers[46]["creance_clos_str"]}
+ {$tiers[47]["creance_clos_str"]}
+ {$tiers[48]["creance_clos_str"]}
+
+ + Total III{$total_creance}{$total_creance_clos} + + + + + DETTES + + +  
+ + 45 Copropriétaires - éxcédents versés
+ $copro_str +
+ Comptes de Tiers
+ 40 fournisseurs
+ 42 Autres dettes
+ 43 Autres dettes
+ 44 Autres dettes
+ 46 Créditeurs divers
+ 47 Compte d'attentes
+ 48 Comptes de régularisation
+ 49 Dépréciation des comptes de tiers
+
+ + Exercice précédent approuvé + Exercice Clos + + + +
+ $copro_dette +

+ {$tiers[40]["solde_str"]}
+ {$tiers[42]["solde_str"]}
+ {$tiers[43]["solde_str"]}
+ {$tiers[44]["solde_str"]}
+ {$tiers[46]["solde_str"]}
+ {$tiers[47]["solde_str"]}
+ {$tiers[48]["solde_str"]}
+ {$tiers[49]["solde_str"]}
+ +
+ +
+ $copro_dette_clos +

+ {$tiers[40]["dette_clos_str"]}
+ {$tiers[42]["dette_clos_str"]}
+ {$tiers[43]["dette_clos_str"]}
+ {$tiers[44]["dette_clos_str"]}
+ {$tiers[46]["dette_clos_str"]}
+ {$tiers[47]["dette_clos_str"]}
+ {$tiers[48]["dette_clos_str"]}
+ {$tiers[49]["dette_clos_str"]}
+
+ + + Total IV + {$total_dette}{$total_dette_clos} + + Total général (I) + (III) + {$total_g_creance}{$total_g_creance_clos} + Total général (II) + (IV)0.00.0 + + Emprunt: montant restant du + +EOF; + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $tbl, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + } + + function annexe2() { + $sl = 60; + $width = 320; + $pdf = $this->pdf; + $charge_str =""; + $charge_exercice_str = ""; + $charge_exercice_clos_str = ""; + + $chgr_str =""; + $prod_str =""; + $prod_exercice_str = ""; + $prod_exercice_clos_str = ""; + $st = array('charge' => 0.0 , 'charge_clos' => 0.0, + 'chrg_exp' => 0.0 , 'chrg_exp_clos' => 0.0 ,'chrg_exp_budget' => 0.0, + 'poc' => 0.0 , 'poc_clos' => 0.0 , 'poc_budget' => 0.0 ,'poc_budget_n1' => 0.0 , 'poc_budget_n2' => 0.0 + ); + $charge = $this->getAccountListWhere("a.acc_id like '60%' or a.acc_id like '61%' or a.acc_id like '62%' or a.acc_id like '63%'" ); + $this->fillAccounts($charge,$this->period-1,"solde"); + $this->fillAccounts($charge,$this->period,"solde_clos"); + // Handler charges + foreach( $charge as $k => $cpt) { + $charge_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; + $charge_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + $st['charge'] += $cpt["solde_debit"]; + $charge_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + $st['charge_clos'] += $cpt["solde_clos_debit"]; + } + // Handle Charge exceptionnel + $chrg_exp = $this->getAccountListWhere("a.acc_id REGEXP '(^661.*|^671.*|^673.*|^672.*|^677.*|^68.*)'"); + $this->fillAccounts($chrg_exp,$this->period-1,"solde"); + $this->fillAccounts($chrg_exp,$this->period,"solde_clos"); + $this->fillBudget($chrg_exp,$this->period,"budget"); + $chrg_exp_str =""; + $chrg_exp_exercice_str =""; + $chrg_exp_exercice_clos_str =""; + $chrg_exp_exercice_budget =""; + foreach( $chrg_exp as $k => $cpt) { + $chrg_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; + $chrg_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + $chrg_exp_exercice_budget .= number_format($cpt["budget"],2)."
"; + $st['chrg_exp_budget'] += $cpt["budget"]; + $st['chrg_exp'] += $cpt["solde_debit"]; + $chrg_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + $st['chrg_exp_clos'] += $cpt["solde_clos_debit"]; + } + + // Handler produit + $prod = $this->getAccountListWhere("a.acc_id REGEXP '(^701.*|^71.*)'"); + $prod_str =""; + $prod_exercice_str =""; + $prod_exercice_budget =""; + $prod_exercice_budget_n1 =""; + $prod_exercice_budget_n2 =""; + $prod_exercice_clos_str =""; + + $this->fillAccounts($prod,$this->period-1,"solde"); + $this->fillAccounts($prod,$this->period,"solde_clos"); + $this->fillBudget($prod,$this->period,"budget"); + $this->fillBudget($prod,$this->period+1,"budget_n1"); + $this->fillBudget($prod,$this->period+2,"budget_n2"); + foreach( $prod as $k => $cpt) { + $prod_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; + $prod_exercice_str .= number_format($cpt["solde_credit"],2)."
"; + $st['poc'] += $cpt["solde_credit"]; + $prod_exercice_budget .= number_format($cpt["budget"],2)."
"; + $st['poc_budget'] += $cpt["budget"]; + $prod_exercice_budget_n1 .= number_format($cpt["budget_n1"],2)."
"; + $st['poc_budget_n1'] += $cpt["budget_n1"]; + $prod_exercice_budget_n2 .= number_format($cpt["budget_n2"],2)."
"; + $st['poc_budget_n2'] += $cpt["budget_n2"]; + $prod_exercice_clos_str .= number_format($cpt["solde_clos_credit"],2)."
"; + $st['poc_clos'] += $cpt["solde_clos_credit"]; + } + + // Handle produit exceptionnel + $prod_exp = $this->getAccountListWhere("a.acc_id REGEXP '(^70[234].*|^71[123468].*|^78.*)'"); + $prod_exp_str = ""; + $prod_exp_exercice_str = ""; + $prod_exp_exercice_clos_str = ""; + $prod_exp_exercice_budget = ""; + $this->fillAccounts($prod_exp,$this->period-1,"solde"); + $this->fillAccounts($prod_exp,$this->period,"solde_clos"); + $this->fillBudget($prod_exp,$this->period,"budget"); + foreach( $prod_exp as $k => $cpt) { + $prod_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; + $prod_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; + $prod_exp_exercice_budget .= number_format($cpt["budget"],2)."
"; + $prod_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; + } + // Handler Budget Charge N + $budget_n_str = ""; + $budget_n_amount = ""; + $budget_n_total = 0.0; + $budget_n = $this->getBudgetListWhere($this->period,"a.acc_id REGEXP '(^60[123456].*|^61.*|^62.*)'"); + foreach ($budget_n as $k => $v) { + $budget_n_str .= $v[0]."
"; + $budget_n_amount .= number_format($v[2],2)."
"; + $budget_n_total += $v[2]; + } + $budget_n_total = number_format($budget_n_total,2); + // Handler Budget Charge N 1 + $budget_n1_str = ""; + $budget_n1_amount = ""; + $budget_n1_total = 0.0; + $budget_n1 = $this->getBudgetListWhere($this->period+1,"a.acc_id REGEXP '(^60[123456].*|^61.*|^62.*)'"); + foreach ($budget_n1 as $k => $v) { + $budget_n1_str .= $v[0]."
"; + $budget_n1_amount .= number_format($v[2],2)."
"; + $budget_n1_total += $v[2]; + } + $budget_n1_total = number_format($budget_n1_total,2); + // Handler Budget Charge N 1 + $budget_n2_str = ""; + $budget_n2_amount = ""; + $budget_n2_total = 0.0; + $budget_n2 = $this->getBudgetListWhere($this->period+2,"a.acc_id REGEXP '(^60[123456].*|^61.*|^62.*)'"); + foreach ($budget_n2 as $k => $v) { + $budget_n2_str .= $v[0]."
"; + $budget_n2_amount .= number_format($v[2],2)."
"; + $budget_n2_total += $v[2]; + } + $budget_n2_total = number_format($budget_n2_total,2); + + + +$html =<<Annexe 2 +

Comptes de gestion général de l'exercice clos réalisé (N) du {$this->per_begin} au {$this->per_end}

+

et budget previsionnel de l'exercice (N+2) du .... au ....

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CHARGES POUR OPERATIONS COURANTES
Pour Approbation des comptesPour le vote du budget prévisionnel
Exercice précédent
approuvé
N-1
Exercice clos
Budge vote
N
Exercice Clos réalisé
approuver
N
Budget prévisionnel
en cours vote
N+1
Budget prévisionnel
voter
N+2

+ 60 Achats de matières et fournitures
+ {$charge_str} +
+

+
+ {$charge_exercice_str} +

+
+ {$budget_n_amount} +

+
+ {$charge_exercice_clos_str} +
+

+ {$budget_n1_amount} +
+

+ {$budget_n2_amount} +
Sous-total + + + {$st['charge']} + + {$budget_n_total} + + {$st['charge_clos']} + + {$budget_n1_total} + + {$budget_n2_total} +
Solde(exécédent s opérations courantes affect au + copropriétaires) + + + N/C + + N/CN/C
Total I + + + + +
+ CHARGES POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES + + +

+ {$chrg_exp_str} +
+

+ {$chrg_exp_exercice_str} +

+ {$chrg_exp_exercice_budget} +

+ {$chrg_exp_exercice_clos_str} +
Solde(excedent) + + + + +
Total II + + + {$st['chrg_exp']} + + {$st['chrg_exp_budget']} + + {$st['chrg_exp_clos']} +
PRODUITS POUR OPERATIONS COURANTES
Pour Approbation des comptesPour le vote du budget prévisionnel
Exercice
Précédent
N-1
Exercice
clos budge
N
Exercice clos
réaliser
N
Budget
Prévisionnel en
N+1
Budget prévisionnel
à voter
N+2

+ {$prod_str} +

+ {$prod_exercice_str} +

+ {$prod_exercice_budget} +

+ {$prod_exercice_clos_str} +

+ {$prod_exercice_budget_n1} +

+ {$prod_exercice_budget_n2} +
Sous-total + {$st['poc']} + + {$st['poc_budget']} + + {$st['poc_clos']} + + {$st['poc_budget_n1']} + + {$st['poc_budget_n2']} +
Solde(insuffisance s/oprations courantes affecté aux copropriétaires)N/CN/CN/C
Total I
+ PRODUITS POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES +

+ {$prod_exp_str}

+ {$prod_exp_exercice_str} +

+ {$prod_exp_exercice_budget} +

+ {$prod_exp_exercice_clos_str} +
Solde(insuffisant)
Total II
+EOF; + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + } + + /** + * + */ + function annexe3() { + $q = "select pc_id,pc_name from PosteCharge;"; + $pc = $this->doQueryI($q); + $st = array('exercice' => 0, 'exercice_nm1' => 0,'budget' => 0 , 'budgetn1' => 0,'budgetn2' => 0); + $entries = ""; + $accounts = array(); + $pdf = $this->pdf; + $this->fillAccountsWhere($accounts,$this->period,"a.acc_id REGEXP '(^6.*)'","amount"); + $this->fillAccountsWhere($accounts,$this->period-1,"a.acc_id REGEXP '(^6.*)'","am1"); + //$bu = $this->getBudgetListWhere($this->period,"a.acc_id REGEXP '(^6.*)'"); + $this->fillBudgetListWhere($accounts,$this->period,"a.acc_id REGEXP '(^6.*)'","bu"); + $this->fillBudgetListWhere($accounts,$this->period+1,"a.acc_id REGEXP '(^6.*)'","bu1"); + $this->fillBudgetListWhere($accounts,$this->period+2,"a.acc_id REGEXP '(^6.*)'","bu2"); + $bu1 = $this->getBudgetListWhere($this->period+1,"a.acc_id REGEXP '(^6.*)'"); + $bu2 = $this->getBudgetListWhere($this->period+2,"a.acc_id REGEXP '(^6.*)'"); + + $pm1 = $this->period - 1; + foreach ($pc['records'] as $ch) { + $entries.="".$ch[1].""; + $entries.=""; + // Handler Budget + // First Col 1 + $entries.=""; + foreach($accounts as $k => $c) { + if ( ($c[$this->period]['pc'] == $ch[0] ) + ||( $c[$pm1]['pc'] == $ch[0] ) + || $c[$this->period]['bu_pc'] == $ch[0] + || $c[$this->period+1]['bu1_pc'] == $ch[0] + ) + $entries.="".$k.' - '.$c['name']."
"; + + } + $entries.=""; + // First Col 2 + $entries.=''; + foreach($accounts as $k => $c) { + if ( ($c[$this->period]['pc'] == $ch[0] ) + || ($c[$pm1]['pc'] == $ch[0] ) + || $c[$this->period-1]['pc'] == $ch[0] + || $c[$this->period]['bu_pc'] == $ch[0] + || $c[$this->period+1]['bu1_pc'] == $ch[0] + ) { + if ($c[$pm1]['pc'] == $ch[0]) { + $entries.="".$c['am1']."
"; + $st['exercice_nm1'] += $c['am1']; + } else + $entries.="-
"; + } + } + $entries.=""; + // First Col 3 + $entries.=''; + foreach($accounts as $k => $c) { + $e = $this->period.$ch[0]."bu"; + if ($c[$this->period]['pc'] == $ch[0] + || $c[$this->period-1]['pc'] == $ch[0] + || $c[$this->period]['bu_pc'] == $ch[0] + || $c[$this->period+1]['bu1_pc'] == $ch[0] + ) { + if ($c[$this->period]['bu_pc'] == $ch[0] ) { + $entries.=$c[$e].""."
"; + $st['budget'] += $c[$e]; + } else + $entries.="-
"; + } + } + $entries.=""; + // First Col 4 + $entries.=''; + foreach($accounts as $k => $c) { + if ($c[$this->period]['pc'] == $ch[0] + || $c[$this->period-1]['pc'] == $ch[0] + || $c[$this->period]['bu_pc'] == $ch[0] + || $c[$this->period+1]['bu1_pc'] == $ch[0] + ) { + if ($c[$this->period]['pc'] == $ch[0]) { + $entries.=$c['amount']."
"; + $st['exercice'] += $c['amount']; + } else + $entries.="-
"; + } + } + $entries.=""; + // First Col 5 + $entries.=''; + foreach($accounts as $k => $c) { + $e = ($this->period+1).$ch[0]."bu1"; + if ($c[$this->period]['pc'] == $ch[0] + || $c[$this->period-1]['pc'] == $ch[0] + || $c[$this->period]['bu_pc'] == $ch[0] + || $c[$this->period+1]['bu1_pc'] == $ch[0] + ) { + if ($c[$this->period+1]['bu1_pc'] == $ch[0] ) { + $entries.=$c[$e].""."
"; + $st['budget_n1'] += $c[$e]; + } else + $entries.="-
"; + } + } + $entries.=""; + // First Col 6 + $entries.=''; + foreach($accounts as $k => $c) { + $e = ($this->period+2).$ch[0]."bu2"; + if ($c[$this->period]['pc'] == $ch[0] + || $c[$this->period-1]['pc'] == $ch[0] + || $c[$this->period]['bu_pc'] == $ch[0] + || $c[$this->period+1]['bu1_pc'] == $ch[0] + ) { + if ($c[$this->period+2]['bu2_pc'] == $ch[0] ) { + $entries.=$c[$e].""."
"; + $st['budget_n2'] += $c[$e]; + } else + $entries.="-
"; + } + } + $entries.=""; + + $entries.=""; + } + $html =<<Annexe 3 +

Comptes de gestion pour opérations courantes de l'exercice clos réalise (N {$this->period}) du {$this->per_begin} au {$this->per_end}

+

et budget previsionnel de l'exercice (N+2) du .... au ....

+
+ + + + + + + + + + + + + + + + + + + + + {$entries} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CHARGES POUR OPERATIONS COURANTES
 Pour approbation des comptesPour le vote du budget prévisionnel
Exercice précédent approuvéExercice clos budget voteExercice clos réalise à approuverBudget prévisionnel en coursBudget prévisionnel à voter
N-1NNN+1 N+2
TOTAL CHARGES NETTES{$st['exercice_nm1']}{$st['budget']}{$st['exercice']}{$st['budget_n1']}{$st['budget_n2']}
Provision coproprietaires
Solde (excedent ou insuffisance s/opérations courantes affecte aux copropriétaires
+ +EOF; + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + } + /** + * + */ + function test( $p) { + $this->period = $p; + $this->getPeriod($p); + $pdf = $this->pdf; + $pdf->SetCreator(PDF_CREATOR); + $pdf->SetAuthor('EBERSOLD Andrz'); + $pdf->SetTitle('ANNEXE N'); + $pdf->SetSubject('Etat Financier apres repartition au '); + $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + + // set default header data + $h = "SYNDIC 25 RUE PFEFFINGER \n67100 STRASBOURG"; + $pdf->SetHeaderData(/*PDF_HEADER_LOGO*/"", 0, 'SYNDICAT DES COPROPRIETAIRES ANNEXES' , $h, array(64,64,64), array(0,64,128)); + $pdf->setFooterData($tc=array(0,64,0), $lc=array(0,64,128)); + +// set header and footer fonts + $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); + $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font + $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins + $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); + $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); + $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks + $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor + $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings + //$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set default font subsetting mode + $pdf->setFontSubsetting(true); + +// Set font +// dejavusans is a UTF-8 Unicode font, if you only need to +// print standard ASCII chars, you can use core fonts like +// helvetica or times to reduce file size. + $pdf->SetFont('dejavusans', '', 8, '', true); + +// Add a page +// This method has several options, check the source code documentation for more information. + $pdf->AddPage(); + $html = <<Annexe 1 +

Etat financier après répartition du {$this->per_begin} au {$this->per_end} (Exercice {$this->period})

+EOD; + $pdf->setHeaderTemplateAutoreset(true); +// Print text using writeHTMLCell() + $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + $pdf->SetFont('dejavusans', '', 8, '', true); + $this->annexe1() ; + $pdf->AddPage(); + $this->annexe2() ; + $pdf->AddPage(); + $this->annexe3() ; + } + + function Output($fn,$m) { + $this->pdf->Output($fn,$m); + } +} +/** + * For test purpose + */ +$ldb =""; +$period = ""; +if (isset($_GET['period'])) { $period = $_GET['period'];} else { $period = Date('Y');}; +if (isset($_SESSION['compta_db'])) { + $ldb = $_SESSION["compta_db"] ; +} else + $ldb = 'test'; +$t = new annexe1($conf['auth']['mysql']['host'], + $conf['auth']['mysql']['user'], + $conf['auth']['mysql']['password'], + $ldb); + +$t->test( $period); + +$t->Output('annexe1.pdf', 'I'); + +/** + vim:et:sw=2:ts=2:fileencoding=utf-8:encoding=utf-8 +*/ +?> diff --git a/app/compta/retrieve.php b/app/compta/retrieve.php new file mode 100644 index 0000000..674e022 --- /dev/null +++ b/app/compta/retrieve.php @@ -0,0 +1,136 @@ +doQueryI($q); + $q ='select trans_entry_id,acc_id,voucher_ref,description,debit_credit,amount from TransactionEntry where trans_id ='.$id.';'; + $entries = $this->doQueryI($q); + return array( 'transaction' => $transaction['records'], 'entries' => $entries['records']); + } + function getTransactionInfoSummary($begin,$end) { + $q ='select trans_id,voucher_ref,voucher_date,act_trans_date,trans_label,trans_file from Transaction where act_trans_date BETWEEN "'.$gebin.'" AND "'.$end.'";'; + $transaction = $this->doQueryI($q); + if (count($transaction['records']) < 1) { + return array(""); + } else + return $transaction['records']; + } + + function getTransactionsByDate($date) { + $q ='select trans_id,voucher_ref,voucher_date,act_trans_date,trans_label,trans_file from Transaction where act_trans_date ='.$date.';'; + $transaction = $this->doQueryI($q); + $q ='select trans_entry_id,acc_id,voucher_ref,description,debit_credit,amount from TransactionEntry where trans_id ='.$id.';'; + $entries = $this->doQueryI($q); + return array( 'transaction' => $transaction['records'], 'entries' => $entries['records']); + } + + function getTransactionsByIds() { + } + + function getEntriesByType($period,$type) { + $q = 'call journal("'.$period.'","'.$type.'",2);'; + $res = $this->doQueryI($q); + + $q = 'call journal_solde("'.$period.'","'.$type.'",2);'; + $res_solde = $this->doQueryI($q); + + return array( 'records' => $res['records'], 'solde' => $res_solde['records']); + + } + + function getEntriesByAccount($period,$acc) { + $q = 'call detail_compte_sans_solde("'.$period.'",'.$acc.');'; + $res = $this->doQueryI($q); + if ($res['total_matches'] == 0) { + return array('entries'=> array(array(0,0,0,0,0)),'solde' =>array(0,0,0)); + } + // return $res['records']; + $q = 'CALL solde_compte("'.$period.'","'.$acc.'");'; + $res1 = $this->doQueryI($q); + return array('entries' => $res['records'], 'solde' => $res1['records'][0]); + } + + function getSoldeAccount($period,$acc, $preci = 2) { + $q = 'CALL solde_compte("'.$period.'","'.$acc.'");'; + $res = $this->doQueryI($q); + // Get Total Appel de fonds : + $q=<<doQueryI($q); + // Get Total Charge + $q=<< 0 + GROUP BY tret_key_id; +EOF; + $dc = $this->doQueryI($q); + // Total Charge + $q=<< 0 + ; +EOF; + $tc = $this->doQueryI($q); + $result = array( 'solde' => $res['records'][0], + 'detail_charge' => $dc['records'], + 'total_charge' => $tc['records'][0][0], + 'total_appel' => $af['records'][0][0] + ); + return $result; + //return $res['records'][0]; + //$a =explode(",", $res['records'][0][1]); + } + // CREATE TABLE IF NOT EXISTS TransactionEntryType ( + // type_id INTEGER AUTO_INCREMENT PRIMARY KEY, + // type_code VARCHAR(2), -- BQ, VT, OD + // type_desc VARCHAR(255) + function getEntryTypes() { + $q =<<doQueryI($q); + return $r['records']; + } +} + + +?> diff --git a/app/compta/supplier.js b/app/compta/supplier.js new file mode 100644 index 0000000..8c68c50 --- /dev/null +++ b/app/compta/supplier.js @@ -0,0 +1,450 @@ + +AEBW.declare("DlgSupplierBill",Compta.Dialog ,{ + constructor : function(div_id,uipath,jurl ) { + AEBW.control.dialogbox(div_id); + this.load(uipath); + this.Url = function() {return jurl;}; + }, + ongetKeysCharge : function(response) { + var cb = $('suppl_charge_key'); + cb.options.length = 0; + for(var i = 0; i it[3]) { + row.cells[4].style.color="red"; + } + } + var solde = response.result.solde; + $('supplierSoldeDebit').innerHTML = solde[0]; + $('supplierSoldeCredit').innerHTML = solde[1]; + + $('supplierSoldeCompte').innerHTML = 'Solde : '+solde[2]; + + }, + onShow : function() { + this.getFournisseur(); + this.getExercices(); + var obj = this; + Event.observe($('btSupplierVoir'), "click", function () { + obj.getAccount(); + } + ); + Event.observe($('cbSupplierExercice'), "change", function () { + obj.getAccount(); + } + ); + Event.observe($('cbSupplierAccount'), "change", function () { + obj.getAccount(); + } + ); + setTimeout(function() { + obj.getAccount(); + },500); + }, + + cleanTable : function(tb,sz) { + for (var i = 0 ; i < sz; i++) { + tb.delRow(0); + } + } +}); + + +/** + * Main entry + */ + +var spA = null; +var Supplier = new AEBW.control.dialogbox("supplier"); +var SupplierBill = new DlgSupplierBill("supplier", + "./basic.php?app=compta&panel=supplier_bill", + alias+"/app/compta/index.php"); + +var SupplierPayer = new DlgSupplierPay("supplier", + "./basic.php?app=compta&panel=supplier_pay", + alias+"/app/compta/index.php"); + +var SupplierAccount = new DlgSupplierAccount("supplier", + "./basic.php?app=compta&panel=supplier_account", + alias+"/app/compta/index.php"); + +Supplier.load('./basic.php?app=compta&panel=supplier_add'); + +Event.observe($("btFFNew"),"click", function () { + SupplierBill.show(); + SupplierBill.getFournisseur(); + SupplierBill.getCharge(); + }); + +Event.observe($("btFFPayer"),"click", function () { + SupplierPayer.show(); + SupplierPayer.getFournisseur(); + }); +// Compte fournisseur Gestion +Event.observe($("btFGCompte"),"click", function () { + SupplierAccount.show(); + }); + +Event.observe($("btFGNew"),"click", function () { + Supplier.show(); +} +); +/* + * vim:encoding=utf-8:fileencoding=utf-8 + */ diff --git a/app/compta/supplier_account.xml b/app/compta/supplier_account.xml new file mode 100644 index 0000000..6210db0 --- /dev/null +++ b/app/compta/supplier_account.xml @@ -0,0 +1,118 @@ + + + + + + User Managment + + + + +

Compte fournisseur

+

+ + + + + Information Generales + +
+ + + + + +
+ + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Compte
DateRéfDésignaionDébitCrédit
02/01/201312435Facture fioul100
05/01/201398547Charge Assurance87
06/01/2013d1Virement211
10/01/2013xc1234Charge EDF PC2 178
Solde:0.00.0
+
+ + + + diff --git a/app/compta/supplier_add.xml b/app/compta/supplier_add.xml new file mode 100644 index 0000000..2b42e38 --- /dev/null +++ b/app/compta/supplier_add.xml @@ -0,0 +1,101 @@ + + + + + + User Managment + + + +

Ajouter un fournisseur

+ + + + + Idendité + +
+
+
+ +
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NomPrénomAdresseC.P.TélEmail
+
+ + + diff --git a/app/compta/supplier_bill.xml b/app/compta/supplier_bill.xml new file mode 100644 index 0000000..fa13a16 --- /dev/null +++ b/app/compta/supplier_bill.xml @@ -0,0 +1,120 @@ + + + + + + User Managment + + + + + + + +Nouvelle Facture + +
+
+ + + + + + + +
+ + + + + +
+ +
+ + + + + + + + +
+ +
+ +
+ + +
+
+
+ +
+ + + +
+
diff --git a/app/compta/supplier_pay.xml b/app/compta/supplier_pay.xml new file mode 100644 index 0000000..c4a8b61 --- /dev/null +++ b/app/compta/supplier_pay.xml @@ -0,0 +1,110 @@ + + + + + + User Managment + + + + + + + +Payer Facture + +
+
+ + + + + + + +
+ + + +
+ + +
+ +
+ + + + + + + + + + + + diff --git a/app/compta/supplier_remove.xml b/app/compta/supplier_remove.xml new file mode 100644 index 0000000..284419e --- /dev/null +++ b/app/compta/supplier_remove.xml @@ -0,0 +1,240 @@ + + + + + + User Managment + + + + +

Administration des utilisateurs

+

+

+ +
+ + + + + Utilisateur + +
+ Her +
+ + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
+
+

Test What happens here

+ + System + + + +

+ + + Groupes + + simpe test + + + + Frogs + + Ok, + + Info Gen + + Une info: + + + + + + +
+
+
+
+ + + + + Groupes + + Strange + + authentication + +

Test Content

+ +
+
+ + alias + + display boxes : enable + + + + ssl + + display boxes: + enable + disable + + + + + +
+
+ + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
Titre du tableau
r1r2
Un test pour voird1
Un bouton +
Un test pour voird1
Un bouton +
+ End Table + +
+
+ + Calendar + + Test12 +
+ +
+
+
+ +
+
diff --git a/app/compta/syndic.php b/app/compta/syndic.php new file mode 100644 index 0000000..d841a93 --- /dev/null +++ b/app/compta/syndic.php @@ -0,0 +1,274 @@ +session = new Session(); + } +/** +-- lot_floor VARCHAR(8) DEFAULT "RDC", +-- lot_area INTEGER DEFAULT 0, +-- lot_room INTEGER DEFAULT 0, +-- lot_name VARCHAR(32), +-- lot_type VARCHAR(32), +-- lot_building VARCHAR(32), +-- lot_door VARCHAR(32), +-- lot_description VARCHAR(256) + */ + function getLots() { + $q = "select lot_num,lot_floor,lot_area,lot_room,lot_name,lot_type,lot_building,lot_door,lot_description,lot_id from Lot; "; + $res = $this->doQueryI($q.$qv); + $entries = $res['records']; + if (count($entries) == 0 ) { + error_log("Syndic::getLots Failed number of elements is 0"); + return Array(""); + } + return $entries; + } + + function addLot($number,$tp,$building,$floor,$door,$size,$name,$desc) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can add lots")); + } + $q = "INSERT INTO Lot (lot_num,lot_name,lot_description,lot_floor,lot_area,lot_building,lot_door,lot_type) VALUES( "; + $qv= $number.',"'.$name.'","'.$desc.'","'.$floor.'",'.$size.',"'.$building.'","'.$door.'","'.$tp.'");'; + $res = $this->doQueryI($q.$qv); + return Array(""); + } + + function removeLot($number) + { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can remove lots")); + } + error_log("removeLot: "); + $q = "DELETE FROM Lot WHERE lot_num = ".$number.";"; + $res = $this->doQueryI($q); + return Array(""); + } + + function getLotsUser($uid) { + $q =<<doQueryI($q); + if (count($res['records'] )== 0) { + error_log("getLotsUser: no record found"); + throw new Exception(_("No records found for this user")); + return array(""); + } else + return $res['records']; + } + + function assignLotToUser($lo_id,$lot_id,$uid) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can assign lots")); + } + $q =<<doQueryI($q); + } + + function getExercices() { + // period_id | per_begin | per_end | per_string + $q = "select per_id,per_begin,per_end,per_string from Period; "; + $res = $this->doQueryI($q); + $entries = $res['records']; + if (count($entries) == 0 ) { + error_log("getLots Failed number of elements is 0"); + } + return $entries; + } + + function addExercice($desc,$begin,$end) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can add an exercice")); + } + $q = "INSERT INTO Period (per_string,per_begin,per_end) VALUES( "; + $qv= '"'.$desc.'","'.$begin.'","'.$end.'");'; + $res = $this->doQueryI($q.$qv); + $entries = $res['records']; + if (count($entries) == 0 ) { + error_log("Syndic::addExercice Failed number of elements is 0"); + return Array(""); + } + return $entries; + } + function removeExercice($desc) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can remove an exercice")); + } + error_log("removeExercice ".$desc); + $q = "DELETE FROM Period WHERE per_string = "; + $qv= '"'.$desc.'";'; + $res = $this->doQueryI($q.$qv); + $entries = $res['records']; + if (count($entries) == 0 ) { + error_log("removeExercice Failed number of elements is 0"); + } + return Array(""); + } + + /** + * + * - Only syndic can close and open an exercice. + * - The exercice must be in state open. + * + * Action : Calls are reemboursed. + */ + function closeExercice($ex,$cpt="701000") { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can close an exercice")); + } + $d = date("Y-m-d"); +//CALL rembourse_appel_fonds("2011-12-30","2011","701000","Remboursement appels de fonds"); + $q=<<doQueryI($q); + } + + function updateLot($id,$fields) { + } + + function assignLot($lot_id,$user ) { + } + + function getKeysCharge() { + $q = "select pc_id,pc_name,pc_comment FROM PosteCharge;"; + $keys = $this->doQueryI($q); + return $keys['records']; + } + function updateKeyCharge($id,$name,$desc) { + $q=<<doQueryI($q); + return array(""); + } + + function getTantieme($charge_id) { + // $q = "select tant_pc_id, tant_lot_num, tant_lot_size FROM Tantieme where tant_pc_id=".$charge_id.";"; + $q=<<doQueryI($q); + if (count($keys['records']) == 0 ) { + return array(""); + } + return $keys['records']; + } + + function setTantieme($t_id,$charge_id,$lot,$tant) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can set tantieme")); + } + $q=<<doQueryI($q); + return array(""); + } + + /** + * Function related to maintenance + */ + function getEntretien($period) { + $q = "SELECT entr_date,entr_title,entr_description,entr_id FROM Entretien as e "; + $j = "JOIN Period as p on p.per_string ='".$period."'"; + $w = " WHERE entr_date BETWEEN p.per_begin and p.per_end;"; + error_log("getentretien : ".$q.$j.$w); + $keys = $this->doQueryI($q.$j.$w); + if (count($keys['records']) == 0 ) { + return array(""); + } + return $keys['records']; + } + + function newEntretien($dt,$title,$description) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can add or update an maintainence entry")); + } + $des = $this->escape($description); + $t = $this->escape($title); + $q = "INSERT INTO Entretien (entr_date,entr_title,entr_description) VALUES ("; + $qv = '"'.$dt.'",'.$t.','.$des.');'; + $keys = $this->doQueryI($q.$qv); + if (count($keys['records']) == 0 ) { + return array(""); + } + return $keys['records']; + } + + function updateEntretien($id,$title,$description) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can add or update an maintainence entry")); + } + $des = $this->escape($description); + $t = $this->escape($title); + $q = 'UPDATE Entretien SET entr_title='.$t.' ,entr_description = '.$des.' WHERE '; + $qv = 'entr_id = '.$id.';'; + $keys = $this->doQueryI($q.$qv); + if (count($keys['records']) == 0 ) { + return array(""); + } + return $keys['records']; + } + + function removeEntretien($id) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can remove an maintainence entry")); + } + $des = $this->escape($description); + $t = $this->escape($title); + $q = 'DELETE FROM Entretien WHERE '; + $qv = 'entr_id = '.$id.';'; + $keys = $this->doQueryI($q.$qv); + if (count($keys['records']) == 0 ) { + return array(""); + } + return $keys['records']; + } +/** +CREATE PROCEDURE repartir_charge( IN trans_id INTEGER, + IN chrg VARCHAR(32), + IN ed DATE, + IN vouch ref VARCHAR(32), + in am DOUBLE, + in cle INTEGER, + in des VARCHAR(256) + **/ + function repartirCharge($chg,$dt,$v,$amount,$cle,$des) { + if (!$this->session->in_groupe(COMPTA_SYNDIC)) { + throw new Exception(_("Only Syndic can distribute charges")); + } + error_log("Call repartir charge:".$chg." ".$dt); + $q=<<doQueryI($q); + $qlid= "select LAST_INSERT_ID();"; + $res = $this->doQueryI($qlid); + $trans_id = $res['records'][0]['0']; + error_log("Call repartir charge got id:".$tran_id); + $q=<<doQueryI($q); + return array(""); + } +} + + +?> diff --git a/app/compta/upload.php b/app/compta/upload.php new file mode 100644 index 0000000..49fed12 --- /dev/null +++ b/app/compta/upload.php @@ -0,0 +1,30 @@ + diff --git a/app/compta/users.xml b/app/compta/users.xml new file mode 100644 index 0000000..284419e --- /dev/null +++ b/app/compta/users.xml @@ -0,0 +1,240 @@ + + + + + + User Managment + + + + +

Administration des utilisateurs

+

+

+ +
+ + + + + Utilisateur + +
+ Her +
+ + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
+
+

Test What happens here

+ + System + + + +

+ + + Groupes + + simpe test + + + + Frogs + + Ok, + + Info Gen + + Une info: + + + + + + +
+
+
+
+ + + + + Groupes + + Strange + + authentication + +

Test Content

+ +
+
+ + alias + + display boxes : enable + + + + ssl + + display boxes: + enable + disable + + + + + +
+
+ + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
Titre du tableau
r1r2
Un test pour voird1
Un bouton +
Un test pour voird1
Un bouton +
+ End Table + +
+
+ + Calendar + + Test12 +
+ +
+
+
+ +
+
diff --git a/app/config/analystictracking_andre.php b/app/config/analystictracking_andre.php new file mode 100644 index 0000000..381f5ec --- /dev/null +++ b/app/config/analystictracking_andre.php @@ -0,0 +1,13 @@ + diff --git a/app/config/analystictracking_syndic.php b/app/config/analystictracking_syndic.php new file mode 100644 index 0000000..1f0ac0c --- /dev/null +++ b/app/config/analystictracking_syndic.php @@ -0,0 +1,13 @@ + diff --git a/app/config/andre.php b/app/config/andre.php new file mode 100644 index 0000000..9f08cca --- /dev/null +++ b/app/config/andre.php @@ -0,0 +1,535 @@ +_input = $inp; + } + function show() { + echo "

"; + $this->_input->show(); + echo "

\n"; + } +} +/** + * This function could be at phplib. I used this code at several placed. + */ +class inputCode { + var $_input; + var $alias = ""; + function __construct($inp,$alias="/andre") { + $this->_input = $inp; + $this->alias = $alias; + } + function show() { + echo "

"; + echo "Security"; + $this->_input->show(); + echo "

\n"; + } +} +/** + * + */ +class loginLayoutTrinity { + function __construct () { + } + + function show() { + global $conf; + $f = new Form("member/login.php"); + $f->id="generic_login_form"; + $s = 19; + //echo "

"; + //echo ""; + $w= new FormInputText("email","email",_("user :")); + $w->setSize($s,1); + $ir = new inputRow($w); + $f->addInput($ir); + $w = new FormInputPassword("passwd","",_("password : ")); + $w->setSize($s,1); + $ir = new inputRow($w); + $f->addInput($ir); + $w= new FormInput("action","LOGIN_REQUEST",""); + $f->addInput($w); + $w= new FormInputText("security_code","",""); + $w->setSize("5",1); + $ir = new inputCode($w,$conf['alias']); + $f->addInput($ir); + $w= new FormInputSubmit("submit","Login",""); + $w->onClick = "doLoginRequest(); return false;"; + $ir = new inputRow($w); + $f->addInput($ir); + $w= new FormInputSubmit("button","Cancel",""); + $w->onClick = "hideLogin(); return false;"; + $ir = new inputRow($w); + $f->addInput($ir); + //echo "
"; + echo "

"; + } +} +/** + * \brief + * + */ +class AppPage extends Page { + var $alias = "/andre/"; + var $topic; + var $session = null; + var $vmenu; + var $directory; + var $lang = "en_US.UTF-8"; + var $is_logged = false; + var $with_prototype = true; + var $with_scriptacoulus = true; + var $with_mymenu = true; + var $with_aebw = true; + var $with_xgui = true; + var $with_login = true; + var $with_mydate = false; + var $with_tinymce = false; + var $with_styleswitcher = false; + var $with_syntax = true; + //var $lang = "fr_FR.UTF-8"; + function useAuthDB() + { + global $AppDb; + $this->authDB = new Db($AppDb['host'],$AppDb['user'],$AppDb['password'],$AppDb['name']); + } + /** + * @brief links in head section + * + */ + function generate_links() { + error_log("generate_links servername".$_SERVER["SERVER_NAME"] ); + $css =""; + if ( ($_SERVER["SERVER_NAME"] == "palawan" ) + || ($_SERVER["SERVER_NAME"] == "syndic.dyndns.biz" ) + || ($_SERVER["SERVER_NAME"] == "syndic.no-ip.org" ) + || ($_SERVER["SERVER_NAME"] == "192.168.1.18" ) + ) { + $css = $this->alias."/css/andre/theme-syndic.css"; + echo "alias."/css/andre/theme-andre.css\" media=\"screen\" title=\"syndic\"/>\n"; + } else { + $css = $this->alias."/css/andre/default.css"; + echo "alias."/css/andre/default.css\" media=\"screen\" title=\"andre\"/>\n"; + } + if ($this->with_xgui) { + echo "alias."/css/xgui/default.css\"/>"; + if ( ($_SERVER["SERVER_NAME"] == "palawan" ) + || ($_SERVER["SERVER_NAME"] == "syndic.dyndns.biz" ) + || ($_SERVER["SERVER_NAME"] == "syndic.no-ip.org" ) + ) { + echo "alias."/css/xgui/theme-syndic.css\"/>"; + } else + echo "alias."/css/xgui/theme-andre.css\"/>"; + echo "alias."/css/jscook/theme.css\"/>"; + } + if ($this->with_syntax) { + echo "alias."/css/SyntaxHighlighter.css\"/>"; + } + echo << + + + + + +FIN; + if ($this->with_prototype) { + echo "\n"; + } + if ($this->with_scriptacoulus) { + echo "\n"; + echo "\n"; + } + if ($this->with_xgui) { + echo "\n"; + echo "\n"; + } + echo "\n"; + //echo "\n"; + echo "\n"; + if ($this->with_login) { + echo "\n"; + echo "\n"; + } + if ($this->with_syntax) { + echo "\n"; + echo "\n"; + echo "\n"; + } + if ($this->with_tinymce) { + $fn = $this->alias."/index.php?topic=".$this->topic."&lang=".$this->lang."&tp=style"; + echo "\n"; + echo << + function fileBrowserCallback(field_name,url,type,win) { + var con= "../../filemanager/browser.html?Connector=connectors/php/connector.php"; + var enableAutoTypeSelection = true; + var cType = field_name; + tinyfck = win; + tinyfck_field = field_name; + switch (type) { + case "image" : cType = "Image"; break; + case "flash" : cType = "Flash"; break; + case "file" : cType = "File"; break; + } + con +="&Type="+cType; + window.open(con,"tinyfck","modal,width=750,height=400"); + } + + tinyMCE.init({ + mode: "textareas", + theme: "advanced", + plugins: "save,inlinepopups,advimage,advlink,table", + entities: "38,amp,160,nbsp,60,lt,62,gt", + theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,|,bullist,numlist,|,indent,outdent,blockquote,|,undo,redo,image,link,unlink,xhtmlxtras,code", + theme_advanced_buttons2 : "table", + theme_advanced_buttons3 : "", + theme_advanced_buttons1_add : "save", + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + theme_advanced_statusbar_location : "button", + theme_advanced_path : false, + invalid_elements : "", + save_enablewhendirty: true, + save_onsavecallback : "editSave", + save_oncancelcallback : "editCancel", + extended_valid_elements : "a[href|class|name|target|title],strong,h1[class],h2[class],h3[class],span[class|align|style|id],img[id|height|style|width|alt|title|hspace|vspace|class|src],div[class|id|style],table[id|class],tr[id,class],td[colspan],tbody,pre[name|class],content,new,author,date,title[langue],form[id|action|method],input[id|name|value|type|size],label[for],textarea[id|value|name],script[type]", + content_css: "{$css},{$fn}", + file_browser_callback : "fileBrowserCallback", + height:"530", + width:"830", + apply_source_formatting: true, + editor_selector: "edit-content", + convert_urls : false, + style_formats : [ + {title: 'MyParagraph' , inline: 'span',classes: 'p'}, + {title: 'My title' , inline: 'span',classes: 'my_title'} , + {title: 'Content Middle' , inline: 'div',classes: 'content_middle'} , + {title: 'Image Midle' , block: 'div',styles: {display:'block','width':'100%' ,'vertical-align' : 'middle' ,'text-align':'center' } } + ] + }); + + tinyMCE.init({ + mode: "textareas", + theme: "simple", + editor_selector: 'comment-text' + }); + +END; + } + if ($_SERVER['SERVER_NAME'] == "www.ebersold.fr") { + include_once(dirname(__FILE__)."/analystictracking_andre.php"); + } else + include_once(dirname(__FILE__)."/analystictracking_syndic.php"); + echo "\n"; + } + + /** + * @brief default constructor + * All pages will know if we are logged in or not. They just have to check + * the is_logged variable; + * + */ + function __construct () { + GLOBAL $_GET,$conf; + + $this->session = new Session(); + $this->directory = dirname(__FILE__)."/../../locale/"; + if (isset($_GET['lang']) ) { + $this->lang= $_GET['lang']; + } else if ($_SERVER['SERVER_NAME'] == 'syndic.no-ip.org') + $this->lang = "fr_FR.UTF-8"; + $domaine = 'andre'; + if (isset($conf['alias'])) + { + $this->alias = $conf['alias']; + } else + $this->alias = ""; + setlocale(LC_ALL,$this->lang); + bindtextdomain($domaine,$this->directory); + bind_textdomain_codeset($domaine,"UTF-8"); + textdomain($domaine); + putenv("LANG=".$this->lang); + //echo "--".getenv("LANG")." - ".getenv("LANGUAGE"); + if (isset($_SESSION['login'])) { + $this->is_logged=true; + $this->with_tinymce = true; + } + if ($this->lang == "en_US.UTF-8") { + if (strlen($this->keywords) !=0) + $this->keywords="Andre EBERSOLD,C++,Engineer,ASN1,XSL,XML,SOAP "; + } else { + if (strlen($this->keywords) !=0) + $this->keywords="Andre EBERSOLD,C++,Ingenieur,ajax, Gestion de Syndic, comptabilite,informatique,ASN1 "; + } + } + + function __destruct() { + if (isset($this->authDB) ){ + echo "Call AppPage destructor\n"; + } + //parent::__destruct(); + } + + function show_profile() { + echo ""; + } + /** + * @brief The top view of the web page + * + * + */ + function top () { + global $conf; + echo "
"; + echo ""; + echo "
"; + echo ""; + if (count($conf['langues']) > 1 ) { + echo "
    "; + if ($_SERVER['QUERY_STRING']) { + $qs = ""; + $pairs = explode("&",$_SERVER['QUERY_STRING']); + foreach ($pairs as $pair) { + list($n,$v) = explode("=",$pair,2); + if ($n != "lang") { + $qs = $qs."&".$n."=".$v; + } + } + echo "
  • "; + echo "
  • "; + } else { + echo "
  • topic."'>
  • "; + echo "
  • topic."'>
  • "; + } + echo "
"; + } else { + echo "
"; + } + + echo "
\n"; + } + /** + * + * + */ + function _login () { + $l = new loginLayoutTrinity(); + $l->show(); + } + + /** + * @brief bottom_link + * + * + */ + function bottom_link($name) { + return ""._($name).""; + } + /** + * @brief bottom + * + * + */ + function bottom() { + $sep=""; + echo "'; + echo _("Send comments or suggestion to :"); + echo "
"; + } + /** + * @brief The horizontal menu + * + * + */ + function hMenuHome () { + $m = new Menu("mh","",'horizontal'); + $m->addMenuItem(_("Home"),$this->link(_("Home"))); + $m->addMenuItem(_("Activity"),$this->link(_("Activity"))); + $m->addMenuItem(_("Cv"),$this->link(_("CV"))); + $m->addMenuItem(_("Hobbies"),$this->link(_("Hobbies"))); + $m->addMenuItem(_("Contact"),$this->link(_("Contact"))); + $m->show(); + echo ""; + } + /** + * Ok, menu items will be loaded from xml file. + */ + function hMenuXml() { + $fn = dirname(__FILE__).'/../../menu.xml'; + $this->xml = simplexml_load_file(dirname(__FILE__).'/../../menu.xml'); + $lang = substr($this->lang,0,2); + $items = $this->xml->xpath("//menus/menuh[@langue='".$lang."']/menu/item"); + $m = new Menu("mh","",'horizontal'); + foreach ($items as $item) { + $title = iconv( "UTF-8", "UTF-8//TRANSLIT", $item['title'] ); + $m->addMenuItem($title,$item['link']); + } + $m->show(); + echo ""; + + } + function hMenu () { + $m = new Menu("mh","",'horizontal'); + $m->addMenuItem(_("Home"),$this->link(_("Home"))); + $m->addMenuItem(_("Products"),$this->link(_("Products"))); + $m->addMenuItem(_("Services"),$this->link(_("Services"))); + $m->addMenuItem(_("Links"),$this->link(_("Links"))); + $m->addMenuItem(_("Contact"),$this->link(_("Contact"))); + $m->addMenuItem(_(""),$this->link(_("Home"))); + $m->show(); + echo ""; + } + /** + * @brief The vertical menu + * + */ + function vMenu () { + global $_SESSION; +/* + $shares = new Menu("Menu4"); + $shares->addMenuItem(_("His shares"),$this->link(_("Shares"))); + $this->vmenu->addMenuItem(_("Welcome"),$this->link(_("Home"))); + $this->vmenu->addMenuItem(_("Who we are"),$this->link(_("Who we are"))); + $this->vmenu->addMenuItem(_("What we believe"),$this->link(_("What we believe"))); + $this->vmenu->addSubMenu(_("Meet our Pastor"),$this->link(_("Meet our Pastor")),$shares); + $this->vmenu->addMenuItem(_("What to expect"),$this->link(_("What to expect"))); + $this->vmenu->addMenuItem(_("LifeGroups"),$this->link(_("LifeGroups"))); + $this->vmenu->addMenuItem(_("Calendar"),$this->link(_("Calendar"))); + $this->vmenu->addMenuItem(_("Podcast"),$this->link(_("Podcast"))); + $this->vmenu->addMenuItem(_("Contact us"),$this->link(_("Contact us"))); + $this->vmenu->addMenuItem(_("Maps & Directions"),$this->link(_("Maps"))); + $this->vmenu->addMenuItem(_("Links"),$this->link(_("Links"))); + */ + /* + $this->vmenuService = new Menu("Menu3"); + $this->vmenuService->title = _("Your")."
"._("Spiritual")."
"._("Journey"); + $this->vmenuService->addMenuItem (_("Who is Jesus ?"),$this->link(_("Home"))); + $this->vmenuService->addMenuItem (_("Is God the Center ?"),$this->link(_("Home"))); + $this->vmenuService->addMenuItem (_("Daily devotionals"),$this->link(_("Home"))); + $this->vmenuService->addMenuItem (_("You're not alone"),$this->link(_("Home"))); + + $question = new Menu("Menu2"); + $question->addMenuItem(_("Most important"),$this->link(_("Most important"))); + $question->addMenuItem(_("About God"),$this->link(_("Home"))); + $question->addMenuItem(_("Christian Faith"),$this->link(_("Home"))); + $question->addMenuItem(_("Baptism"),$this->link(_("Baptism"))); + $this->vmenuService->addSubMenu(_("Questions"),"#",$question); + */ + } + /** + * @brief + * + */ + function link($name) { + $alias = ""; + if ($this->alias[0] == '/') { + $alias = substr($this->alias,1); + } else { + $alias = $this->alias; + } + $lang = substr($this->lang,0,2); + $lnk = array(_('Profile') => $alias.'/app/member/profile.php', + _('Home') => '/'.$alias.$lang.'/accounting/accueil.html', + _('Shares') => $alias.'/index.php?topic=pastorshares&lang='.$this->lang, + _('Contact us') => $alias.'/index.php?topic=contact&lang='.$this->lang, + _('Contact') => '/'.$alias.$lang.'/accounting/contact.html', + _('Activity') => $alias.$lang.'/activite.html', + _('CV') => $alias.'/index.php?topic=cv&lang='.$this->lang, + _('Hobbies') => $alias.'/index.php?topic=loisirs&lang='.$this->lang, + _('Calendar') => $alias.'/index.php?topic=calendar&lang='.$this->lang, + _('Links') => '/'.$alias.$lang.'/accounting/liens_syndic.html', + _('Services') => '/'.$alias.$lang.'/accounting/services.html', + _('Products') => '/'.$alias.$lang.'/accounting/products.html', + _('Federation') => '' + ); + return $lnk[$name]; + } + + /** + * + */ + function news() { + echo "
"; + } + function _content() { + $this->main(); + } + /** + * + * + */ + function image($name,$width=0,$height=0) { + $str_height=""; + $str_width=""; + $lnk = array('Vigne' => $this->alias.'/images/trinity/Picture1.jpg', + 'People' => $this->alias.'/images/trinity/peoplewalking.jpg', + 'Network' => $this->alias.'/images/icons/16x16/network.png' + ); + if ($height) $str_height=" height='".$height."' "; + if ($width) $str_width=" width='".$width."' "; + return "".$name.""; + } + function show() { + parent::show(); + } + +} + +?> diff --git a/app/config/config.php b/app/config/config.php new file mode 100644 index 0000000..5c4d841 --- /dev/null +++ b/app/config/config.php @@ -0,0 +1,196 @@ +authDB = new Db($AppDb['host'],$AppDb['user'],$AppDb['password'],$AppDb['name']); + } + /** + * @brief links in head section + * + */ + function generate_links() { + + echo "alias."/css/feeb/default.css\" media=\"screen\" title=\"feebf\"/>\n"; + echo << + + + +FIN; + + #echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + # + # Was necessary for IE !!! + # + echo "\n"; + } + + /** + * @brief default constructor + * + */ + function AppPage () { + $this->alias = "/administratif"; + } + + function __destruct() { + if (isset($this->authDB) ){ + echo "Call AppPage destructor\n"; + } + //parent::__destruct(); + } + /** + * @brief The top view of the web page + * + */ + function top () { + global $_SESSION; + if (isset($_SESSION['login'])) { + echo "
User:".$_SESSION['user_nom']." ".$_SESSION["user_prenom"]."link('Logout')."\"> logout
\n"; + } + echo "\n"; + #echo "
Initializing...
\n"; + } + + /** + * @brief display a link + * + */ + function bottom_link($name) { + return ""._($name).""; + } + /** + * @brief display bottom text + * + */ + function bottom() { + $sep=""; + echo "
Envoyez vos commentaires :
"; + echo ""; + } + /** + * @brief The horizontal menu + * + * + */ + function hMenu () { + echo "
\n"; + #echo ""; + } + /** + * @brief The vertical menu + * + */ + function vMenu () { + global $_SESSION; + if (!defined($this->vmenu)) { + $this->vmenu = new Menu("Menu1"); + $this->vmenu->title='Home'; + $this->vmenu->addMenuItem("Accueil",$this->alias."/index.php"); + $this->vmenu->addMenuItem("Register",$this->alias."/app/registration/register.php"); + if (isset($_SESSION['login'])) { + $this->vmenu->addMenuItem("Logout",$this->link("Logout")); + if ($_SESSION['login'] == "andre.ebersold@free.fr") { + $this->vmenu->addMenuItem("System",$this->alias."/app/index.php?form=system"); + } + } else { + $this->vmenu->addMenuItem("Login",$this->alias."/app/member/login.php?action=LOGIN_FORM"); + } + } + if (isset($_SESSION['login'])) { + $this->vmenuService = new Menu("Menu2"); + $this->vmenuService->title = "Services"; + $this->vmenuService->addMenuItem ("Profile",$this->alias."/app/member/profile.php"); + $this->vmenuService->addMenuItem ("Statistics",$this->link("Statistics")); + $ann= new Menu("Annuaire"); + $ann->addMenuItem ("Pasteur",$this->link("Annuaire pasteur")); + $ann->addMenuItem ("Eglise",$this->link("Annuaire église")); + $this->vmenuService->addSubMenu ("Annuaire",$this->link("Annuaire"),$ann); + + } + $this->vmenu->show(); + if (isset($this->vmenuService)) { + $this->vmenuService->show(); + } + } + + function link($name) { + $lnk = array('Profile' => $this->alias.'/app/member/profile.php', + 'Eglise' => $this->alias.'/app/member/eglise.php', + 'Home' => $this->alias.'/app/index.php', + 'Logout' => $this->alias.'/app/member/login.php?action=LOGOUT', + 'Statistics' => $this->alias.'/app/registration/counting.php', + 'Annuaire' => $this->alias.'/app/member/annuaire.php', + 'Annuaire église' => $this->alias.'/app/member/annuaire.php?annuaire=eglise', + 'Annuaire pasteur' => $this->alias.'/app/member/annuaire.php?annuaire=pasteur', + 'Calendrier' => $this->alias.'/app/member/annuaire.php', + 'Accueil' => $this->alias.'/index.php', + 'Nous contacter' => $this->alias.'/app/member/comments.php', + 'Jeunesse' => 'http://www.feebf.org/jeunesse/index.php', + 'Developpement' => 'http://www.feebf.org/evangelisation/index.ph', + 'Mission' => 'http://www.mission-feebf.com/', + 'Eglise' => 'http://www.feebf.org/eglises/annuaire.php', + 'Federation' => 'http://www.feebf.org/la_federation/index.html' + ); + return $lnk[$name]; + } + + function image($name) { + $lnk = array('Edit' => $this->alias.'/images/edit.png', + 'Remove' => $this->alias.'/images/icons/16x16/drop4.jpg', + 'Network' => $this->alias.'/images/icons/16x16/network.png' + ); + //echo "M"; + return "".$name.""; + } + + +} +/** + vim:et:sw=4:ts=4:enc=utf-8 + */ +?> diff --git a/app/config/feebf.php b/app/config/feebf.php new file mode 100644 index 0000000..c6885e1 --- /dev/null +++ b/app/config/feebf.php @@ -0,0 +1,161 @@ +authDB = new Db($AppDb['host'],$AppDb['user'],$AppDb['password'],$AppDb['name']); + } + /** + * @brief links in head section + * + */ + function generate_links() { + + echo "alias."/css/feeb/default.css\" media=\"screen\" title=\"feebf\"/>\n"; + echo << + + + +FIN; + + #echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + # + # Was necessary for IE !!! + # + echo "\n"; + } + + /** + * @brief default constructor + * + */ + function AppPage () { + $this->alias = "/administratif"; + } + + function __destruct() { + if (isset($this->authDB) ){ + echo "Call AppPage destructor\n"; + } + //parent::__destruct(); + } + /** + * @brief The top view of the web page + * + */ + function top () { + global $_SESSION; + if (isset($_SESSION['login'])) { + echo "
User:".$_SESSION['user_nom']." ".$_SESSION["user_prenom"]."link('Logout')."\"> logout
\n"; + } + echo "\n"; + #echo "
Initializing...
\n"; + } + + /** + * @brief The horizontal menu + * + * + */ + function hMenu () { + echo "
\n"; + #echo ""; + } + /** + * @brief The vertical menu + * + */ + function vMenu () { + global $_SESSION; + if (!defined($this->vmenu)) { + $this->vmenu = new Menu("Menu1"); + $this->vmenu->addMenuItem("accueil",$this->alias."/index.php"); + $this->vmenu->addMenuItem("register",$this->alias."/app/registration/register.php"); + if (isset($_SESSION['login'])) { + $this->vmenu->addMenuItem("logout",$this->link("Logout")); + if ($_SESSION['login'] == "andre.ebersold@free.fr") { + $this->vmenu->addMenuItem("System",$this->alias."/app/index.php?form=system"); + } + } else { + $this->vmenu->addMenuItem("login",$this->alias."/app/member/login.php?action=LOGIN_FORM"); + } + } + if (isset($_SESSION['login'])) { + $this->vmenuService = new Menu("Menu2"); + $this->vmenuService->title = "Services"; + $this->vmenuService->addMenuItem ("Profile",$this->alias."/app/member/profile.php"); + $this->vmenuService->addMenuItem ("Statistics",$this->link("Statistics")); + $this->vmenuService->addMenuItem ("Annuaire",$this->link("Annuaire")); + + } + $this->vmenu->show(); + if (isset($this->vmenuService)) { + $this->vmenuService->show(); + } + } + + function link($name) { + $lnk = array('Profile' => $this->alias.'/app/member/profile.php', + 'Home' => $this->alias.'/app/index.php', + 'Logout' => $this->alias.'/app/member/login.php?action=LOGOUT', + 'Statistics' => $this->alias.'/app/registration/counting.php', + 'Annuaire' => $this->alias.'/app/member/annuaire.php', + 'Jeunesse' => 'http://www.feebf.org/jeunesse/index.php', + 'Developpement' => 'http://www.feebf.org/evangelisation/index.ph', + 'Mission' => 'http://www.mission-feebf.com/', + 'Eglise' => 'http://www.feebf.org/eglises/annuaire.php', + 'Federation' => 'http://www.feebf.org/la_federation/index.html' + ); + return $lnk[$name]; + } + + function image($name) { + $lnk = array('Edit' => $this->alias.'/images/edit.png', + 'Remove' => $this->alias.'/images/icons/16x16/drop4.jpg', + 'Network' => $this->alias.'/images/icons/16x16/network.png' + ); + //echo "M"; + return "".$name.""; + } + + +} + +?> diff --git a/app/config/mysql.conf.php.example b/app/config/mysql.conf.php.example new file mode 100644 index 0000000..86470f6 --- /dev/null +++ b/app/config/mysql.conf.php.example @@ -0,0 +1,87 @@ + diff --git a/app/config/trinity.php b/app/config/trinity.php new file mode 100644 index 0000000..9b30de2 --- /dev/null +++ b/app/config/trinity.php @@ -0,0 +1,355 @@ +"._("Login").""; + $w= new FormInputText("user","",_("user :")); + $w->setSize($s,1); + $w->show(); + $w = new FormInputPassword("login","",_("password : ")); + $w->setSize($s,1); + $w->show(); + $w= new FormInputSubmit("submit","Login",""); + echo "
"; + $w->show(); + } +} +/** + * \brief + * + */ +class AppPage extends Page { + var $alias = "dede"; + var $topic; + var $vmenu; + var $lang = "en_US.UTF-8"; + var $is_logged = false; + var $with_prototype = true; + var $with_scriptaculus = true; + var $with_tinymce = true; + var $with_login = true; + var $with_aebw = true; + var $with_mydate = false; + var $with_mymenu = false; /* Causes trouble with prototype*/ + var $with_styleswitcher = false; + + + //var $lang = "fr_FR.UTF-8"; + function useAuthDB() + { + global $AppDb; + $this->authDB = new Db($AppDb['host'],$AppDb['user'],$AppDb['password'],$AppDb['name']); + } + /** + * @brief links in head section + * + */ + function generate_links() { + + echo "alias."/css/trinity/default.css\" media=\"screen\" title=\"trinity\"/>\n"; + echo << + + + +FIN; + echo ""; + + echo "\n"; + + if ($this->with_prototype) + echo "\n"; + if ($this->with_scriptaculus) + echo "\n"; + if ($this->with_mymenu) + echo "\n"; + if ($this->with_styleswitcher) { + echo "\n"; + echo "\n"; + } + if ($this->with_login) { + echo "\n"; + echo "\n"; + } + if ($this->with_aebw) + echo "\n"; + if ($this->with_tinymce) { + echo "\n"; + echo << + tinyMCE.init({ + mode: "textareas", + theme: "advanced", + plugins: "save,advimage,advlink,inlinepopups,paste,fullscreen", + entities: "38,amp,160,nbsp", + theme_advanced_buttons1 : "save,cancel,|,bold,italic,underline,|,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,|,bullist,numlist,|,indent,outdent,|,undo,redo,image,link,unlink,code", + theme_advanced_buttons2 : "cut,copy,paste,|,forecolor,backcolor,|,fullscreen", + theme_advanced_buttons3 : "", + theme_advanced_buttons1_add : "save", + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + theme_advanced_statusbar_location : "button", + theme_advanced_path : false, + invalid_elements : "", + save_enablewhendirty: true, + save_onsavecallback : "editSave", + save_oncancelcallback : "editCancel" + }); + +FIN; + } + # + # Was necessary for IE !!! + # + /* + echo "\n"; + */ + } + + /** + * @brief default constructor + * All pages will know if we are logged in or not. They just have to check + * the is_logged variable; + * + */ + function __construct () { + GLOBAL $_GET; + if (isset($_GET['lang']) ) { + $this->lang= $_GET['lang']; + } + $domaine = 'trinity'; + $this->alias = "/trinity/"; + setlocale(LC_ALL,$this->lang); + bindtextdomain("trinity","./locale/"); + bind_textdomain_codeset($domaine,"UTF-8"); + textdomain($domaine); + putenv("LANG=".$this->lang); + //echo "--".getenv("LANG")." - ".getenv("LANGUAGE"); + if (isset($_SESSION['login'])) { + $this->is_logged=true; + } + $this->keywords="Trinity International Church, Christian, Fellowship, Strasbourg,C&MA Strasbourg Fellowship, CMA, C&MA, Christian Missionary Alliance, International fellowship,International Church, women, Bible study, English speaking, English church,Strasbourg, Worship,Church, Prayer, God, Christian "; + } + + function __destruct() { + if (isset($this->authDB) ){ + echo "Call AppPage destructor\n"; + } + //parent::__destruct(); + } + /** + * @brief The top view of the web page + * + * + */ + function top () { + echo "
\n"; +/* + * echo <<TrinityInternationalChurch + +FIN; + echo _("of Strasbourg, France").$this->image("Vigne",51,37).""; + */ + } + + /** + * @brief bottom_link + * + * + */ + function bottom_link($name) { + return ""._($name).""; + } + /** + * @brief bottom + * + * + */ + function bottom() { + $sep=""; + echo "'; + echo _("Send comments or suggestion to :"); + echo "
CHURCHQUEST CHRISTIAN WEB HOSTING"; + } + /** + * @brief The horizontal menu + * + * + */ + function hMenu () { + $m = new Menu("mh","",'horizontal'); + $lf = new Menu("smh","",'horizontal'); + $lf->addMenuItem(_("North"),$this->link(_("LifeGroups"))); + $lf->addMenuItem(_("Center"),$this->link(_("LifeGroups"))); + $lf->addMenuItem(_("South"),$this->link(_("LifeGroups"))); + $m->addMenuItem(_("Home"),$this->link(_("Home"))); + $m->addMenuItem(_("Discover who we are"),$this->link(_("Who we are"))); + $m->addMenuItem(_("Calendar"),$this->link(_("Calendar"))); + //$m->addSubMenu(_("LifeGroups"),$this->link(_("LifeGroups")),$lf); + $m->addMenuItem(_("LifeGroups"),$this->link(_("LifeGroups"))); + $m->addMenuItem(_("Contact us"),$this->link(_("Contact us"))); + $m->show(); + echo ""; + } + /** + * @brief The vertical menu + * + */ + function vMenu () { + global $_SESSION; + if (!defined($this->vmenu)) { + $this->vmenu = new Menu("Menu1"); + $this->vmenu->title = _("Home"); + $shares = new Menu("Menu4"); + $shares->addMenuItem(_("His shares"),$this->link(_("Shares"))); + $this->vmenu->addMenuItem(_("Welcome"),$this->link(_("Home"))); + $this->vmenu->addMenuItem(_("Who we are"),$this->link(_("Who we are"))); + $this->vmenu->addMenuItem(_("What we believe"),$this->link(_("What we believe"))); + $this->vmenu->addSubMenu(_("Meet our Pastor"),$this->link(_("Meet our Pastor")),$shares); + $this->vmenu->addMenuItem(_("What to expect"),$this->link(_("What to expect"))); + $this->vmenu->addMenuItem(_("LifeGroups"),$this->link(_("LifeGroups"))); + $this->vmenu->addMenuItem(_("Calendar"),$this->link(_("Calendar")),""); + $this->vmenu->addMenuItem(_("Podcast"),$this->link(_("Podcast"))); + $this->vmenu->addMenuItem(_("Contact us"),$this->link(_("Contact us"))); + $this->vmenu->addMenuItem(_("Maps & Directions"),$this->link(_("Maps"))); + $this->vmenu->addMenuItem(_("Links"),$this->link(_("Links"))); + } + $this->vmenuService = new Menu("Menu3"); + $this->vmenuService->title = _("Your")."
"._("Spiritual")."
"._("Journey"); + $this->vmenuService->addMenuItem (_("Who is Jesus ?"),$this->link(_("Home"))); + $this->vmenuService->addMenuItem (_("Is God the Center ?"),$this->link(_("Home"))); + $this->vmenuService->addMenuItem (_("Daily devotionals"),$this->link(_("Home"))); + $this->vmenuService->addMenuItem (_("You're not alone"),$this->link(_("Home"))); + + $question = new Menu("Menu2"); + $question->addMenuItem(_("Most important"),$this->link(_("Most important"))); + $question->addMenuItem(_("About God"),$this->link(_("Home"))); + $question->addMenuItem(_("Christian Faith"),$this->link(_("Home"))); + $question->addMenuItem(_("Baptism"),$this->link(_("Baptism"))); + $this->vmenuService->addSubMenu(_("Questions"),"#",$question); + $s = new Session(); + if ($s->is_logged_in()) { + $this->vmenuService->addMenuItem (_("Logout"),"#","logout"); + } else { + $this->vmenuService->addMenuItem (_("Member"),"#","login"); + } + $this->vmenu->show(); + if (isset($this->vmenuService)) { + $this->vmenuService->show(); + } + /** + * Add a login form + */ + if (!isset($_SESSION['login'])){ + $s=16; + $f = new Form($_SERVER['PHP_SELF']); + $f->class="menu-login"; + $w= new loginLayoutTrinity(); + $f->addInput($w); + // $f->show(); + } + } + /** + * @brief + * + */ + function link($name) { + $lnk = array(_('Profile') => $this->alias.'/app/member/profile.php', + _('Home') => $this->alias.'index.php?topic=accueil&lang='.$this->lang, + _('Shares') => $this->alias.'index.php?topic=pastorshares&lang='.$this->lang, + _('Most important') => $this->alias.'index.php?topic=PastorShares/most_important&lang='.$this->lang, + _('LifeGroups') => $this->alias.'index.php?topic=lifegroups&lang='.$this->lang, + _('Contact us') => $this->alias.'index.php?topic=Contact&lang='.$this->lang, + _('Meet our Pastor') => $this->alias.'index.php?topic=pastor&lang='.$this->lang, + _('Who we are') => $this->alias.'index.php?topic=who_we_are&lang='.$this->lang, + _('What we believe') => $this->alias.'index.php?topic=what_we_believe&lang='.$this->lang, + _('What to expect') => $this->alias.'index.php?topic=what_expect&lang='.$this->lang, + _('Podcast') => $this->alias.'podcast.php?lang='.$this->lang, + _('Calendar') => $this->alias.'/calendar.php?lang='.$this->lang, + _('Links') => $this->alias.'/index.php?topic=links&lang='.$this->lang, + _('Maps') => $this->alias.'/index.php?topic=map', + _('Baptism') => $this->alias.'/index.php?topic=PastorShares/baptism&lang='.$this->lang, + _('Location') => $this->alias.'/index.php?topic=location', + _('Federation') => '' + ); + return $lnk[$name]; + } + + /** + * + */ + function news() { + echo "
"; + } + /** + * + * + */ + function image($name,$width=0,$height=0) { + $str_height=""; + $str_width=""; + $lnk = array('Vigne' => $this->alias.'/images/trinity/Picture1.jpg', + 'People' => $this->alias.'/images/trinity/peoplewalking.jpg', + 'Network' => $this->alias.'/images/icons/16x16/network.png' + ); + if ($height) $str_height=" height='".$height."' "; + if ($width) $str_width=" width='".$width."' "; + return "".$name.""; + } + + +} + +?> diff --git a/app/distro/distribution.php b/app/distro/distribution.php new file mode 100644 index 0000000..290c4be --- /dev/null +++ b/app/distro/distribution.php @@ -0,0 +1,232 @@ +xml = simplexml_load_file(dirname(__FILE__).$dbxml); + $at= get_object_vars($this->xml->attributes()); + $this->db = new SQLite3($at["@attributes"]['file']); + } + + + function __desctructor () { + } + + function getRequest($name) { + $stmt = $this->xml->xpath("/sql/statement[@req='".$name."']"); + $s = $stmt[0]->asXML(); + return preg_replace('/(.*?)<\/statement>/s',"\\2",$s); + } + + /** + * \brief, this could be the begining of all json classes + */ + function getContent() + { + $this->content = file_get_contents("php://input",'r'); + $this->json = json_decode($this->content); + } + + function critSearch($matches) + { + if ($matches[1] = "byName") { + return sprintf($matches[2],$this->json->like); + } else + return ""; + } + /** + * Search a short list + */ + function search($string) { + $stmt = $this->xml->xpath("/sql/statement[@req='search']"); + $s = $stmt[0]->asXML(); + + $s = preg_replace_callback('/(.*?)<\/call>/',array(get_class($this),"critSearch"),$s); + return $s; + } + + function critListSection($matches) + { + if ($matches[1] == "bySection") { + return sprintf($matches[2],$this->json,$this->number*$this->page,$this->number); + } else + return ""; + } + + /** + * + */ + function listSection($params) { + $stmt = $this->xml->xpath("/sql/statement[@req='list']"); + $s = $stmt[0]->asXML(); + $this->json = $params[0]; + $this->number = 50; + $this->page = 0; + $s = preg_replace_callback('/(.*?)<\/call>/',array(get_class($this),"critListSection"),$s); + + $res = preg_replace('/(.*?)<\/statement>/s',"\\2",$s); + $arr = $this->db->query($res); + if ($arr == NULL) { + echo "0 not her".$res; + } + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) { + while ($row = $arr->fetchArray()) { + echo "0 not her".$res; + //print_r($row[0]); + } + } else { + $res = Array(); + while (($row = $arr->fetchArray())) { + $res[] = array('nv'=>$row[0], + 'name'=>$row[1], + 'version' => $row[2], + 'id' => $row[3]); + } + } + return $res; + + } + /* + * + */ + function listDistributions($params) { + $res = $this->getRequest('DistList'); + $arr = $this->db->query($res); + if ($arr == NULL) { + echo "0 not her".$s; + } + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) { + while ($row = $arr->fetchArray()) { + print_r($row[0]); + } + } else { + $res = Array(); + while (($row = $arr->fetchArray())) { + $res[] = array('id'=>$row[0],'name'=>$row[1], + 'board_id' => $row[2], + 'version' => $row[3], + 'packaging' => $row[4], + 'cflags' => $row[5], + 'ldflags' =>$row[6], + 'board_name' =>$row[7] + ); + } + } + return $res; + } + /** + * DistPackageList + * Return the packages for a given distribution + */ + function DistPackageList($params) + { + $res = sprintf($this->getRequest('DistPackageList'),$params); + $arr = $this->db->query($res); + if ($arr == NULL) { + echo "0 not her".$res; + } + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) { + while ($row = $arr->fetchArray()) { + print_r($row[0]); + } + } else { + $res = Array(); + while (($row = $arr->fetchArray())) { + $res[] = array('id'=>$row[0],'name'=>$row[1], + 'version' => $row[2], + 'depends' => $row[3], + 'pv_id' => $row[4] + ); + } + } + return $res; + } + /** + * addPackage + * What's the content of row after a success insert ? + */ + function addPackage($params) + { + $res = sprintf($this->getRequest('addPackage'),$params[0],$params[1]); + $arr = $this->db->query($res); + + if ($arr == NULL) { + echo "0 not her".$res." size=".sizeof($params)." pkg=".$params[1]." dst=".$params[0]; + } + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) { + while ($row = $arr->fetchArray()) { + print_r($row[0]); + } + } else { + $res = Array('' => ''); + } + return $res; + } + /** + * addPackage + * What's the content of row after a success insert ? + */ + function rmPackage($params) + { + $res = sprintf($this->getRequest('rmPackage'),$params[0]); + $arr = $this->db->query($res); + if ($arr == NULL) + { + echo "0 not her".$res." size=".sizeof($params)." pkg=".$params[0] ; + } + $res = NULL; + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) + { + while ($row = $arr->fetchArray()) { + print_r($row[0]); + } + } else { + $res = Array('' => ''); + } + return $res; + } + + +} + +/* + * vim:et:ts=2:sw=2:encoding=utf-8 + */ + +$s = new Session(); +if ($s->is_logged_in() ) { + $p = New Distribution("/sql-requests.xml"); + if (JsonRPCServer::is_json_rpc()) { + try { + JsonRPCServer::handle($p); + } catch (Exception $e) { + $res = array('response' => 'failed', 'error' => 'Exception ' , 'id' => '1'); + header('X-JSON: '.json_encode($res)); + } + } else { + $res = array('response' => 'failed', 'error' => 'No Json request'.$_SERVER['CONTENT_TYPE'] , 'id' => '1'); + header('X-JSON: '.json_encode($res)); + } +} else { + $res = array('response' => 'failed', 'error' => 'yes why' , 'reason' => 'Not auth idx'); + header('X-JSON: '.json_encode($res)); +} +?> + diff --git a/app/distro/index.en_US.UTF-8.xml b/app/distro/index.en_US.UTF-8.xml new file mode 100644 index 0000000..154d6a7 --- /dev/null +++ b/app/distro/index.en_US.UTF-8.xml @@ -0,0 +1,75 @@ + + + + + app/distro/packages.js + + Distro, the distribution production tool + + $Date: 2010/03/01 17:06:45 $ + $Id: index.en_US.UTF-8.xml,v 1.1 2010/03/01 17:06:45 aebersol Exp $ + + Distro +

This is my web based package and distribution management + systems. The goal is to production embedded distribution and keep track off + public domain packages.

+
+
+
+ +
+ Production Followup + +
    +
  • Launch a production
  • +
  • Status of the production
  • +
+
+
+
+ +
+
+ Distribution composition + +
    +
  • Create / Define a distribution
  • +
  • Update packages
  • +
  • clone
  • +
+
+
+
+ Activities + +
    +
  • I work for Alcatel Lucent as contracting
  • +
  • I maintain remotly a remote server (from dedibox) for an association
  • +
+
+
+ +
+
+
+ +
diff --git a/app/distro/index.php b/app/distro/index.php new file mode 100644 index 0000000..50c7e4b --- /dev/null +++ b/app/distro/index.php @@ -0,0 +1,162 @@ +xml = simplexml_load_file(dirname(__FILE__).$dbxml); + $at= get_object_vars($this->xml->attributes()); + $this->db = new SQLite3($at["@attributes"]['file']); + } + + + function __desctructor () { + } + + /** + * \brief, this could be the begining of all json classes + */ + function getContent() + { + $this->content = file_get_contents("php://input",'r'); + $this->json = json_decode($this->content); + } + + function critSearch($matches) + { + if ($matches[1] == $this->criteria) { + return sprintf($matches[2],$this->json->like); + } else + return ""; + } + /** + * Search a short list + */ + function search($string) { + $stmt = $this->xml->xpath("/sql/statement[@req='search']/."); + $s = $stmt[0]->asXML(); + $this->criteria='byName'; + $s = preg_replace_callback('/(.*?)<\/call>/',array(get_class($this),"critSearch"),$s); + $res = preg_replace('/(.*?)<\/statement>/s',"\\2",$s); + + $arr = $this->db->query($res); + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) { + while ($row = $arr->fetchArray()) { + print_r($row[0]); + } + } else { + $res = Array('values' => Array()); + while (($row = $arr->fetchArray())) { + $res['values'][] = array('nv'=>$row[0],'name'=>$row[1],'version' => $row[2]); + } + } + return $res; + } + + function critDescribe($matches) + { + if (($matches[1] == $this->criteria)) { + return sprintf($matches[2],$this->json->name); + } else + return ""; + } + + /** + * + * + */ + function describe($name,$version) + { + $stmt = $this->xml->xpath("/sql/statement[@req='describe']/."); + $s = $stmt[0]->asXML(); + $this->criteria='byName'; + + $s = preg_replace_callback('/(.*?)<\/call>/', + array(get_class($this),"critDescribe"),$s); + $res = preg_replace('/(.*?)<\/statement>/s',"\\2",$s); + + $arr = $this->db->query($res); + if ($arr->numColumns() && $arr->columnType(0) != SQLITE3_NULL ) { + while ($row = $arr->fetchArray()) { + print_r($row[0]); + } + } else { + $res = Array('values' => Array()); + while (($row = $arr->fetchArray())) { + $res['values'][] = array( + 'ver' => $row[0], + 'fln' => $row[1], + 'des' => $row[2], + 'web' => $row[3], + 'url' => $row[4], + 'dep' => $row[5], + 'id' => $row[6], + 'sec' => $row[7] + ); + } + } + return $res; + } + /** + * + */ + function doMethod() { + $res = array('response' => 'failed', 'reason' => 'Bad method'); + switch ($this->json->method) { + case 'search': + $res['reason']=$this->search($this->json->like); + header('X-JSON: '.json_encode($res)); + break; + case 'describe': + $res['reason']=$this->describe($this->json->name,$this->json->version); + header('X-JSON: '.json_encode($res)); + break; + case 'listPackage': + /* Need version and Package Name*/ + header('X-JSON: '.json_encode($res)); + break; + case 'update': + /* Need version Package Name, field to update */ + header('X-JSON: '.json_encode($res)); + break; + default: + header('X-JSON: '.json_encode($res)); + } + die(); + } +} + +/* + * vim:et:ts=2:sw=2:encoding=utf-8 + */ + + $s = new Session(); + if ($s->is_logged_in() ) { + $p = New Packages("/sql-requests.xml"); + if ($_SERVER['REQUEST_METHOD'] == "POST") { + $p->getContent(); + $p->doMethod(); + } + } else { + $res = array('response' => 'failed', 'error'=>'yes' , 'reason' => 'Not auth'); + header('X-JSON: '.json_encode($res)); + //header("Location: "."../member/login.php"); + } +?> + diff --git a/app/distro/packages.js b/app/distro/packages.js new file mode 100644 index 0000000..7df23d1 --- /dev/null +++ b/app/distro/packages.js @@ -0,0 +1,47 @@ +/* + * vim:et:sw=2:et:ts=2:encoding=utf-8 + */ +function testLoadPackages(lik) +{ + var obj ={ + method:'search', + like: lik + }; + var str=Object.toJSON(obj); + + new Ajax.Request('app/distro/index.php', + { + method: 'post', + postBody: str, + onFailure: function () { + alert("Failed Request"); + }, + onSuccess: function(response) { + if (response.headerJSON !=null) { + var vals = response.headerJSON.reason.values; + el = $('elements-result'); + enums = $('elements-results-enum'); + enums.childElements().each (function (e) {e.remove();}); + el.update("We have "+vals.size()+" packages that start with "+lik+":"); + vals.each ( function (e) { + enums.insert("
  • "+e+"
  • "); + }); + } else + alert("Success Request:"+response.responseText); + } + }); + +} + +function initPackages() +{ + var alpha=String('abcdefghijklmnopqrstuvwxyz').toArray(); + + alpha.each( function (e) { + $('elements').insert(' '+e+''); + Event.observe($('search-'+e),'click',function () {testLoadPackages(e);}); + }); + +} +//Event.observe(window,'load',function () {try {testLoadPackages('a');} catch (e){alert("Failed load ");}}); +//Event.observe(window,'load',function () {try {initPackages('a');} catch (e){alert("Failed load ");}}); diff --git a/app/distro/sql-requests.xml b/app/distro/sql-requests.xml new file mode 100644 index 0000000..b1bb443 --- /dev/null +++ b/app/distro/sql-requests.xml @@ -0,0 +1,56 @@ + + + + select packages.name || "_" || version ,packages.name,package_version.version,package_version.id from packages,package_version + where packages.name=package_version.name and packages.name like('%s%%') order by packages.name + where packages.name=package_version.name and packages.section like('%s%%') order by packages.name LIMIT %d,%d; + + + select distribution.id as id, + distribution.name as name, + distribution.board_id as board_id, + distribution.version as version, + packaging, + cflags, + ldflags, + boards.board as board_name + from distribution,boards where distribution.board_id = boards.id; + + + select package_list.id as id, + package_version.name as name, + package_version.version as version, + package_version.depends as depends, + package_version.id as pv_id + from package_list,package_version + where package_version.id = package_list.package_id and + package_list.distribution_id = %s; + + + + insert into package_list(distribution_id,package_id) values(%s,%s); + + + delete from package_list where id = %s; + + + + + + + select packages.name || "_" || version, packages.name,version,packages.id from packages,package_version + where packages.name=package_version.name and packages.name like('%s%%') order by packages.name; + + + + + + select package_version.version,package_version.filename,packages.description,packages.website,package_version.url,package_version.depends,package_version.id,packages.section from packages,package_version where packages.name=package_version.name and + package_version.version="%s" and packages.name="%s" + packages.name="%s" ; + + + + diff --git a/app/distro/view.en_US.UTF-8.xml b/app/distro/view.en_US.UTF-8.xml new file mode 100644 index 0000000..3b835f3 --- /dev/null +++ b/app/distro/view.en_US.UTF-8.xml @@ -0,0 +1,51 @@ + + + + + app/distro/view.js + + Distro, the distribution production tool + + $Date: 2010/03/12 17:46:24 $ + $Id: view.en_US.UTF-8.xml,v 1.4 2010/03/12 17:46:24 aebersol Exp $ + + Distro +

    Here we have repository of packages. The Alphabeth allows you to make a quick search.back

    +
    +
    Test
    +
    +
    +
    + Package Management + +
    Test result
    +
      +
    • +
    +
    +
    +
    + +
    +
    + Distribution composition + +
    + +
    +
    +
    +
    +

    Now, I should add some comment on the next step.

    This is at the wrong place

    +
    + + + diff --git a/app/distro/view.js b/app/distro/view.js new file mode 100644 index 0000000..feba9a9 --- /dev/null +++ b/app/distro/view.js @@ -0,0 +1,85 @@ +/* + * vim:et:sw=2:et:ts=2:encoding=utf-8 + */ +function testLoadPackages(lik) +{ + var obj ={ + method:'search', + like: lik + }; + var str=Object.toJSON(obj); + + new Ajax.Request('app/distro/index.php', + { + method: 'post', + postBody: str, + onFailure: function () { + alert("Failed Request"); + }, + onSuccess: function(response) { + if (response.headerJSON !=null) { + var vals = response.headerJSON.reason.values; + el = $('elements-result'); + enums = $('elements-results-enum'); + enums.childElements().each (function (e) {e.remove();}); + el.update("We have "+vals.size()+" packages that start with "+lik+":"); + vals.each ( function (e) { + enums.insert("
  • "+e.nv+"
  • "); + Event.observe($(e.nv),'click',function () {DescribePackage(e.name,e.version)}); + }); + } else + alert("Success Request:"+response.responseText); + } + }); + +} + +function DescribePackage(nm,ver) +{ + var obj ={ + method:'describe', + name: nm, + version: ver + + }; + var str=Object.toJSON(obj); + + new Ajax.Request('app/distro/index.php', + { + method: 'post', + postBody: str, + onFailure: function () { + alert("Failed Request"); + }, + onSuccess: function(response) { + if (response.headerJSON !=null) { + var vals = response.headerJSON.reason.values; + el = $('describe'); + el.childElements().each (function (e) {e.remove();}); + el.insert("

    Package "+nm+"

    "); + el.insert("

    "+vals[0].des+"

    "); + el.insert("

    Version :"+vals[0].ver+"

    "); + el.insert("

    File Name :"+vals[0].fln+"

    "); + el.insert("

    Web Site :"+vals[0].web+"

    "); + el.insert("

    Depends :"+vals[0].dep+"

    "); + el.insert("

    Section :"+vals[0].sec+"

    "); + } else + alert("Success Request:"+response.responseText); + } + }); + +} + + +function initPackages() +{ + var alpha=String('abcdefghijklmnopqrstuvwxyz').toArray(); + + alpha.each( function (e) { + $('elements').insert(' '+e+''); + Event.observe($('search-'+e),'click',function () {testLoadPackages(e);}); + }); + +} +//Event.observe(window,'load',function () {try {testLoadPackages('a');} catch (e){alert("Failed load ");}}); +Event.observe(window,'load',function () {try {initPackages('a');} catch (e){alert("Failed load ");}}); diff --git a/app/distro/view/distribution.xml b/app/distro/view/distribution.xml new file mode 100644 index 0000000..82fc460 --- /dev/null +++ b/app/distro/view/distribution.xml @@ -0,0 +1,284 @@ + + + + + + Plan Comptable + + + + +

    Edition du plan Comptable

    +

    +

    + +
    + + + + Société + + Strange + + Idendité + + + +
    + + +
    + + + +
    + + + FRANCE +
    +
    +
    + + +
    + + +
    +
    +
    + + Exercice + + display boxes : enable + + + + Devise + + display boxes: + enable + disable + + + +
    +
    + + + + Plan + +
    + Her +
    + + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
    +
    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Titre du tableau
    classLibelléParentType
    + + Actif + Passif + Produit + Charge + Banque + + + +
    1Compte de test0Actif + +
    + + +

    + +
    +
    +
    +
    + + + + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table + +
    +
    + + Calendar + + Test12 +
    + +
    +
    +
    + +
    +
    diff --git a/app/distro/view/index.fr_FR.UTF8.xml b/app/distro/view/index.fr_FR.UTF8.xml new file mode 100644 index 0000000..1b0eb79 --- /dev/null +++ b/app/distro/view/index.fr_FR.UTF8.xml @@ -0,0 +1,269 @@ + + + + + + + Distro + + + + +

    Distro

    +

    Est un service de production de distribution. L'utilisateur, choisi + sa chaine de compilation, les paquets logiciels devant se trouver dans la distribution + final.

    + +
    + + + + + + Tool chaines + + + Hardware + + + + + +
    + + + + + + +
    +
    + + Idendité + + + + + + + + + +
    + + +
    + + + +
    + + + FRANCE +
    +
    +
    +
    +
    +
    +
    + + binutils + + display boxes : enable + + + + gcc + + display boxes: + enable + disable + + + + + libc + + display boxes : enable + + + + kernel + + display boxes : enable + + +
    +
    + + + + Distributions + + + Distribution + +
    + + + + +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    + + Catégories + + Base + + Core + + + Shell + + + Kernel + + + + Librarie + + + Applications + + Admin + + + Web + + + Mail + + + Jeux + + + + Réseau + + Net + + + Sécurité + + + + Developpement + + + Misc + + + Utiles + + + Telephonie + + + X11 + + + Non Trie + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +

    + +
    +
    + + + + + Package + +

    Search a package, or commit a new one.

    + + Search + + + + +
    P
    +
    +
    +
    • test
    +
    +
    + + Production + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table +
    +
    + + Calendar + + Test12 +
    + +
    +
    +
    + + + + +

    Edition du plan Comptable

    +

    +

    + +
    + + + + + + Société + + Strange + + Idendité + + + +
    + + +
    + + + +
    + + + FRANCE +
    +
    +
    + + +
    + + +
    +
    +
    + + Exercice + + display boxes : enable + + + + Devise + + display boxes: + enable + disable + + + +
    +
    + + + + Plan + +
    + Her +
    + + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
    +
    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Titre du tableau
    classLibelléParentType
    + + Actif + Passif + Produit + Charge + Banque + + + +
    1Compte de test0Actif + +
    + + +

    + +
    +
    +
    +
    + + + + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table + +
    +
    + + Calendar + + Test12 +
    + +
    +
    +
    + +
    +
    diff --git a/app/distro/view/pkg.xml b/app/distro/view/pkg.xml new file mode 100644 index 0000000..82fc460 --- /dev/null +++ b/app/distro/view/pkg.xml @@ -0,0 +1,284 @@ + + + + + + Plan Comptable + + + + +

    Edition du plan Comptable

    +

    +

    + +
    + + + + Société + + Strange + + Idendité + + + +
    + + +
    + + + +
    + + + FRANCE +
    +
    +
    + + +
    + + +
    +
    +
    + + Exercice + + display boxes : enable + + + + Devise + + display boxes: + enable + disable + + + +
    +
    + + + + Plan + +
    + Her +
    + + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
    +
    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Titre du tableau
    classLibelléParentType
    + + Actif + Passif + Produit + Charge + Banque + + + +
    1Compte de test0Actif + +
    + + +

    + +
    +
    +
    +
    + + + + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table + +
    +
    + + Calendar + + Test12 +
    + +
    +
    +
    + +
    +
    diff --git a/app/distro/view/tc.xml b/app/distro/view/tc.xml new file mode 100644 index 0000000..82fc460 --- /dev/null +++ b/app/distro/view/tc.xml @@ -0,0 +1,284 @@ + + + + + + Plan Comptable + + + + +

    Edition du plan Comptable

    +

    +

    + +
    + + + + Société + + Strange + + Idendité + + + +
    + + +
    + + + +
    + + + FRANCE +
    +
    +
    + + +
    + + +
    +
    +
    + + Exercice + + display boxes : enable + + + + Devise + + display boxes: + enable + disable + + + +
    +
    + + + + Plan + +
    + Her +
    + + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
    +
    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Titre du tableau
    classLibelléParentType
    + + Actif + Passif + Produit + Charge + Banque + + + +
    1Compte de test0Actif + +
    + + +

    + +
    +
    +
    +
    + + + + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table + +
    +
    + + Calendar + + Test12 +
    + +
    +
    +
    + +
    +
    diff --git a/app/ftp/ftp.sql b/app/ftp/ftp.sql new file mode 100644 index 0000000..1bd21b8 --- /dev/null +++ b/app/ftp/ftp.sql @@ -0,0 +1,68 @@ +# +# System commandes +#groupadd -g 2001 ftpgroup +#useradd -u 2001 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser + +#mysql -u root -p + +#create database ftp; +GRANT SELECT, INSERT, UPDATE, DELETE ON ftp.* TO 'proftpd'@'localhost' IDENTIFIED BY 'password'; +GRANT SELECT, INSERT, UPDATE, DELETE ON ftp.* TO 'proftpd'@'localhost.localdomain' IDENTIFIED BY 'password'; +FLUSH PRIVILEGES; +USE ftp; + +CREATE TABLE IF NOT EXISTS ftpgroup ( +groupname varchar(16) NOT NULL default '', +gid smallint(6) NOT NULL default '5500', +members varchar(16) NOT NULL default '', +KEY groupname (groupname) +) TYPE=MyISAM COMMENT='ProFTP group table'; + +CREATE TABLE IF NOT EXISTS ftpquotalimits ( +name varchar(30) default NULL, +quota_type enum('user','group','class','all') NOT NULL default 'user', +per_session enum('false','true') NOT NULL default 'false', +limit_type enum('soft','hard') NOT NULL default 'soft', +bytes_in_avail int(10) unsigned NOT NULL default '0', +bytes_out_avail int(10) unsigned NOT NULL default '0', +bytes_xfer_avail int(10) unsigned NOT NULL default '0', +files_in_avail int(10) unsigned NOT NULL default '0', +files_out_avail int(10) unsigned NOT NULL default '0', +files_xfer_avail int(10) unsigned NOT NULL default '0' +) TYPE=MyISAM; + +CREATE TABLE IF NOT EXISTS ftpquotatallies ( +name varchar(30) NOT NULL default '', +quota_type enum('user','group','class','all') NOT NULL default 'user', +bytes_in_used int(10) unsigned NOT NULL default '0', +bytes_out_used int(10) unsigned NOT NULL default '0', +bytes_xfer_used int(10) unsigned NOT NULL default '0', +files_in_used int(10) unsigned NOT NULL default '0', +files_out_used int(10) unsigned NOT NULL default '0', +files_xfer_used int(10) unsigned NOT NULL default '0' +) TYPE=MyISAM; + +CREATE TABLE IF NOT EXISTS ftpuser ( +id int(10) unsigned NOT NULL auto_increment, +userid varchar(32) NOT NULL default '', +passwd varchar(32) NOT NULL default '', +uid smallint(6) NOT NULL default '5500', +gid smallint(6) NOT NULL default '5500', +homedir varchar(255) NOT NULL default '', +shell varchar(16) NOT NULL default '/sbin/nologin', +count int(11) NOT NULL default '0', +accessed datetime NOT NULL default '0000-00-00 00:00:00', +modified datetime NOT NULL default '0000-00-00 00:00:00', +PRIMARY KEY (id), +UNIQUE KEY userid (userid) +) TYPE=MyISAM COMMENT='ProFTP user table'; + + +INSERT INTO `ftpgroup` (`groupname`, `gid`, `members`) VALUES ('ftpgroup', 2001, 'ftpuser'); + +INSERT INTO `ftpquotalimits` (`name`, `quota_type`, `per_session`, `limit_type`, `bytes_in_avail`, `bytes_out_avail`, `bytes_xfer_avail`, `files_in_avail`, `files_out_avail`, `files_xfer_avail`) VALUES ('webmaster', 'user', 'true', 'hard', 15728640, 0, 0, 0, 0, 0); + +INSERT INTO `ftpuser` (`id`, `userid`, `passwd`, `uid`, `gid`, `homedir`, `shell`, `count`, `accessed`, `modified`) VALUES (1, 'webmaster', 'secret', 2001, 2001, '/var/www/vhots/www.feebf.org/htdocs', '/sbin/nologin', 0, '', ''); + + +#quit; diff --git a/app/ftp/proftpd.conf b/app/ftp/proftpd.conf new file mode 100644 index 0000000..d25e1c9 --- /dev/null +++ b/app/ftp/proftpd.conf @@ -0,0 +1,49 @@ +#http://www.howtoforge.com/proftpd_mysql_virtual_hosting_debian_etch_p3 +# used to connect to the database +# databasename@host database_user user_password +SQLConnectInfo ftp@localhost proftpd password + + +# Here we tell ProFTPd the names of the database columns in the "usertable" +# we want it to interact with. Match the names with those in the db +SQLUserInfo ftpuser userid passwd uid gid homedir shell + +# Here we tell ProFTPd the names of the database columns in the "grouptable" +# we want it to interact with. Again the names match with those in the db +SQLGroupInfo ftpgroup groupname gid members + +# set min UID and GID - otherwise these are 999 each +SQLMinID 500 + +# create a user's home directory on demand if it doesn't exist +SQLHomedirOnDemand on + +# Update count every time user logs in +SQLLog PASS updatecount +SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser + +# Update modified everytime user uploads or deletes a file +SQLLog STOR,DELE modified +SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser + +# User quotas +# =========== +QuotaEngine on +QuotaDirectoryTally on +QuotaDisplayUnits Mb +QuotaShowQuotas on + +SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail FROM ftpquotalimits WHERE name = '%{0}' AND quota_type = '%{1}'" + +SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used FROM ftpquotatallies WHERE name = '%{0}' AND quota_type = '%{1}'" + +SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used = files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'" ftpquotatallies + +SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" ftpquotatallies + +QuotaLimitTable sql:/get-quota-limit +QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally + +RootLogin off +RequireValidShell off + diff --git a/app/index.php b/app/index.php new file mode 100644 index 0000000..f584e03 --- /dev/null +++ b/app/index.php @@ -0,0 +1,138 @@ +Page(); + $this->alias="/andre/"; + } + + function initXSL(){ + $namespace= ""; + $this->xp = new XsltProcessor(); + $xsl = new DomDocument; + //$xsl->load('xsl/gui.xsl'); + $xsl->load('site/page.xsl'); + $this->xp->importStylesheet($xsl); + //$params['site']= "_xgui"; + $params['site']= "andre"; + $params["lang"] = "fr"; + $params["mode"] = 'standalone'; + $params["alias"] = $this->alias; + $this->xp->setParameter($namespace,$params); + } + function showXML ($file) { + $this->initXSL(); + $xml = new DomDocument(); + $xml->load($file); + if ($html = $this->xp->transformToXML($xml) ) { + echo $html; + } else { + echo "Failed Transform XML\n"; + } + } + + function showHTMLUser() { + } + + function showHTML() { + global $login; + echo "

    Administration F.E.E.B.F

    "; + echo <<Introduction + Bienvenue sur le nouveau site d administration de la fédération. + +
    + +END; + if ($login != "" ) { + if ($this->form != "") { + echo "\n"; + } else { + /* Two colmuns with the services*/ + $items = array(); + $items[0]['image'] = $this->alias.'/images/alcatel_lucent/q2_launch_50x50px.jpg'; + $items[0]['title'] = "Déclaration annuelle"; + $items[0]['link'] = $this->alias."/app/registration/counting.php"; + + $items[1]['image'] = $this->alias.'/images/alcatel_lucent/wishes_2008_50x50.jpg'; + $items[1]['title'] = "Impression des déclarations des dons pour le centre des imports"; + $items[1]['link'] = $this->alias."/app/registration/counting.php"; + + $items[2]['image'] = $this->alias.'/images/alcatel_lucent/EAAmap_50x50.jpg'; + $items[2]['title'] = "Lettre de prière"; + $items[2]['link'] = $this->alias."/app/registration/counting.php"; + + $items[3]['image'] = $this->alias.'/images/alcatel_lucent/day1_50x50.jpg'; + $items[3]['title'] = "Lettre Mensuelle"; + $items[3]['link'] = $this->alias."/app/registration/counting.php"; + + $items[4]['image'] = $this->alias.'/images/feebf/blue_hills.jpg'; + $items[4]['title'] = "Inscription au congrès"; + $items[4]['link'] = $this->alias."/app/registration/counting.php"; + + $items[5]['image'] = $this->alias.'/images/alcatel_lucent/newspapereader_50x50.jpg'; + $items[5]['title'] = "Annuaire"; + $items[5]['link'] = $this->alias."/app/member/annuaire.php"; + + echo << + +END; + for ($i = 0 ; $i < 6 ; $i++) { + $item = $items[$i]; + if (($i % 2) == 0) { echo ""; } + echo ""; + if (($i % 2) == 1) { echo ""; } + } + echo << +END; + } + } else { + echo <<Pour acceder aux services veuillez vous enregistrer ou sinon, créer votre espace au près

    +END; + + } + } + + function main() { + $this->showHTML(); + } + +} + +if (!isset($page) ) { + if (isset($_GET['form_view'])) { + $page = new intro($_GET['form_view']); + }else + $page = new intro(); +} + +if (isset($page) ) { + if (isset($_GET['form'])) { + $form = $_GET['form']; + if ( $form == 'profile') { + $page->showXML('users.xml'); + } else if ($form == 'index' ) { + $page->showXML('index.xml'); + } else if ($form == 'system' ) { + $page->showXML('users.xml'); + } else { + $page->showXML('index.xml'); + } + } else { + $page->show(); + } +} else { + echo "

    Page not set !!!!

    "; +} +?> diff --git a/app/index.xml b/app/index.xml new file mode 100644 index 0000000..1729ed3 --- /dev/null +++ b/app/index.xml @@ -0,0 +1,360 @@ + + + + + Corba Server Page + + + + + +

    Corba Server Page administration page

    +

    +

    + +

    There are 3 services you can have access

    + +

    A notebook example

    + + + + Services + +
    +
    + Un simple teste de contenu. + + Critical + Emerg + Error + Warning + Notice + Info + Debug + + + + nsd + + + csp + + +
    +
    +
    "; + echo "".$item['title'].""; + echo "
    + + + + + + + + + + +
    NameStatus
    web_bojectrunning
    + + Services + + + + + + +
    +
    + +
    +
    +
    + + + + + Plugins + + Strange + + authentication + + Test Content + + + + + alias + + display boxes enable + + + + ssl + + display boxes + + enable + disable + + + + + + + + + + WebObject + + + Example + + + Name + Root Path + Web Path + . + + + file_handler + c:\windevs32 + + + + + + + + + + + + + Debug + + Page de debug pour web_server. + + Yes + +
    + Debug + + + + +
    +
    + +
    +
    +
    +
    +
    + + T table + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table + +
    +
    + + + Un espace + + + Tab 1 + + Test12 +
    + +
    +
    + + Tab 2 + + ca fait quoi +
    + + + tric + + + + + Page 2 + + Un commentaire de plus qui montre que ce n'est pas encore bon + pour la gestion des tab + + + +
    + Test12 +
    +
    +
    + +
    +
    diff --git a/app/member/annuaire.mysql b/app/member/annuaire.mysql new file mode 100644 index 0000000..5e07227 --- /dev/null +++ b/app/member/annuaire.mysql @@ -0,0 +1,222 @@ + +DROP TABLE IF EXISTS Identity; +CREATE TABLE Identity ( + ident_id INTEGER AUTO_INCREMENT PRIMARY KEY, + ident_type INTEGER DEFAULT 1, + ident_name VARCHAR(32), + ident_firstname VARCHAR(32), + ident_address VARCHAR(32), + ident_postalcode VARCHAR(6), + ident_city VARCHAR(32), + ident_country VARCHAR(32), + ident_mobile VARCHAR(32), + ident_phone VARCHAR(32), + ident_email1 VARCHAR(64), + ident_email2 VARCHAR(64), + ident_activated BOOLEAN DEFAULT FALSE, + ident_password VARCHAR(16), + ident_base VARCHAR(32) -- Database name to use for organisation +); + +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone) VALUES + ("CORDIER","Philippe","2 RUE DES ROSSIGNOLS","67114","ECHAU","ma.cordier@orange.fr","philippe.cordier@douane.finances.gouv.fr",""); + +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("EBERSOLD","Andre","25 RUE PFEFFINGER","67100","STRASBOURG","andre.ebersold@free.fr",TRUE); + +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone) VALUES + ("FLEURY","Annabelle","25 rue Pfeffinger","67100","STRASBOURG","annabelle.fleury1@gmail.com",""); + +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone,ident_mobile) VALUES + ("IMMOVAL","Leila Elaillaji","4 rue de l'eglise","67000","STRASBOURG","leila.elailaji@immoval.com","info@immoval.com","0388228822","06"); + +-- Some friends +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("ROITEL","Pascal","25 RUE PFEFFINGER","67100","STRASBOURG","pascal.roitel@orange.fr",TRUE); +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("CHATON","Michel","adresse","67100","STRASBOURG","michel.chaton@orange.fr",TRUE); +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("DUCHMANN","Daniel","25 RUE PFEFFINGER","67100","STRASBOURG","doublduchmann@gmail.com",TRUE); +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("PARLEBAS","Nelly","","","","nellyparlebas@aliceadsl.fr",TRUE); +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("anonymous","","","","","",TRUE); +INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_activated) VALUES + ("","","","","","",TRUE); + + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile,ident_base) VALUES + (2,"SYNDIC 25 PFEFFINGER","Ebersold","25 rue Pfeffinger","67100","STRASBOURG","","0388","","SYNDIC25RUEPFEFFINGER"); +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile,ident_base) VALUES + (2,"SYNDIC TEST","","Ville","67000","STRASBOURG","","0388","","test"); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"BOLLOREE","Energie","23, rue de ROUEN BP10045","67015","STRASBOURG","","0388600128",""); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"VEOLIA","PROXISERVE","8 BIS RUE DE LA REDOUTE","67207","NIEDERHAUSBERGEN","dbeurton@proxiserve.fr","0390226167",""); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"SAVELYS","GDF SUEZ","6 RUE JEAN PERRIN","67201","ECKBOLSHEIM","strasbourg@savelys.fr","0388773444",""); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"MATMUT","Entreprises","","75378","PARIS","","0232953592",""); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"Société de Ramonage","Alsacienne","21C Rue du Chêne","67420","SAALES","ramonage.meyer@orange.fr","0388977612","0607011468"); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"ES","Strasbourg","37 RUE DU MARAIS VERT","67953","STRASBOURG","","0388206220",""); + +INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES + (2,"EAU","Ville de Strasbourg","1 parc de l'étoile","67076","STRASBOURG","courrier@strasbourg.eu","0388609090",""); + + +DROP TABLE IF EXISTS IdentityType; +CREATE TABLE IdentityType ( + idtp_id INTEGER AUTO_INCREMENT PRIMARY KEY, + idtp_name VARCHAR(32) +); + +INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 1,"User"); +INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 2,"Organisation"); +INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 3,"Cultual Organisation"); +INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 4,"Building"); + + +DROP TABLE IF EXISTS IdentityRole; +CREATE TABLE IdentityRole ( + idr_id INTEGER AUTO_INCREMENT PRIMARY KEY, + idr_name VARCHAR(32) +); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 1,"Administrateur"); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 2,"Tresorier"); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 3,"Syndic"); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 4,"Fournisseur"); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 5,"Client"); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 6,"Coproprietaire"); +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 7,"Membre"); +-- Organisations might be Suppliers, Church +INSERT INTO IdentityRole (idr_id,idr_name) VALUES( 8,"Church"); + +DROP TABLE IF EXISTS UserRoles; +CREATE TABLE UserRoles ( + ur_id INTEGER AUTO_INCREMENT PRIMARY KEY, + ur_user_id INTEGER, + ur_org_id INTEGER, + ur_role_id INTEGER +); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (1,11,1); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (1,11,6); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (2,11,6); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (2,11,3); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (3,11,3); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (3,11,6); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (4,11,6); + +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (1,12,1); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (1,12,3); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (1,12,6); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (5,12,3); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (6,12,3); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (6,12,6); + +-- Suppliers +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (13,11,4); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (14,11,4); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (15,11,4); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (16,11,4); +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (17,11,4); + +INSERT INTO UserRoles (ur_user_id,ur_org_id,ur_role_id) VALUES (14,12,4); + +CREATE OR REPLACE VIEW Users AS select * + FROM Identity as i + JOIN IdentityType as it on (i.ident_type = it.idtp_id ) + WHERE it.idtp_name = "User" +; + +CREATE OR REPLACE VIEW Organisations AS select * + FROM Identity as i + JOIN IdentityType as it on (i.ident_type = it.idtp_id ) + WHERE it.idtp_name = "Organisation" or it.idtp_name = "Cultual Organisation" +; + +DROP TABLE IF EXISTS LogAccess; + +CREATE TABLE LogAccess ( + la_id INTEGER AUTO_INCREMENT PRIMARY KEY, + la_ipv4 INTEGER DEFAULT 0, + la_creation DATETIME DEFAULT NULL, + la_action ENUM ('login','logout'), + la_cause ENUM ('success','failed_bad_password','failed_wrong_user','failed_wrong_security_code','failed_too_much_retry'), + la_user CHAR(32) DEFAULT "" +); + +-- Procedures +delimiter // + +CREATE TRIGGER LogAccess_OnInsert BEFORE INSERT ON `LogAccess` + FOR EACH ROW SET NEW.la_creation = IFNULL(NEW.la_creation, NOW()); +-- +-- Returns the organisations a user is part of. Can be none, one or more. +-- + +DROP PROCEDURE IF EXISTS UserPartOf// +CREATE PROCEDURE UserPartOf (IN user_id INTEGER + ) +BEGIN + select o.ident_id ,o.ident_name,o.ident_base from Organisations As o + Join UserRoles as ur on o.ident_id = ur.ur_org_id and ur.ur_user_id = user_id + GROUP BY ur.ur_org_id; +END// + +-- +-- Role if the user for a given orgnanisation ID +-- + +DROP PROCEDURE IF EXISTS UserRolesInOrg // +CREATE PROCEDURE UserRolesInOrg (IN user_id INTEGER, + IN org_id INTEGER + ) +BEGIN + select i.idr_id ,i.idr_name from Organisations As o + JOIN UserRoles as ur on ur.ur_org_id = o.ident_id and ur.ur_user_id = user_id and ur.ur_org_id =org_id + JOIN IdentityRole as i on ur.ur_role_id = i.idr_id + -- and o.ident_id = ur.ur_user_id + WHERE o.ident_id = ur.ur_org_id + GROUP BY i.idr_id; +END// + +-- .Les fournisseurs d'une Organisation +DROP PROCEDURE IF EXISTS SupplierOfOrg // +CREATE PROCEDURE SupplierOfOrg( + IN org_id INTEGER + ) +BEGIN + select o.ident_id ,o.ident_name,o.ident_firstname,o.ident_address,o.ident_postalcode,o.ident_mobile,o.ident_email1 from Organisations As o + JOIN IdentityRole as i on (i.idr_name ="Fournisseur") + Join UserRoles as ur on (ur.ur_org_id = org_id) and o.ident_id = ur.ur_user_id and (ur.ur_user_id != org_id) and (ur.ur_role_id = i.idr_id) + -- and ur.ur_user_id = supplier_id + WHERE org_id = ur.ur_org_id and org_id != o.ident_id + GROUP BY o.ident_id; +END// + + +-- Les Coproprietaire d'une organisation + +DROP PROCEDURE IF EXISTS CoproOfOrg // +CREATE PROCEDURE CoproOfOrg( + IN org_id INTEGER + ) +BEGIN + select o.ident_id ,o.ident_name,o.ident_firstname,o.ident_address,o.ident_postalcode,ident_city,o.ident_mobile,o.ident_email1 from Users As o + JOIN IdentityRole as i on (i.idr_name ="Coproprietaire") + Join UserRoles as ur on (ur.ur_org_id = org_id) and (ur.ur_user_id != org_id) and (ur.ur_user_id = o.ident_id)and (ur.ur_role_id = i.idr_id) + -- and ur.ur_user_id = supplier_id + WHERE org_id = ur.ur_org_id and org_id != o.ident_id + GROUP BY o.ident_id; +END// + + +delimiter ; diff --git a/app/member/annuaire.php b/app/member/annuaire.php new file mode 100644 index 0000000..9466f92 --- /dev/null +++ b/app/member/annuaire.php @@ -0,0 +1,141 @@ +action = $action; + $this->match = $match; + $this->page = $page; + $this->pagesize = 10; + $this->annuaire = $annuaire; + } + + + function showAlphabeth() { + $alph=Array ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'); + echo ""; + foreach ($alph as $letter) { + echo "'; + } + + echo "
    ".$letter.'
    "; + } + /** + * @brief Affiche le tableau des eglises + * + * + */ + function showEglise($search,$page,$pagesize=5) { + global $AppDb; + $u = new DbEglise($AppDb); + $lu = $u->search($search,$page,$pagesize); + echo << + + + Nom + Pasteur + Ville + M + S + + + +FIN; + foreach ($lu["records"] as $rec) { + echo "".$rec["nom"]."".$rec["VILLE"].""; + echo $rec["VILLE"].""; + echo""; + echo $this->image("Edit").""; + echo"".$this->image("Remove").""; + } + + echo " "; + } + /** + * @brief Show Pastor annuaire Entries + * + */ + function showPasteur($search,$page=0,$pagesize=5) { + global $AppDb; + $u = new DbUser($AppDb); + $lu = $u->search($search,$page,$pagesize); + echo << + + + + + + + + + + +FIN; + $session= new Session(); + foreach ($lu["records"] as $rec) { + if ($rec["nom"] == "") continue; + echo ""; + if ($session->in_groupe(FEEBF_SECRETARIAT) || + $rec["email"] == $session->email()) { + echo""; + echo""; + } else { + echo ""; + } + } + echo "
    NomPrénomMS
    ".$rec["nom"]."".utf8_decode($rec["prenom"]).""; + echo $this->image("Edit")."".$this->image("Remove")."
    XX
    "; + + for ( $i = 0 ; $i < ($lu['total_matches'] / $pagesize) ; $i++ ) { + echo ""; + } + echo "
    annuaire."&page=".$i."&match=".$this->match."'>".$i."
    "; + + echo "Total :".$lu['total_matches']; + } + + function main() { + echo "

    Annuaire ".$this->annuaire."

    "; + $this->showAlphabeth(); + if ($this->annuaire == "eglise") { + $this->showEglise($this->match,$this->page); + } else if ($this->annuaire=="pasteur") { + $this->showPasteur($this->match,$this->page,$this->pagesize); + } else { + echo "Page ".$this->annuaire; + } + } +} + +$ann = new Annuaire(isset($_GET['action'])?$_GET['action']:"" , + isset($_GET['annuaire'])?$_GET['annuaire']:"pasteur", + isset($_GET['match'])?$_GET['match']:'A', + isset($_GET['page'])?$_GET['page']:0 + ); +$ann->show(); +?> diff --git a/app/member/annuaire.xml b/app/member/annuaire.xml new file mode 100644 index 0000000..e090fef --- /dev/null +++ b/app/member/annuaire.xml @@ -0,0 +1,145 @@ + + + + + User Managment + + + + Recherche + + +
    + + eglise + pasteur + administratif + + + +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + +
    Annuaire
    NomPrenomemailMS
    EBERSOLDAndreandre.ebersold@dede.fr
    + + +
    +
    diff --git a/app/member/class.db_eglise.php b/app/member/class.db_eglise.php new file mode 100644 index 0000000..c6424f7 --- /dev/null +++ b/app/member/class.db_eglise.php @@ -0,0 +1,88 @@ +table = 'eglises'; + parent::Db($cfg['host'],$cfg['user'],$cfg['password'],$cfg['name']); + } + + /** + * @brief get all the information of a church + * + */ + function get($Id) { + $id = $this->escape($Id); + if ($id > 0 ) { + $sql = sprintf("select * from % where busid = %d;",$this->table,$id); + $ident = $this->doQuery($sql); + return $ident; + } else + return array(); + } + + /** + * @brief + * + * @return an array ( total_maches , records (is an array )) + * + */ + function getAll($page,$pageSize = 10) { + $ident = array( total_maches => 0, fields => array() ); + $sql = sprintf('select SQL_CALC_FOUND_ROWS * from %s LIMIT %d,%d ;', + $this->table,$page*$pagesize,$pagesize); + + $result = mysql_query($sql,$this->conn); + if ($result) { + $i = 0; + while ( $ident["records"][$i++] = mysql_fetch_array($result,MYSQL_ASSOC)) ; + $res = mysql_query("FOUND_ROWS()",$this->conn); + $ident["total_maches"] = $res; + mysql_free_result($result); + } + return $ident; + + } + /** + * + * + */ + function set($Form) { + $form = $this->escape($Form); + } + + /** + * + * + * @return Array( total_matches => int , records => array()) + */ + function search($match,$page,$pagesize = 10) { + $strq = sprintf('select busid,name as nom, city as VILLE from %s where city like ("%s%%") LIMIT %d,%d ;', + $this->table,$match,$page*$pagesize,$pagesize); + $count = sprintf('select count(*) from %s where city like ("%s%%") ;', + $this->table,$match); + + $ident = $this->doQuery($strq,$count); + //echo "Max files = ".$ident["total_maches"]; + return $ident; + } + + /** + * @brief remove a church from the table + * + * + */ + function remove($Id) { + } + + /** + * @brief create a new church in the database + * + * + * + */ + function create($Form) { + } + +} + +?> diff --git a/app/member/class.db_groups.php b/app/member/class.db_groups.php new file mode 100644 index 0000000..0424ac1 --- /dev/null +++ b/app/member/class.db_groups.php @@ -0,0 +1,66 @@ +table = 'eglises_fonctions'; + parent::Db($cfg['host'],$cfg['user'],$cfg['password'],$cfg['name']); + } + + function allGroups() { + $sql = 'select * from eglises_fonctions;'; + $result = mysql_query($sql,$this->conn); + if ($result) { + $i = 0; + while ( $items[$i++] = mysql_fetch_array($result,MYSQL_ASSOC) ) ; + mysql_free_result($result); + return $items; + } else return Array(); + } + /** + * @brief get the groups the user is member of + */ + function usersGroups($Id) { + $id = $this->escape($Id); +/* +select eglises_mbrs_fcts.fonction_id,eglise_id,grpName from eglises_fonctions,eglises_mbrs_fcts where person_id = 3 and eglises_mbrs_fcts.fonction_id= eglises_fonctions.id;a + */ + $sql = sprintf('select fonction_id,eglise_id,grpName from eglises_fonctions,eglises_mbrs_fcts where person_id = %s and fonction_id=eglises_fonctions.id;',$id); + $result = mysql_query($sql,$this->conn); + $items = Array(); + if ($result) { + $i = 0; + while ( $items[$i++] = mysql_fetch_array($result,MYSQL_ASSOC) ) ; + mysql_free_result($result); + return $items; + } else return Array(); + + } + /** + * + * $Form must contain id => .. and groupe => .... + * @ return true if it work + */ + function add($Form) { + $form = $this->escape($Form); + $sql = sprintf("insert into eglises_mbrs_fcts (person_id,fonction_id) values(%d,%d);",$form['id'],$form['groupe']); + + $result = mysql_query($sql,$this->conn); + if (!$result) { + return false; + } else return true; + } + + function deleteGroupe($Form) { + $form = $this->escape($Form); + $sql = sprintf("delete from eglises_mbrs_fcts where person_id=%d and fonction_id=%d;",$form['id'],$form['groupe']); + + $result = mysql_query($sql,$this->conn); + if (!$result) { + return false; + } else return true; + } +} +?> diff --git a/app/member/class.db_user.php b/app/member/class.db_user.php new file mode 100644 index 0000000..74a2717 --- /dev/null +++ b/app/member/class.db_user.php @@ -0,0 +1,271 @@ +table='eglises_person'; + parent::Db($cfg['host'],$cfg['user'],$cfg['password'],$cfg['name']); + $this->file = $cfg['request_file']; + $this->xml = simplexml_load_file(dirname(__FILE__).$this->file); + if ($this->xml != null) + $table_users = $this->xml->xpath("//sql/table[@name='users']/@value"); + //echo "DnUSer::DbUser Does this Work:".$table_users[0]; + $this->table = $table_users[0]; + } + + /** + * + */ + function __destructor() { + } + + + /** + * This is a test for preg_replace_callback + */ + function critEmail($matches) { + if ($matches[1] == "byEmail" ) { + return sprintf($matches[2],$this->table,$this->params['email']); + } + return ""; + } + + function critId($matches) { + if ($matches[1] == "byId" ) { + return sprintf($matches[2],$this->table,$this->params['email']); + } + return ""; + } + function critUpdate($matches) { + if ($matches[1] == $this->crit ) { + return sprintf($matches[2],$this->params[$this->crit]); + } + return ""; + + } + /** + * + */ + function fromEmail1($Email) { + $this->params['email'] = $Email; + $stmt = $this->xml->xpath("//sql/statement[@req='getUsers']"); + $s=$stmt[0]->asXML(); + $string = preg_replace_callback('/(.*?)<\/call>/', array(get_class($this),'critEmail'), $s); + $node = simplexml_load_string($string); + $ident = $this->doQuery($node); + return $ident['records'][0]; + } + + /** + * + */ + function fromEmail($Email) { + $ident = array(); + /* + $email =$this->escape($Email); + + $strq = sprintf('select id,nom,prenom,email,userPassword as password,adresse,ville,codePostale, telFixe,telMobile,profilePublic,lettreMois,lettrePriere from %s where email= %s;', + $this->table,$email); + + $result = mysql_query($strq,$this->conn); + if ($result ) { + $ident = mysql_fetch_array($result,MYSQL_ASSOC); + } + mysql_free_result($result); + return $ident; + */ + $res = $this->fromEmail1($Email); + return $res; + } + + /** + * + * + */ + function fromId($Id) { + $ident = array(); + $email =$this->escape($Id); + $this->params['email'] = $email; + $stmt = $this->xml->xpath("//sql/statement[@req='getUsers']"); + $s=$stmt[0]->asXML(); + $string = preg_replace_callback('/(.*?)<\/call>/', array(get_class($this),'critId'), $s); + $node = simplexml_load_string($string); + $ident = $this->doQuery($node); + //echo "Query:".$string; + //print_r($ident); + return $ident['records'][0]; + + } + + /** + * + * TODO: + * - check if the user already exists in the database return an + * error if not. + * - the nom field should always be in uper case + * + */ + function add_old($form) { + $params = $this->escape($form); + $params['nom'] = strtoupper($params['nom']); + $strq =sprintf('insert into %s (nom,prenom,email,userPassword,profilePublic,lettreMois) + values(%s,%s,%s,%s,%s,%s);', + $this->table, + $params['nom'],$params['prenom'],$params['email'],$params['userPassword'], + isset($params['profilePublic'])?'\'O\'':'\'N\'' + ,isset($params['lettreMois'])?'\'O\'':'\'N\''); + echo "exectuted -- $strq -- $params -- ".$form["userPassword"]."--\n"; + $result = mysql_query($strq,$this->conn); + if (!$result) { + echo "Failed request :".mysql_error(); + } + } + function add($form) { + $params = $this->escape($form); + $params['nom'] = strtoupper($params['nom']); + error_log("add: ".$params['nom']); + $stmt = $this->xml->xpath("//sql/statement[@req='newUsers']"); + $s=$stmt[0]->asXML(); + error_log("add request: ".$s); + $string =sprintf($s,$this->table,$params['nom'],$params['prenom'],$params['email'],$params['userPassword']); + $node = simplexml_load_string($string); + $res = $this->doQueryI($node); + error_log("execute DbUSer: add,".$res["records"]); + } + + /** + * + * + */ + function remove($form) { + $params = $this->escape($form); + $str= sprintf("DELETE FROM %s where id = %d;",$this->table,$params['id']); + $result = mysql_query($str,$this->conn); + if (!$result ) { + echo "Failed execute query :".$str; + } + return $result; + } + + /** + * + */ + function update_old($id,$form) { + $strq= ""; + $params = $this->escape($form); + $params['nom'] = strtoupper($params['nom']); + echo "userPassword=".$params["userPassword"]; + if ($params['userPassword'] != "\"\"" ) { + $strq =sprintf('update %s set nom=%s,prenom=%s,email=%s,profilePublic=%s,lettreMois=%s + ,lettrePriere=%s, codePostale=%s ,ville=%s, adresse=%s,telFixe=%s ,telMobile=%s , userPassword=%s where id=%s;', + $this->table, + $params['nom'],utf8_encode($params['prenom']),$params['email'], + isset($params['profilePublic'])?'\'O\'':'\'N\'' + ,isset($params['lettreMois'])?'\'O\'':'\'N\'' + ,isset($params['lettrePriere'])?'\'O\'':'\'N\'' + ,$params['codePostale'],$params['ville'],utf8_encode($params["adresse"]),$params['telFixe'], $params['telMobile'] + ,$params['userPassword'] + ,$params['id'] + ); + } else { + $strq =sprintf('update %s set nom=%s,prenom=%s,email=%s,profilePublic=%s,lettreMois=%s + ,lettrePriere=%s, codePostale=%s ,ville=%s, adresse=%s,telFixe=%s ,telMobile=%s where id=%s;', + $this->table, + $params['nom'],utf8_encode($params['prenom']),$params['email'], + isset($params['profilePublic'])?'\'O\'':'\'N\'' + ,isset($params['lettreMois'])?'\'O\'':'\'N\'' + ,isset($params['lettrePriere'])?'\'O\'':'\'N\'' + ,$params['codePostale'],$params['ville'],utf8_encode($params["adresse"]),$params['telFixe'], $params['telMobile'] + ,$params['id'] + ); + } + #echo "exectuted -- $strq -- $params -- $form --\n"; + $result = mysql_query($strq,$this->conn); + if (!$result) { + echo "Failed request :".mysql_error(); + return 0; + } else { + return 1; + } + } + + function update($id,$form) { + $strq= ""; + $params = $this->escape($form); + $params['nom'] = strtoupper($params['nom']); + $this->params = $params; + error_log('update enter:'); + $stmt = $this->xml->xpath("//sql/statement[@req='updateUsers']"); + $s=$stmt[0]->asXML(); + foreach($params as $k => $p) { + error_log("update : files (".$k.") with value:".$p); + if (isset($k) && $p != "\"\"" && + $k != "id" && + $k !="action" && + $k !="Modifier" && + $k != "profile-action" + && $k != "passwdc") { + $this->crit = $k; + $string = preg_replace_callback('/(.*?)<\/call>/', array(get_class($this),'critUpdate'), $s); + $s1 = simplexml_load_string($string); + $node = sprintf($s1,$this->table,$params['id']); + $ident = $this->doQueryI($node); + } else + error_log(" update empty field:".$p); + } + } + + /** + * @return the list of users in the database + * with limits + * Array( total_matches => int , records => array()) + */ + function listUsers($page,$pagesize = 10) { + $ident = array(); + $strq = sprintf('select id,nom,prenom,email,userPassword as password from %s LIMIT %d,%d ;', + $this->table,$page*$pagesize,($page+1)*$pagesize); + + $ident = $this->doQuery($strq); + return $ident; + } + + function logAction($action,$cause,$email,$ip) + { + error_log("logAction :".$action." ".$email." ".$cause." ".$ip); + $params = $this->escape($form); + $params['nom'] = strtoupper($params['nom']); + $stmt = $this->xml->xpath("//sql/statement[@req='logAction']"); + $s=$stmt[0]->asXML(); + $string =sprintf($s,$action,$cause,$email,ip2long($ip)); + $node = simplexml_load_string($string); + $res = $this->doQueryI($node); + } + /** + * + * + * @return Array( total_matches => int , records => array()) + */ + function search($match,$page,$pagesize = 10) { + $strq = sprintf('select id,nom,prenom,email,userPassword as password from %s where nom like ("%s%%") ORDER BY nom LIMIT %d,%d ;', + $this->table,$match,$page*$pagesize,$pagesize); + $count = sprintf('select count(*) from %s where nom like ("%s%%") ;', + $this->table,$match); + + $ident = $this->doQuery($strq,$count); + //echo "Max files = ".$ident["total_maches"]; + return $ident; + } +} +/** + vim:et:sw=4:ts=4:enc=utf-8 + */ +?> diff --git a/app/member/class.json_db_user.php b/app/member/class.json_db_user.php new file mode 100644 index 0000000..aae4878 --- /dev/null +++ b/app/member/class.json_db_user.php @@ -0,0 +1,113 @@ +is_logged_in() ) { + error_log("JsonUser Attempt to use service without beeing logged in"); + die(); + } + $this->uid = $_SESSION["user_id"]; + $this->sess = $s; + if (isset($_SESSION['compta_org'])); + $this->org = $_SESSION["compta_org"] ; + } + + function getUserByName($name) { + return ""; + } + + function getApplicationDbs() { + $q = "call UserPartOf(".$this->uid.");"; + $res1 = $this->doQueryI($q); + // return id name and base + return $res1['records']; + } + + function updateUser() { + return ""; + } + + function getSuppliers($org_id) + { + $q = "call SupplierOfOrg(".$org_id.");"; + $res = $this->doQueryI($q); + return $res['records']; + } + + function getCoproprietaires($org_id) + { + $o = $org_id; + if ($this->sess->is_logged_in()) { + if ($o == 0 ) + $o = $_SESSION["compta_org"] ; + $q = "call CoproOfOrg(".$o.");"; + $res = $this->doQueryI($q); + return $res['records']; + } else { + throw new Exception("User not logged in."); + } + } + function getUserRolesInOrg($uid,$org_id) { + $o = $org_id; + $u = $uid; + if (! $this->sess->is_logged_in()) { + throw new Exception("User not logged in."); + } + if ($o == 0 ) { + $o = $_SESSION["compta_org"] ; + } + if ($u == 0) + $u = $this->uid; + $q = "call UserRolesInOrg(".$u.",".$o.");"; + $res = $this->doQueryI($q); + $_SESSION['user_groupe_name'] = array(); + foreach($res['records'] as $r) { + array_push($_SESSION['user_groupe_name'], $r[1]); + } + return $res['records']; + } + + function getOrg($org_id) { + $q = "select ident_name,ident_address,ident_postalcode, ident_city,ident_type From Identity where ident_id=".$org_id.";"; + $res = $this->doQueryI($q); + return $res['records']; + } + + function removeUserFromApplication($application,$email) { + $u = $this->searchByEmail($email); + return ""; + } + + function addUserToApplication($application,$email) { + return ""; + } + + + function addUserToOrganisation($org,$nom,$prenom,$address,$codep,$ville,$email) { + //Check if user already exists. If yes, Just update the relation Table + return ""; + } + + function searchByName($name) { + return ""; + } + + function searchByEmail($email) { + $q = "select ident_id from Users where ident_email1 = '".$email."';" ; + // Find Ident of person + $res = $this->doQueryI($q); + if ($res['records'] == NULL ) { + } + return $res['records']; + } +} +?> diff --git a/app/member/comments.php b/app/member/comments.php new file mode 100644 index 0000000..5f9b633 --- /dev/null +++ b/app/member/comments.php @@ -0,0 +1,45 @@ +setSize(5,23); + echo "
    "; + $subject->show(); + echo "
    "; + $area->show(); + echo("
    "); + $submit = new FormInputSubmit("subject","Envoyé"); + $submit->show(); + } +} + +/** + * @brief + * + * + */ +class Comments extends AppPage { + + function Comments () { + } + + function main() { + echo "

    Comments


    "; + $comment = new Form($_SERVER["PHP_SELF"]); + $comment->addInput(new FormInput("action","ADD")); + $lay = new CommentLayout(); + $comment->addInput($lay); + + $comment->show(); + echo "
    "; + } +} +$com = new Comments(); +$com->show(); + +?> diff --git a/app/member/eglise.php b/app/member/eglise.php new file mode 100644 index 0000000..b5adead --- /dev/null +++ b/app/member/eglise.php @@ -0,0 +1,61 @@ +" + ?> +
    + + '/> + + + + + + + + + + + + + +
    '/>
    '/>
    + '/> + '/> +
    + +
    + + +show(); + +?> diff --git a/app/member/groups.php b/app/member/groups.php new file mode 100644 index 0000000..dbf3f6d --- /dev/null +++ b/app/member/groups.php @@ -0,0 +1,14 @@ +allGroups(); +} + + +?> diff --git a/app/member/index.php b/app/member/index.php new file mode 100644 index 0000000..403d32b --- /dev/null +++ b/app/member/index.php @@ -0,0 +1,58 @@ +is_logged_in() ) { + $p = New Users("/sql-requests.xml"); + if ($_SERVER['REQUEST_METHOD'] == "POST") { + $request = $p->getContent(); + switch ($p->Service($request)) { + case "member": + require_once(dirname(__FILE__)."/pcmn.php"); + $pcmn = new Pcmn($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'],'users'); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + log_error("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + case "group": + require_once(dirname(__FILE__)."/pcmn.php"); + $pcmn = new Pcmn($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'],'users'); + if ( ! JsonRPCServer::handle($pcmn,$request) ) { + log_error("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); + } + break; + default: + $res = array('id' => '1','result' => 'failed', 'error' => 'Unkonwn service'); + header('X-JSON: '.json_encode($res)); + } + } else { + $res = array('id' => "1",'result' => 'failed', 'error' => 'Unkonwn service wrong'); + header('X-JSON: '.json_encode($res)); + + } + } else { + $res = array('result' => 'failed', 'reason' => 'Not auth'); + header('X-JSON: '.json_encode($res)); + } + + +?> diff --git a/app/member/login.php b/app/member/login.php new file mode 100644 index 0000000..163a8ef --- /dev/null +++ b/app/member/login.php @@ -0,0 +1,378 @@ +alias = $alias; + } + + function showCode() + { + echo "Security"; + } + function show() { + global $last_location; + echo "
    "; + echo "Je n'ai pas de compte ! s'enregistrer

    "; + $action = new FormInput("action","LOGIN"); + $action->show(); + $email = new FormInputText("email","",_("Email:")); + $email->show(); + $pwd = new FormInputPassword("passwd","",_("Password:")); + $pwd->show(); + echo "
    "; + $this->showCode(); + echo ""; + $code = new FormInputText("security_code",""); + $code->setSize(7,6); + $code->show(); + echo "
    "; + $submit = new FormInputSubmit("login","Login"); + $submit->show(); + $submit = new FormInputSubmit("emailPassword","Envoyer mot de passe"); + $submit->show(); + $action = new FormInput("last_location",$last_location); + $action->show(); + } +} + +/** + * @brief Page that treat the display and panage the stuff + * in relation with Login and logout + * + * + */ +class Login extends AppPage +{ + var $authFailed = ""; + var $action; + var $request_file ="/sql-andre-requests.xml"; + /** + * @brief constructor + * + */ + function __construct($action,$security) { + global $AppDb,$_POST; + parent::__construct(); + $this->action = $action; + $this->security = $security; + if (isset($_POST['emailPassword'])) { + $this->action='REMEMBER'; + error_log("Login __construct:submit=".$_POST['emailPassword']); + } + if (isset($_POST['submit'])) + error_log("Login __construct:submit=".$_POST['submit']." Action=".$this->action); + if ($this->action=="LOGIN" ) { + $this->do_login(); + } else if (($this->action == "LOGIN_REQUEST")) + { + $this->do_login_request(); + } + if ($this->action == "LOGOUT") { + $this->do_logout(); + } + if ($this->action =="LOGOUT_REQUEST" ) { + $this->do_logout_request(); + } + if ($this->action =="REMEMBER" ) { + $this->mail("noreply@gmail.com"); + } + } + + /** + * + */ + function do_login() { + global $AppDb,$_POST,$last_location; + error_log("do_login : ".$_POST["email"]." Enter"); + if ( $this->security == 1 && $_POST["email"] != "") { + $udb = new DbUser($AppDb,$this->request_file); + $user= $udb->fromEmail1($_POST["email"]); + if (isset($user['id']) && ($user["password"] == $_POST["passwd"])) { + global $_SESSION; + $grpsDb = new DbGroups($AppDb); + $s= New Session(); + $s->login($user['id'],$user['nom'],$user['prenom'],$grpsDb->usersGroups($user['id'])); + /* Il faut encore trouver de quel eglise fait parti l'usage ... */ + + $this->setSession(); + $udb->logAction('login','success',$_POST["email"],$_SERVER["REMOTE_ADDR"]); + error_log("do_login ".$last_location); + if (isset($_POST['last_location'])) { + header("Location: ".$_POST['last_location']); + die(); + } else + header("Location: ".$last_location); + die(); + + } else { + $this->authFailed = "Bad password"; + $udb->logAction('login','failed_bad_password',$_POST["email"],$_SERVER["REMOTE_ADDR"]); + } + } else if ( ($_POST["email"] == "")) + { + $this->authFailed = "Email address empty"; + $udb = new DbUser($AppDb,$this->request_file); + $udb->logAction('login','failed_wrong_user',"",$_SERVER["REMOTE_ADDR"]); + } else { + $this->authFailed = "Wrong Security Code ".$this->security." in session=".$_SESSION['security_code']." In Post:".$_POST['security_code']; + $udb = new DbUser($AppDb,$this->request_file); + $udb->logAction('login','failed_wrong_security_code',$_POST["email"],$_SERVER["REMOTE_ADDR"]); + } + } + /** + * + */ + function do_logout() { + $s= new Session(); + $s->logout(); + } + /** + * Json response for login and logout + */ + function do_login_request() { + global $AppDb,$_POST; + + error_log("do_login_request : ".$_POST["email"]." Enter"); + if ( ($_POST["email"] != "admin")) + { + $udb = null; + $user = null; + try { + $udb = new DbUser($AppDb,$this->request_file); + $user= $udb->fromEmail1($_POST["email"]); + } catch (Exception $e) { + error_log("do_login_request Failed ".$_POST["email"]." Failed ".$e->getMessage()); + } + error_log("do_login_request ".$_POST["email"]." id=".$user['id']." pwd:".$user["password"].":"." Pwdf:".$_POST["passwd"]); + if (isset($user['id']) && (md5($user['email']."*".$_SESSION['security_code']."*".$user["password"]) == $_POST["passwd"])) { + //$grpsDb = new DbGroups($AppDb); + $s= New Session(); + $s->login($user['id'],$user['nom'],$user['prenom'],""/*$grpsDb->usersGroups($user['id'])*/); + /* Il faut encore trouver de quel eglise fait parti l'usage ... */ + $res= array('login' => "success","reason" => "success"); + $udb->logAction('login','success',$_POST["email"],$_SERVER["REMOTE_ADDR"]); + + $this->setSession(); + header('X-JSON: '.json_encode($res)); + die(); + } else { + error_log("do_login_request Bad password ".$_POST["email"]." login Failed"); + $udb->logAction('login','failed_bad_password',$_POST["email"],$_SERVER["REMOTE_ADDR"]); + $this->authFailed = "Bad password"; + $res= array('login' => "Failed","reason" => "Wrong Password or User name"); + header('X-JSON: '.json_encode($res)); + die(); + } + } else + { + $md5_sum = md5("admin*".$_SESSION['security_code']."*Trazom67"); + + if ($md5_sum == $_POST['passwd']) + { + $res= array('login' => "success","reason" => "success"); + $this->setSession(); + $s = New Session(); + $s->login("1","admin","Administrator","" /*$user['nom'],$user['prenom'],$grpsDb->usersGroups($user['id'])*/); + } else + { + $res= array('login' => "failed","reason" => "Failed bad password or security code"); + } + $redirect = (array_key_exists('last_location',$_SESSION)) ? $_SESSION['last_location'] : $this->alias.'/index.php'; + //if (defined($_POST['redirect']) && !empty($_POST['redirect'])) $redirect=$_POST['redirect']; + if (array_key_exists('redirect',$_POST) && !empty($_POST['redirect'])) $redirect=$_POST['redirect']; + + header('X-JSON: '.json_encode($res)); + //header('Location: '.$redirect); + //header('Content-type: application/x-json'); + //encode and return json data... + //echo $json->encode($res); + + die(); + } + + + } + /** + * + */ + function do_logout_request() { + $s= new Session(); + $s->logout(); + $res= array('logout' => "success","reason" => ""); + header('X-JSON: '.json_encode($res)); + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); + header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); + header("Cache-Control: no-cache, must-revalidate" ); + header("Pragma: no-cache" ); + //header("Content-Type: text/xml; charset=utf-8"); + //header("Location: ".$this->alias."/index.php"); + die(); + + } + /** + * @brief set the session stuff if + * the user is authenticated through the database + * + * + */ + + function setSession() { + global $login; + $_SESSION['login'] = $_POST['email']; + $login = $_SESSION['login']; + } + /** + * @brief show main entry + * If the action is login and the security code is + * of do not login + * + */ + function show() { + global $login; + if ($this->action == "LOGIN" && $this->security == 0) { + if (isset($_POST['emailPassword'])) { + $this->action='REMEMBER'; + } + parent::show(); + die(); + } else if ($this->action == "LOGIN" && $this->security == 1) { + /* Le login est passe avec un bon code */ + if ($this->authFailed == "") { + $redirect=(array_key_exists('last_location'))? $_SESSION['last_location']: $this->alias."/index.php"; + header("Location: ".$redirect); + die(); + } else { + parent::show(); + } + } else if ($this->action == "LOGOUT" ) { + /* Le login est passe avec un bon code */ + header("Location: ".$this->alias."/index.php"); + die(); + } else { + error_log("Login default parent show function"); + parent::show(); + } + } + /** + * + */ + function showLoginForm() { + $this->showTitle("Login"); + echo "
    "; + if ((($this->security == 0) && ($this->action=="LOGIN")) || ($this->authFailed != "")) { + echo "Failed Login ".$this->authFailed."

    \n"; + } + $f= new Form($_SERVER['PHP_SELF']); + $f->addInput(new LoginLayout($this->alias)); + $f->setClass("login"); + $f->show(); + echo "
    "; + } + /** + * Avoid to add login form twice in the same page. + */ + function _login() { + } + + /** + * \brief treat the send mail feature ... + * if the ACTION is REMEMBER, + * we need to check if the mail adresse exists, + * if yes, we need to send the password + * to the given email address. + */ + function mail($sender) { + global $AppDb; + $udb = new DbUser($AppDb); + $user= $udb->fromEmail($_POST["email"]); + //"Reply-To: noreply@gmail.com\r\n"; + + if (isset($user['id'])) { + $header= "From: ".$sender."\r\n". + "X-Mailer: PHP/5.x\r\n"; + $recipient= $_POST['email']; + $subject ="[Remeber] your password"; + $body = $user["nom"]." ".$user["prenom"]." Your password is:".$user["password"]; + $body.= "\nVisite the folowing link to login ..."; + if (isset($_SERVER['HTTPS']) && $_SERVER["HTTPS"] != "") { + $body.=" https://".$_SERVER["SERVER_NAME"]."/app/member/login.php"; + } else { + $body.=" http://".$_SERVER["SERVER_NAME"]."/app/member/login.php"; + } + //$body.=" https://www.feebf.org/administratif/app/member/login.php"; + @mail($recipient,$subject,$body."\n\n",$header); + } + } + /** + * \brief main entry point ... called by show function + * + */ + function main() { + if (isset($this->action) && $this->action == "LOGIN") { + if ($this->security == 0 && ($this->authFailed == "")) { + $this->authFailed= _("Bad security code"); + $this->showLoginForm(); + } else if ($this->authFailed != "") { + $this->showLoginForm(); + } + } + if ($this->action == "" || $this->action == "LOGIN_FORM") { + $this->showLoginForm(); + } else if ($this->action =="LOGOUT") { + echo "Merci de votre visite.\n"; + } else if ($this->action =='REMEMBER') { + if ( ($_POST['email'] != '') && check_email_address($_POST['email']) ) { + $this->mail("andre@ebersold.fr"); + echo _("Your request has been sent to you..."); + } else { + $this->authFailed= _("Please provide a valide email address "); + $this->showLoginForm(); + } + } + } +} +$login_page = new Login($action,$security); + +$login_page->show(); +/** + vim:et:sw=4:ts=4:enc=utf-8 + */ +?> diff --git a/app/member/members.php b/app/member/members.php new file mode 100644 index 0000000..c54b58f --- /dev/null +++ b/app/member/members.php @@ -0,0 +1,87 @@ +login = $login; + $this->Page(); + $this->xp = new XsltProcessor(); + $xsl = new DomDocument; + $xsl->load('../xsl/gui.xsl'); + $this->xp->importStylesheet($xsl); + $params['site']= "_xgui"; + $params["langue"] = "fr"; + $params["mode"] = 'standalone'; + $this->xp->setParameter($namespace,$params); + } + function showXML ($file) { + $xml = new DomDocument(); + $xml->load($file); + if ($html = $this->xp->transformToXML($xml) ) { + echo $html; + } else { + echo "Failed Transform XML\n"; + } + } + + function showHTML() { + echo "

    Annuaire

    "; + echo << + +
    +END; + + } + + function main() { + $this->showHTML(); + } + +} + +if (!defined($page) ) { + $page = new intro($login); +} + +if (isset($page) ) { + if (isset($_GET['form'])) { + $form = $_GET['form']; + if ( $form == 'profile') { + $page->showXML('annuaire.xml'); + } else if ($form == 'index' ) { + $page->showXML('index.xml'); + } else { + $page->showXML('index.xml'); + } + } else if (isset($_GET['action']) ) { + global $login,$AppDb,$action; + /* + * If not logged in, do not do thing + */ + if (isset($login)) { + $u = new DbUser($AppDb); + header("Content-type: text/javascript "); + if ($action == 'MEMBERS') { + echo json_encode($u->listUsers($_GET["page"],$_GET["pagesize"]) ); + } else if ($action =='MEMBERS_MATCH') { + $lu = $u->search($_GET["match"],$_GET["page"],$_GET["pagesize"]); + echo json_encode($lu ); + //print_r($fr); + }else{ + echo "undefined action\n"; + } + } else { + echo "Not Logged int $login\n"; + } + } else { + $page->show(); + } +} else { + echo "

    Page not set !!!!

    "; +} +?> diff --git a/app/member/profile.php b/app/member/profile.php new file mode 100644 index 0000000..1bb0873 --- /dev/null +++ b/app/member/profile.php @@ -0,0 +1,361 @@ +user=$User; + } + function show() + { + $f = Array(); + $f["action"] = new FormInput("profile-action","UPDATE"); + $f["id"] = new FormInput("id",$this->user["id"]); + $f["email"] = new FormInputText("email",$this->user["email"],"Email:"); + $f["email"]->setWidth(20,0); + $f["passwd"] = new FormInputPassword("userPassword","","Password:"); + $f["cpasswd"] = new FormInputPassword("passwdc","","Confirm Password:"); + $f["nom"] = new FormInputText("nom",$this->user["nom"],"Nom:"); + $f["prenom"] = new FormInputText("prenom",utf8_decode($this->user["prenom"]),"Prenom:"); + $f["adresse"] = new FormInputText("adresse",utf8_decode($this->user["adresse"]),"Adresse:"); + $f["codePostale"] = new FormInputText("codePostale",$this->user["codePostale"],"Code Postale:"); + $f["codePostale"]->setSize(6,5); + $f["ville"] = new FormInputText("ville",$this->user["ville"],"Ville:"); + $f["telFix"] = new FormInputText("telFixe",$this->user["telFixe"],"Tel:"); + $f["telFix"]->setSize(16,15); + $f["telMobile"] = new FormInputText("telMobile",$this->user["telMobile"],"Mobile:"); + $f["telMobile"]->setSize(16,15); + echo "
    "; + foreach ($f as $item) { + if ($item->type != 'hidden') { + //echo " "; + $item->show(); + //echo "

    \n"; + echo '
    '; + } else { + $item->show(); + } + } + /* + $lp = new FormInputCheckbox("lettrePriere",$this->user["lettrePriere"] =='O',"Lettre de prière:"); + $lm = new FormInputCheckbox("lettreMois",$this->user["lettreMois"] =='O',"Lettre de mensuel:"); + $lr = new FormInputCheckbox("profilePublic",$this->user["profilePublic"] =='O',"Profile public:"); + echo "
    "; + $lp->show();echo ""; + $lm->show();echo ""; + $lr->show();echo "
    "; + */ + $submit = new FormInputSubmit("Modifier","Modifier"); + echo "
    "; + $submit->show(); + echo "
    "; + } +} +/** + * @brief Page that treat the display and panage the stuff + * in relation with Login and logout + * + * + */ +class Profile extends AppPage +{ + var $action; + var $security; + var $login; + var $action_ok = 0; + var $action_message = ""; + /** + * @brief constructor + * + */ + function Profile($action,$login,$security) { + parent::__construct(); + $this->action = $action; + $this->security = $security; + $this->login = $login; + if ($action == "INIT") + { + $this->do_action(); + } + } + + /** + * + * + */ + function do_action() { + if ($this->action == 'FROM') { + } else if ($this->action == 'REMOVE') { + if (isset($_GET['confirm']) && ($_GET['confirm'] == 'yes')) { + if ( ! $this->remove($_GET['id'],$_GET) ) { + $this->action_message = "Failed remove profile"; + } else { + $this->action_message = "Profile has been removed"; + } + if ($_SESSION['user_id'] == $_GET['id']) { + header("Location: ".$this->link("Logout")); + } else { + /**/ + header("Location: ".$this->link("Annuaire")); + die; + } + } + } else if ($this->action == 'UPDATE') { + } else if ($this->action == 'GROUPE_DEL') { + } else if ($this->action == 'GROUPE_ADD') { + } else if ($this->action == 'INIT') { + global $AppDb,$conf; + $d = new Db($AppDb['host'],$AppDb['user'],$AppDb['password'],$AppDb['name']); + + $quests = explode(";",$conf['auth']['mysql']['Init']); + + //$Res = $d->doQuery($conf['auth']['mysql']["Init"]); + foreach ($quests as $q ) + { + $Res = $d->doQuery($q); + echo "Quest:"; + print_r($q); + print_r ($Res); + } + } else { + } + } + /** + * @brief handle the remove of a profile + * + * Enter conditions: + * - The user must be allow to do it + * - The profile must exist + * - if logged in user and same email + * I think I can trust + * + * + */ + function remove($id,$Form) { + global $AppDb; + $u = new DbUser($AppDb); + return $u->remove($Form); + } + + function update($id,$args) + { + global $AppDb; + $u = new DbUser($AppDb); + $u->update($id,$args); + } + + /** + * @brief associate a groupe with a user + * + * + */ + function addGroupe($id,$Form) { + GLOBAL $AppDb; + $grpdb = new DbGroups($AppDb); + return $grpdb->add($Form); + } + + function deleteGroupe($id,$Form) { + GLOBAL $AppDb; + $grpdb = new DbGroups($AppDb); + return $grpdb->deleteGroupe($Form); + } + /** + * + * + */ + function showProfileForm($Id,$Email="") { + global $AppDb; + $user =""; + $du = new DbUser($AppDb); + if ($Email != "" ) { + $user = $du->fromEmail($Email); + } else { + $user = $du->fromId($Id); + } + $this->showTitle("Profile settings"); + $form = new Form($_SERVER['PHP_SELF']); + $form->setClass("profile"); + $form->addInput(new ProfileLayout($user)); + echo "
    \n"; + echo "

    Information générales

    \n"; + $form->show(); + /** + * Start treating the groups and church features .... + * Not yet well coded. + */ + $GrpDb = new DbGroups($AppDb); + $items = $GrpDb->usersGroups($Id); + if (count($items) > 1) { +echo <<Fonctions + +
    + +FIN; + foreach ($items as $item) { + if (isset($item["fonction_id"])) { + echo "\n"; + } + } + echo "\n"; + echo <<
    delete".$item["grpName"]."
    ajouter groupe"; + echo "
    +
    +
    +FIN; + } + if (isset($SESSION['eglise_id'] )&& $_SESSION['eglise_id'] > 0 ) { + + echo "Vous êtes actuellement membre de l'église"; + + } else + echo ""; + + echo "
    "; + } + + + function main() { + global $_SESSION; + $s = new Session; + if (!isset($_SESSION['user_id'])) { + echo "vous n'êtes pas en session. veulliez vous identider\n"; + } + if ($this->action == "" || $this->action == "EDIT") { + global $_SESSION; + /* Edit my profile */ + if (isset($_SESSION['user_id'])) + { + $this->showProfileForm($_SESSION['user_id']); + } else { + echo "Sorry But user_id not given"; + } + } else if ($this->action=="FORM" && ($this->login != "")) { + if (isset($_GET['id'])) { + $this->showProfileForm($_GET["id"]); + } else if (isset($_GET["email"])) { + $this->showProfileForm("",$_GET["email"]); + } + } else if ($this->action=="UPDATE" && ($this->login != "")) { + $this->update($_POST['id'],$_POST); + /* + * Must be logged in and must security == 1 + */ + if(isset($this->login)) { + } + $this->showProfileForm($_POST['id'],$_POST["email"]); + } else if ($this->action=="GROUPE_ADD" && ($this->login != "")) { + if (!$this->addGroupe($_GET["id"],$_GET)) + { + echo "Failed add groupe to user"; + } + $this->showProfileForm($_GET['id']); + + } else if ($this->action=="GROUPE_DEL" && ($this->login != "")) { + if (!$this->deleteGroupe($_GET["id"],$_GET)) + { + echo "Failed add groupe to user"; + } + $this->showProfileForm($_GET['id']); + + } else if ($this->action == "REMOVE" && $this->login != "") { + /* + * Is the user allowed to remove ? + */ + if (($_SESSION['user_id'] == $_GET['id']) || + (1==1/* system user is allowed too*/) ) { + if (isset($_GET['confirm']) && ($_GET['confirm'] == 'yes')) { + if ( ! $this->remove($_GET['id'],$_GET) ) { + echo "Failed remove profile"; + } else { + echo "Profile has been removed"; + } + } else if (isset($_GET['confirm']) && $_GET['confirm'] ='non') { + echo "Bye"; + }else { + echo "Etes vous sûr de vouloir effacer votre profile ?"; + echo "oui / "; + echo "non"; + } + + + } + + } + } +} + +/* Main */ +$profile_page = new Profile($action,$login,$security); + +$profile_page->show(); + +?> diff --git a/app/member/sql-andre-requests.xml b/app/member/sql-andre-requests.xml new file mode 100755 index 0000000..65ccd16 --- /dev/null +++ b/app/member/sql-andre-requests.xml @@ -0,0 +1,74 @@ + + + + + select ident_id as id,ident_name as nom ,ident_firstname as prenom,ident_email1 as email,ident_password as password,ident_address as adresse,ident_city as ville,ident_postalcode as codePostale, ident_phone as telFixe,ident_mobile as telMobile,"" as profilePublic ,"" as lettreMois ,"" as lettrePriere + from %s WHERE ident_id = %d + from %s WHERE ident_name = "%s" + from %s WHERE ident_email1 = "%s"; + + + update %s set + ident_name=%s + ident_firstname=%s + ident_email1=%s + ident_email1=%s + ident_address=%s + ident_password=%s + ident_city=%s + ident_phone=%s + ident_mobile=%s + ident_postalcode=%s + where ident_id="%d"; + + + DELETE FROM %s + where ident_id = %d + where ident_name = %d + where ident_email1 ="%s"; + + + insert into %s (ident_name,ident_firstname,ident_email1,ident_password) + values(%s,%s,%s,%s); + + + select ident_id as id,ident_name as nom,ident_firstname as prenom,ident_email 1 as email,ident_password as password from %s LIMIT %d,%d ; + + + select uid as id,nom,prenom,email,userPassword as password from %s + where ident_name like ("%s%%") ORDER BY ident_name LIMIT %d,%d + where ident_email1 like ("%s%%") ORDER BY ident_name LIMIT %d,%d; + where ident_mobile like ("%s%%") ORDER BY ident_name LIMIT %d,%d; + + + create table users(uid INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(64), + forname VARCHAR(64), + address1 VARCHAR(255), + address3 VARCHAR(255), + codePoste VARCHAR(10), + city VARCHAR(64), + country VARCHAR(32), + email VARCHAR(128), + email1 VARCHAR(128), + fixPhone VARCHAR(32), + mobilePhone VARCHAR(32), + member_status VARCHAR(12), + ); + + + create table groups ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(32) default "", + description VARCHAR(255) + ); + + + insert into LogAccess (la_action,la_cause,la_user,la_ipv4) VALUES("%s","%s","%s",%d); + + + + + diff --git a/app/member/sql-requests.xml b/app/member/sql-requests.xml new file mode 100644 index 0000000..29ea44d --- /dev/null +++ b/app/member/sql-requests.xml @@ -0,0 +1,70 @@ + + +
    + + select uid as id, lastname as nom,firstname as prenom,email,pass as password,"" as adresse,"" as ville,"" as codePostale, "" as telFixe,"" as telMobile,"" as profilePublic ,"" as lettreMois ,"" as lettrePriere + from %s WHERE uid = %d + from %s WHERE username = "%s" + from %s WHERE email = "%s"; + + + update "%s" set + nom=%s + prenom=%s + email=%s + email1=%s + address=%s + address1=%s + address1=%s + address1=%s + where uid="%d"; + + + DELETE FROM %s + where uid = %d + where username = %d + where email ="%s"; + + + insert into %s (nom,prenom,email,userPassword,profilePublic,lettreMois) + values(%s,%s,%s,%s,%s,%s); + + + select uid as id,nom,prenom,email,userPassword as password from %s LIMIT %d,%d ; + + + select uid as id,nom,prenom,email,userPassword as password from %s + where nom like ("%s%%") ORDER BY nom LIMIT %d,%d + where prenom like ("%s%%") ORDER BY nom LIMIT %d,%d; + where prenom like ("%s%%") ORDER BY nom LIMIT %d,%d; + + + create table users(uid INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(64), + forname VARCHAR(64), + address1 VARCHAR(255), + address3 VARCHAR(255), + codePoste VARCHAR(10), + city VARCHAR(64), + country VARCHAR(32), + email VARCHAR(128), + email1 VARCHAR(128), + fixPhone VARCHAR(32), + mobilePhone VARCHAR(32), + member_status VARCHAR(12), + ); + + + create table groups ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(32) default "", + description VARCHAR(255) + ); + + + + + + diff --git a/app/member/sql-trinity-requests.xml b/app/member/sql-trinity-requests.xml new file mode 100644 index 0000000..d2ff6ea --- /dev/null +++ b/app/member/sql-trinity-requests.xml @@ -0,0 +1,73 @@ + + + + select id,name as nom,forname as prenom,email1 as email,userPassword as password,address_l1 as adresse,city as ville,postalCode as codePostale, phoneFix as telFixe,phoneMobile as telMobile,'','','' + from %s WHERE id = %d + from %s WHERE username = "%s" + from %s WHERE email = "%s"; + + + update "%s" set + name=%s + forname=%s + email1=%s + email2=%s + address_l1=%s + address_l2=%s + phoneFix=%s + phoneMobile=%s + where id="%d"; + + + DELETE FROM %s + where id = %d + where name = %d + where email1 ="%s"; + + + insert into %s (name,forname,email1,userPassword,profilePublic,lettreMois) + values(%s,%s,%s,%s,%s,%s); + + + select id,name as nom,forname as prenom,email1 as email,userPassword as password from %s LIMIT %d,%d ; + + + select id,nom,prenom,email,userPassword as password from %s + where name like ("%s%%") ORDER BY nom LIMIT %d,%d + where email1 like ("%s%%") ORDER BY nom LIMIT %d,%d; + where prenom like ("%s%%") ORDER BY nom LIMIT %d,%d; + + +CREATE TABLE IF NOT EXISTS `users` ( + `id` int(10) unsigned NOT NULL auto_increment, + `name` varchar(64) NOT NULL, + `forname` varchar(64) NOT NULL, + `address_l1` varchar(255) NOT NULL, + `address_l2` varchar(255) NOT NULL, + `postalCode` varchar(8) NOT NULL, + `city` varchar(64) NOT NULL, + `phoneFix` varchar(32) NOT NULL, + `phoneMobile` varchar(32) NOT NULL, + `email1` varchar(128) NOT NULL, + `email2` varchar(128) NOT NULL, + `nationality` varchar(64) NOT NULL, + `member_status` enum('active','inactive','transferred','visitors','inprogress','resigned','moved') NOT NULL, + `creation` datetime NOT NULL default '0000-00-00 00:00:00', + `last_update` datetime NOT NULL default '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + + + create table groups ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(32) default "", + description VARCHAR(255) + ); + + + + + + diff --git a/app/registration/class.db_stats.php b/app/registration/class.db_stats.php new file mode 100644 index 0000000..a16fae8 --- /dev/null +++ b/app/registration/class.db_stats.php @@ -0,0 +1,24 @@ +table = 'eglises_stats'; + parent::Db($cfg['host'],$cfg['user'],$cfg['password'],$cfg['name']); + } + + function total($year) + { + } + + function register($Form) + { + $form = $this->escape($Form); + $sql = sprintf('insert into %s(eglise_id,enregistrement,declarer_id,membres,recettes) values(%d,DATE("%s"),%d,%d,%f)',$this->table,$form['eglise_id'],date('Y-m-d'),$form['member_id'],$form['membres'],$form['recettes']); + $result = mysql_query($sql,$this->conn); + if (!$result) { + echo "Query Failed ".$sql." .... ".mysql_error(); + } + } +} +?> diff --git a/app/registration/counting.php b/app/registration/counting.php new file mode 100644 index 0000000..8e81858 --- /dev/null +++ b/app/registration/counting.php @@ -0,0 +1,134 @@ +login_id = $lid; + $this->eglise_id = $eid; + $this->groupe_id = $gid; + } + + function showCode() { + echo "Security"; + } + + function show() { + echo "
    "; + $action = new FormInput("member_id",$this->login_id); + $action->show(); + $action = new FormInput("eglise_id",$this->eglise_id); + $action->show(); + $action = new FormInput("groupe_id",$this->groupe_id); + $action->show(); + $email = new FormInputText("membres","",_("Membres:")); + $email->setSize(8,3); + $email->show(); + echo "
    "; + $email = new FormInputText("recettes","",_("Cotisation:")); + $email->setSize(8,7); + $email->show(); + echo "
    "; + $this->showCode(); + echo ""; + $code = new FormInputText("security_code",""); + $code->setSize(7,6); + $code->show(); + echo "
    "; + $submit = new FormInputSubmit("","Enregistrer"); + $submit->show(); + + } +} + +class Counting extends AppPage { + var $OK; + var $login_id; + var $eglise_id; + var $groupe_id; + function Register($login_id = "",$eglise_id = 0,$groupe_id = 0) { + $this->OK = 0; + $this->login_id = $login_id; + $this->eglise_id = $eglise_id; + $this->groupe_id = $groupe_id; + if ($login_id != "") { + $this->OK = 2; + } + } + + function registerOk($status) { + GLOBAL $AppDb,$_POST; + $db = new DbStats($AppDb); + $db->register($_POST); + $this->OK = $status; + } + function showOk() { + echo 'Merci pour l`enregistrement des statistiques de cette annéee\n'; + unset($_SESSION['security_code']); + } + + function showFailed() { + + } + function showRegister() { + $this->showTitle("Registration"); + echo <<Déjà enregistre. + Bonjour, vous êtes actuellement enregistré sous l'indifiant $this->login. + Vous pouvez modifier votre profile +FINE; + + } + + function showForm() { + $this->showTitle("Statistics"); + echo "Enregistrement pour l'année ".date('Y')."

    "; + if ($this->OK == -1) { + echo "Failed register retry\n"; + } + $f = new Form($_SERVER['PHP_SELF']); + $l =new CountingLayout($this->login_id,$this->eglise_id,$this->groupe_id); + $l->alias = $this->alias; + $f->addInput($l); + $f->setClass("login"); + $f->show(); + echo "

    "; + } + + function main () { + if ($this->OK == 0) { + $this->showForm(); + } else if ($this->OK == 1) { + $this->showOk(); + } else if ($this->OK == 2) { + $this->showRegister(); + } else if ($this->OK == -1 ) { + $this->showFailed(); + $this->showForm(); + } + } +} + +$register = new Counting($_SESSION['user_id'],isset($_SESSION['eglise_id'])?$_SESSION['eglise_id']:0,isset($_SESSION['groupe_id'])?$_SESSION['groupe_id']:-1); + +if( isset($_POST['submit'])) { + if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { + // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. + $register->registerOk(1); + } else { + // Insert your code for showing an error message here + $register->registerOk(-1); + } + $register->show(); +} else { + $register->show(); + } +?> diff --git a/app/registration/register.php b/app/registration/register.php new file mode 100644 index 0000000..dd78c12 --- /dev/null +++ b/app/registration/register.php @@ -0,0 +1,160 @@ +OK = 0; + if ($login != "") { + $this->OK = 2; + $this->login = $login; + } + } + + function registerOk($status) { + $this->OK = $status; + } + function showOk() { + if ($this->message != '') { + echo $this->message; + } else { + echo 'Thank you registering' ; + } + unset($_SESSION['security_code']); + } + /** + * Avoid to add login form twice in the same page. + */ + function _login() { + } + + function showFailed() { + + } + function showRegister() { + $this->showTitle("Registration"); + echo <<Déjà enregistre. + Bonjour, vous êtes actuellement enregistré sous l'indifiant $this->login. + Vous pouvez modifier votre profile"; + } + + function showForm() { + $this->showTitle("Registration"); + if ($this->OK == -1) { + echo "Failed register retry\n"; + } +echo << +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    +
    +FIN; + + } + + function main () { + if ($this->OK == 0) { + $this->showForm(); + } else if ($this->OK == 1) { + $this->showOk(); + } else if ($this->OK == 2) { + $this->showRegister(); + } else if ($this->OK == -1 ) { + $this->showFailed(); + $this->showForm(); + } + } +} + +if (isset($login)) { + $register = new Register($login); +} else + $register = new Register(); + +if( isset($_POST['submit'])) { + if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { + global $AppDb; + // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. + error_log("register.php "); + $register->registerOk(1); + $user = new DbUser($AppDb); + $ident = $user->fromEmail($_POST['email']); + if (isset($ident['email'])) { + /* user already registered */ + $register->message="L'utilisateur ".$_POST["email"]." est déjà enregistré."; + } else + if (check_email_address($_POST["email"])) { + /* names are allays in upercase ... */ + $user->add($_POST); + } else { + } + } else { + // Insert your code for showing an error message here + $register->registerOk(-1); + } + $register->show(); +} else { + $register->show(); +} +/** + vim:et:sw=4:ts=4:encoding=utf8 + */ +?> diff --git a/app/users.xml b/app/users.xml new file mode 100644 index 0000000..284419e --- /dev/null +++ b/app/users.xml @@ -0,0 +1,240 @@ + + + + + + User Managment + + + + +

    Administration des utilisateurs

    +

    +

    + +
    + + + + + Utilisateur + +
    + Her +
    + + + Plan Comptable + + 1 Comptes de capitaux + + + 2 Comptes d immobilisation + + + 3 Stock et Command + + + 4 Comptes Tiers + + + 5 Comptes Financiers + + + 6 Comptes Charges + + + 7 Comptes Produits + + + 8 Hors Comptabilite + + + 9 Comptes Analytiques + + +
    +
    +

    Test What happens here

    + + System + + + +

    + + + Groupes + + simpe test + + + + Frogs + + Ok, + + Info Gen + + Une info: + + + + + + +
    +
    +
    +
    + + + + + Groupes + + Strange + + authentication + +

    Test Content

    + +
    +
    + + alias + + display boxes : enable + + + + ssl + + display boxes: + enable + disable + + + + + +
    +
    + + + Eglise + + Page de debug pour web_server. + + Yes + Vide + + + + + + T table + + Test Table Stuff + + + + + + + + + + + +
    Titre du tableau
    r1r2
    Un test pour voird1
    Un bouton +
    Un test pour voird1
    Un bouton +
    + End Table + +
    +
    + + Calendar + + Test12 +
    + +
    +
    +
    + +
    +
    diff --git a/app/xsd2cpp/view/main.fr_FR.UTF8.xml b/app/xsd2cpp/view/main.fr_FR.UTF8.xml new file mode 100644 index 0000000..a516a04 --- /dev/null +++ b/app/xsd2cpp/view/main.fr_FR.UTF8.xml @@ -0,0 +1,41 @@ + + + + + + + Distro + + + + +

    Xsd2cpp

    +

    Un service en ligne pour vous aider à augmenter votre productivité dans + le domaine du data binding

    + + Définition xsd + + +
    + + + +
    +
    +
    +
    + + + + +
    + + diff --git a/calendar.fr_FR.UTF-8.xml b/calendar.fr_FR.UTF-8.xml new file mode 100644 index 0000000..ae79e20 --- /dev/null +++ b/calendar.fr_FR.UTF-8.xml @@ -0,0 +1,27 @@ + + + + + Calendrier + Calendar + Willkommen + + Informatique, Calendrier, Calendar, Javascript, CSS, Web2.0, Ingénieur, engineer + $Date: 2010/08/25 14:33:02 $ + $Id: calendar.fr_FR.UTF-8.xml,v 1.1 2010/08/25 14:33:02 aebersol Exp $ + + +

    Calendrier

    +

    Une vue sur mon calendrier public google.

    +
    + + + + + + +
    +
    + diff --git a/calendar.xml b/calendar.xml new file mode 100644 index 0000000..62c139d --- /dev/null +++ b/calendar.xml @@ -0,0 +1,33 @@ + + + + + Calendrier + Calendar + Willkommen + + Informatique, Calendrier, Calendar, Javascript, CSS, Web2.0, Ingénieur, engineer + $Date: 2010/08/25 15:10:02 $ + $Id: calendar.xml,v 1.8 2010/08/25 15:10:02 aebersol Exp $ + + Calendrier + Calendar +

    Introduction

    +

    Introduction

    +

    Pour l'instant, c'est un composant Javascript qui affiche la date du jour. Il permet de naviguer à travers les différents mois de l'année.

    +

    This was my first development in Javascript. The feature is interesting and starts to work fine.

    +

    Futur

    +

    Plans

    +

    + Il y a encore un peu de travail pour exploiter pleinement les services de ce composant. Tout + d'abord, la possibilité d'ajouter des liens sur des dates données. Enfin, rendre le calendrier dynamique. + C'est à dire visible et invisible.

    +
    + + + +
    +
    + diff --git a/calendar_doc.xml b/calendar_doc.xml new file mode 100644 index 0000000..8e855e0 --- /dev/null +++ b/calendar_doc.xml @@ -0,0 +1,44 @@ + + + + + + 16 Feb 2010 + Amélioration du rendu + Unification of the design + + -Integration d'un méchanism de login type + MD5. + + + - Utilisation des lib prototype, scriptaculous, leightway. + L'objectif étant d'avoir une album photo et de permettre l'edition + en ligne. + + + EBERSOLD André + + + Calendrier + Calendar + Willkommen + Informatique, Calendrier, Calendar, Javascript, CSS, Web2.0, Ingénieur, engineer + $Date: 2008/03/06 18:11:27 $ + $Id: calendar_doc.xml,v 1.3 2008/03/06 18:11:27 aebersol Exp $ + +

    Description ofthe API of the calandar

    + + +

    Documentation Calendrier

    +

    Calendrier

    + En cours de réalisation. +
    + +

    Calendar

    + In progess. +
    +
    +
    + diff --git a/competence.xml b/competence.xml new file mode 100644 index 0000000..aab98b0 --- /dev/null +++ b/competence.xml @@ -0,0 +1,35 @@ + + + + + Accueil + About + Willkommen + $Date: 2008/03/06 18:11:27 $ + $Id: competence.xml,v 1.3 2008/03/06 18:11:27 aebersol Exp $ + + Accueil + About +

    Compétences

    + +

    Projet

    +

    Project

    + + +

    Languages

    +

    Languages

    + + +

    Web

    +

    Web

    + + +
    +
    + diff --git a/config.xml b/config.xml new file mode 100644 index 0000000..8d782b6 --- /dev/null +++ b/config.xml @@ -0,0 +1,46 @@ + + + + home + free + menu.xml +
    header.xml
    + header.xml + + fr + en + de + +
    + + free + free + menu.xml +
    header.xml
    + header.xml + + fr + en + de + +
    + + andre + andre + menu_andre.xml +
    header_php.xml
    +
    header_php.xml
    + header_php.xml + + + fr + en + +
    + + + +
    + diff --git a/contact.en_US.UTF-8.xml b/contact.en_US.UTF-8.xml new file mode 100644 index 0000000..dbcae01 --- /dev/null +++ b/contact.en_US.UTF-8.xml @@ -0,0 +1,34 @@ + + + + + Contact + Contact + Willkommen + $Date: 2009/04/27 06:38:44 $ + $Id: contact.xml,v 1.6 2009/04/27 06:38:44 aeb Exp $ + +

    Contact

    +

    Feel free to leave a message or comments.

    +
    +
    Comments:
    +
    Security
    + +
    +
    + + +
    +
    + diff --git a/contact.fr_FR.UTF-8.xml b/contact.fr_FR.UTF-8.xml new file mode 100644 index 0000000..7389478 --- /dev/null +++ b/contact.fr_FR.UTF-8.xml @@ -0,0 +1,23 @@ + + + + + Contact + Contact + $Date: 2009/04/27 06:38:44 $ + $Id: contact.xml,v 1.6 2009/04/27 06:38:44 aeb Exp $ + +

    Contact

    +

    Sentez-vous libre de me contacter pour toutes informations ou remarques sur ce sute.

    +
    +
    Comments:
    +

    '); + + return treeIndex; +} + +// +// draw the sub menu recursively +// +function ctDrawSub (subMenu, isMain, id, treeIndex, level, nodeProperties, prefix, indent) +{ + var lvl = level; + if (lvl > nodeProperties.themeLevel) + lvl = nodeProperties.themeLevel; + + var str = '
    6); + idSub = hasChild ? ctNewSubMenuID () : null; + + str += ''; + + // + // #JSCookTreeFolderClose & #JSCookTreeFolderOpen + // are used in style sheet to control the animation of folder open/close + // Also, it tells status of the submenu + // + str += ' tag) + // could be tracked in an alternative way + // _ctMenuInitStr is used to initate the menu item + // + itemID = 'ctItemID' + index; + markerStr = ' id="' + itemID + '"'; + _ctMenuInitStr += 'ctSetupItem (ctGetObject ("' + itemID + '").parentNode,' + index + ',' + treeIndex + ',' + level + ',' + (idSub ? ('"' + idSub + '"') : 'null') + ');'; + + str += ''; + + if (item[0] == _ctNoAction) + { + str += ctNoActionItem (item, prefix); + str += '
    ' + indent; + + str += '
    '; + continue; + } + + actionStr = ctActionItem (); + + str += ''; + // add connect part + if (hasChild) + { + connectSelect = ctHasNextItem (i, subMenu) ? 0 : 1; + lvl = ctGetPropertyLevel (level, nodeProperties.folderConnect); + str += '' + nodeProperties.folderConnect[lvl][connectSelect][0] + '' + + '' + nodeProperties.folderConnect[lvl][connectSelect][1] + ''; + } + else + { + connectSelect = ctHasNextItem (i, subMenu) ? 0 : 1; + lvl = ctGetPropertyLevel (level, nodeProperties.itemConnect); + str += nodeProperties.itemConnect[lvl][connectSelect]; + } + + if (item[0] != null && item[0] != _ctNoAction) + { + str += '' + item[0] + '' ; + } + else if (hasChild) + { + lvl = ctGetPropertyLevel (level, nodeProperties.folderLeft); + str += '' + nodeProperties.folderLeft[lvl][0] + '' + + '' + nodeProperties.folderLeft[lvl][1] + ''; + } + else + { + lvl = ctGetPropertyLevel (level, nodeProperties.itemLeft); + str += nodeProperties.itemLeft[lvl]; + } + str += ''; + + str += ''; + + str += ''; + + str += ''; + + if (hasChild) + { + lvl = ctGetPropertyLevel (level, nodeProperties.folderRight); + str += '' + nodeProperties.folderRight[lvl][0] + '' + + '' + nodeProperties.folderRight[lvl][1] + ''; + } + else + { + lvl = ctGetPropertyLevel (level, nodeProperties.itemRight); + str += nodeProperties.itemRight[lvl]; + } + str += '' + str += ''; + + if (hasChild) + { + childIndent = indent; + lvl = ctGetPropertyLevel (level, nodeProperties.spacer); + childIndent += nodeProperties.spacer[lvl][connectSelect]; + + str += ctDrawSub (item, false, idSub, treeIndex, level + 1, nodeProperties, prefix, childIndent); + } + } + + str += '
    '; + + return str; +} + +////////////////////////////////////////////////////////////////////// +// +// Mouse Event Handling Functions +// +////////////////////////////////////////////////////////////////////// + +// +// action should be taken for mouse moving in to the menu item +// +function ctItemMouseOver (item) +{ + var treeItem = _ctItemList[item.ctIndex]; + var isDefaultItem = ctIsDefaultItem (treeItem); + + if (isDefaultItem) + { + var className = ctGetDefaultClassName (item); + + if (item.className == className) + item.className = className + 'Hover'; + } +} + +// +// action should be taken for mouse moving out of the menu item +// +function ctItemMouseOut (item) +{ + if (ctIsDefaultItem (_ctItemList[item.ctIndex])) + { + var className = ctGetDefaultClassName (item); + + if (item.className == (className + 'Hover') || + item.className == (className + 'Active')) + { + var tree = _ctTreeList[item.ctTreeIndex]; + var currentItem = (tree.hideType <= 1) ? tree.currentItem : _ctCurrentItem; + + if (item == currentItem) + item.className = className + 'Selected'; + else + item.className = className; + } + } +} + +// +// action should be taken for mouse button down at a menu item +// +function ctItemMouseDown (item) +{ + if (ctIsDefaultItem (_ctItemList[item.ctIndex])) + { + var className = ctGetDefaultClassName (item); + + if (item.className == (className + 'Hover')) + item.className = className + 'Active'; + } +} + +// +// action should be taken for mouse button up at a menu item +// +function ctItemMouseUp (item) +{ + if (item.ctIdSub) + { + // toggle the submenu + var subMenu = ctGetObject (item.ctIdSub); + if (subMenu.style.display == 'block') + { + ctCloseFolder (item); + } + else + { + ctOpenFolder (item); + } + } + ctSetSelectedItem (item); +} + +// +// set the item as the selected item +// +function ctSetSelectedItem (item) +{ + var tree = _ctTreeList[item.ctTreeIndex]; + var hideType = tree.hideType; + + var otherItem; + + if (hideType <= 1) + otherItem = tree.currentItem; + else + otherItem = _ctCurrentItem; + + if (otherItem != item) + { + ctLabelMenu (item); + + // set otherItem to normal + if (otherItem) + { + if (ctIsDefaultItem (_ctItemList[otherItem.ctIndex])) + { + var className = ctGetDefaultClassName (otherItem); + if (otherItem.className == (className + 'Selected')) + otherItem.className = className; + } + + // hide otherItem if required + if (hideType > 0 && otherItem) + ctHideMenu (otherItem, item); + } + + // finally, set this item as selected + if (hideType <= 1) + tree.currentItem = item; + else + _ctCurrentItem = item; + + if (ctIsDefaultItem (_ctItemList[item.ctIndex])) + { + var className = ctGetDefaultClassName (item); + item.className = className + 'Selected'; + } + } +} + +////////////////////////////////////////////////////////////////////// +// +// Mouse Event Support Utility Functions +// +////////////////////////////////////////////////////////////////////// + +// +// check if an item is in open form +// +function ctIsFolderOpen (item) +{ + if (item.id == 'JSCookTreeFolderOpen') + return true; + return false; +} + +// +// change an item into the open form +// +function ctOpenFolder (item) +{ + if (ctIsFolderOpen (item)) + return; + if (item.ctIdSub) + { + var subMenu = ctGetObject (item.ctIdSub); + subMenu.style.display = 'block'; + + item.id = 'JSCookTreeFolderOpen'; + } +} + +// +// change an item into the closed form +// +function ctCloseFolder (item) +{ + if (!ctIsFolderOpen (item)) + return; + + // hide the downstream menus + if (item.ctIdSub) + { + var subMenu = ctGetObject (item.ctIdSub); + var i; + for (i = 0; i < subMenu.ctSubMenu.length; ++i) + ctCloseFolder (subMenu.ctSubMenu[i].ctParent); + + var expandLevel = _ctTreeList[item.ctTreeIndex].expandLevel; + if (item.ctLevel < expandLevel) + return; + subMenu.style.display = 'none'; + + item.id = 'JSCookTreeFolderClosed'; + } +} + +// +// setup an menu item +// +function ctSetupItem (item, index, treeIndex, level, idSub) +{ + if (!item.ctIndex) + { + item.ctIndex = index; + item.ctTreeIndex = treeIndex; + item.ctLevel = level; + item.ctIdSub = idSub; + } + + var thisMenu = ctGetThisMenu (item); + ctSetupMenu (thisMenu, item, null, null); + + if (idSub) + { + var subMenu = ctGetObject (idSub); + ctSetupMenu (subMenu, null, thisMenu, item); + } +} + +// +// setup the relationship between a node and its sub menu +// +function ctSetupMenu (thisMenu, thisItem, parentMenu, parentItem) +{ + if (!thisMenu.ctSubMenu) + thisMenu.ctSubMenu = new Array (); + + if (parentItem) + { + if (!thisMenu.ctParent) + { + // establish the tree w/ back edge + thisMenu.ctParent = parentItem; + thisMenu.ctLevel = parentItem.ctLevel + 1; + + //parentMenu.ctSubMenu.push (thisMenu); + parentMenu.ctSubMenu[parentMenu.ctSubMenu.length] = thisMenu; + } + } + + if (thisItem) + { + if (!thisItem.ctMenu) + { + thisItem.ctMenu = thisMenu; + + thisMenu.ctLevel = thisItem.ctLevel; + + if (!thisMenu.ctItems) + thisMenu.ctItems = new Array (); + + //thisMenu.ctItems.push (thisItem); + thisMenu.ctItems[thisMenu.ctItems.length] = thisItem; + } + } +} + +// +// label the path from the menu root to the item +// +function ctLabelMenu (item) +{ + var thisMenu = ctGetThisMenu (item); + while (thisMenu && thisMenu.ctLevel != 0) + { + thisMenu.ctCurrentItem = item; + thisMenu = ctGetThisMenu (thisMenu.ctParent); + } +} + +// +// hide an item up to the parent menu of activeItem +// +function ctHideMenu (item, activeItem) +{ + var subMenu; + while (item) + { + if (item.ctIdSub && + (subMenu = ctGetObject (item.ctIdSub)).ctLevel && + (subMenu.ctCurrentItem != activeItem)) + { + ctCloseFolder (item); + } + item = ctGetThisMenu (item).ctParent; + } +} + +// +// returns the menu div where this obj (menu item) is in +// +function ctGetThisMenu (item) +{ + var str = _ctTreeList[item.ctTreeIndex].prefix; + if (item.ctLevel == 0) + str += 'TreeLevel0'; + else + { + var themeLevel = _ctTreeList[item.ctTreeIndex].nodeProperties.themeLevel; + var lvl = (item.ctLevel < themeLevel) ? item.ctLevel : themeLevel; + str += 'TreeLevel' + lvl; + } + while (item) + { + if (item.className == str) + return item; + item = item.parentNode; + } + return null; +} + +// +// return true if there is next item +// +// used to determine connectors +// +function ctHasNextItem (index, tree) +{ + if (index < (tree.length - 2) || + (index == (tree.length - 2) && tree[index + 1])) + return true; + else + return false; +} + +function ctGetDefaultClassName (item) +{ + var tree = _ctTreeList[item.ctTreeIndex]; + return tree.prefix + 'Row'; +} + +// +// return true if this item is handled using default handlers +// +function ctIsDefaultItem (item) +{ + if (item[0] == _ctNoAction) + return false; + return true; +} + +// +// returns the object baring the id +// +function ctGetObject (id) +{ + if (document.all) + return document.all[id]; + return document.getElementById (id); +} + +// +// debug function, ignore :) +// +function ctGetProperties (obj) +{ + var msg = obj + ':\n'; + var i; + for (i in obj) + msg += i + ' = ' + obj[i] + '; '; + return msg; +} + +/* JSCookTree v2.01 1. change Array.push (obj) call to Array[length] = obj. + Suggestion from Dick van der Kaaden to + make the script compatible with IE 5.0 + 2. added ctGetSelectedItem (treeIndex) function due to demand +*/ +/* JSCookTree v2.0 1. added controls over tree branches opening/closing + 2. added the ability to mark a specific tree item + 3. added an extra description field to make the tree + format the same as JSCookMenu + 4. more control over themes. allow multiple trees + w/ different themes co-exist in the same page + 5. tooltips. +*/ +/* JSCookTree v1.01. made more tolerant to extra commas */ +/* JSCookTree v1.0. (c) Copyright 2002 by Heng Yuan */ diff --git a/css/jscook/ThemeLibrary.zip b/css/jscook/ThemeLibrary.zip new file mode 100644 index 0000000000000000000000000000000000000000..446c6c78c64717e7c2a0b0a37d18eed85453f189 GIT binary patch literal 2444 zcmbuAc{r47AIBfdj4(3xbr|6o`xe=z;fPKdOodRgH6wAD%-FY-Mv`O96;CuIIV$=X##|d;LDw{rlcuj0GFJAOHaSfKL!7 z)whl#U$dBRSJ(hRggM$=!2XU!d%F3#`UR`we7(afCJEvtqQM3)E%33t;7O z83Z1Q*Qvnu@S}B+8Fi7QO_y0zDqXr$43y>44>Uhexe0+VAO`UL2x|>|lQxw=4f3|f z7bixUn0vHNu(0AxG=RHgJ%B36K~nlSe72quwg_rh3TQQUdal-D^d8Ij-sem>pd2&<*OEIv3%V zSu&-Tc$d{v<{70@d-17~Q}Cty&9VF!b|d_fqM}b&wxQ|F%?w>xZXz*Z)0wx>ZfLx# z2X-fJQ0Gs#62yK3=T zTAQiPRt?VNH@^l;R-XJ#Qh{V=M>%u!xUQ+86*&%*Bk1r5t@-rTecJK@{(O6~qj!r7 z)y2p(TbyRh;U2GZjN*`CyKE(H6)<(40T;2zIW+ON!~j~fC&sHFdhx123y&nnR8n}} zDOBZ$o*2K4)9C2Pizf^M3{>u zR$Q4tI)3CHGf@+ia6-zK0#$iJ?^_RNC&yG-o4}&Gs#izzOXcQFpD%w)op%mmxzt&I zUjj-yhkV7WMQKWZOpQ*tI0K_lveRZ#5B7Wo2^x!^SV$UHfU*7 z`+n0WlY^4w$8)Q!JtI)Qs41BNqv!GXTW5A+85jfVqEN9rC*NSM-u}ESz0U@bAaYRq z8N9tkt|A9p*BN=FilS+TWbH`TQf|2LHNU!q%V!H^JdWk%AfR$$jrPITPTz)oyM?fqf?r$)^`NKCTBt~m4Q zVdY3mJp1A>8Lr5-)igdUq@GfRDm+#p7cyd0-%13R8Ox_V>}z_%1toFruU_=r(5jLN zfvl~TzmV8JI3(5GbGhj3V)Ibklxe6VV-fXOVBEUk;9t$N4AyOTt|dpPRvb#55@$B~ z2xt#?esA)Ngc_R?ADRaAo~-dE{v(Em?*P$q7SeW7Pz_Ti#l_*RXA)btynaRov48>3l?R&# z!yCzs&Zr^I1dW)?uWufD7VtVR7H*UiuiK*Srw2GI3U8zvbv(-#FAyt$f;~8hCRq>q zBxN+ZpGgOU@%0F$eFxZc=ln+*qFvhmAzAas+~!ipUk&HXT&h1=2XiszV$-=IjhQvi zIzHWEU@T)eEyh*OV)n)$B6c!%{YH)gZ0U})2;9Mle*M*2KYN#uP2TAvd2CMu-p2>r zuN7yXRTGHUFRhTW<&?_NnMJeGn~y}zRKv+$K|zS&8C#3VhA>^WrN6`M>OS7E%CTBWzxd^g zxBjCAU&dj5*LU9OXYWjC51@SN+B6Kj-_`UFQ9-B{nXerVqDSJoPvLu)U-RiTR#sJx zqoX!2VV{g;B)V^Ql_iWtK>6>XQZ#2*OFl>2Iefwi@4KCmI3E9a1Hamf;#@avh%&mS z2Y=kZlvAc3-rr0540B6;QaVKsMKq=pGsu|B?9lCVVG>0-Gk49J?ei79jA}XE5_h MVq#7(e*l300yE$9od5s; literal 0 HcmV?d00001 diff --git a/css/jscook/ThemeNavy.zip b/css/jscook/ThemeNavy.zip new file mode 100644 index 0000000000000000000000000000000000000000..2d89393a956f6548d2c07e3a506f6a23db53a615 GIT binary patch literal 1819 zcmWIWW@h1H00AeyCf!MPd(YYe*&r+o#331}xv74MWtIBLIr+t@dg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`K9T$Xwiyw z$IG24N1TWCxUh2_dc$;H(><->Q0?=hj!0(xM=^EhnWOaLq2gr*B{Crva@yFdu{7xo z`Z~}C7^*PJVzTnCjiZMPI{o(TzglaSVGy4~UI`x#7_sxi4se<`Wh%+%77&=2#tr1- zJysYL^!m`q!UV8yuVt-yLdm>Tg14FTmZQ9e-k;5x>8st56>OEw$5OK;UDm=4Gpwui zEDt$coi}&mrMrrNTx`bZW=ls_Nx3q1=^Jw05X+ezHB(m_X2C3{jK$rF^H%G9OUg2o z$y&*xm~k(k-C*lT_IOtub}q{a^CWs$$}RKkqtuVbRk~~pEpi2}DnB!nv?0yk5QxTO zY$P%M&nIz+J``jXUs`E16d8M2&AcbRTkddSFmk#x^n%g+DTVH(vt6IxuEZIST`!QW zyZ2bIv6Im1>|GMie?e9a*EO4j(mfA(ZxzdJZ?2VcvZC`HCg;4aea9u+)C$%wNpCXm#hY|e^bGL2U$y@-$>SyN9Ch9lf z-413axEgTIzXAU}^{{R30 literal 0 HcmV?d00001 diff --git a/css/jscook/ThemeXP.zip b/css/jscook/ThemeXP.zip new file mode 100644 index 0000000000000000000000000000000000000000..2b35a0cb9335f5d16d048909dc76b81e81b09beb GIT binary patch literal 4961 zcmb7Hc|4Ts7axSKr6jV1CP~O3!j&atxweueS*Gm!%*f0j%S1#Z2~o0SU$gJoWfvw= zAxexSOQ~jLd4I3E?hMzxpZojc%;%jyzUO?;bIy65@6p$x*~JEdKz2hu_`_iepOc60 zfdA4!+Yg$NqaDKTqQ1C2%GK7+{e+lOFR;!l)Zx!8v~Fuow_7aZ`x0CGwzVAv^X^_NDdZs?IR!J*vXHm7uM*d3 zeqB4aen`aiK4(6a{$Kpz*WfU*8VBM>koT7z`Acr)|9f-e;-Ouf{)?w+Zni)&8+(KS zpl=xfR)7UXpaJ~yn*oS07n5hpKo4eZ<~v`Uz(U<0v~cgOi*{z$Rg#%? zVBpm$`EWPiWX`BQ260dR-aylpoESS3huki$5z9S}P%bCTg^7)N@$j)w;}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rZ%hl`Jlz@Dfsjywn*Ktwb5`;%ClGenA| zP-6;x0^$*eg@d~GSsaFa3c71;_*}cC;_Qw0YlO>()1O;TlvVGg2@8Ds*lXp@>~u4~ zC^W2rE&B^;YUJSK)A>x+qjXR4(Gt4@e@E^YPUIidcn$IzCw&(++u|bSk>-x#11vkS;ZZu7UHd z88%TtvkV$4j9{*Ce_@=OJ9A|v-q3VPpcf{%zevzjm%r*0_AM*_-gx+w7JTPTcOfHJ+XHoRlcrGr$9J`Fs@1XnoQ|jmuan5rJMg>KmTIBA?@~?={`n zrKfc(#Vlq%h~%r5qAYSeG%Cb?IMVw7caG$nw7RxB=x~msP^f>4dBIr)9b_|~H}3tt zqK}3vm*UKQ9Djs9(#}0%gf3YPJdu8IE};MyQ4<1}eKuD~#CO|EjK^A^MsfH$U5+yB zJ|O2|3|KbOa}sU1m<34tX*#8OZg+-ujl1NuUE}8bmTgRvIH8Szv7W3btWsnc>G&X| zD{UryW!GZ=KIacYZnfO!q|yb{^Y1d?+-Mezhu%c<4pZZ?Op}(UUP>?q_Sx_t$4-qt zYDj!Dw<0JFuzNoAl)vUt*)WT=<@`#ED8!(@KPeqgobX(!UT*M3CFEY~1L~s0*~1gOO)`Po+C0`n~5C$7u*^B3;oYm#xL?L5I|)TeBL$> XKwpOztmlS$+Xqnr8=GP8#=rjovm&^{ literal 0 HcmV?d00001 diff --git a/css/jscook/base.gif b/css/jscook/base.gif new file mode 100644 index 0000000000000000000000000000000000000000..ab8d7abb6e275ec31a9908dd4734effc292af6ab GIT binary patch literal 908 zcmchWJ8P9;498Qja1bh`LhInX#5);xEsK@YzC=|1Ix(;nLLc6SKQzO#X;uy~y-T%hXJ% zDk8%(EJHJ-njYz%Zt0pXHEWUPX_lsGQmY!No@%L@Dj=mqilEAq-d$!!!2CHrBu)~53?{0lM=kJsGyP65D&2s4S^NafFT-{$f5@^*g%8D zvXr5!dFHO}QvRT&GILWmDZ8kksphJ#f_p?U>tZhIf<5v;Cfme;e?;IA)qo)ym5ibT zVz7Y*ODef)Q}fhJDoFf6OQmWmI|L?cUXFC#;y;Rcf{cU8%S1YPH2tM`#WU zsfn(eG#v%pp!poQ65-(qDp{27X1Bj6{VM+7J5*HlFG%N}40ZNi9K2ee|Mq_N%7@Xd zv-3NLW+n&SiK7d zMSgXq@QJAg2YNM*9XqzJMr>9F(~2^IHB}=2ujK##G5PiD*Z=>|`G33g|C9Rv?>o0` z+x8y>W-^ck6o0ZXGBD^d=zw&C{KUXE(P4UlhmKVLi6xgzC4402GB{W!L~2f9POOq~ zU`a4ovhaqB%+vz~Nx8dkFFrrvqSej!Kd!MF9@+A*p|PG#+gVIkwX>^RSE$vAT~}-J zl&QL${d#h`nsevP*X5qctE;hW`3hadnOwRm>o;uF<*#vKOczy ZVbwl)>NG2h3j?FtrOQ`>yuBP5tO0@?i&Ovr literal 0 HcmV?d00001 diff --git a/css/jscook/folder1.gif b/css/jscook/folder1.gif new file mode 100644 index 0000000000000000000000000000000000000000..7b41370476053cfbb4498750f0ccf3b4a63f9bbb GIT binary patch literal 163 zcmZ?wbhEHb6lM@$*vtR||NsA=Gl${axnv;y|NpuF=jMF>{v9X?mP98Mf3h$#FmN#F zfFwX>Ft7v&ob+7ns+3-^+QQXQfa!Xo^D4es&sqy)gqk%uAFX)r=KIikZll2$--d%1 tH>4ka(sE?Q$8Rlq%l)#i9QY$TEm}!jJ7Q+IFH6GNyzTxUDr}e-tO2*LJ;VS2 literal 0 HcmV?d00001 diff --git a/css/jscook/folder2.gif b/css/jscook/folder2.gif new file mode 100644 index 0000000000000000000000000000000000000000..da9e5398764f22d85762b9baa2113665ce084c2f GIT binary patch literal 242 zcmZ?wbhEHb6lM@$IKsg29|RbH@IM2H17rayFmuZP|8xHT|Nj4b&;Rdp{(oQk|9#8a zRdfD7um1nMW$!%0t$h;rwpsqaUp=Q1$Z)#1&Fla5?4^|g&-Vp=zuxlyd@{&f1_s5S zEQ|~catt~^HUr2`2G;xq>U}AhRSiqL4n!_mYc?Kq_Ir&Ye->#iEN9U5Z W?mh3HA2Vf4rgcVkX#_DaSOWk~*BEI4 literal 0 HcmV?d00001 diff --git a/css/jscook/joinbottom.gif b/css/jscook/joinbottom.gif new file mode 100644 index 0000000000000000000000000000000000000000..18b95690cc4a9350a9321d99ff7ddb075bea5966 GIT binary patch literal 70 zcmZ?wbhEHb6lM@$n8*ME|NsAQXlMYEia%Kx85o!ubU>mYc?Kr&Ir&Ye->#iEN9U5Z T?mh3HA2aWGOnc@j#$XKq3?3Mn literal 0 HcmV?d00001 diff --git a/css/jscook/jscookmenu-2.0.3.zip b/css/jscook/jscookmenu-2.0.3.zip new file mode 100644 index 0000000000000000000000000000000000000000..5f11d7cea07445b6e3154483139da1d775e8e46a GIT binary patch literal 14244 zcmZ|0V{k4&*R^>^cWm3XZ96%!ZQD*xY#S#hw(aD^wr$(_o~PcLnYU(Yx@%W=|5^L* zs@2z4k_7`t1Aqdc084O$>{FQ750mr&0Aw`)01rS1$f$@qIM~RW*}E}VyQrx`1He!U zp2evDQ)-^zfD14X&?P?`7hKMUQ;QOsACTp6Q73to_@Oo2F=rB4=OO;I!z47y9)X(0 z2=L*^a8^E6(Xp8L?~gM`g4j%Aaqj8u&Fbn596+qZpSe?eHXPia*Z0chUIv7Q%fUzm zi*xhN*0m3bYDAuMqU`C1S8v^ltEs6g%G>;##U)+*i%0G5T=BCN1K|ZHEd>t_4u3`< zpislK(YHWS%fH&EoPm>X7rx?4`y{!IYM)Ncsc?j61#rs~KmQA{(>lebx*-uKh7>TX zW>!+nguT?PpDp|FYtbfk8f@o-Uxc(Pc@{>#HIF+~A`W zvesYVGXJ|+Uua^XQTC}KV7?c;F5LpAldbPv5)w7a`E?}wGH@b1Dmk*-u zoLp#2qxNNn@dHw@cU@4UHb5Z2&)o?e3lDU2;rndD<@EUU@bs|(a%+Io?GgB`g!%8I zR^P|~VEbc%HNfraR)a9D-^+jVpd54RfO)5;KGkE(;0clrL(Jl4<;gQTeCNKP9uJa-Lpq-Y!&K1At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issrBA? zvTND5)ry_1bVjnrCaJkeC7$fe_DaceuESy2+vVyL?oaAeWg(&cjp}u|o zPOeyZ@hTZC<4!cgjsz^+2=NGke074L9TGK)xq-!rNeuBx>^kT?pT(Q?d>^4fkap^9 zmg<(CSi}v4TN=y)Pi=AU-AUw7VCz+-6&X#kO3iTJszYELQho-+$O`3siRvSj-IU56 z#}Xq_{T9q2;%XrpA({n`aHzDHpN2L@b>ja(E){DKdF$3;{_~+|LnQ6Xf8`$jS4<fT}0BvkhOLTJGX$avhfau*hHtAz7hatskPPX_p(VbS{J* zmi3X9o$&s;G&q#+b>B`;@feN zS6irt{lw8&&xhtC@D$q}KL7jxe)F%Pb|ja=ZAJ6fFZ_wLQMc774pt5DPs1xSVubBFL5+G^iz`FSCXhka!Uvp(< zXE!mSWm9QQJ@a`GO`*E}kPytM+-%ca zN&hkNhLU<%PopUN%xmg#izta++QSn9C+W%QWnC23#fz#Q8qS!G332X%-p{yKA*r7p z+I^MqCbYm@Uc=v9Z)>AyOMZ{&x6GJbhZ*-YaJ6fX6|FPgf*2o30z;J+{Kp5qsJmNB z@yiNn_oZ#@PWEN^yu!i!Z9db6XTv|NbL??wDwA9M zemE3sV7YHj-72v>dW)!X9ipfuRknH@!3sZ+O0poJm|*{ZGjQ;L|1OaKRA114Z~w1} zIEeq5h*R?f0RFem|JOhLZyh)W!2fnr|IzrboBAIO2;hIafc|I4{P*Pi@9X~n@GBW1 literal 0 HcmV?d00001 diff --git a/css/jscook/line.gif b/css/jscook/line.gif new file mode 100644 index 0000000000000000000000000000000000000000..efe7e676597895c2a6863bf1ac870af22086b64a GIT binary patch literal 70 zcmZ?wbhEHb6lM@$n8*ME|NsAQXlMYEia%Kx85o!ubU>mYc?Kr&Ir&Ye->#iEN9U5Z S?mh3%?`xwq;!-L_7_0#VbQgF4 literal 0 HcmV?d00001 diff --git a/css/jscook/minus.gif b/css/jscook/minus.gif new file mode 100644 index 0000000000000000000000000000000000000000..c6b53e1fc314129563d1494fb3400b21b7d3988d GIT binary patch literal 85 zcmZ?wbhEHb6lM@$n8*ME|NsAQXlMYEia%Kx85o!ubU>mYc?Kr6Ir&Ye->#iE$MZ&Z iYK-)+>#~aG49hGvvbuV7eps&4PLgOn{WFe%!5RRQksV_I literal 0 HcmV?d00001 diff --git a/css/jscook/minusbottom.gif b/css/jscook/minusbottom.gif new file mode 100644 index 0000000000000000000000000000000000000000..d4222dab2dee2fc0222e232956ef15b535752a31 GIT binary patch literal 85 zcmZ?wbhEHb6lM@$n8*ME|NsAQXlMYEia%Kx85o!ubU>mYc?Kr6Ir&Ye->#iE$MZ&Z iYK-)+>#~aG49hGvvbuV7eps&4PLgPS{wtV)!5RRR5*>8_ literal 0 HcmV?d00001 diff --git a/css/jscook/page.gif b/css/jscook/page.gif new file mode 100644 index 0000000000000000000000000000000000000000..d77b16dfc33295b9fe6f66ef477830f3367b25d4 GIT binary patch literal 220 zcmZ?wbhEHb6lM@$IKsg29|RbH@IM2H17rayAb$S*+W-IGf#Ci7_vg-?n=@xlOG`^} zadA*kkfEU=NDpy9@h1x-1A`EQ4oEr3P6pP<1uA_hnN}IIW-VdfV{pM?%?q`PdkiMk z&n-MsUNAqC=yhNJ#6U}k`^hHO8Z9x7Vi8Wt~4F7x6C@v Xihp$;eE<6{pFmS{OP*=FB7-#ml=V*t literal 0 HcmV?d00001 diff --git a/css/jscook/plus.gif b/css/jscook/plus.gif new file mode 100644 index 0000000000000000000000000000000000000000..10e214e0062594e9a3d05da36fc767c9cb790f28 GIT binary patch literal 131 zcmZ?wbhEHb6lM@$*vtR||NsAQXlMYEU>*TN@h1x-0|PUI4oDry3NUkSaoy8;I6qjseBHx{9%2;1=ijh?;cZ?p5(D$N!yA$E({FT030JA>i_@% literal 0 HcmV?d00001 diff --git a/css/jscook/plusbottom.gif b/css/jscook/plusbottom.gif new file mode 100644 index 0000000000000000000000000000000000000000..b8bcb3dff06070cfcebf088c8ade33711c3ae2f8 GIT binary patch literal 89 zcmZ?wbhEHb6lM@$n8*ME|NsAQXlMYEia%Kx85o!ubU>mYc?Kq}Ir&Ye->#iE$MZ&Z nYK*j8LCG05wOb5JUM|?8bCU^SwR4 J*NZY(0{~`f5MBTP literal 0 HcmV?d00001 diff --git a/css/jscook/theme.css b/css/jscook/theme.css new file mode 100644 index 0000000..e1c7a7f --- /dev/null +++ b/css/jscook/theme.css @@ -0,0 +1,144 @@ +/* Menu Style Sheet */ + +.ThemeXPTreeLevel0,.ThemeXPTreeLevel1 +{ + cursor: default; +/* background-color: white; Disabled to view the background image */ + + white-space: nowrap; + + border: 0; + padding: 0; +} + +.ThemeXPTreeLevel1 +{ + display: none; +} + +.ThemeXPTable +{ + cursor: default; + + color: inherit; + background-color: inherit; + + font-family: Verdana, Arial, sans-serif; + font-size: 12px; + + white-space: nowrap; + + border-collapse: separate; + + border: 0; + padding: 0; +} + +.ThemeXPRow,.ThemeXPRowHover,.ThemeXPRowActive,.ThemeXPRowSelected +{ + background-color: inherit; + white-space: nowrap; + + border: 0; + padding: 0; +} + +.ThemeXPFolderSpacer,.ThemeXPItemSpacer, +.ThemeXPFolderLeft,.ThemeXPItemLeft, +.ThemeXPFolderText,.ThemeXPItemText, +.ThemeXPFolderRight,.ThemeXPItemRight +{ + background-color: inherit; + white-space: nowrap; + + border: 0; + padding: 0; +} + +/* it would be better that child selector > would work, but IE + doesn't support it :( */ + +.ThemeXPFolderText a, +.ThemeXPItemText a +{ + text-decoration: none; + border: 0; + padding: 1px; + background-color: inherit; +} + +.ThemeXPRowHover .ThemeXPItemText a, +.ThemeXPRowHover .ThemeXPFolderText a +{ + color: #000084; + text-decoration: underline; +} + +.ThemeXPRowActive .ThemeXPItemText a, +.ThemeXPRowActive .ThemeXPFolderText a, +.ThemeXPRowSelected .ThemeXPItemText a, +.ThemeXPRowSelected .ThemeXPFolderText a +{ + color: white; + background-color: #3169C6; + text-decoration: none; +} + +/* in strict mode of XHTML, this is a fix for image connections */ + +.ThemeXPFolderSpacer img, +.ThemeXPItemSpacer img, +.ThemeXPFolderLeft img, +.ThemeXPItemLeft img, +.ThemeXPFolderRight img, +.ThemeXPItemRight img +{ + vertical-align: bottom; +/* + width:20px; + height:20px; + border:solid 1px #FF0000; +*/ +} +.ThemeXPFolderLeft +{ +} +/* no need to modify these two since they are generic. */ +/* they are used to coordinate the folder open/closing animation */ + +.JSCookTreeFolderClosed img +{ + width:20px; + height:20px; +} +.dede_ +{ + position:relative; + font-size:10px; +} +.dede_img +{ + position:relative; + font-size:10px; + border:solid 1px #0000FF; +} + +.JSCookTreeFolderOpen img +{ + width:20px; + height:20px; +} + +#JSCookTreeFolderClosed .JSCookTreeFolderOpen +{ + display: none; + width:20px; + height:20px; +} + +#JSCookTreeFolderOpen .JSCookTreeFolderClosed +{ + display: none; + width:20px; + height:20px; +} diff --git a/css/jscook/theme.js b/css/jscook/theme.js new file mode 100644 index 0000000..c130957 --- /dev/null +++ b/css/jscook/theme.js @@ -0,0 +1,75 @@ +// change this variable to update the theme directory +//var ctThemeXPBase = '/jscook/ThemeXP/'; +var ctThemeXPBase = '/css/jscook/'; + +// theme node properties +var ctThemeXP1 = +{ + // tree attributes + // + // except themeLevel, all other attributes can be specified + // for each level of depth of the tree. + + // HTML code to the left of a folder item + // first one is for folder closed, second one is for folder opened + folderLeft: [['', '']], + // HTML code to the right of a folder item + // first one is for folder closed, second one is for folder opened + folderRight: [['', '']], + // HTML code for the connector + // first one is for w/ having next sibling, second one is for no next sibling + // then inside each, the first field is for closed folder form, and the second field is for open form + folderConnect: [[['',''], + ['','']]], + + // HTML code to the left of a regular item + itemLeft: [''], + // HTML code to the right of a regular item + itemRight: [''], + // HTML code for the connector + // first one is for w/ having next sibling, second one is for no next sibling + itemConnect: [['', '']], + + // HTML code for spacers + // first one connects next, second one doesn"t + spacer: [['', '']], + + // deepest level of theme style sheet specified + themeLevel: 1 +}; + +// theme node properties +var ctThemeXP2 = +{ + // tree attributes + // + // except themeLevel, all other attributes can be specified + // for each level of depth of the tree. + + // HTML code to the left of a folder item + // first one is for folder closed, second one is for folder opened + folderLeft: [['', '']], + // HTML code to the right of a folder item + // first one is for folder closed, second one is for folder opened + folderRight: [['', '']], + // HTML code for the connector + // first one is for w/ having next sibling, second one is for no next sibling + // then inside each, the first field is for closed folder form, and the second field is for open form + folderConnect: [[['',''],['','']],[['',''], + ['','']]], + + // HTML code to the left of a regular item + itemLeft: [''], + // HTML code to the right of a regular item + itemRight: [''], + // HTML code for the connector + // first one is for w/ having next sibling, second one is for no next sibling + itemConnect: [['',''],['', '']], + + // HTML code for spacers + // first one connects next, second one doesn"t + spacer: [['',''],['', '']], + + // deepest level of theme style sheet specified + themeLevel: 1 +}; diff --git a/css/lightbox.css b/css/lightbox.css new file mode 100644 index 0000000..3b5f7aa --- /dev/null +++ b/css/lightbox.css @@ -0,0 +1,27 @@ +#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;} +#lightbox img{ width: auto; height: auto;} +#lightbox a img{ border: none; } + +#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; } +#imageContainer{ padding: 10px; } + +#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; } +#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; } +#imageContainer>#hoverNav{ left: 0;} +#hoverNav a{ outline: none;} + +#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; } +#prevLink { left: 0; float: left;} +#nextLink { right: 0; float: right;} +#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; } +#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; } + +#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; } + +#imageData{ padding:0 10px; color: #666; } +#imageData #imageDetails{ width: 70%; float: left; text-align: left; } +#imageData #caption{ font-weight: bold; } +#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; } +#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;} + +#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; } diff --git a/css/tree.css b/css/tree.css new file mode 100644 index 0000000..86a7cdb --- /dev/null +++ b/css/tree.css @@ -0,0 +1,85 @@ +.tafelTree { +text-align: left; +float: left; +direction: ltr; +overflow: auto; +} + +.tafelTree, .tafelTree table { +font-size: small; +} + +.tafelTree, .tafelTree span, .tafelTree img, .tafelTree div { +margin: 0; +padding: 0; +} + +.tafelTree table { +border-collapse: collapse; +margin: 0; +padding: 0; +} + +.tafelTree table tr, .tafelTree table td { +direction: ltr; +margin: 0; +padding: 0; +} + +.tafelTree table td { +white-space: nowrap; +vertical-align: top; +} + +.tafelTree .drag { +cursor: pointer; +} + +.tafelTree .content { +padding: 0 0.1em; +} + +.tafelTree .canevas { +vertical-align: middle; +} + +.tafelTree .selected { +background-color: #9999FF; +color: #FFFFFF; +} + +.tafelTree .editable { +display: none; +padding: 0 0.2em; +border: 1px solid #CCCCFF; +background-color: #EEEEFF; +} + +.tafelTree .dragOver { +background-color: #9999CC; +color: #EEEEFF; +} + +.tafelTree .tooltip { +display: none; +position: absolute; +border: 1px solid #9999FF; +background-color: #EEEEFF; +padding: 0.3em; +z-index: 9000; +} + + + +/** + * Multiline + */ +.tafelTree table td.multiline { +background-repeat: repeat-y; +background-position: top left; +} + +.tafelTree table td.multiline2 { +background-repeat: repeat-y; +background-position: top left; +} \ No newline at end of file diff --git a/css/xgui/default.css b/css/xgui/default.css new file mode 100644 index 0000000..22e417a --- /dev/null +++ b/css/xgui/default.css @@ -0,0 +1,692 @@ + +#xgui_head +{ + display:none; +/* + width:740px; + */ + width:1000px; + background-color:#F0FFFF; +} + +#head ul +{ + width:100%; + text-decoration:none; +} + +#head ul li +{ + display:inline; + list-style:none; +} + +/* MAIN STUFF not yet needed */ +#main +{ + width:600px; +/* margin-left:140px; +*/ + margin-left:0px; +} + +#menuh +{ + display:none; +} +/** +h1 +{ + font-size:14px; + color:#FFA000; + font-family:Helvetica; +} +*/ +/* corner generic stuff */ +.group-corner-center, .group-corner-left , .group-corner-top-center, .group-corner-top , .group-corner-bottom, +.notebook-corner-bottom , .notebook-corner-top , .notebook-corner-left , .notebook-corner-center ,.notebook-corner-top-center, +.corner-top , .corner-left , .corner-bottom , .corner-center ,.corner-top-center +{ + background-repeat:no-repeat; + display:block; + position:relative; + height:4px; + font-size:0px; + margin:0px; + line-height:0; + padding:0px; +} + +.group-corner-left , .group-corner-bottom, .group-corner-center ,.group-corner-top-center +{ + height:15px; +/* + border:solid 1px #FF0000; + height:4px; +*/ +} +.group-corner-top , .group-corner-bottom, +.notebook-corner-top ,.notebook-corner-bottom ,.corner-bottom , .corner-top +{ + background-position:100% 0px; + width:auto; + top:-0px; + right:-1px; +/* clear:both; */ +} + +.notebook-corner-top ,.notebook-corner-top-center { height:4px ;} +.notebook-corner-bottom { height:4px ;} +.group-corner-top ,.group-corner-bottom {height:15px;} +.group-corner-bottom .group-corner-left{width:11px; } + +.group-corner-bottom group-corner-left, .group-corner-top .group-corner-left, +.notebook-corner-top .notebook-corner-left, .notebook-corner-bottom .notebook-corner-left, +.corner-bottom .corner-left , .corner-top .corner-left +{ + background-position:0 0; + top:0px; + right:2px; +} + +.notebook-corner-top .notebook-corner-left { width:7px; } +.group-corner-center, .group-corner-top-center, +.notebook-corner-center,.notebook-corner-top-center, .corner-center , .corner-top-center +{ + background-repeat:repeat-x; + background-position:100% 0px; + width:100%; + top:0px; + right:0px; +} +.notebook-corner-top-center { height:4px;} +.notebook-corner-center { height:4px; +} +/* Button stuf */ +.button #dede +{ + display:block; + height:23px; + top:0px; + margin:0px; +/* + border:solid 1px #00FFFF; + border:solid 1px #FF000F; +*/ + padding-left:11px; + padding-right:11px; + margin-left:5px; + margin-right:5px; + background-image:url("../../images/xgui/butRight.gif"); + background-repeat:no-repeat; + background-position:top right; +} +.button div#button +{ + position:relative; + background-position:top left; + background-image:url("../../images/xgui/butBack.gif"); + background-repeat:repeat-x; + padding-right:22px; + height:23px; +/* + border:solid 1px #FF000F; +*/} + +.button div#button div#bcontent +{ + position:relative; + height:23px; + background: transparent url("../../images/xgui/butLeft.gif"); + background-repeat:no-repeat; +/* left:12px; + border:solid 1px #0000FF; + border:solid 1px #FF00FF; + */ + background-position:top left; + z-index:1; +} + +a.button { + height:23px; + padding:0 12px 0 0; + display:block; + margin-right:6px; + text-decoration:none; +} +a.button span { + display:block; + padding:4px 0 6px 12px; + line-height:13px; +} + + +/* GROUPE stuff */ +.group +{ + padding:0px 10px 10px 10px; + margin:10px 10px 0px 10px; + position:relative; +} + +.grouptitle +{ + display:inline; + position:relative; + color:#FF0000; + background-color:#FFFFFF; + top:0px; + font-size:12px; + font-family: Helvetica; + padding: 0px 10px 0px 10px; + margin: 0px 0px 0px 10px; +} +div.groupcontent +{ + display:block; + position:relative; +/* + border:solid 1px #FF0000; + background-image:url('../../images/xgui/Right.gif'); + background-position:bottom right; + background-repeat:repeat-y; +*/ + height:100%; + left:-1px; + top: 0px; + /* because of title */ +/* margin-bottom:5px; + top:-12px; +*/ +} +div.groupcontent div#groupcontent +{ +/* + background-image:url('../../images/xgui/Left.gif'); + background-repeat:repeat-y; + background-position:bottom -1px; +*/ + height:100%; +} +div.groupcontent div#groupcontent div#content +{ +/* + position:relative; + border:solid 1px #0000FF; + padding-left:5px; + */ + margin-left:5px; +} + +/* group decoration */ +.group-corner-top .group-corner-left +{ + padding: 0px 0px 0px 0px; + background-image:url('../../images/xgui/group-tl-orange.gif'); + /* top:0px; + background-image:url('../../images/xgui/Top_left.gif'); + right:2px; + border:solid 1px #0000FF; + */ +} + +.group-corner-top-center, .group-corner-center {top:-12px;} + +.group-corner-top-center { background-image:url('../../images/xgui/Top_center.gif'); } +.group-corner-top { background-image:url('../../images/xgui/group-tr-orange.gif'); } +.group-corner-center { background-image:url('../../images/xgui/Bot_center.gif'); } +.group-corner-bottom { background-image:url('../../images/xgui/group-br-orange.gif'); } +.group-corner-bottom .group-corner-left { + background-position:-2px 100%; + background-image:url('../../images/xgui/group-bl-orange.gif'); } + +.group #center_left +{ + height:100%; + width:11px; + background-image:url('../../images/xgui/Left.gif'); + background-repeat:repeat-y; +/* + font-size:0px; + border:solid 1px #FF0000; +*/ + display:block; +} + +.group #center_right +{ +/* + border:solid 1px #0000FF; +*/ + width:11px; + height:100%; + background-image:url('../../images/xgui/Right.gif'); + background-repeat:repeat-y; +} + +.group #bottom_left +{ + width:11px; + height:15px; + background-image:url('../../images/xgui/Bot_left.gif'); + font-size:0px; /* needed for IE */ +} +.group #bottom_center +{ + height:15px; + width:100%; + background-image:url('../../images/xgui/Bot_center.gif'); + background-repeat:repeat-x; + font-size:0px; /* needed for IE */ +} +.group #bottom_right +{ + width:11px; + height:15px; + background-image:url('../../images/xgui/Bot_right.gif'); + font-size:0px; /* needed for IE */ +} + +.pagecontent-corner-top +{ + position:relative; + background-position:100% 0px; + width:auto; + top:-0px; + display:block; + left:-1px; + font-size:14px; + line-height:1; +/* + height:100%; + width:7px; + border:solid 1px #FF00FF; +*/} +.pagecontent-corner-center-center +{ + display:block; + position:relative; + width:100%; + top:0px; + right:0px; + height:100%; + font-size:14px; + line-height:1; + margin:0px 0px 0px 0px; +/* + border:solid 1px #FF0F0F; + border:solid 1px #FF0000; + font-weight:bold; +*/ +} +.pagecontent-corner-top .pagecontent-corner-left +{ + float:left; +/* +*/ + width:3px; + right:0px; +} +.dede { + display:block; + position:relative; +} +.pagecontent-corner-top { + padding:0px 0px 0px 0px; + margin:0px 0px 0px 0px; +/* + border:solid 1px #FF0000; + border:solid 1px #00FF00; + clear:both; +*/} +/* + * Tab corners + */ +.notebook-corner-top .notebook-corner-left { } +.notebook-corner-top-center { } +.notebook-corner-top { } +.notebook-corner-bottom .notebook-corner-left { } +.notebook-corner-bottom { } +.notebook-corner-center { } + +/* + * NOTEBOOK stuff quiet cool +*/ +.notebook +{ + height:28px; + padding:0px; + border:0px; +} +.notebook ul +{ + height:28px; + margin:0px; + padding:0px; + border:0px; + float:left; +} +.notebook div#nbleft +{ + float:left; + height:28px; + width:7px; + padding:0px; +} +.notebook div#nbright +{ + height:28px; + width:7px; + padding:0px; + border:0px; + float:left; +} +li.notebooktitle +{ + display:inline; + list-style:none; + vertical-align:middle; + height:28px; +} + +li.notebooktitle div#left +{ + display:inline; + width:6px; + float:left; +} + +li.notebooktitle a#center +{ + display:inline; + text-decoration:none; + height:0px; + float:left; +} + +li.notebooktitle a#center:hover +{ + height:28px; +} + +li.notebooktitle div#right +{ + display:inline; + width:40px; + float:left; +} + + +li.notebooktitlecurrent +{ + display:inline; + list-style:none; +} + +li.notebooktitlecurrent div#left +{ + display:inline; + width:6px; + float:left; +} + +li.notebooktitlecurrent a#center +{ + background-repeat:repeat-x; + float:left; + text-decoration:none; + display:inline; +} + +li.notebooktitlecurrent a#center:hover +{ +} + +li.notebooktitlecurrent div#right +{ + display:inline; + width:40px; + float:left; +} + + +.page +{ + display:block; + left:-0px; + top:0px; +/* + border-left:solid 3px #FFAA00; + border-right:solid 3px #FFAA00; + padding:10px; +*/ + background-color:#FBFBFB; +} + +.pagetitle +{ +/* +*/ +} +.pagecontent +{ +} +/* page top */ + +.pageHidden +{ + display:none; + padding:0px; +} + +/** + GRID studd +**/ +.grid +{ + /* + border:solid 1px #FF0000; + */ +} +.grid #top .grid_title +{ + display:inline; + position:relative; + margin-left:10px; + color:#FF0000; + background-color:#FFFFFF; +/* + font-weight:bold; + font-style:italic; + */ + font-weight:bold; + font-size:12px; + font-family: Helvetica; + padding-left:10px; + padding-right:10px; +} + +.grid .grid_body +{ + /* + border:solid 1px #00FF00; + */ + height:100%; + border:solid 1px #00FF00; + border:0px; + /* padding: 10px; */ + margin: 10px 0px 10px 10px; + overflow:auto; +} + +.grid_body #row_head +{ + background-color: #FFB000; + font-weight:bold; + color:#FF0000; +/* + border:solid 1px #FF0000; +*/ +} + +.grid_body .row +{ + width:100%; + height:26px; +} + +.grid_body .row .cell +{ + display:inline; + height:14px; + width:95px; /* Default width */ + float:left; + padding:5px; + border:solid 1px #FFFFFF; +} + +/* grid decoration */ +.grid #top_left +{ + /* + display:inline; + font-size:0px; + border:solid 1px #FF0000; + */ + width:11px; + height:15px; + background-image:url('../../images/xgui/Top_left.gif'); + background-position:top left; + font-size:0px; +} +.grid #top_center +{ + /* + position:absolute; + font-size:0px; + border:solid 1px #FF0000; + */ + width:100%; + height:15px; + background-image:url('../../images/xgui/Top_center.gif'); + background-repeat:repeat-x; + font-size:0px; +} +.grid #top_right +{ + /* + display:inline; + background-position:top right; + font-size:0px; + */ + width:11px; + height:15px; + background-image:url('../../images/xgui/Top_right.gif'); + font-size:0px; +} + +.grid #center_left +{ + width:11px; + height:100%; + background-image:url('../../images/xgui/Left.gif'); +/* + background-repeat:repeat-y; + font-size:0px; + border:solid 1px #FF0000; +*/ +} + +.grid #center_right +{ +/* + border:solid 1px #0000FF; +*/ + width:11px; + height:100%; + background-image:url('../../images/xgui/Right.gif'); +} + +.grid #bottom_left +{ + width:11px; + height:15px; + background-image:url('../../images/xgui/Bot_left.gif'); + font-size:0px; /* needed for IE */ +} +.grid #bottom_center +{ + height:15px; + background-image:url('../../images/xgui/Bot_center.gif'); + background-repeat:repeat-x; + font-size:0px; +} +.grid #bottom_right +{ + width:11px; + height:15px; + background-image:url('../../images/xgui/Bot_right.gif'); + font-size:0px; +} + +/* New table that must replce grid. I think that It will be better. */ +.table#service {border-spacing:0px; margin:3px 0px 5px 10px;padding:0 0 0 10px;} +.table#service caption {display:none;} +.table th {background-color:#FFB000;} +.table#service td {padding:3px 5px 3px 5px;} +.table td {border-right:solid #EE0000 1px;border-bottom:solid #EE0000 1px;padding:2px 4px 2px 4px;} +.table {border:solid 2px #FFA000; padding:0 5px 0 0; margin:0 0 0 0;border-spacing:0px 0px ;border-collapse:collapse;} + +/* calendar stiff */ +div.my_calendar {display:block;margin:0px;padding:0px;} +div.calendar {position:relative;left:10px;top:0px; border:2px solid #FEDEBB; width:140px; margin:0px;padding:0px;} +.calendar table {border:0px;border-spacing:0px;margin:0px;} +.calendar table caption {display:block; background-image:url('../../images/xgui/table_head.jgp');} +.calendar thead td {background-color:#FEDEBB;} +.calendar th {color:#FFFFFF;width:22px;font-weight:normal;font-size:12px;background-color:#0099AA;} +/**/ +.calendar.date {width:100px;height:12px;} +.calendar.date a ,.calendar.date a:hover {text-decoration:none;color:#000000; width:100px; height:12px;} +/**/ +.calendar.ny a, .calendar.py a, .calendar.nm a, .calendar.pm a +{ display:block;height:12px;width:20px; color:#666666;text-decoration:none;} +.calendar.ny a:hover, .calendar.py a:hover, .calendar.nm a:hover, .calendar.pm a:hover +{display:block;height:12px; width:20px;background-color:#FFAAAA;/*border:1px solid #FF0000;*/} +.calendar.ny, .calendar.py, .calendar.nm , .calendar.pm +{ border:0px;color:#999999;} +/* Week days */ +.calendar th{font-weight:normal;width:20px; font-size:12px;background-color:#FFB000;color:#FF0000; /*background-image:url('../../images/xgui/table_head.jpg');background-repeat:repeat-x; */} +/**/ +.calendar td {font-size:12px; font-weight:normal;} +.calendar td.day {width:20px;height:12px; padding:0px;} +.calendar td.day a {;display:block;width:18px;text-decoration:none; height:12px;color:#999999;} +.calendar td.day.nav a:hover {display:block;width:15px;text-decoration:none; height:10px;background-color:#FFFFFF;color:#000000;border:1px solid #000000;} +.calendar td.day.nav.active a {width:20px;height:12px; padding:0px; color:#FF0000;} +/* Does not work with IE */ +.calendar tr:hover {height:12px;border:1px solid #FFFFFF; background-color:#AAAAFF; color:#999999; padding:0px;} +.calendar td.day.today {color:#FF0000; border:1px solid #000000;} +.calendar td.day.today a {color:#FF0000; width:20px; height:12px;} +.calendar td.day.today a:hover {color:#FF0000; width:20px; height:10px;} +.calendar td.day.weekend a {color:#FF0000; width:20px; height:12px;} +.calendar td.day.weekend a:hover {color:#FF0000; width:18px; height:10px;} + +/**/ +.form +{ + margin:5px; + /* border:solid 1px #FF0000; + */ +} +/* Ne marche pas sous mozilla */ +input[type='radio'] {border:2px solid #FFB000;color:red;} +input[type='checkbox'] {border:2px solid #FFB000;} + + +label.idendite { + width:15%; + float:left; + margin-right:0.5em; + padding-top:0.2em; + text-align:right; +} +br {clear:left;} diff --git a/css/xgui/theme-andre.css b/css/xgui/theme-andre.css new file mode 100644 index 0000000..e08f082 --- /dev/null +++ b/css/xgui/theme-andre.css @@ -0,0 +1,288 @@ +#xgui_main { + padding:0 0 0 5px; +} +.dede {float:left;} +div#menuv +{ + display:none; + margin:0 0 0 0; + padding: 0px 0px 0px 0px; + border:1px solid #FF0000; + font-size:0px; /* needed for IE */ + height:0px; + width:0px; +} +/* GROUPE stuff */ +.group +{ + border:solid 1px #000BFF; +} +.grouptitle +{ + color:#000FFB; + opacity:0.4; +} + +/** Button */ +.link { + font-size:12px; + display:block; +margin:5px 0px 0px 0px; +padding:0px 0px 0px 0px; +} +.link span { +} + +/* Notebook*/ +.notebook-corner-top ,.notebook-corner-top-center { height:0px ;display:none;} +.notebook { + height:20px; +} +.notebook ul {height:20px;} +.notebook div#nbleft {width:0px; } +.notebook div#nbleft, .notebook div#nbright { + height:12px; + margin:0 0 0 0; + padding: 0 0 0 0; + font-size:0; +} +li.notebooktitle , li.notebooktitle #left , li.notebooktitle #right +{ + display:inline; + list-style:none; + vertical-align:middle; + height:20px; + font-size:0px; /* needed for IE */ + border-top:1px solid #999999; +} +li.notebooktitle div#right ,li.notebooktitlecurrent div#right { + width:5px; + margin: 0px 0 0 0px ; + padding:0 0 0 4px; + background-repeat:no-repeat; +} +li.notebooktitle div#left ,li.notebooktitlecurrent div#left { + width:20px; + margin: 0px 0px 0 0px ; + padding:0 3px 0 4px; + background-repeat:no-repeat; +} + +li.notebooktitle#winp1 #left, li.notebooktitlecurrent#winp1 #left { + background-image:url('/andre/images/icons/16x16/favorite.gif'); } +li.notebooktitle#winp2 #left, li.notebooktitlecurrent#winp2 #left { + background-image:url('/andre/images/icons/16x16/list.gif'); } +li.notebooktitle#winp3 #left, li.notebooktitlecurrent#winp3 #left { + background-image:url('/andre/images/icons/16x16/network.png'); } +li.notebooktitle#winp4 #left, li.notebooktitlecurrent#winp4 #left { + background-image:url('/andre/images/icons/16x16/network.png'); } +li.notebooktitle#winp5 #left, li.notebooktitlecurrent#winp5 #left { + background-image:url('/andre/images/icons/16x16/bookmark.gif'); } +li.notebooktitle#winp6 #left, li.notebooktitlecurrent#winp6 #left { + background-image:url('/andre/images/icons/16x16/manual.png'); } +li.notebooktitle#winp7 #left, li.notebooktitlecurrent#winp7 #left { + background-image:url('/andre/images/icons/16x16/personal-a.png'); } +li.notebooktitle#winp8 #left, li.notebooktitlecurrent#winp8 #left { + background-image:url('/andre/images/icons/16x16/budget.png'); } + +li.notebooktitle #left +{ + width:7px; + float:left; + border-left:1px solid #999999; + -moz-opacity:0.6; + opacity:0.6; + filter:alpha(opacity=60); +} + +li.notebooktitle a#center:hover +{ + height:20px; +} +li.notebooktitle a#center +{ + display:inline; + text-decoration:none; + height:20px; + float:left; + color:#0000FF; + font-weight: bold; + font-size:10pt; /* needed for IE */ + -moz-opacity:0.5; + opacity:0.5; + filter:alpha(opacity=50); + border-top:1px solid #999999; +} + +li.notebooktitlecurrent , li.notebooktitlecurrent #left , li.notebooktitlecurrent #right, +li.notebooktitlecurrent a#center, li.notebooktitlecurrent a#center:hover +{ + height:20px; +} +/** TABLE stuff */ + +table { + font-size:1em; +} + +table td { +/* + font-size:80%; + */ +} +.table caption {display:none;} +.table thead tr th { + /* + font-size:85%; + */ + font-size:85%; + background-color:#0000FF;color:#FFFFFF;} +.table tbody tr td { + font-size:75%; + border-right:solid #0000EE 1px;border-bottom:solid #0000EE 1px;} +.table {border:solid 2px #000AFF; padding:0 5px 0 0; margin-top:10px;} +.table tfoot td {font-weight:bold;} + +/* Try Scroolable table */ +#outer_table {border:solid 1px #000AFF; padding:0 5px 0 0; margin-top:10px;} + + +#outer_table thead tr th { + background-color:#0000FF;color:#FFFFFF; + font-size:80%; +} +#outer_table tfoot tr td { + font-weight:bold; + font-size:80%; + } +#outer_table tfoot tr { + border-top:solid #0000EE 1px; + /* border-bottom:solid #0000EE 1px; + */ +} +#outer_table tr td div table thead {} + + + +div.tableContainer { + overflow:auto; +} +/* define height and width of scrollable area. Add 16px to width for scrollbar */ +div.tableContainer { + clear: both; + border: 1px solid #963; + height: 285px; + overflow: auto; + width: 756px; +} + +/* Reset overflow value to hidden for all non-IE browsers. */ +html>body div.tableContainer { + overflow: hidden; + width: 756px; +} + +/* define width of table. IE browsers only */ +div.tableContainer table { + float: left; + width: 740px; +} + +/* define width of table. Add 16px to width for scrollbar. */ +/* All other non-IE browsers. */ +html>body div.tableContainer table { + width: 756px; +} + + +/* INPUT*/ +fieldset.profile { +} +fieldset.profile span label { + width:80px; + display:inline-block; +} + +label { + font-size:12px; + font-family:Times; +} + +/* input file decoration*/ +.fileinputs { + position:relative; + display:inline-block; +} +.fakefile { + position:absolute; + top:0; + left:0; + z-index:1; +} +/* input the type file est au dessus du fake entry */ +input.file { + position:relative; + text-align:right; + -moz-opacity:0 ; + filter:alpha(opacity: 0); + opacity: 0; + z-index:2; +} +/**/ + +.input { margin-bottom:2px; + border:1px solid #0000AA;} + +.input:hover { + border:1px solid #000000; + background:#FFC; +} +/* BUTTON*/ +a.button { + background-color:#000FFF; + border:1px solid #AAABFF; + height:15px; + font-size:10px; +} +a.button:hover { + background-color:#AAABFF; + border:1px solid #AAA1AA; + height:15px; +} +a.button span { + height:15px; + line-height:7px; +} + +/**/ +#menu-profile ul li span { + height:13px; + width:23px; +} + +.delete { display:inline-block; + margin: 0 0 0 0 ; + padding:0 0 0 0; + height:14px; + width:16px; + background-image:url('/andre/images/icons/16x16/delete.gif'); } +span.edit { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/appli_evt/edit.gif'); } + +span.style { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/appli_evt/sviewer.gif'); } + +span.profile { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/appli_evt/star_home.gif'); } +span.logout { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/icons/11x11/disable.gif'); } + + diff --git a/css/xgui/theme-syndic.css b/css/xgui/theme-syndic.css new file mode 100644 index 0000000..54cc913 --- /dev/null +++ b/css/xgui/theme-syndic.css @@ -0,0 +1,344 @@ +#xgui_main { + padding:0 0 0 5px; +} +.odd { background-color:#CCCCCC; +} +.dede {float:left;} +div#menuv +{ + display:none; + margin:0 0 0 0; + padding: 0px 0px 0px 0px; + border:1px solid #FF0000; + font-size:0px; /* needed for IE */ + height:0px; + width:0px; +} +/* GROUPE stuff */ +.group +{ + border:solid 1px #333333; +} +.grouptitle +{ + color:#333333; + opacity:0.6; +} + +/** Button */ +.link { + font-size:12px; + display:block; +margin:5px 0px 0px 0px; +padding:0px 0px 0px 0px; +} +.link span { +} + +/* Notebook*/ +.notebook-corner-top ,.notebook-corner-top-center { height:0px ;display:none;} +.notebook { + height:20px; +} +.notebook ul {height:20px;} +.notebook div#nbleft {width:0px; } +.notebook div#nbleft, .notebook div#nbright { + height:12px; + margin:0 0 0 0; + padding: 0 0 0 0; + font-size:0; +} +li.notebooktitle , li.notebooktitle #left , li.notebooktitle #right +{ + display:inline; + list-style:none; + vertical-align:middle; + height:20px; + font-size:0px; /* needed for IE */ + border-top:1px solid #999999; +/* + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px 0px; + background-repeat:repeat-x; +*/ +} +li.notebooktitle div#right ,li.notebooktitlecurrent div#right { + width:5px; + margin: 0px 0 0 0px ; + padding:0 0 0 4px; +/* background-repeat:no-repeat; */ +} +li.notebooktitle div#left ,li.notebooktitlecurrent div#left { + width:20px; + margin: 0px 0px 0 0px ; + padding:0 3px 0 4px; + background-repeat:no-repeat; +} + +li.notebooktitle#winp1 #left, li.notebooktitlecurrent#winp1 #left { + background-image:url('../../images/icons/16x16/favorite.gif'); + background-repeat:no-repeat; +} +li.notebooktitle#winp2 #left, li.notebooktitlecurrent#winp2 #left { + background-image:url('../../images/icons/16x16/list.gif') ; + background-repeat:no-repeat; +} +li.notebooktitle#winp3 #left, li.notebooktitlecurrent#winp3 #left { + background-image:url('../../images/icons/16x16/network.png') ; + background-repeat:no-repeat; +} +li.notebooktitle#winp4 #left, li.notebooktitlecurrent#winp4 #left { + background-image:url('../../images/icons/16x16/network.png'); + background-repeat:no-repeat; +} +li.notebooktitle#winp5 #left, li.notebooktitlecurrent#winp5 #left { + background-image:url('../../images/icons/16x16/bookmark.gif') ; + background-repeat:no-repeat; +} +li.notebooktitle#winp6 #left, li.notebooktitlecurrent#winp6 #left { + background-image:url('../../images/icons/16x16/manual.png') ; + background-repeat:no-repeat; +} +li.notebooktitle#winp7 #left, li.notebooktitlecurrent#winp7 #left { + background-image:url('../../images/icons/16x16/personal-a.png'); + background-repeat:no-repeat; +} +li.notebooktitle#winp8 #left, li.notebooktitlecurrent#winp8 #left { + background-image:url('../../images/icons/16x16/budget.png'); + background-repeat:no-repeat; +} + +li.notebooktitle #left +{ + width:7px; + float:left; + border-left:1px solid #999999; +} + +li.notebooktitle a#center:hover +{ + height:20px; + /* + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px 0px; + background-repeat:repeat-x; + */ +} +li.notebooktitle a#center +{ + display:inline; + text-decoration:none; + height:20px; + float:left; + color:#000000; + font-weight: normal; + font-size:10pt; /* needed for IE */ + border-top:1px solid #999999; +/* + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px 0px; + background-repeat:repeat-x; + */ +} + +li.notebooktitlecurrent , li.notebooktitlecurrent #left , +li.notebooktitlecurrent a#center, li.notebooktitlecurrent a#center:hover +{ + height:20px; + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px 0px; + background-repeat:repeat-x; +} +/** TABLE stuff */ + +table { + font-size:1em; +} + +table td { +/* + font-size:80%; + */ +} +.table caption {display:none;} +.table thead tr th { + /* + font-size:85%; + */ + font-size:85%; + background-color:#000000; + color:#FFFFFF;} +.table tbody tr td { + font-size:75%; + border-right:solid #BBBBBB 1px;border-bottom:solid #BBBBBB 1px;} +.table {border:solid 2px #000AFF; padding:0 5px 0 0; margin-top:10px;} +.table tfoot td {font-weight:bold;} + +/* Try Scroolable table */ +#outer_table {border:solid 1px #BBBBBB; padding:0 5px 0 0; margin-top:10px;} + + +#outer_table thead tr th { + background-color:#BBBBBB;color:#FFFFFF; + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px 0px; + background-repeat:repeat-x; + font-size:80%; +} +#outer_table tfoot tr td { + font-weight:bold; + font-size:80%; + } +#outer_table tfoot tr { + border-top:solid #BBBBBB 1px; + /* border-bottom:solid #0000EE 1px; + */ +} +#outer_table tr td div table thead {} + + + +div.tableContainer { + overflow:auto; +} +/* define height and width of scrollable area. Add 16px to width for scrollbar */ +div.tableContainer { + clear: both; + border: 1px solid #963; + height: 285px; + overflow: auto; + width: 756px; +} + +/* Reset overflow value to hidden for all non-IE browsers. */ +html>body div.tableContainer { + overflow: hidden; + width: 756px; +} + +/* define width of table. IE browsers only */ +div.tableContainer table { + float: left; + width: 740px; +} + +/* define width of table. Add 16px to width for scrollbar. */ +/* All other non-IE browsers. */ +html>body div.tableContainer table { + width: 756px; +} + + +/* INPUT*/ +fieldset.profile { +} +fieldset.profile span label { + width:80px; + display:inline-block; +} + +label { + font-size:12px; + font-family:Times; +} + +/* input file decoration*/ +.fileinputs { + position:relative; + display:inline-block; +} +.fakefile { + position:absolute; + top:0; + left:0; + z-index:1; +} +/* input the type file est au dessus du fake entry */ +input.file { + position:relative; + text-align:right; + -moz-opacity:0 ; + filter:alpha(opacity: 0); + opacity: 0; + z-index:2; +} +/**/ + +.input { margin-bottom:2px; + border:1px solid #AAAAAA;} + +.input:hover { + border:1px solid #000000; + background:#FFC; +} +/* BUTTON*/ +div#main a.button { + background-color:#FFFFFF; + color:#FFFFFF; + height:20px; + font-size:10px; + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px 0px; + background-repeat:repeat-x; +} +div#main a.button:hover { + background-color:#FFFFFF; + color:#BBBBBB; + height:20px; + background-image:url("../../images/accounting/NewMenuHBlack60px.png"); + background-position:0px -40px; + background-repeat:repeat-x; +} +a.button span { + height:20px; + line-height:7px; +} + +/**/ +#menu-profile ul li span { + height:13px; + width:23px; +} + +.delete { display:inline-block; + margin: 0 0 0 0 ; + padding:0 0 0 0; + height:14px; + width:16px; + background-image:url('/andre/images/icons/16x16/delete.gif'); } +span.edit { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/appli_evt/edit.gif'); } + +span.style { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/appli_evt/sviewer.gif'); } + +span.profile { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/appli_evt/star_home.gif'); } +span.logout { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/icons/11x11/disable.gif'); } +span.contact { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/icons/16x16/contact.png'); } +span.syndic { + display:inline-block; + background-repeat:no-repeat; + background-image:url('../../images/icons/16x16/personal-a.png'); } + + +a.bt-pdf { + display:inline-block; + background-repeat:no-repeat; + padding-left:10px; + padding-right:20px; + background-position:right; + background-image:url('../../images/icons/16x16/pdf-a.png'); } + diff --git a/css/xgui/theme.css b/css/xgui/theme.css new file mode 100644 index 0000000..a482fb9 --- /dev/null +++ b/css/xgui/theme.css @@ -0,0 +1,105 @@ +/* GROUPE stuff */ +.group +{ + border:solid 1px #FFB000; +} +.grouptitle +{ + color:#FF0000; +} + +/* + * Tab corners + */ +.notebook-corner-top .notebook-corner-left { background-image:url("../../images/xgui/layDisLeftBottom.gif"); } +.notebook-corner-top-center { background-image:url("../../images/xgui/layDisBottom.gif"); } +.notebook-corner-top { background-image:url("../../images/xgui/layDisRightBottom.gif"); } +.notebook-corner-bottom .notebook-corner-left { background-image:url("../../images/xgui/layBotLeft.gif"); } +.notebook-corner-bottom { background-image:url("../../images/xgui/layBotRight.gif"); } +.notebook-corner-center { background-image:url("../../images/xgui/layBot.gif"); } + +/* notebook page content */ +.pagecontent-corner-top .pagecontent-corner-left { + background-repeat:repeat-y; + background-image:url("../../images/xgui/layLeft.gif"); +} +.pagecontent-corner-top { + background-repeat:repeat-y; + background-image:url("../../images/xgui/layRight.gif"); +} +/* Back ground of notebook title */ +.notebook ul { + background-image:url("../../images/xgui/layDis.gif"); + background-repeat:repeat-x; +} + +.notebook div#nbleft { + background-image:url("../../images/xgui/layDisLeft.gif"); +} + +.notebook div#nbright { + background-image:url("../../images/xgui/layDisRight.gif"); +} + +/* title */ + +li.notebooktitle #left { + height:28px; +} +li.notebooktitle a#center { + color:#FFB000; + font-weight: bold; + height:28px; +} +li.notebooktitle #right { + height:28px; +} +li.notebooktitle a#center:hover { + color:#DF0000; +} +/* current title */ +li.notebooktitlecurrent div#left +{ + height:28px; width:6px; + background-image:url("../../images/xgui/laySelectLeft.gif"); +} + +li.notebooktitlecurrent a#center { + height:28px; + background-image:url("../../images/xgui/laySelectCenter.gif"); + color:#FFFFFF; + font-weight: bold; +} +li.notebooktitlecurrent a#center:hover { + height:28px; + color:#FF0000; +} + +li.notebooktitlecurrent div#right { + height:28px; + background-image:url("../../images/xgui/laySelectRight.gif"); +} + +/* Table stuff*/ +.table th {background-color:#FFB000;color:#FF0000; background-image:url('../../images/xgui/table_head.jpg');background-repeat:repeat-x;} +.table td {border-right:solid #EE0000 1px;border-bottom:solid #EE0000 1px;} +.table {border:solid 2px #FFA000; padding:0 5px 0 0; } + +/* INPUT */ +.input { margin-bottom:2px; + border:1px solid #FF0000;} + +.input:hover { + border:1px solid #000000; + background:#FFC; +} +/* BUTTON */ +a.button { + height:23px; + background: transparent url("../../images/xgui/butRight.gif") no-repeat; + background-position:top right; +} +a.button span { + display:block; + background: transparent url("../../images/xgui/butSpan.gif") no-repeat; +} diff --git a/cv-2011-05-12.en_US.UTF-8.xml b/cv-2011-05-12.en_US.UTF-8.xml new file mode 100644 index 0000000..5796097 --- /dev/null +++ b/cv-2011-05-12.en_US.UTF-8.xml @@ -0,0 +1,157 @@ + + + + CV of andre EBERSOLD + Le parcours professionnel + + CV, cv, Cv, Informatique, Informatik, Ingénieur, engineer + $Date: 2010/08/25 15:10:02 $ + $Id: cv.fr_FR.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + + + + +
    +

    EBERSOLD André
    36a rue St Charles
    67300 SCHILTIGHEIM
    cell+33 6 20 95 59 00
    phone+33 3 88 83 04 13
    + mail +
    +

    +

    Senior Software Engineer

    +9 years experience in C,C++ development
    +
    +

    Skills

    +
    +
    +

    As an expert, I analysis, quantify and development computer products for + embedded systems or office automation applications. I also + develop means to ensure the process development (management + of sources, production procedure)

    +
    +

    Studies

    +
    +
    +
    +
    +

    Diploma of Scientific calculation engineer +

    +

    Awarded by the Superior School of Computer Sciences + ,Sophia Antipolis, France. Specialised in scientific calculation + (numeric simulation and physical phenomena). +

    +
    +
    +
    +

    Professional experience

    +
    +
    +
    August 02 to present +
    +
    +Alcatel, + Development and support engineer for Alcatel +

    Analysis, quantification, development, implementation of an anomalies signal system (PABX) on numeric lines (ISDN). Subsequenly, I provided support for this service and communication protocols between telephone commuters (PABX) + and configuration and supervision applications.

    +
    +
    +
    +
    +
    2001 - 20021 year 5 month +
    +
    +Dernière nouvelles d'Alsace, + Software Engineer +

    Analysis, design and development of an application for the the + formatting of a local newspaper (Dernières Nouvelles D'Alsace). + It is a C language application on Windows NT which interfaces with + the Enterprise information system. + I also maintained and improved the newspaper's supervision application. +

    +
    +
    +
    +
    2000 - 20011 year 5 month +
    +
    +Alcatel, + Software Engineer

    + Development of an updating module for the radio part of the + ADSL modem. Library port on ADSL modem, Feasibility of an + ADSL wireless 802.11b modem.

    +
    +
    +
    +
    +
    1997 - 19992 years 2 month +
    +
    +Alcatel, + Software Engineer +

    Evironment port of debug (CA-DUL) to RTAI (real time environment for Linux). + Development in C- language of drivers on Windows NT5 to drive a compression / decompression + video card in accordance with the MPEG2 norm. Supervision of + trainee in the development of a user interface.

    +
    +
    +
    +
    +
    1995 - 19966 months +
    +
    +CEMEF, + End of study internship +

    End of study internship at CEMEF (Laboratory of the prestigious + Paris "Ecole des mines"): study and simulation in FORTRAN of the deformation of materials at high speed.

    +
    +
    +
    +
    +
    +

    Tools

    +
    +
    +
    Database : +
    +

    sqlite, Access

    +
    +
    +
    Language : +
    +

    C, C++

    +
    +
    +
    Version management : +
    +

    cvs, Subversion, ClearCase unix(client),Clear Project, Clear Quest

    +
    +
    +
    Internet : +
    +

    HTML, XSLT, CSS

    +
    +
    +
    OS : +
    +

    Windows, Linux, Sun, Xenomai

    +
    +
    +
    Other : +
    +

    + Cmake +

    +
    +
    + +
    +
    + + +
    + diff --git a/cv-2011-05-12.fr_FR.UTF-8.xml b/cv-2011-05-12.fr_FR.UTF-8.xml new file mode 100644 index 0000000..7dc38e7 --- /dev/null +++ b/cv-2011-05-12.fr_FR.UTF-8.xml @@ -0,0 +1,174 @@ + + + + CV de André EBERSOLD + CV of andre EBERSOLD + Le parcours professionnel + + CV, cv, Cv, Informatique, Informatik, Ingénieur, engineer + $Date: 2010/08/25 15:10:02 $ + $Id: cv.fr_FR.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + + + + +
    +

    EBERSOLD André
    36a rue St Charles
    67300 SCHILTIGHEIM
    cell+33 6 20 95 59 00
    phone+33 3 88 83 04 13
    + mail +
    +

    +

    Ingénieur informatique confirmé

    +10 ans d'expérience dans le développement en C,C++
    +
    +

    Compétences

    +
    +
    +

    Analyse, chiffrage et développement de produits informatiques + pour des systèmes embarqués ou des applications bureautiques. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production).

    +
    +

    Etudes

    +
    +
    +
    +
    +

    Diplôme d'ingénieur en calcul scientifique +

    +

    De l'Ecole Supérieur en Sciences Informatiques à + Sophia Antipolis. Option calcul scientifique + (simulation numérique des phénomènes physiques). +

    +
    +
    +
    +

    Expériences

    +
    + +
    +
    Août 02 aujourd'hui +
    +
    +Alcatel, + Ingénieur de développement et de support chez Alcatel +

    Analyse, chiffrage, développement, mise en service + d'un système de signalisation d'anomalies (des PABX) + sur des lignes numériques (ISDN). Après quoi, + j'ai assuré le support de ce service et des protocoles + de communication entre les commutateurs téléphoniques + (PABX) et les applications de configuration et de + supervision.

    +
    +
    +
    +
    +
    2001 - 20021 an 5 mois +
    +
    +Dernière nouvelles d'Alsace, + Ingénieur de développement +

    Analyse, conception et développement d'une application + de mise en page du journal des DNA. + Cette application est développée en C sous Windows NT et + elle s'interface avec le système d'information de l'entreprise. + En parallèle, j'ai assuré le support et la mise à jours d'une + application de supervision de production du + journal en C sous Windows NT.

    +
    +
    +
    +
    +
    2000 - 20011 an 5 mois +
    +
    +Alcatel, + Ingénieur de développement +

    Développement d'un module de mise à jour du + software pour la partie radio du modem ADSL. + Portage d'une librarie SNMP sur le modem ADSL. + Etude de faisabilité d'un modem ADSL wireless 802.11

    +
    +
    +
    +
    +
    1997 - 19992 an 2 mois +
    +
    +Alcatel, + Ingénieur développement

    Portage de l'environnement de debug (CA-DUL) vers RTAI + (environnement temps réel pour Linux). + Développement en C de drivers sur Windows NT5 pour piloter + une carte de compression / décompression vidéo selon + la norme MPEG2. + Encadrement de stagiaire pour le développement d'une + interface utilisateur.

    +
    +
    +
    + +
    +
    1995 - 19966 mois +
    +
    +CEMEF, + Antibes,FRStage de fin d'étude +

    Stage de fin d'étude au CEMEF (Laboratoire de l'école + des mines de Paris): étude et simulation en + FORTRAN de la déformation des matériaux à grande + vitesse.

    +
    +
    +
    +
    +
    +

    Outils

    +
    +
    +
    Base de Donnée : +
    +

    sqlite, Access

    +
    +
    +
    Langage : +
    +

    C, C++

    +
    +
    +
    Gestion de version : +
    +

    cvs, Subversion, ClearCase unix(client),Clear Project, Clear Quest

    +
    +
    +
    Internet : +
    +

    HTML, XSLT, CSS

    +
    +
    +
    Système : +
    +

    Windows, Linux, Sun, Xenomai

    +
    +
    +
    Autre : +
    +

    + Cmake +

    +
    +
    +
    + +
    +
    + + +
    + diff --git a/cv.en_US.UTF-8.xml b/cv.en_US.UTF-8.xml new file mode 100644 index 0000000..fd673c4 --- /dev/null +++ b/cv.en_US.UTF-8.xml @@ -0,0 +1,274 @@ + + + + + CV de André EBERSOLD + CV of andre EBERSOLD + Le parcours professionnel + + CV, cv, Cv, Informatique, Informatik, Ingénieur, engineer + $Date: 2010/08/25 15:10:02 $ + $Id: cv.en_US.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + + Ingénieur informatique confirmé + Senior Software Engineer + Informatik Ingenieur + 9 ans d'expérience dans le développement en C,C++ + 9 years experience in C,C++ development + 9 Jahre Herfahrung + + + +
    36a rue St Charles
    +
    67300 SCHILTIGHEIM
    + +33 3 88 83 04 13 + +33 6 20 95 59 00 + + + +
    + + + + Analyse, chiffrage et développement de produits informatiques + pour des systèmes embarqués ou des applications bureautiques. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production). + + + Analyse, Kostenabschätzung und Informatikproduckten Entwicklung + für eingebaute Software Systeme. + + + As an expert, I analysis, quantify and development computer products for + embedded systems or office automation applications. I also + develop means to ensure the process development (management + of sources, production procedure) + + + + + De l'Ecole Supérieur en Sciences Informatiques + Awarded by the Superior School of Computer Sciences + 1996 + Diplôme d'ingénieur en calcul scientifique + + Diploma of Scientific calculation engineer + + à + Sophia Antipolis. Option calcul scientifique + (simulation numérique des phénomènes physiques). + + + ,Sophia Antipolis, France. Specialised in scientific calculation + (numeric simulation and physical phenomena). + + + + + + + + Août 02 aujourd'hui + August 02 to present + Alcatel + Ingénieur de développement et de support chez Alcatel + Development and support engineer for Alcatel + Informatik Ingenieur + + + + Analyse, chiffrage, développement, mise en service + d'un système de signalisation d'anomalies (des PABX) + sur des lignes numériques (ISDN). Après quoi, + j'ai assuré le support de ce service et des protocoles + de communication entre les commutateurs téléphoniques + (PABX) et les applications de configuration et de + supervision. + + + + + Analysis, quantification, development, implementation of an anomalies signal system (PABX) on numeric lines (ISDN). Subsequenly, I provided support for this service and communication protocols between telephone commuters (PABX) + and configuration and supervision applications. + + + + + + 2001 - 2002 + 2001 - 2002 + 1 an 5 mois + 1 year 5 month + + Dernière nouvelles d'Alsace + Ingénieur de développement + Software Engineer + 1 an + Développement d'une application de mise en page sous Windows + + + Analyse, conception et développement d'une application + de mise en page du journal des DNA. + Cette application est développée en C sous Windows NT et + elle s'interface avec le système d'information de l'entreprise. + En parallèle, j'ai assuré le support et la mise à jours d'une + application de supervision de production du + journal en C sous Windows NT. + + + + + Analysis, design and development of an application for the the + formatting of a local newspaper (Dernières Nouvelles D'Alsace). + It is a C language application on Windows NT which interfaces with + the Enterprise information system. + I also maintained and improved the newspaper's supervision application. + + + + + + 2000 - 2001 + 2000 - 2001 + 1 an 5 mois + 1 year 5 month + Alcatel + Ingénieur de développement + Software Engineer + + + + Développement d'un module de mise à jour du + software pour la partie radio du modem ADSL. + Portage d'une librarie SNMP sur le modem ADSL. + Etude de faisabilité d'un modem ADSL wireless 802.11 + + + + + Development of an updating module for the radio part of the + ADSL modem. Library port on ADSL modem, Feasibility of an + ADSL wireless 802.11b modem. + + + + + + 1997 - 1999 + 1997 - 1999 + 2 an 2 mois + 2 years 2 month + Alcatel + Ingénieur développement + Software Engineer + + + Portage de l'environnement de debug (CA-DUL) vers RTAI + (environnement temps réel pour Linux). + Développement en C de drivers sur Windows NT5 pour piloter + une carte de compression / décompression vidéo selon + la norme MPEG2. + Encadrement de stagiaire pour le développement d'une + interface utilisateur. + + + + + Evironment port of debug (CA-DUL) to RTAI (real time environment for Linux). + Development in C- language of drivers on Windows NT5 to drive a compression / decompression + video card in accordance with the MPEG2 norm. Supervision of + trainee in the development of a user interface. + + + + + + 1995 - 1996 + 1995 - 1996 + 6 mois + 6 months + Antibes,FR + CEMEF + Stage de fin d'étude + End of study internship + + + + Stage de fin d'étude au CEMEF (Laboratoire de l'école + des mines de Paris): étude et simulation en + FORTRAN de la déformation des matériaux à grande + vitesse. + + + + + End of study internship at CEMEF (Laboratory of the prestigious + Paris "Ecole des mines"): study and simulation in FORTRAN of the deformation of materials at high speed. + + + + + + + + + + + Base de Donnée + Database + Daten + , Access + + + Langage + Language + C, C++ + + + Gestion de version + Version management + cvs, Subversion, ClearCase unix(client),Clear Project, Clear Quest + + + Internet + Internet + Internat + HTML, XSLT, CSS + + + Système + OS + Windows, Linux, Sun, Xenomai + + + Autre + Other + , + + + +
    + + + 14 Fév 2007 + loisirs + + + Mes + + + My + + + + +
    + diff --git a/cv.fr_FR.UTF-8.xml b/cv.fr_FR.UTF-8.xml new file mode 100644 index 0000000..8f666fa --- /dev/null +++ b/cv.fr_FR.UTF-8.xml @@ -0,0 +1,274 @@ + + + + + CV de André EBERSOLD + CV of andre EBERSOLD + Le parcours professionnel + + CV, cv, Cv, Informatique, Informatik, Ingénieur, engineer + $Date: 2010/08/25 15:10:02 $ + $Id: cv.fr_FR.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + + Ingénieur informatique confirmé + Senior Software Engineer + Informatik Ingenieur + 9 ans d'expérience dans le développement en C,C++ + 9 years experience in C,C++ development + 9 Jahre Herfahrung + + + +
    36a rue St Charles
    +
    67300 SCHILTIGHEIM
    + +33 3 88 83 04 13 + +33 6 20 95 59 00 + + + +
    + + + + Analyse, chiffrage et développement de produits informatiques + pour des systèmes embarqués ou des applications bureautiques. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production). + + + Analyse, Kostenabschätzung und Informatikproduckten Entwicklung + für eingebaute Software Systeme. + + + As an expert, I analysis, quantify and development computer products for + embedded systems or office automation applications. I also + develop means to ensure the process development (management + of sources, production procedure) + + + + + De l'Ecole Supérieur en Sciences Informatiques + Awarded by the Superior School of Computer Sciences + 1996 + Diplôme d'ingénieur en calcul scientifique + + Diploma of Scientific calculation engineer + + à + Sophia Antipolis. Option calcul scientifique + (simulation numérique des phénomènes physiques). + + + ,Sophia Antipolis, France. Specialised in scientific calculation + (numeric simulation and physical phenomena). + + + + + + + + Août 02 aujourd'hui + August 02 to present + Alcatel + Ingénieur de développement et de support chez Alcatel + Development and support engineer for Alcatel + Informatik Ingenieur + + + + Analyse, chiffrage, développement, mise en service + d'un système de signalisation d'anomalies (des PABX) + sur des lignes numériques (ISDN). Après quoi, + j'ai assuré le support de ce service et des protocoles + de communication entre les commutateurs téléphoniques + (PABX) et les applications de configuration et de + supervision. + + + + + Analysis, quantification, development, implementation of an anomalies signal system (PABX) on numeric lines (ISDN). Subsequenly, I provided support for this service and communication protocols between telephone commuters (PABX) + and configuration and supervision applications. + + + + + + 2001 - 2002 + 2001 - 2002 + 1 an 5 mois + 1 year 5 month + + Dernière nouvelles d'Alsace + Ingénieur de développement + Software Engineer + 1 an + Développement d'une application de mise en page sous Windows + + + Analyse, conception et développement d'une application + de mise en page du journal des DNA. + Cette application est développée en C sous Windows NT et + elle s'interface avec le système d'information de l'entreprise. + En parallèle, j'ai assuré le support et la mise à jours d'une + application de supervision de production du + journal en C sous Windows NT. + + + + + Analysis, design and development of an application for the the + formatting of a local newspaper (Dernières Nouvelles D'Alsace). + It is a C language application on Windows NT which interfaces with + the Enterprise information system. + I also maintained and improved the newspaper's supervision application. + + + + + + 2000 - 2001 + 2000 - 2001 + 1 an 5 mois + 1 year 5 month + Alcatel + Ingénieur de développement + Software Engineer + + + + Développement d'un module de mise à jour du + software pour la partie radio du modem ADSL. + Portage d'une librarie SNMP sur le modem ADSL. + Etude de faisabilité d'un modem ADSL wireless 802.11 + + + + + Development of an updating module for the radio part of the + ADSL modem. Library port on ADSL modem, Feasibility of an + ADSL wireless 802.11b modem. + + + + + + 1997 - 1999 + 1997 - 1999 + 2 an 2 mois + 2 years 2 month + Alcatel + Ingénieur développement + Software Engineer + + + Portage de l'environnement de debug (CA-DUL) vers RTAI + (environnement temps réel pour Linux). + Développement en C de drivers sur Windows NT5 pour piloter + une carte de compression / décompression vidéo selon + la norme MPEG2. + Encadrement de stagiaire pour le développement d'une + interface utilisateur. + + + + + Evironment port of debug (CA-DUL) to RTAI (real time environment for Linux). + Development in C- language of drivers on Windows NT5 to drive a compression / decompression + video card in accordance with the MPEG2 norm. Supervision of + trainee in the development of a user interface. + + + + + + 1995 - 1996 + 1995 - 1996 + 6 mois + 6 months + Antibes,FR + CEMEF + Stage de fin d'étude + End of study internship + + + + Stage de fin d'étude au CEMEF (Laboratoire de l'école + des mines de Paris): étude et simulation en + FORTRAN de la déformation des matériaux à grande + vitesse. + + + + + End of study internship at CEMEF (Laboratory of the prestigious + Paris "Ecole des mines"): study and simulation in FORTRAN of the deformation of materials at high speed. + + + + + + + + + + + Base de Donnée + Database + Daten + , Access + + + Langage + Language + C, C++ + + + Gestion de version + Version management + cvs, Subversion, ClearCase unix(client),Clear Project, Clear Quest + + + Internet + Internet + Internat + HTML, XSLT, CSS + + + Système + OS + Windows, Linux, Sun, Xenomai + + + Autre + Other + , + + + +
    + + + 14 Fév 2007 + loisirs + + + Mes + + + My + + + + +
    + diff --git a/cv.xml b/cv.xml new file mode 100644 index 0000000..8110460 --- /dev/null +++ b/cv.xml @@ -0,0 +1,274 @@ + + + + + CV de André EBERSOLD + CV of andre EBERSOLD + Le parcours professionnel + + CV, cv, Cv, Informatique, Informatik, Ingénieur, engineer + $Date: 2009/03/28 07:54:51 $ + $Id: cv.xml,v 1.22 2009/03/28 07:54:51 aeb Exp $ + + + Ingénieur informatique confirmé + Senior Software Engineer + Informatik Ingenieur + 9 ans d'expérience dans le développement en C,C++ + 9 years experience in C,C++ development + 9 Jahre Herfahrung + + + +
    36a rue St Charles
    +
    67300 SCHILTIGHEIM
    + +33 3 88 83 04 13 + +33 6 20 95 59 00 + + + +
    + + + + Analyse, chiffrage et développement de produits informatiques + pour des systèmes embarqués ou des applications bureautiques. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production). + + + Analyse, Kostenabschätzung und Informatikproduckten Entwicklung + für eingebaute Software Systeme. + + + As an expert, I analysis, quantify and development computer products for + embedded systems or office automation applications. I also + develop means to ensure the process development (management + of sources, production procedure) + + + + + De l'Ecole Supérieur en Sciences Informatiques + Awarded by the Superior School of Computer Sciences + 1996 + Diplôme d'ingénieur en calcul scientifique + + Diploma of Scientific calculation engineer + + à + Sophia Antipolis. Option calcul scientifique + (simulation numérique des phénomènes physiques). + + + ,Sophia Antipolis, France. Specialised in scientific calculation + (numeric simulation and physical phenomena). + + + + + + + + Août 02 aujourd'hui + August 02 to present + Alcatel + Ingénieur de développement et de support chez Alcatel + Development and support engineer for Alcatel + Informatik Ingenieur + + + + Analyse, chiffrage, développement, mise en service + d'un système de signalisation d'anomalies (des PABX) + sur des lignes numériques (ISDN). Après quoi, + j'ai assuré le support de ce service et des protocoles + de communication entre les commutateurs téléphoniques + (PABX) et les applications de configuration et de + supervision. + + + + + Analysis, quantification, development, implementation of an anomalies signal system (PABX) on numeric lines (ISDN). Subsequenly, I provided support for this service and communication protocols between telephone commuters (PABX) + and configuration and supervision applications. + + + + + + 2001 - 2002 + 2001 - 2002 + 1 an 5 mois + 1 year 5 month + + Dernière nouvelles d'Alsace + Ingénieur de développement + Software Engineer + 1 an + Développement d'une application de mise en page sous Windows + + + Analyse, conception et développement d'une application + de mise en page du journal des DNA. + Cette application est développée en C sous Windows NT et + elle s'interface avec le système d'information de l'entreprise. + En parallèle, j'ai assuré le support et la mise à jours d'une + application de supervision de production du + journal en C sous Windows NT. + + + + + Analysis, design and development of an application for the the + formatting of a local newspaper (Dernières Nouvelles D'Alsace). + It is a C language application on Windows NT which interfaces with + the Enterprise information system. + I also maintained and improved the newspaper's supervision application. + + + + + + 2000 - 2001 + 2000 - 2001 + 1 an 5 mois + 1 year 5 month + Alcatel + Ingénieur de développement + Software Engineer + + + + Développement d'un module de mise à jour du + software pour la partie radio du modem ADSL. + Portage d'une librarie SNMP sur le modem ADSL. + Etude de faisabilité d'un modem ADSL wireless 802.11 + + + + + Development of an updating module for the radio part of the + ADSL modem. Library port on ADSL modem, Feasibility of an + ADSL wireless 802.11b modem. + + + + + + 1997 - 1999 + 1997 - 1999 + 2 an 2 mois + 2 years 2 month + Alcatel + Ingénieur développement + Software Engineer + + + Portage de l'environnement de debug (CA-DUL) vers RTAI + (environnement temps réel pour Linux). + Développement en C de drivers sur Windows NT5 pour piloter + une carte de compression / décompression vidéo selon + la norme MPEG2. + Encadrement de stagiaire pour le développement d'une + interface utilisateur. + + + + + Evironment port of debug (CA-DUL) to RTAI (real time environment for Linux). + Development in C- language of drivers on Windows NT5 to drive a compression / decompression + video card in accordance with the MPEG2 norm. Supervision of + trainee in the development of a user interface. + + + + + + 1995 - 1996 + 1995 - 1996 + 6 mois + 6 months + Antibes,FR + CEMEF + Stage de fin d'étude + End of study internship + + + + Stage de fin d'étude au CEMEF (Laboratoire de l'école + des mines de Paris): étude et simulation en + FORTRAN de la déformation des matériaux à grande + vitesse. + + + + + End of study internship at CEMEF (Laboratory of the prestigious + Paris "Ecole des mines"): study and simulation in FORTRAN of the deformation of materials at high speed. + + + + + + + + + + + Base de Donnée + Database + Daten + , Access + + + Langage + Language + C, C++ + + + Gestion de version + Version management + cvs, Subversion, ClearCase unix(client),Clear Project, Clear Quest + + + Internet + Internet + Internat + HTML, XSLT, CSS + + + Système + OS + Windows, Linux, Sun, Xenomai + + + Autre + Other + , + + + +
    + + + 14 Fév 2007 + loisirs + + + Mes + + + My + + + + +
    + diff --git a/cv_080610genesis.xml b/cv_080610genesis.xml new file mode 100644 index 0000000..cf0acc1 --- /dev/null +++ b/cv_080610genesis.xml @@ -0,0 +1,278 @@ + + + + + CV de André EBERSOLD + CV of andre EBERSOLD + Le parcours professionnel + + CV, cv, Cv, Informatique, Informatik, Ingénieur, engineer + $Date: 2008/07/04 20:45:51 $ + $Id: cv_080610genesis.xml,v 1.2 2008/07/04 20:45:51 aeb Exp $ + + + Ingénieur informatique confirmé + Senior Software Engineer in telecommunication + Informatik Ingenieur + 9 ans d'expérience dans le développement en C,C++ + 9 years experience in C,C++, STL development + 9 Jahre Herfahrung + + + +
    36a rue St Charles
    +
    67300 SCHILTIGHEIM
    + +33 3 88 83 04 13 + +33 6 20 95 59 00 + + + +
    + + + + Analyse, chiffrage et développement de produits informatiques + pour des systèmes embarqués ou des applications bureautiques. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production). + + + Analyse, Kostenabschätzung und Informatikproduckten Entwicklung + für eingebaute Software Systeme. + + + Analysis, quantification and development in C/C++ of computer products for + telecommunication systems or office automation applications. I also + did Highest level customer support for Alcatel-Lucent PBX. + + + + + De l'Ecole Supérieur en Sciences Informatiques + Awarded by the Superior School of Computer Sciences + 1996 + Diplôme d'ingénieur en calcul scientifique + + Diploma of Scientific calculation engineer + + à + Sophia Antipolis. Option calcul scientifique + (simulation numérique des phénomènes physiques). + + + ,Sophia Antipolis, France. Specialised in scientific calculation + (numeric simulation and physical phenomena). + + + + + + + + + Jan 2007 to present + Software developper and integrator for Alcatel-Lucent + + + + As an expert,I improved the flash driver of Alcatel-Lucent PBX. + It allowed increasing the lifetime of the product and mainting the shop cost. + I also improved and maintained several multithread software applications to satisfy customer + requirement. + + + + + + Août 02 - Nov 06 + August 02 - Dec 06 + Alcatel + Ingénieur de développement et de support chez Alcatel + Development and support engineer for Alcatel + Informatik Ingenieur + + + + Analyse, chiffrage, développement, mise en service + d'un système de signalisation d'anomalies (des PABX) + sur des lignes numériques (ISDN). Après quoi, + j'ai assuré le support de ce service et des protocoles + de communication entre les commutateurs téléphoniques + (PABX) et les applications de configuration et de + supervision. + + + + + Analysis, quantification, development, implementation of an anomalies signal system (PABX) on numeric lines (ISDN). Subsequenly, I provided support for this service and communication protocols between telephone commuters (PABX) + and configuration and supervision applications. + + + + + + Jui 01 - Juil 02 + Jui 01 - Juil 02 + Dernière nouvelles d'Alsace + Ingénieur de développement + Software Engineer, as WINDOWS application developper + Développement d'une application de mise en page sous Windows + + + Analyse, conception et développement d'une application + de mise en page du journal des DNA. + Cette application est développée en C sous Windows NT et + elle s'interface avec le système d'information de l'entreprise. + En parallèle, j'ai assuré le support et la mise à jours d'une + application de supervision de production du + journal en C sous Windows NT. + + + + + Analysis, design and development of an application for the the + formatting of a local newspaper (Dernières Nouvelles D'Alsace). + It is a C language application on Windows NT which interfaces with + the Enterprise information system. + I also maintained and improved the newspaper's supervision application. + + + + + + Jan 00 - mai 01 + Jan 00 - may 01 + Alcatel + Ingénieur de développement + Software Engineer, as Product prototype realisator + + + + Développement d'un module de mise à jour du + software pour la partie radio du modem ADSL. + Portage d'une librarie SNMP sur le modem ADSL. + Etude de faisabilité d'un modem ADSL wireless 802.11 + + + + + Development of an updating module for the radio part of the + ADSL modem. Library port on ADSL modem, Feasibility of an + ADSL wireless 802.11b modem. They promoted the prototype on + the Alcatel Annual forum. + + + + + + Nov 97 - déc 99 + Nov 97 - dec 99 + Alcatel + Ingénieur développement + Software Engineer, WINDOWS driver developper + + + Portage de l'environnement de debug (CA-DUL) vers RTAI + (environnement temps réel pour Linux). + Développement en C de drivers sur Windows NT5 pour piloter + une carte de compression / décompression vidéo selon + la norme MPEG2. + Encadrement de stagiaire pour le développement d'une + interface utilisateur. + + + + + Evironment port of debug (CA-DUL) to RTAI (real time environment for Linux). + Development in C- language of drivers on Windows NT5 to drive a compression / decompression + video card in accordance with the MPEG2 norm. Supervision of + trainee in the development of a user interface. + + + + + + 95 - 96 + 95 - 96 + CEMEF + Stage de fin d'étude + End of study internship + + + + Stage de fin d'étude au CEMEF (Laboratoire de l'école + des mines de Paris): étude et simulation en + FORTRAN de la déformation des matériaux à grande + vitesse. + + + + + End of study internship at CEMEF (Laboratory of the prestigious + Paris "Ecole des mines"): study and simulation in FORTRAN of the deformation of materials at high speed. + + + + + + + + + + + Langage + Language + C, C++ + + + Gestion de version + Version management + cvs, ClearCase unix(client),Clear Project, Clear Quest + + + Environment + Libraries + , multithreaded contexts + + + Système + OS + Windows, Linux + + + Base de Donnée + Protocol + Daten + TCP/IP, HTTP + + + Internet + Internet + Internat + HTML, XSLT, CSS + + + +
    + + + 14 Fév 2007 + loisirs + + + Mes + + + My + + + + +
    + diff --git a/cv_alcatel.xml b/cv_alcatel.xml new file mode 100644 index 0000000..ab999b8 --- /dev/null +++ b/cv_alcatel.xml @@ -0,0 +1,170 @@ + + + + + $Date: 2008/06/10 15:56:46 $ + $Id: cv_alcatel.xml,v 1.5 2008/06/10 15:56:46 aebersol Exp $ + CV,Cv,cv, Informatique, informatique,France, france, CORBA, corba + + + Ingénieur informatique confirmé + Senior Software Engineer + 9 ans d'expérience dans le développement en C,C++ + 9 years experience in C,C++ development + + + +
    36a rue St Charles
    +
    67300 SCHILTIGHEIM
    +
    + + + + Analyse, chiffrage et développement de produits informatiques + pour des systèmes embarqués ou des applications spécifiques. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production). + + + + + Nov 07 - Mars 08 + Nov 07 - March 08 + Alcatel + Ingénieur de développement + Software Engineer + + + + Flash driver improvment. + + + + + Oct 06 - Oct 07 + Oct 06 - Oct 07 + Alcatel + Ingénieur de développement + Software Engineer + + + + Réalisation de la CCPU. Après la migration des drivers vers le nouveau + kernel. J'ai contribué au portage de tout les programmes sur une nouvelle + plarform matériel à base de powerPC. + + + + + + Juil 06 - Sep 06 + Juil 06 - Sep 06 + Alcatel + Ingénieur développement + Software Engineer + + + + Migration d'un driver temps réel (rt linux, 160 fichiers c) sous + Linux 2.4 vers Linux 2.6 avec la stack Xenomai. + + + + + Mar 05 - Jui 06 + Mar 05 - Jui 06 + + Ingénieur de développement + Software Engineer + + + + Transfert de connaissance en Inde et en Chine (formation des personnes). + Support et maintenance des développements antétieurs. + + + + + + + Sep 04 - Fév 05 + Sep 04 - Fév 05 + Alcatel + Ingénieur de développement + + + + Etude, chiffrage, réalisation et maintenance d'une application + de migration (Lola). Elle permet l'installation + en usine des produits OmniPBX d'Alcatel-Lucent. + + + + + + Août 02 - Sep 04 + Août 02 - Sep 04 + Alcatel + Ingénieur de développement et de support chez Alcatel + Software Engineer + + + + Analyse, chiffrage, développement, mise en service + d'un système de signalisation d'anomalies (des PABX) + sur des lignes numériques (ISDN). Après quoi, + j'ai aussuré le support de ce service et des protocoles + de communication entre les commutateurs téléphoniques + (PABX) et les applications de configuration et de + supervision. + + + + + + + + + + + + Langage + Language + C, C++,Visual Studio + + + Gestion de version + Versionning + Subversion, ClearCase unix(client),Clear Project, Clear Quest + + + Système + OS + Windows, Linux, Sun, Xenomai + + + Autre + Other + , + + + +
    + + + 14 Fév 2007 + loisirs + + + Mes + + + My + + + + +
    diff --git a/cv_dna.xml b/cv_dna.xml new file mode 100644 index 0000000..c19a86a --- /dev/null +++ b/cv_dna.xml @@ -0,0 +1,139 @@ + + + + + $Date: 2008/03/06 18:11:28 $ + $Id: cv_dna.xml,v 1.4 2008/03/06 18:11:28 aebersol Exp $ + + + Ingénieur informatique confirmé + Senior Software Engineer + 9 ans d'expérience dans le développement en C,C++ + 9 years experience in C,C++ development + + + +
    36a rue St Charles
    +
    67300 SCHILTIGHEIM
    +
    + + + + Analyse, chiffrage et développement de produits informatiques + pour la production du journal des Dernières Nouvelles d'Alsace. + En outre, j'assure la mise en oeuvre de moyens pour assurer + le processus de développement (gestion de sources, procédure + de production). + + + I studied, evaluate the cost and developped applications + for a newspaper company. I managed the whole devloppment + process at my alone (source code management, build process, + installation process). + + + + + Juil 00 - Mar 01 + Alcatel + Ingénieur développement + Software Engineer + Application plan de plage + + + Développement d'une application de mise en page centralisé. Réalisée + en C sous windows, elle permet à plusieurs intervenant de construire + la maquette de toutes les pages d'un journal (). + + + + + Development of an application that helps in the layout of newspaper + pages. + + + + + Mar 00 - Jui 00 + DNA + Ingénieur de développement + Software Engineer + Application sumo + + + + Développement d'une application graphique qui supervision + la production des pages du journal. + + + + + Development of a supervision application. The program displayed + the state of all newspaper pages to be printed. + + + + + + + Jan 00 - Mar 00 + DNA + Ingénieur de développement + Application Stoppub + + + Développement d'une application d'archivage d'image de publicité + en C sous unix. + + + + + + + + + + + Langage + Language + C, Borland C et gcc + + + Gestion de version + Versionning + CVS + + + Système + OS + Windows, Unix SCO + + + Autre + Other + , + + + +
    + + + 14 Fév 2007 + loisirs + + + Mes + + + My + + + + +
    + diff --git a/formapre/070316_msg.xml b/formapre/070316_msg.xml new file mode 100644 index 0000000..125cc1a --- /dev/null +++ b/formapre/070316_msg.xml @@ -0,0 +1,196 @@ + + + + + Message Matthieu 28:16-20 + $Date: 2008/03/06 18:13:10 $ + $Id: 070316_msg.xml,v 1.3 2008/03/06 18:13:10 aebersol Exp $ + + + Message Matthieu 28:16-20 +

    Introduction

    + + Lecture de Matthieu 28:16-20. + Les points qui ont retenus mon attention sont: +
      +
    • Le contexte
    • +
    • La marche des disciples
    • +
    • La rencontre avec Jésus réssuscité
    • +
    • Les effets de cette rencontre
    • +
    • Les deux groupes personnes
    • +
    • La réaction de Jésus
    • +
    • Le verset 19 Allez ...
    • +
    • Une invitation collective
    • +
    • Une invitation individuelle
    • +
    • Une invitation pour les membres de FORMA PRE
    • +
    +
    + +

    Contexte

    + + Jésus est réssuscité, Marthe et Marie ont rencontré un + Ange qui leur a annoncé la bonne nouvelle de la résurrection + de Jésus. + Maintenant, + les disciples sont en marche vers une montagne en Galilée. + D'après le texte, c'est Jésus lui-même qui leurs a fixé + un rendrez-vous à cette endroit. Probablement par l'intermédiaire + de Marthe et Marie cf v 7. On peut remarquer dans Mat 26:32 que + Jésus leur avait déjà parlé de ce rendez-vous avant sa mort. + + + + C'est à pied qu'ils se déplaçaient. Peut-être ce n'est pas + important. Cependant, les diciples durant leur marche + avaient tout le temps nécessaire pour se préparer à cette + rencontre avec Jésus réssuscité. + + + Un petit détail. Les onze disciples se déplaçaient ensemble. + Au verset 16, rien ne semble les distinguer. Aucune différence. + Les disciples allaient à la rencontre de Jésus. + Une rencontre qui peut pourtant surprendre. + +

    La renconte

    + + L'auteur met en avant l'effet que devait produire cette recontre. + Il l'adorèrent. Quelle autre réaction pouvait-on s'imagine quand + on se retrouve devant la personne du Christ réssuscité ? + + + Pourtant, tout de suite après, l'auteur nous indique que quelques-uns eurent des doutes! + Des doutes de quelle nature ? Est-ce vraiment Jésus, le Christ ? Faut-il + adorer Jésus ? Le texte ne le dit pas. Peut-être les deux. + +

    Les effets de la rencontre

    + + Ce qui est sûr, c'est que tous n'ont pas eut la même réaction. + Certain l'adorèrent, d'autre eurent des doutes. + On pouvait espérer un réaction identique de la part + de tous! Mais ce n'est pas le cas. + +

    La rencontre aujourd'hui et demain

    +

    du Christ dans l'église

    + + Probablement que secretement nous espérons tous que dans l'église tous + réagissent de la même manière! Pourtant ce n'est pas + ce qui arrive. Les réactions des uns et des autres sont + très contrastées. Devant ces différences, il vaut + mieux regarder à Christ pour voir comment lui a réagit. + +

    Rencontre du Christ avec un incroyant

    + + Ce texte ne s'y prete pas vraiment parce que les personnes + qui ont rencontré Jésus dans ce passage connaissaient Christ. + +

    Recontre du Christ quand il reviendra

    + + Cette réaction des disciples peut aussi nous interpeler + quand Christ reviendra! Comment allons-nous réagir ? + serons-nous remplis de doutes ? ou allons nous adorer + le Christ ? + + +

    La réaction de Jésus

    + + La réaction de Jésus peut, elle aussi nous surprendre. + tout d'abord, il ne condamne pas ceux qui doutent. + Il ne dit pas de faire comme les autres ! + il ne juge pas. Sa première parole :"J'ai reçu les pleins + pouvoirs dans le ciel et sur la terre" + me laisse perplexe. + + + Voilà un groupe de personne qui ne semble pas être au même + niveau et Jésus ne trouve rien d'autre à faire que de parler + de "lui"! + + + On pourrait dire que Jésus fait du nombrilisme est qu'il + ne s'interesse pas de tout aux états d'âme de ses disciples. + +

    Elle n'a pas de rapport avec le contexte

    + + C'est la première idée qui m'est passé par la tête. En effet, + quel rapport peut-il y avoir entre la réaction des disciples + et cette parole de Jésus et son pouvoir ? + +

    Elle a un rapport avec les disciples

    + + Dans le contexte, il est fort possible que les disciples + soit justement préoccupé par la personne de Jésus. Les uns + l'adorent, les autres ont des doutes quand à sa personne. + Jésus répond en même temps aux uns et au autres. + + + A ceux qui adorent il ne fait que confirmer que ce qu'ils font + est bien. + + + A ceux qui ont des doutes, il affirme son plein pouvoir dans + le ciel et sur la terre. Il n'y a donc aucune raison de ne pas + l'adorer. + +

    Celui qui me cherche me trouve

    + + A travers de sa parole, Jésus a donc parfaitement répondu + ses disciples. Il s'est préoccupé de leurs interrogations profondes + avant de leurs confier la mission à venir. + +

    Verset 19 Allez

    + + C'est un verset très connu qui pourtant parfois nous décourage. +
      +
    • faire des disciples
    • +
    • les baptiser
    • +
    • les enseigner / apprendre à obéir ...
    • +
    +
    + +

    Une invitation collective

    + + Pour ne pas être découragé, rappelons-nous le contexte. + Jésus ne s'adresse pas à une seule personne. Il s'adresse + à un groupe de personne, ses disciples. Un groupe de personnes + qui nous l'avons vu a eut des réactions différentes lors de la + recontre. + + + Aussi, je pense que cette mission que Jésus nous laisse + n'ai pas réservé à une personne, mais à un groupe de personne. + Ce groupe, s'appele aujourd'hui l'église. + +

    Une invitation personnelle

    + + Si l'appele de Jésus, s'adresse à l'église, il s'adresse aussi + à chaque membre de l'église. Chacun est donc invité à participer + à cette tâche selon les dons que Dieu lui a confié. + + +

    Aujourd'hui pour FORMA PRE

    + + L'association dont nous faisons partie! Nous avons le privilège + de goûter à la parole de Dieu et de l'apprendre. Nous avons + le privilège d'être enseigné. N'est-il pas de nôtre devoir + d'ammener nos semblable à l'obéissance de ce qui nous a été enseigné? + + + +
    + + + 24 mars 07 + Message + Ebersold André + + + Message pour le cours du 16-17 mars. + + + + +
    diff --git a/formapre/cours.xml b/formapre/cours.xml new file mode 100644 index 0000000..7cdd459 --- /dev/null +++ b/formapre/cours.xml @@ -0,0 +1,95 @@ + + + + + + Les cours de FORMA P.R.E. + $Date: 2008/03/06 18:11:32 $ + $Id: cours.xml,v 1.13 2008/03/06 18:11:32 aebersol Exp $ + + Les cours de FORMA P.R.E. +

    Introduction

    + + Ci-dessous la liste des cours dispensés dans le cadre + de FORMA PRE. Chaque module représente une série de + 5 cours de 10 heures chacun. + + + + + mod 1 + +

    Session 2002 - 2003

    +
      +
    • Lettres de Paul et Actes
    • +
    • Psaumes et sagesse de l'A.T.
    • +
    • Le retour de Jésus Christ
    • +
    • Introduction à la cure d'âme
    • +
    • L'éthique
    • +
    +
    +
    + + mod 2 + +

    Session 2003 - 2004

    +
      +
    • Sectes et croyances
    • +
    • Comment étudier et interpréter la Bible
    • +
    • Les prophètes
    • +
    • Christologie
    • +
    • Les évangiles synoptiques
    • +
    +
    +
    + + mod 3 + +

    Session 2004 - 2005

    +
      +
    • Les grandes religions
    • +
    • Histoire biblique d'Israël
    • +
    • Doctrine de Dieu et création
    • +
    • Évangélisation et Mission
    • +
    • Les écrits de Jean
    • +
    +
    +
    + + mod 4 + +

    Session 2005 - 2006

    +
      +
    • Le responsable d'église
    • +
    • Les épîtres générales
    • +
    • Le Catholicisme
    • +
    • L'église
    • +
    • Le Salut
    • +
    +
    +
    + + mod 5 + +

    Session 2006 - 2007

    +
      +
    • Le pentateuque
    • +
    • L'homme et le péché
    • +
    • Actes et Lettres de Paul
    • +
    • +
    • +
    +
    +
    + +
    + + + + +
    +
    diff --git a/formapre/devoirs.xml b/formapre/devoirs.xml new file mode 100644 index 0000000..57cde0f --- /dev/null +++ b/formapre/devoirs.xml @@ -0,0 +1,117 @@ + + + + + Les devoirs de FORMA P.R.E. + $Date: 2008/03/06 18:11:32 $ + $Id: devoirs.xml,v 1.18 2008/03/06 18:11:32 aebersol Exp $ + + Les devoirs de FORMA P.R.E. +

    Introduction

    + + Ce n'est pas uniquement un cours a suivre mais + également un travail personnel à fournir. + + + + 2002 + +

    Session 2002 - 2003

    +
      +
    • Lettres de Paul et Actes
    • +
    • Psaumes et sagesse de l'A.T.
    • +
    • Le retour de Jésus Christ
    • +
    • Introduction à la cure d'âme
    • +
    • L'éthique
    • +
    +
    +
    + + 2003 + +

    Session 2003 - 2004

    +
      +
    • Le Salut
    • +
    • L'homme et le péché
    • +
    • Les livres poétiques
    • +
    • L'éthique chrétienne
    • +
    • Les prophètes
    • + +
    +
    +
    + + 2004 + +

    Session 2004 - 2005

    +
      +
    • Catholicisme
    • +
    • Les sectes
    • +
    • ...
    • +
    • Le Pentateuque
    • +
    • Les évangiles synoptiques
    • +
    + +
    +
    + + 2005 + +

    Session 2005 - 2006

    +
      +
    • Le Salut
    • +
        +
      • +
      • +
      +
    • L'homme et le péche
    • +
        +
      • Devoir B
      • +
      +
    • Les écrits de Jean
    • +
    + +
    +
    + + 2006 + +

    Session 2006 - 2007

    +
      +
    • Le Pentateuque + , + . +
    • +
    • Doctrine de la création
    • +
        +
      • Devoir A
      • +
      • .
      • +
      +
    • Actes et Lettres de Paul + , + .
    • +
    • L'histoire de l'église
    • +
        +
      • +
      • Devoir B
      • +
      +
    • Révélation et écriture, + +
    • +
    +
    +
    +
    + +
    + + + +
    + diff --git a/formapre/index.xml b/formapre/index.xml new file mode 100644 index 0000000..bf5744b --- /dev/null +++ b/formapre/index.xml @@ -0,0 +1,79 @@ + + + + FORMA P.R.E. + EBERSOLD André + + $Date: 2008/03/06 18:11:32 $ + $Id: index.xml,v 1.14 2008/03/06 18:11:32 aebersol Exp $ + + FORMA P.R.E. + + Une association qui collabore avec + la Faculté théologique de Vaux sur Seine. + Tout au long de l'année, elle dispense des + + aux quatres coins de la France. + +
      +
    1. Le
    2. +
    3. Les
    4. +
    5. Les
    6. +
    + + + Je dispose de pas mal d'enregistrement des cours. Chaque cours + représente environ 9 heures. Ils sont découpés en 6 enregistrements + de 1h30. +
    + Pour l'instant ils ne sont disponibles pour personnes. Le principale + inconvénient vient de microsoft média encodeur. Il enregistre tout + au forma wma. Donc il faut un convertisseur pour les + convertir au forma MP3. De toutes évidences, MP3 reste le + format le plus utilisé. +
    + +

    Les cours

    + + Pour l'instant, j'ai simplement listé l'ensemble des thèmes abordés dans + les différents . Je complète au fil du temps. + + +

    Les devoirs

    + + Et oui, toute formation un peu sérieuse demande aussi un minimum + de travail. Aussi, chaque étudiant (si je peux m'exprimer ainsi) + est invité à faire un devoir de préparation à rendre à l'arrivée + du cours. Un autre devoir qui consiste à voir ce que l'élève + a compris, est à rendre 15 jours après le cours. + + +

    Certificats

    + + Un certificat FORMA P.R.E. sera délivré à tout stagière ayant suivi avec + succès l'ensemble des 25 stages. + + + Tout stagière ayant suivi avec succès un minimum de 15 stages recevra une attestation. + +
    + + + + 2 Jan 2007 + Liens utiles + + + Dossier . + + + + +
    + diff --git a/formapre/liens.xml b/formapre/liens.xml new file mode 100644 index 0000000..265ae4c --- /dev/null +++ b/formapre/liens.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/formapre/m4c5da.xml b/formapre/m4c5da.xml new file mode 100644 index 0000000..5ce4b96 --- /dev/null +++ b/formapre/m4c5da.xml @@ -0,0 +1,61 @@ + + + + + + Devoir A Le Salut + + Répondez aux questions: +
      +
    • Qu'affirme la doctrine de la prédestination ?
    • +
    • Ceux qui nient la prédesctination croient-ils + nécessairement au salut par les mérites humains?
    • +
    • Quelle différence y a-t-il entre la doctrine biblique + de la prédesdination et le fatalisme ?
    • +
    • En quoi consiste le péché contre le Saint-Esprit ?
    • +
    • Qu'entend-on par justification ?
    • +
    • Qu'est ce que la repentance ? + Quels sont les signes d'une vraie repentance ?
    • +
    • Citez des textes qui établissent la justification par la foi.
    • +
    • Qu'entend-on par régénération ?
    • +
    • Qu'est ce que la conversion ?
    • +
    • Qu'appelle-t-on la sanctification ?
    • +
    +
    + + Devoir A Le Salut + + + + + + + + + + + + + + + + + + + + + + 26 Fév 2007 + Livre à lire + + + + + + + +
    diff --git a/formapre/m4c5db.xml b/formapre/m4c5db.xml new file mode 100644 index 0000000..18202ea --- /dev/null +++ b/formapre/m4c5db.xml @@ -0,0 +1,39 @@ + + + + + Devoir A Le Pentateuque + + Répondez aux questions: +
      +
    • Lisez Gen 1.27-25-11. Comment l'auteur présente-t-il la biographie d'Abraham?
    • +
    • Lisez Deut 34. Pourquoi Moïse occupe-t-il une place à part dans l'histoire d'Israël?
    • +
    +
    + + Devoir A Le Pentateuque + + + + + + + + + + + + + + + + + + + + +
    diff --git a/formapre/m5c1da.xml b/formapre/m5c1da.xml new file mode 100644 index 0000000..f6153c0 --- /dev/null +++ b/formapre/m5c1da.xml @@ -0,0 +1,39 @@ + + + + + Devoir A Le Pentateuque + + Répondez aux questions: +
      +
    • Lisez Gen 1.27-25-11. Comment l'auteur présente-t-il la biographie d'Abraham?
    • +
    • Lisez Deut 34. Pourquoi Moïse occupe-t-il une place à part dans l'histoire d'Israël?
    • +
    +
    + + Devoir A Le Pentateuque + + + + + + + + + + + + + + + + + + + + +
    diff --git a/formapre/m5c1db.xml b/formapre/m5c1db.xml new file mode 100644 index 0000000..d156a79 --- /dev/null +++ b/formapre/m5c1db.xml @@ -0,0 +1,40 @@ + + + + + Pentateuque + + Traitez brièvement les deux questions suivantes: +
      +
    • 1) Est-il important de savoir qui a écrit le Pentateuque?
    • +
    • 2) Pourquoi le narrateur accorde-t-il une si grande place à la révolte de + Qoré?
    • +
    +
    + + Pentateuque + + + + + + + + + + + + + + + + + + + + +
    diff --git a/formapre/m5c2db.xml b/formapre/m5c2db.xml new file mode 100644 index 0000000..3c5e870 --- /dev/null +++ b/formapre/m5c2db.xml @@ -0,0 +1,48 @@ + + + Devoir B, L'homme et le péché + +Quelle est la place particulière de l'homme au sein de la création ? + + + + Devoir B, L'homme et le péché + + + Parmi tous les éléments que Dieu a créé du néant, l'homme. Créé au même titre que la terre et les animaux. L'homme occupe-t-il la même place que ces derniers ? Où leur est-il différent ? Quelle place occupe-t-il dans toute l'oeuvre créatrice de Dieu ? A-t-elle encore des conséquences pour le comportement du chrétien d'aujourd'hui ? + + + Dans le récit de la création, le terme créé qui est employé pour les animaux (Gen 1 :21) est le même que pour l'homme Gen 1 :27. Sur ce point il n'y a pas de différence entre l'homme et les animaux. Les deux sont des créatures de Dieu. +Dans le deuxième récit (Gen 2) on peut constater que l'homme, ainsi que les animaux terrestre sont tirés du sol (Gen 2 :7 ; 2 :19). Par conséquent, sur le plan biologique, on peut dire qu'il n'y pas de différence non plus dans la nature de l'homme et de l'animal. +L'un et l'autre ont pour mission de peupler la terre. C'est ce qui nous est révélé dans Gen 1 :22 ;1 :28. On voit donc que sur de nombreux points, l'homme n'occupe pas de place particulière dans l'oeuvre de la création. +Cette thèse peut se confirmer dans la mesure ou nous pouvons constater que le comportement de l'homme est parfois pire que celui des animaux aujourd'hui. + + +Cependant, si on reprend ces mêmes passages en les observant de plus prêt, on peut voir que la place de l'homme est différente des autres éléments de la création. + + + On remarquera tout d'abord la répétition employée par l'auteur dans Gen 1 :27. L'auteur insiste sur la création de l'homme. A la différence des animaux, l'homme est créé à l'image de Dieu. Cette image traduit une relation entre l'homme et son créateur. Nous verrons que l'activité de l'homme est également à l'image de l'activité de Dieu. Cette image est l'origine de la place particulière de l'homme dans la création. + En effet, outre le fait d'être une créature de Dieu, l'homme aura comme mission de dominer sur tous les animaux que Dieu a créé (Gen 1 :28) (On remarquera que l'idée que l'homme domine sur l'homme n'est pas présente dans la création !). Il est acteur dans la création et doit participer activement à l'oeuvre de Dieu. + + + Cette participation est voulue par Dieu dans toute son oeuvre créatrice. Dans Gen 2 :15, l'Eternel place Adam dans le jardin qu'il a planté pour que l'homme le cultive et le garde. + + + + Au-delà d'une simple créature, l'homme est placé au centre de la création pour collaborer avec Dieu et être en relation avec lui. Tout un programme qui a été bafoué par la désobéissance de l'homme. +Pour le chrétien d'aujourd'hui, le rôle de l'homme n'a pas changé. En temps que responsable, il est toujours appelé à prendre soin de la création durant tout son mandat terrestre. Il a, au même titre que tous les hommes toujours la mission de se multiplier et de travailler. Un travail physique et intellectuel à la gloire de Dieu. +Etant donné que la désobéissance est à l'origine du péché il me semble important de noter que le chrétien est appelé à obéir à la parole de Dieu avec l'aide du St Esprit. +Enfin, il est appelé à faire des disciples (se reproduire) et amener les convertis à l'obéissance à la parole de Dieu. (Mat 28 :19-20) + + + + + + + + + diff --git a/formapre/m5c3da.xml b/formapre/m5c3da.xml new file mode 100644 index 0000000..632dcbd --- /dev/null +++ b/formapre/m5c3da.xml @@ -0,0 +1,42 @@ + + + + + Devoir A Actes et lettres de Paul + + Restituer chacune des lettres de Paul au sein de la chronologie + du livre des Actes en justifiant chaque fois votre proposition + par deux ou trois lignes d'arguments tirés des données des textes. + + + Devoir A Actes et lettres de Paul + + + + + + + + + + + + + + + + + + + + + + 11 Fév 2007 + Que nous enseigne Galates sur la Loi de Moïse? + + + diff --git a/formapre/m5c3db.xml b/formapre/m5c3db.xml new file mode 100644 index 0000000..f7796bc --- /dev/null +++ b/formapre/m5c3db.xml @@ -0,0 +1,67 @@ + + + + + Devoir B Actes et lettres de Paul + + Qu'enseigne l'épître aux Galates sur la Loi de Moise ? + + + Devoir B Actes et lettres de Paul + + + + + Après avoir reçu le message de l'évangile de Paul, + les galates sont en prise à la tentation de se soumettre au régime de la Loi de Moïse. + Cette tentation est d'autant plus grande que des partisans du judaïsme troublent les Galates (Gal 1.7). + + + Face à ce danger, l'apôtre Paul expose dans deux chapitres le rôle de la Loi de Moïse dans l'histoire d'Israël. + + + Il commence par montrer que contrairement à la foi, la Loi ne permet pas de justifier l'homme. Cet enseignement reste constant dans toute + l'Ecriture. Jamais il n'est question d'être sauvé par la Loi. + Ainsi Abraham, d'origine païenne, le père des croyants, n'est pas déclaré juste devant Dieu par les oeuvres de la Loi mais parce qu'il a cru à Dieu.(Gen 15.6) + + + La Loi de Moïse ne peut pas nous justifier devant Dieu. Elle dit simplement que celui qui n'observe pas toute la Loi est maudit (Gal 3.10). + Or, que dit la Bible sur les hommes ? Citons par exemple Rom 3.10-12 : « Il n'y a point de juste, par même un seul. + Nul n'est intelligent, nul ne cherche Dieu. Tous sont égarés, tous sont pervertis ; + Il n'en n'est aucun qui fasse le bien, pas même un seul. » + Ce passage est tiré du Psaumes 14 :1-3. Le verdict de Paul est sans ambiguïté : + « Personne ne sera déclaré juste devant Dieu parce qu'il aura accompli ce qu'ordonne la Loi » (Gal 2 :16). + + + Pour parvenir à la vie, la Loi obéit à un seul principe décrit dans Lév 18.5 :« Celui qui accompli tous ces commandement obtient la vie. ». + Nous pourrions être tenté de croire qu'il est possible aux hommes d'obtenir la vie en accomplissant la Loi. + Cependant, les arguments du paragraphe précédant et le Ps 143.2 réduisent à néant cet espoir. + Nous y avons montré que personne n'est capable de mettre en pratique toute la Loi. Il n'y a aucune chance que l'homme puisse être sauvé en accomplissant les oeuvres de la Loi de Moïse. + + + L'apôtre Paul souligne également le fait qu'il n'y a pas de lien de dépendance entre la foi qui justifie l'homme et la Loi (Gal 3 :12). + La Loi prévoit comme seule issue de salut l'observation de tous ces commandements (Lév 18.5). + Le principe du salut par la foi est antérieur à la Loi. Il date d'Abraham. La Loi est venue par Moïse bien après. + La malédiction de la croix à été abolie par Christ qui a pris sur lui la malédiction de la Loi en acceptant de mourir sur la croix. +Puisque la Loi de Moïse ne permet pas d'être sauvé ! Quel rôle jouait-elle dans l 'Ancien Testament et Aujourd'hui ? + + +Dans Gal 3 :23-25, l'apôtre Paul nous rappelle « qu'avant l'instauration du régime de la foi, nous étions emprisonnés par la Loi, dans l'attente de la foi qui devait être révélée.» Ainsi le Loi jouait le rôle de gardien dans l'attente de la révélation complète du plan de Dieu pour le salut des hommes. +Le verset 24 nous indique aussi que la Loi devait jouer le rôle de pédagogue pour nous montrer qu'au travers de la Loi il était impossible de parvenir au salut. La connaissance de la Loi devait et doit toujours nous conduire à Christ par la foi. + + +Au travers de la lettre aux Galates, l'apôtre nous fait voir le rôle joué par la Loi de Moïse dans l'histoire du peuple d'Israël. Il montre que sur tous ces aspects, la Loi ne permet pas de justifier l'homme. Elle devait garder Israël et préparer ce peuple à la rencontre du Messie. Une rencontre raté qui a ouvert la porte du salut aux païens par la foi en Jésus Christ. + + + + + + 11 Fév 2007 + Que nous enseigne Galates sur la Loi de Moïse? + + + diff --git a/formapre/m5c4_cours.xml b/formapre/m5c4_cours.xml new file mode 100644 index 0000000..05a07ff --- /dev/null +++ b/formapre/m5c4_cours.xml @@ -0,0 +1,733 @@ + + + + + Cours Histoire de l'église + $Date: 2008/03/06 18:11:33 $ + $Id: m5c4_cours.xml,v 1.6 2008/03/06 18:11:33 aebersol Exp $ + + Cours Histoire de l'église +

    Les temps historiques - Introduction.

    + + Le cours n'est valable que pour l'Europe. + L'histoire commence avec l'Ecriture. Donc pas + d'histoire sans texte, pas de texte sans histoire. + + +

    Quelques remarques préliminaires

    +

    Ce découpage n'est valable que pour l'europe

    + + Ca n'a pas de sens pour l'Asie, ni pour l'Amérique. Quand on + parle de pré histoire. + On ne sait pas grand chose de l'histoire de l'église + hors de l'empire romain. + +

    Il concerne cependant notre sujet

    + + A compléter. + +

    Il présente un intérêt surtout pédagogique.

    + +

    Cette histoire s'inscrit dans l'histoire de l'humanité

    +

    Elle a subit les aléas de l'histoire de hommes

    + + 0:9:08 + La conversion d'un empereur à une influence sur la vie des chrétiens. + La conversion de Louis XIV. La période dite colonialle. + La conséquence, c'est l'essort des missions. + L'église influ sur la société et sur l'histoire. + + +

    Elle constitue à présent une discipline historique reconnue

    +

    Elle tient une place dans la recherche théologique.

    + + Elle n'intéressait personne pendant longtemps. Aujourd'hui, + par le nouvelle essort du religion. + +

    Elle se divise en plusieurs branche

    + + 0:20:00 + On parle du crédo. Comment la doctrine chrétienne s'est construite. + L'histoire de l'église ce n'est pas uniquement celle du protestantisme. C'est aussi celle du catholicisme, de l'église orthodoxe. + L'histoire des institutions. + Aujourd'hui, on y revient (au institution). On arrive de plus en plus + vers un laïcisme de plus en plus intolérant!. + L'église protestant étaient longtemps mefiant des institutions. + +

    L'histoire des mission. un cas à part

    + + 0:23 C'est le domaine du prof. La vision de l'évangélisation + d'outre mers. Le XIX siècle est le grand ère des missions. + Ne pas confondre christianisme et valeurs occidentale. + De plus en plus de pasteurs missionnaires viennent à Paris + pour travailler en France. + + + Une nouvelle ère. On parle maintenant du néo paganisme. + Il est introduit par les nouveaux philosophes. + La France est le pays qui s'interesse le moins à la religion. + Dans nôtre pays, 80% des gens pensent que la religion + n'a aucun influence sur leur vie. + +

    L'Antiquité.

    + + 0:31. Lecture de Gal 4.4. Dieu a envoyé son fils à un moment. + Un temps. Beaucoup de religion sont circulaire. + Le christianisme est linéaire. + +

    L'empire romain.

    +

    Un cadre providentiel pour l'évangélisation

    + + En quoi l'empire est-il un providentiel. En quoi les + sités de l'empire etaient-elle im + Actes 11:26. Le terme de chrétien était péjoratif. Antioche + est la troisème plus grande sité de Rome. + C'est à Antioche qu'on fait la première fois la distinction + entre chrétien et Juif. L'église s'est tout dabord la + communauté locale. + + + + Les campagnes resteront pendant très longtemps des lieux + de paganisme. + + + La question des communication. ce n'est pas toujours facile. + L'empire Romain à fait règner la paix. + A aucun moment de l'hitoire, l'Europe n'a connu une aussi + longue période de paix. + + + L'unité de la culture est aussi un facteur favorable + pour répandre l'évangile. Une unité linguistique. + C'est pour cela que le nouveau Testament est écrit en Grec. + Le chisme en 1500 est peut-être un problème linguistique. + Le Latin, c'est la langue de l'armée, de l'administration + et du droit. + C'est quand même le grec qui va servir à répandre + l'évangile. + + + +

    Un monde ne crise religieuse.

    + + 0:45 Le monde greco romain avait un héritage. Chaque + grande cité avait sa divinité. + Les gens ne crois plus vraiment. Les religions + agrère resteront présente très longtemps. + Ce qui permet de constituer l'empire romain, c'est + le sens civique. + + + Il y a de nouveaux courants. L'empire romain est + une machine à conquérir. Ces hommes entre en + contact avec de nouvelles religions. Des religions + à salut. Des religions liées à de longues initiations. + Des intiations secrètes, isothérique. Tout cela + facine. + Eph 3:9. + Le plan de Dieu est appelé à être révélé publiquement + contrairement aux religions à mystère. + + + La religion oriental facine aujourd'hui nos philosophe. + + + Tout cela débouche vers le syncrétisme. Un mélange + de religion, de courants philosophiques, de spiritualité. + C'est aussi une caractéristique de notre temps. + Le matérialisme n'est pas une solution en soit. + C'est l'ennemi mortel du christianisme. + Col 2:22. Les actes religieux ne servent qu'a la satisfaction + del l'homme. + + + +

    Le problème des persécutions

    + + 0:59. C'est un problème parfois mal compris, parfois + mal interprété. Il y a les persécutions des juifs. + La persécution de l'empire. En se servant des sources, + on voit que c'est un problème compliqué. + Les persécutions on toujours eu un caractère sporadique, + localisé. Il faut distinguer plusieurs causes. + +

    Le regard des autres

    + + Les calomnie populaires. Les chrétiens vont + jouer le rôle de bouc émissaire. + On leur reproche leur athéisme. Parce qu'il ne + participe pas au grand culte populaire. Si on n'allait + pas à ces manifestation, on était mal vue. Ca ne veut + pas dire que les chrétiens étaient athé. + On ne sait pas trop comment se déroulait les cultes. + Pas de culte public. Donc ils étaient suspect. + Dans le domaine des calomnies, il y avaient tout plein + de ragot. La vénération d'un juif crucifié. Le culte + des ânes. + Le christianisme n'est pas considéré comme un délit. + + + (Vendredi soir 2) Les objections des philosophes. + Michèle Onfray. C'est un ennemi acharné des trois religions + monotéiste. Il écrit beaucoup et ses livres se vendent + très bien. Le principale repproche. Le christianisme + empêche tout simplement d'être heureux. + André Compte sponvile. Il explique que le christianisme + est interessant mais qu'on peut très bien vivre une + spiritualité sans Dieu. + + + Ce sont des intellectuels qui ont lu les écritures et en + ont fait une réfutation systhématique. La majeur parti + de leurs ouvrages ont été détruit. Alors, qu'est qu'on reproche + philosophiquement parlent. + Les chrétiens sont des gens ignard et prétentieux. Des gens + crédule, sans connaissance. Incapable de s'élever. + Si ce sont les femmes qui ont le pouvoir, cela sape les valeurs + traditionnel. + Ce christianisme n'est pas conforme à la raison. 1cor 20. + Pour les grecs, le message de la crois est folie. + Qu'est ce qui est fou? L'histoire d'incarnation. L'oeuvre + de la crois est aussi une folie. + La résurection des corps. Ce n'est pas philosophiquement possible. + La grâce est quelque chose de très dificile à accepter. + + + Le jugement des autorités. Le chrétien est un mauvais + citoyen. Il n'accompli pas le devoir civique. + Il y a certaine fonctions qui ne sont pas occupé + par des chrétiens. (carrière militaire par exemple.) + Ils se désintéresse de la carrière politique. + L'empire est menacé. Au fur et à mesure que la + menace grandit, plus les gens se convertissse! + Les jugements des autorités sont de plus en plus + sévères. + + +

    Les grandes persécutions.

    + + Sous Néron. Des chrétiens sont brûlés. Ils servent + de torches vivantes. + Trajan (Pas de fondement juridique). + Les chrétiens ne sont jamais 100% tranquile. Ils sont + toujours aux aguets. Comme dans les pays musulman. + Marc Orel. En 177 à Lyon. + Si les juifs étaient persécutés c'est à cause de l'occupation + romain en judé. + Les romains étaient très tolérant vis-à-vis des religions. + + + Les persécutions du 3ième siècle. Elle est principalement + dû à l'invasion étrangère. + On ne peut pas se protéger des immigrations. + L'empereur Dèce: Des régimes policiers. Donc une organisation + de statistique. Un régime qui tenait des comptes. + Il exigait que tous sacrifie aux dieux. Le certificat + de citoyeneté n'était donné qu'à ceux qui sacrifiait. + L'empereur Déoclicien: (0:14). Un dicateur totalitaire. Tout + est centré sur le culte personnel de l'empereur. Il a + décidé d'en finir avec le christianisme. Il a considéré + que le christianisme mettait en dangé Rome. (303 -304) + Toute une série de lois vont se succéder. + La destruction de tous les livres. + Déchance juridique (Plus d'état civile). + Cette persécution va surtout atteindre la partie + orientale de l'empire. + Arrive au pouvoir Constantin: Il a vaincu son rival. En 313, + à Milan, Constantin publie un édit de tolérance. Les chrétiens + ne seront plus persécutés. Toutes les religions sont mis + sur un pied d'égalité. + + +

    Le triomphe final du christianisme.

    +

    L'église constantinienne

    +

    La religion de Constantin

    + + Création de la ville de constantinople (Istamboule). + +

    Les faveurs impériales

    + + C'est du concret. C'est du réel. On voit le monogramme du Christ qui + apparait sur la monnaie. Une collision entre le pouvoir politique et + le pouvoir religieux. + Cet empereur va dire son mot au concile de nicé. + Il va faire des donnations. Des terres, des batiments. Le christianisme + a maintenant un caractère publique. L'église se constitue un patrimoine + considérable. La lute contre le paganisme est visible à ce siècle. + +

    La lente élimination du paganisme

    + + Les temples aux idoles sont détruits. Julien Laposta (règne de 361-363). + Il était le neuveu de Constantain. C'est celui qui connait le mieux + le christianisme. Il écrit un ouvrage: 'contre les galiléen'. Sa tentative + était vouée à l'échèque. + Théodose: Le dernière empereur du siècle. Un code de loi Théodosien en 392. + Le paganisme est totalement interdit. Les paiens sont persécutés. Le christianisme + va devenir le nouveau ciment de la société romaine. + Le christianisme va s'infiltrer dans toutes les sphères du pouvoir. L'empereur + devient le souverain pontif. + Laïc est un terme tipiquement français. Les étrangés ont beaucoup de mal à comprendre + et accepter ce terme. + +

    La formation du crédo (0:45)

    + + Le crédo, c'est la doctrine. L'essentiel, pour + les premiers chrétiens c'est la proclamation de l'évangile. + Alors comment en est-on venu aux disputes. + +

    Une longue période d'affrontement théologique

    + + La théologie est venue dans ce contexte. Il y a des + questions qui dépasse les simples questions de doctrines. + Il y a des problèmes liés à la personne. Des questions + culturelles. Des questions politiques. Des interventions + militaires. + +

    les grands conciles oeucuméniques

    + + 325: Le concile de nicé. La grande question concerne + la nature de christ. Les hérésies viennent quand on + pousse à l'extrème des raisonnements sans chercher + l'armonie. + Arius en est arrivé à subordonner le fils au Père. + Christ n'est pas de même nature que le Père! + Une pensée qui met en cause la nature Eternel du Christ. + On retrouve dans cette pensée la doctrine des témoins + de jéhova. + + + (Samedi matin 1) + On en est resté à Arius. Il est excomunier en 318. On reprend + le concile de nicé. Dans ce concile, on dira que le fils + est consubstantielle. Jésus est de même substance que Dieu. + Comment expliquer qu'il y a la foi Dieu et l'homme. + A Alexandrie, on met en avant l'unité de Jésus Christ. A cela + s'oppose l'école d'antioche. On met l'accent sur la nature + divine et la nature humaine de Christ. Donc dans les disputes, + il y a souvent des problèmes de doctrine mais aussi des problèmes + de personnes. + Il y a donc deux evêques qui s'affronte. Cyrille et Nestorius. + En 431 il y a le concile d'Ephèse. Les deux evêques vont + s'exclure mutuellement. Finalement, Nestorius est condamné. + C'est à ce concile qu'on abordera le thème de théokos. + C'est l'origine de Marie mère de Dieu. + En 449, il y aura de deuxième concile d'Ephèse. On parlera du + brigandage d'Ephèse. + Les querelles se termine au concile chalcédoine en 451. On revient + à l'idée que Jésus est de deux natures indistincts. + + + Les concéquences de ces disputes (politique, lutte de pouvoir) + va conduire à une église divisée. + (0:15). L'église va trouver en face d'elle l'islam. + Ne nous divisons pas inutilement. L'histoire de l'église + est une histoire tragique et sanglante. + + +

    les premières églises séparées

    + + + + +

    Le moyen-âge

    + + Une période qui dure de 476-1483. Du 11ième au 13ième on + trouve un âge d'or. C'est à cet époque qu'on à contruit + les cathédrales. + (500 - 1000) Dure 5 siècles. + (1000 - 1300) période d'expansion. + +

    Le haut moyen-âge

    +

    Les grandes invasions et leurs conséquences

    +
      +
    • un défèrlement de peuple germaniques
    • +
        +
      • 407: Le Rhin est franchi
      • +
      • 410: Rome est sacagé
      • +
      • 429: Les vandales s'installent en AFN.
      • +
      • 430: St Augustin meurt
      • +
      • 451: Les Huns arrêté en Champagne
      • +
      • 476: Fin de l'empire romain à l'occident. (Romulus - Augustus)
      • +
      • 496: Le baptême de Clovis
      • +
      + + +
    • la fin de l'empire romain d'occident
    • +
    • L'interrogation douloureuse des chrétiens.
    • + + (0:40) Toute la grande administration romaine disparaît. Cela c'est passé très vite. + Clovis arrive à imposer sa domination grâce à sa femme. + Il y a une regression terrible de la civilisation. Comment résister à cette regression. + La fuite. + +
    + + Charlemagne, c'est l'empire carolingien. + +
      +
    • 711: Tarik s'installe au sud de l'espagne. (Mohamed + 632
    • +
    • 732: Charles Martel arrête les arabes à Poitiers.
    • +
    • 751: Pépin le Bref couronné roi par Boniface. Alliance durable entre Rome (le Pape). + On parle d'Etats pontificaux jusqu'en 1870.
    • +
    • 768-814: Charlemagne en 800, il est couronné empereur à Rome.
    • +
    + + + +

    La renaissance carolingienne.

    + + Samedi matin 2. + Le pape actuelle est très concervateur. Il va recerrer les boulons. + +
      +
    • de nouvelles conditions politiques
    • +
    • Charlemagne empereur l'Occident
    • +
    • le renouveau intellectuel. Le latin est exigé dans la litturgie.
    • +
    + + Charlemagne qui a inventé l'école (mais pas du tout.). De lui viendrait aussi l'écriture cursive. (la caroline). + + + différentes invasions. Celle des Maux au sud. Celle des Hongrois à l'Est. a Nord les Huns. + Ce sont les Seigneurs locaux qui vont protéger le peuple. On arrive dans le monde médiéval. + (Samedi matin 2 - 0:17) + +

    L'église dans le monde médiéval

    + + Une échèlle de temps: + +
      +
    • 1000: des peurs de l'an 1000
    • +
    • 1054: le schisme orient - occident. (coupure serbe - croite)
    • +
    • 1054: Léon IX un pape Alsacien. + Il envoie son légat le cardinal Humbert à Constantinople. Michèl Cérulaire. L'échange se passe très mal. + 1965 - Rencontre historique. (Paul VI - Athénagoras)
    • +
    • 1059: Nicolas II précise l'election pontificale. par les cardinaux. (les prélas)
    • +
    • 1073-1085: Grégoire VII
    • +
    • 1077: La rencontre de canossa. Henri IV. empereur du saint empire romain germanique. Le Pape Grégoire.
    • +
    +

    L'affirmation de la papauté.

    + + Les points qui sont abordés durant cette période. + +
      +
    • L'investiture laïque
    • + + C'est Grégoire VII qui veut supprimer l'investiture laïc. + +
    • la querelle avec l'empereur
    • +
    • le triomphe pontifical
    • + + A la fin du XI ième siècle, le pape atteint le sommet + de sa puissance. + +
    +

    L'Eglise monastique

    + 0:45 +
      +
    • le moine chrétien idéal !
    • + + La société est divisé en trois partie. Les moines. + C'est l'homme qui a rennoncé à tout. Il prit pour les + âmes et la protection. La protection est le rôle + des moines. Ils vivent dans leur cellule mais ils sont + très bien informé de ce qui se passe dans le monde. + Ensuite, il y a les hommes d'armes. C'est toujours l'idée + de protection qui est là. + Il en exige de l'argent. + Enfin, les autres. C'est le peuple, les paysans qui travaille + de leur main. Ils travaillent la terre. Ils nourisse à la fois + les moines et les hommes d'armes. Le moine est l'objet + d'une véritable vénération. + +
    • les ermites
    • + + Ils sont encore plus vénéré que les moines. Ils ont + rennoncé à tout. Encore plus que les moines. Ils s'enferment + parfois dans les mûrs de l'église! + +
    • les grands ordres
    • + + Cluny 910. Il est à l'orgine de toute la mission. Il + restaure la règle bénédictine. Cet ordre dépend + directement du pape. Il se répend dans tout l'europe. + au XIIième siècle, il regroupe plus de 80000 moines. + Les reveils sont toujours une réaction à une situation + existante. + -Citeaux en 1098. Un autre odre. Un retour à la pauvreté et + au dépouillement. + 1090 - 1153: saint Bernard, un cistercient. Il est pour + les églises austère. Des éclairages très sobre. Il s'efforce + d'humaniser la société médiéval très violante. + ( paix de Dieu / trève de Dieu ) + +
    +

    De nouvelles aspirations religieuses

    +
      +
    • les ordres mendiants (sauté)
    • +
    • Vaudois et Cathares (sauté)
    • +
    • L'inquisition
    • + + (01:7:0)les hérétiques. 'les Albégeois.' XIII siècle. Ce sont + les dominicains qui sont chargés de lutter contre les + hérétiques. Ils dépendent directement du pape. + Une certaine hypocrisie. Si il retombe ( un relaps) dans + l'hérésie, la centence c'est le feu. C'est l'odre civile + qui se charge d'executer la sentance. + +
    + +

    Le temps des réformes

    + Samedi après midi 1 +
      +
    • Les temps difficiles du XIV et XV ième siècle.
    • +
    • les famines
    • +
    • les guerres. Elle dure de 1337...
    • +
    • les pestes. Une maladie extrèment contagieuse. La seule solution. Fuire, où?
    • +
    • le grand schisme d'occident. C'est le thème de la papoté.
    • +
    • 1309-1378: Tous les papes séjourne à Avignon.
    • +
    • 1369-1384: John Wiclif. C'est universitaire. Il considère que seul la bible fait autorité et pas le pape. Wiclif traduit la Bible. Il condamne + un grand nombre de dogme catholique. Il commence une + oeuvre de contestation.
    • +
    • 1369- 1425:Jean Huss connait les oeuvres de Wiclif. Il critique + l'autorité du pape. Il se rend au concile de Constance. + Il est comdamné comme hérétique et fut brûlé. Cela entraînera + un soulèvement en bohème. Un mouvement de courant hussite. +
    • +
    • 1378-1415: Une période où il y avait trois papes.
    • +
    • 1415: Martin V. Un pape qui impose ses vue.
    • +
    +

    des causes complexes

    +
      +
    • les malheurs du temps
    • +
    • la question du salut / L'église est-elle fiable? / sur quelles bases peut-on établir sa foi? Qui va apporter une réponse?
    • +
    • humanisme et imprimerie
    • + + Elle répond en parti à cette question par l'impression de + la Bible. La diffusion de la parole de Dieu est le moteur + d'un réveil. + Cette Bible imprimé ne va pas toucher le peuple mais + de gens aisés qui savent lire. + + + On s'interesse au langues bibliques. Le Grec et l'Hebreux. + La traduction est-elle correct ? + +
    +

    Le cas de Luther

    + + 1483-1546. Il essaye de faire ses devoirs de moine. Plus + il fait ses dévotions, plus il est inquièt. + Un angoissé perpetuel avec une forte volonté. + +
      +
    • la découverte de la miséricorde. Il but sur l'epître aux Romains. + Il découvre que c'est Christ qui nous justifie. Il découvre + que les oeuvres de dévotion ne servent à rien. + Il s'insurge contre les indulgences. + 1521: Il a été excommunié et mis au ban de l'Empire! +
    • +
    • la rupture avec Rome
    • +
    • l'établissement du luthéranisme
    • +
    +

    Les autres grands mouvements

    +
      +
    • Zwingli à Zürich
    • + + C'est un homme qui va beaucoup plus loin + que Luther. Il considère que dans la scène il ne faut + pas cherché plus loin qu'un simple symbole. + Ils sont très associé avec les courants politiques + et civile. + Il y a la réforme radicale. Elle prône une rupture total + entre l'église les politiques. + +
    • Calvin et la réforme à Genève
    • + + (0:39). C'est un intellectuel aussi. Il a fait des études + de droit. Très grande clarté de pensée et de rigueur. + Il va réintroduire une certain cléricalisme dans + le désordre des églises réformé. + ( Un pasteur - enseignement / Un collège d'ancien 12 - dicipline qui surveille la moral. ) + Calvin autorise le prèt à interêt. + Genève deviendra une sorte de théocratie. + Il y aura des conflits sur le thème des sacrements. Ils ont + parfois des réactions qui nous surprennent! + Calvin accord une présence spirituel dans le pain et le vain! + Swigly non. + +
    • la réforme anglicane
    • +
    +

    La réaction catholique

    +
      +
    • le concile de Trente. Les réformes de ce concile touchent tous + les domaines de la vie de l'église. Un esprit anti protestantisme + clairement exprimé. Le latin comme langue de la Bible est réafirmé + et on brûle les Bible en langue vulgaire. + La formation des prêtres. Une organisation en séminaire pour + former les prêtres. + Le fer de lance c'est l'institution des Jésuites. +
    • +
    • les Jésuites
    • + + 1491-1556: Ignace de Loyala. Une carrière militaire + contrarié! En 1540, il va créer sa propre companie + de Jésus qui ne dépend que directement du pape. + Ils se spécialisent dans la reconquête. Une formation + d'un Jésuite duraient au moins 10ans. + Ils vont mettre l'accent sur l'éducation. Il crée + les collèges. Ils siblent la haute noblesse. Ils s'imspire + du modèle protestant. + Il faut s'incrire au moins 10ans à l'avance. Ils vont + être les confesseurs des grands de ce monde. De ceux + qui ont de grandes responsabilités. + +
    • l'Europe des confessions religieuses
    • +
    + + +

    L'Epoque contemporaine

    +

    Le renouveau spirituel au 18ième siècle

    +

    le courant philosophique

    +
      +
    • le temps des lumières
    • + + Un roi, une loi un foi. Cette règle passe de moins en moins + bien. C'est de là que vient se courant de lumière. + - Montesquieux, - Voltaire (déiste), - Didero, - d'Alambert. + Ils font appele à ce qu'on appele la Raison. C'est ce qui + éclaire! + - Rousseau. C'est qui va achever l'oeuvre de l'ère des lumière. + Il dit que l'homme naturel est bon. La critique et la lutte + face à l'église catholique. On reproche à l'église le dogme. + Il n'est pas conforme à la raison. On reproche à l'église son + intolérance. L'église est le plus fidèle soutient de la monarchie! + La france va connaître une véritable déchristianisation. + +
    • le triomphe de la Raison
    • +
    • le choc révolutionnaire
    • +
    +

    Les réactions spirituelles

    + sauté +

    le "revivalisme" francophone

    + sauté + +

    Le réveil en France au XIX siècle

    +

    Les origines du mouvement

    +
      +
    • Un réveil qui trouve sont origine par la venue de missionnaire + étrangés. Le calviniste sort d'une longue période + de persécution. + Il faut attendre Napoléon qui signe un concorda + avec le pape. + Napoléon voulait controler le pays. Il crée des + structures de contrôle. Les protestants pouront + avoir des pasteurs pays par l'état. Donc ils pouront + être controlé. + La formation des pasteurs est capitale. + L'oratoire du Louvre est devenu une église protestante. +
    • +
    • Le conflit théologique. Il y aura deux tendance. La première + qu'on peut qualifier de libérale. Il s'inspire de Rousseau. + L'idée de l'homme pécheur, on en trouve aucune trace. + On est loin de l'enseignement biblique. Il n'y a plus + de vie dans l'enseignement. Il ne reste qu'un discour + philosophique. + L'autre tendance, c'est celle qui est orthodoxe. Il + est enseigné par les pasteurs du reveil. + Ce ne sont pas des savants ni des dogmatitiens. + Mais tous sont de forte personnalité. Des gens + engagé, consacré entièrement. D'une énergie indomptable. + Ils vont parcourir la France. De Poitou Charante - les + Cévènes - Lyon. Tout ce qui est éloigné de Paris. + Henri Pit. - Alexandre Vinet - Frédéric Monod. Les frères + Morave. + 3 courants. Un courant Suisse - Un courant anglais (méthodiste) - Un courant des frères Moraves. + Ce reveil, c'est la réforme de la réforme. Ils sont allés + au delà des réformateurs. Les reformateurs ont mis + l'action sur le sacerdoce universel. Le sens de l'évangélisation. L'évangélisation va surtout concerner le milieu protestant. + Il met l'accent sur la conversion. Une expérience capital + qui doit être réel. + Le converti, c'est un homme nouveau. Il devient un témoin vivant, il se sait sauvé. +
    • +
    • un contexte historique particulier. + +
    • +
    + +

    Une nouvelle spiritualité

    +
      +
    • un désir d'action et d'évangélisation +
    • +
    • une atmosphère religieuse romantique. La façon d'annoncer + les choses est différente mais le contenu reste + le même. Nous devons être capable de s'adresser + a nôtre public. + Les jeunes sont très doué pour l'animation mais n'ont + pas forcement beaucoup de connaissance biblique. Cela + peut être problématique pour l'avenir. +
    • +
    • le "converti" un homme nouveau. +
    • +
    + +

    La restructuration du protestantisme français.

    + + +

    L'eglise au 20 siècle.

    +

    Face au défi de la laïcisation

    + + On parle de cécularisation. Plus en plus de choses échappent aux religieux. + Les églises sont à la charge des communes. La laïcisation à des concéquences + assez dramatique. + +
      +
    • le pentecôtisme Les origines du courant pentecôtiste apparaît aux Etats-Unis en 1901. + C'est une réponse des couches populaires. Une réponse au débats très intellectuel, théorique + sur les créationnistes... L'origine vient du Cansas. Il se caractérise par des manifestions + spirituelles extraordinaire. L'expérience et le témoignage est plus importante que l'étude + biblique et la prédication. + Difusion en Angleterre. En 70, diffusion dans les milieux protestant et catholique. + Les causes et les conséquences : Ils ont un impacte sur les masses populaires indiférentes. + Comment, pourquoi! Ils sont en prise avec les gens. (Ils sont actif! ils se déplacent. Les églises + traditionnelles ne bougent pas !) + Les pasteurs pentecotiste sont des meneurs d'hommes. Toutes les catégories sociales sont présentes + dans ces églises. +
    • +
    • le fondamentalisme
    • +
    • le christianisme social: L'armée du salut. Wiliam Bous
    • +
    +

    L'oeucumenisme

    +
      +
    • les origines
    • +
    • vers une unité d'action
    • +
    • les difficultés actuelles
    • +
    + +

    Un nouveau contexte spirituel

    +
      +
    • le concile de Vatican II
    • +
    • la crise de 1968
    • +
    • une civilisation post chrétienne
    • +
    + +

    Conclusion

    + + Vers un retour du fait religieux + Crise morale, crise des consciences. C'est à nous chrétien + de répondre a ces crises. + + + Le principal défit, c'est l'indiférence. + + +
    + + + +
    diff --git a/formapre/m5c4da.xml b/formapre/m5c4da.xml new file mode 100644 index 0000000..291be71 --- /dev/null +++ b/formapre/m5c4da.xml @@ -0,0 +1,354 @@ + + + + + EBERSOLD André + Devoir A L'histoire de l'Eglise + $Id: m5c4da.xml,v 1.11 2008/03/06 18:11:34 aebersol Exp $ + + Pour chacune des dates, préciser avec l'aide de l'ouvrage de R. Linder: + L'évènement (signification - acteurs - déroulement des faits), le contexte + (politique - social - religieux de la période considérée), + l'importance dans l'immédiat et pour l'avenir. +
      +
    • L'Eglise primitive: 380 - 311 - 405.
    • +
    • Expansion et conversions: 496.
    • +
    • Le moyen âge: 988 - 1215 - 1270 - 1303.
    • +
    • La réforme protestante: 1517 - 1572 - 1612 - 1685.
    • +
    • L'ère de la révolution: 1776 - 1790 - 1793.
    • +
    • L'époque moderne : 1905 - 1934 - 1917 à 1990 - 1974 - 1958 à 1963.
    • +
    +
    + + Devoir A L'histoire de l'Eglise +

    L'église primitive

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Dateévènementcontexteimportance
    311 + L'évêque Eusèbe de Césarée rédigea son Histoire ecclésiastique. + C'était le premier récit des progrès de l'évangile depuis + le livre des Actes. + + Dans un contexte de persécution, l'Eglise s'est implantée dans + tout l'empire Romain. + + Cette date marque la fin de l'Histoire des premières églises. + La fin également de la persécution. +
    380 + L'empereur chrétien Théodose (379 - 395) reconnaît + la position largement majoritaire du christianisme. + + Le christianisme s'était répandu dans tout le monde + gréco-romain. + + L'empereur Théodose fit du christianisme la seule religion officielle de l'Etat. +
    405c'est la naissance de la Vulgate. Une traduction complète de la Bible en Latin par + Jérôme. Ainsi, l'église possédait la Bible écrite dans la langue des + fidèles. Elle servira de référence pour l'église médiévale. + C'est une période ou l'église se développe et se hiérarchise. La Vulgate, livre de référence permet de lutter contre les + hérésies.
    +
    +

    Expansion et conversions

    + + + + + + + + + + + + + + +
    Dateévènementcontexteimportance
    496Conversion de Clovis le Franc. Des missionnaires convertissaient + leurs chefs qui à leur tour exigeaient la conversion de leur sujet. + Clovis a attribué sa victoire à l'intervention du Christ. + C'est période trouble ou l'église consacre une grande partie + de son temps à convertir les envahisseurs venus de l'Est.Clovis entreprit l'unification de ce qui deviendra par la suite le royaume + de France. +
    +
    +

    Le moyen âge

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Dateévènementcontexteimportance
    988Le prince Vladimir de Kiev se convertit. + C'est par l'intermédiaire d'un missionnaire + envoyé par l'Eglise dans les + pays de l'Est que cette conversion a eut lieu. + Au dixième siècle, le christianisme occidental s'affaiblit et s'éstiole. + Mais en même temps, un réveil spirituel commençe par la fondation + + du monastère de Cluny.L'évangile se répand dans un nouveau pays, la Russie. C'est la naissance + de l'église orthodoxe.
    1215Le pape Innocent III convoque le quatrième concile de Latran, le plus + important rassemblement oecuménique du Moyen-Age. + C'est le sommet de la puissance papale. + + Ce concile autorise les croisades + contre l'islam et les hérétiques. +
    1270 + Fin des croisades. + Les croisades étaient un désastre. Cette période de croisades laisse derrière elle un malaise entre + chrétiens et musulmans qui subsiste jusqu'à nos jours.
    1303Confrontation entre le pape Bonifice VIII et le roi de France + Philippe IV. La question était de savoir à qui le peuple de Dieu + devait sa loyauté ultime.Le roi de France qui exerce tout le pouvoir sur le peuple + chrétien et non chrétien. C'est également le moment où + la rupture entre l'église d'Orient et l'église d'Occident + est totalement consumée.
    +
    +

    La réforme protestante

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Dateévènementcontexteimportance
    1517 + Martin Luther affiche ses 95 thèses sur la porte de l'église du + château de Wittenberg en vue d'un débat public. + L'imprimerie a joué un rôle essentiel dans la réforme. Elle + a permise la diffusion rapide des nouvelles. +
    1572C'est l'année du massacre de la St Barthélémy. Cà + se passe le 23 août. Le jour du mariage du principal + chef protestant Henri + de Navarre avec la soeur du roi (Charles IX). + On reste toujours dans un contexte de persécution. + Jusqu'an 1598 où la paix entre catholiques + et protestants fut instaurée par l'édit de Nantes. + Cet Edit garantissait la liberté de culte + aux protestants.Beaucoup de protestants sont morts à ce moment là. + On estime à 100000 personnes le nombre + de tués en 3 jours!. Le beau frère du roi n'échappa + à la mort que par une prompte abjuration. + Le mouvement protestant fut considérablement affaiblit. + +
    1612Création de la première église baptiste anglaise.
    1685Le roi Louis XIV signe à Fontainebleau un édit qui + annule celui de Nantes. Le roi catholique envoya les draguons pour convaincre les protestants + à épouser la foi catholique. Les pasteurs avaient quinze jours pour + quitter le pays. Le protestantisme n'avait plus sa place en France. + L'enseignement du catholicisme devint obligatoire.La persécution contre les protestants a repris.
    +
    +

    L'ère de la révolution

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Dateévènementcontexteimportance
    1776Déclaration des droits de l'homme aux Etats-Unis.Dans un contexte de révolution et de réveil spirituel aux Etats-Unis, + le peuple américain se construit. +
    1790La déclaration des droits de l'homme est votée en août 1789. Dès le début de l'année 1790, + celle-ci interdit les voeux monastiquesDans le cadre de la révolution française en 1789, l'Assemblée Nationale vota + la déclaration des droits de l'homme.C'est la fin des monastères.
    1793 +
      +
    • C'est l'exécution du roi Louis XVI.
    • +
    • Période de la Terreur où la haine du christianisme avait atteint le zénith.
    • +
    • William Carey convainct ses frères dans la foi de constituer la Société missionnaire + baptiste.
    • +
    +
    La vie religieuse fut troublée en France pendant une dizaine d'année, surtout à cause de la haine + du christianisme. + L'exécution du roi avait heurté profondément la conscience de nombreux + croyants.
    +
    +

    L'époque moderne

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Dateévènementcontexteimportance
    1905 +
      +
    • Naissance du Pentecôtisme aux Etats-Unis.
    • +
    • En France, Aristide Briand fait promulguer la loi de séparation.
    • +
    +
    + Période de crise entre l'église et l'Etat. Emile Combes se servait + de la loi de 1901 pour combattre le clergé. + +
      +
    • Le Pentecôtisme est devenu l'une des principales forces du christianisme mondial.
    • +
    • Instauration de la liberté de conscience et suppression du budget des cultes.
    • +
    +
    1934Le linguiste Cameron Townsend fonda la Société Wycliffe des traducteurs de la Bible.Elle deviendra devenir l'organisation missionnaire protestante la plus importante au monde.
    1917 à 1990Persécution des chrétiens en Russie sous le régime communiste. +
    1974Le congrès de Lausanne évoque l'évangélisation du monde.Un nouvel essor du christianisme dans le monde.
    1958 à 1963Vatican II avec le pape Jean XXIIIDe nombreuses réformes dans le milieu catholique qui ont permis + le rapprochement entre les chrétiens et les religions d'autres confessions. + Il a aussi réduit les tensions avec les protestants. + Ce travail se poursuit encore aujourd'hui. +
    +
    + + + + +
    + + +
    diff --git a/formapre/m5c4db.xml b/formapre/m5c4db.xml new file mode 100644 index 0000000..3fbb986 --- /dev/null +++ b/formapre/m5c4db.xml @@ -0,0 +1,184 @@ + + + + + EBERSOLD André + Devoir B L'histoire de l'Eglise + $Id: m5c4db.xml,v 1.3 2008/03/06 18:11:34 aebersol Exp $ + + Présenter la vie, l'oeuvre et l'importance d'un personnage: Au choix: + un Réfomateur (ou) un missionnaire (ou) un acteur significatif de l'église + contemporaine. + + + Devoir B L'histoire de l'Eglise +

    La vie de Jean Calvin

    + + Jean Calvin est né le 10 juillet 1509 à Noyon en Picardie. Il est le fils + d'une mère catholique dévote et d'un père autoritaire. + Ce dernier travailait en tant que procurreur ecclésiastique. + + + A douze ans, il bénificie des finances de l'église pour suivre des études + de théologie. Ceci grâce à son cadre familial très religieux et proche + des dirigeants de l'église. + + + + A quatorze an, il va compléter ses études ecclésiastiques au collège + de la Marche à Paris. Là-bas, il a un remarquable professeur, + le Normand Mathurin Cordier. Il deviendra plus tard son collaborateur + à Genève. + Peu de temps après, il va rejoindre le célèbre collège de Montaigu. + + + + Très rapidement, son père va décider de la vouer au études de + droits. Ainsi, après une année d'études à l'université d'Orléans + (1528-1529) il obient un license de droit. Il poursuit ses études + à l'université de Bourge (1529-1531). Il est en contac avec un + grand juriste allemand, Melchior Wolmar. Ce dernier accroît + considérablement les connaissances de nôtre jeune réformateur. + + + La mort de son père Gérard Cauvin, brouillé avec l'église et + excommunié, permet au jeune homme un nouveau changement de front: + Il va faire des études de lettres et de théologie au collège + parisien de Fortet et au cours, tout nouveaux, des "lecteurs royaux". + + + Il publie sa première oeuvre, commentaire d'humaniste, en latin, + du De clementia de Sénèque (1532). Il semble que c'est à + cette époque, qu'il se donne pleinement aux idées de la réforme. + Probablement sous l'influance de son cousin Olivétan, dont il + renvoit et préface la traduction de la Bible. Il parlera d'ailleurs + peu de ce changement spirituel. + + + Il emploira simplement le terme de conversio subita dans sa préface + aux Commentaires sur le livre des psaumes(1557). Ce terme sera interprété + plus tard dans le sens de "conversion subie" pour certain ou par celui de "conversion + subite". Dans tous les cas, la devise de Calvin sera: "une fois la vérité reconnue, + la suivre promptement et sincèrement. Une attitude qui marquera l'église sortie de lui. + + + Il effectue alors un certain nombre de voyages. Il est chassé à plusieurs reprises + après des discours publiques qui vont dans le sens de la réforme. Finalement, il + est chassé de la France en 1535 après la célèbre affaire des placards. C'est à + ce moment là que commence réelement son oeuvre et son histoire. + + + + Il se rend à Bâle pour mettre au point et faire imprimer la première édition de + son Institution chrétienne, qui y paraît, en latin, en 1536. Après quoi, il + se rend en Italie. Il ne peut y séjourné longtemps à cause de l'intolérance duc. + Il compte se rendre à Strasbourg mais il est retenu par le réformateur Farel. + Celui-ci lui demande de l'aider à organiser l'église évangélique à Genève. + + + Il est tout d'abord simple "lecteur" de l'écriture, mais très vite il s'impose par + la part importante qu'il prend à des grandes assemblées religieuses qui sont tenues + ens Suisse. Il rédige pour Genève, dès 1537, une Discipline, un Catéchisme, + une Confession de foi. Cependant, il s'oppose aux autorités qui veulent dicter + des lois à l'église. Surtout celles qui concernent l'admission des fidèles à la + scène et la liturgie. + Ce qui lui vaut ainsi que Farel d'être chassé de Genève dès 1538. + + + Après cette aventure, il se rend finalement à Strasbourg ou il va mené une vie active + et paisible de 1538 à 1541. C'est au cours de cette période qu'il se marie et qu'il organise + son église, développe son oeuvre théologique et défend les intérêts généraux de là Réforme. + + + + Suite à des disputes dans l'église et la ville de Genève, il retourne en Suisse. Il remet + de l'ordre dans la ville de Genève et l'organise a peu + près selon ces désirs en faisant adopter des "Ordonnances ecclésiatiques." C'est dans + cette même ville qu'il va mourir le 27 mai 1564. Il laissera derrière lui ses écrits et une + ville témoin de son passage. + +

    l'oeuvre de Jean Calvin

    +

    L'Institution chrétienne

    + + Au delà d'un exposé clair des trois principaux aspects de la doctrine protestante + (la nécessité de la connaissance de l'écriture, la corruption totale de la nature humaine, + la prédestination - Cf. Annexes), Calvin appose ce qui restera sa marque de fabrique, + son empreinte : la collision du politique et du religieux, une problématique qu'il résout + en faisant le voeu d'une Église protestante ayant sa juridiction et sa législation propres, + indépendantes du pouvoir politique. Texte primordial du mouvement réformiste initié par Luther, + L'institution Chrétienne en est aussi le dépassement, + l'expression d'un nouveau courant que l'on nommera très tôt "calvinisme". + + + + L'impact de l'oeuvre suscite l'appel de Guillaume Farel, réformiste en bisbille avec l'ordre au sein de la ville de Genève. + De 1536 à 1538, Calvin fait l'expérience concrète des frictions du politique et du religieux, + tente de soumettre les magistrats aux pasteurs. Il se révèle surtout un redoutable tribun de la Parole protestante, + un prédicateur de trente ans qui menace par une aisance de vieux briscard des luttes rhétoriques + les prérogatives officielles de la magistrature en place. + Expulsé, Calvin se réfugie de nouveau à Bâle, se convainc de la nécessité de mettre le dépositaire de la Foi + dans la cité afin que la Cité soit toute entière dans la Foi. Cette orientation, Calvin a la possibilité de l'expérimenter + chez Bucer à Strasbourg ou il va diriger la communauté des Français réformés persécutés. + Sa pensée mûrit définitivement à travers plusieurs polémiques auxquelles il prend part. + Il riposte en ecclésiastique avisé au cardinal Sadolet qui cherche à faire revenir dans le giron de l'Église + soumise au pape les Genevois rebelles. Les impacts de la joute offrent au proscrit sa revanche : + en septembre 1541, Genève rappelle Calvin. Huit années d'errances forcées s'achèvent... + + + +

    Calvin et les procès en sorcellerie

    + + La chasse au sorcières, qui avait déjà un long passé, eut lieu tant + dans le pays catholiques que dans les pays protestants de l'Europe + centrale. Les réformateurs Martin Luther et Jean Calvin recommandaient + la chasse aux sorcières et leur exécution. Jean Calvin se reposait sur + l'ancien testament Exode 22,17 "tu n'accepteras pas de laisser vivre + une sorcière" pour dire que Dieu lui-même voulait la peine de mort + pour les sorcières. + +

    La réforme de Genève

    + + L'organisation de la ville de Genève en théocratie représente est certainement ce qu'on peut + appeler + l'oeuvre de sa vie. Il s'appuya sur l'ancien testemant pour cela. Le nouveau testament + qui ouvre la voie à la charité chrétienne et à la non résistance ne répondait pas à son + besoin pour l'organisation de la ville. + + +

    En quoi a-t-il marqué son temps

    + + Comme pour Moïse, on remarquera que Jean Calvin a été préparé par Dieu pour l'oeuvre qu'il + devait accomplir. En effet, sa formation juridique et théologique ont été des atouts indiscutables + dans la réalisation de son oeuvre. En particulier pour la rédaction des textes qui constituent + le fondement de la réforme. +
      +
    • Institution de la religion chrétienne, 1535
    • +
    • Traité de la cène, 1540
    • +
    • Traité des reliues, 1543
    • +
    • Traité des scandales, 1550
    • +
    +
    +

    Le Pape de Genève

    + + Comme nous l'avons déjà cité précédement, Calvin participe à la mise + en place d'une république calviniste dans la ville de Genève. Son + système politique n'est pas en pleine rupture avec le système de gouvernement + de l'époque. Pour ceux qui s'opposent à la Réforme, il va jusqu'à + la condamnation à l'exile et même plus loins, à la peine de mort. + C'est son rigorisme qui le rend populaire et sa dureté qui lui vaudra + le surnon de pape de Genève. + + + Il aura surtout marqué son temps par son zèle, sa rigueur. Une rigueur + qu'il aura parfois poussé jusqu'au fanatisme et une impatience intolérante. + Puis, la transformation de fond en comble de l'église et l'état de Genève. + Il en fit pour ainsi dire la Rome des protestants. + +
    + + +
    diff --git a/formapre/m5c5_cours.xml b/formapre/m5c5_cours.xml new file mode 100644 index 0000000..f8adde3 --- /dev/null +++ b/formapre/m5c5_cours.xml @@ -0,0 +1,544 @@ + + + + + Révélation et ecriture + $Date: 2008/03/06 18:11:34 $ + $Id: m5c5_cours.xml,v 1.3 2008/03/06 18:11:34 aebersol Exp $ + + Révélation et ecriture +

    (0:20) Introduction.

    + + Le travail de la doctrine. Une personne qui se balade dans la nature et qui classe. Comme un botaniste. Si on veut classer les choses, il faut classer les choses, les notions. + C’est l’exposé scientifique de la foi chrétienne dans son armonie. La vérité révélée dans son ordre et son unité. + On va faire de la bibliologie : C’est tout ce qui touche. + ( 0:30) 4 domaines de théologie. La théologie pratique, théologie biblique (exégèse). + La théologie systématique. + On parle souvent de dogmatique. Les ordonnances, des décrets. + Luc 2 :1 (Est un dogme) + Heb 11 :23 / Col 2 :14 / Eph 2 :15. Act 16. + (0 :38) histoire de l’église + + + +

    Les différentes formes de théologie

    +

    La thélogie positive

    + + Faire une synthèse. + + +

    La thélogie spéculative

    + + 0:49 - La thélogie spéculative. + Elle regarde l'articulation entre les différents enseignements. + L'expiation. + Position arméniènne au plutôt une position Calviniste avec + la prédéstination. + + + Il faut être vigilant quand à nos schémas d'interprétation. + Les protestants n'ont pas de pape, mais chacun est son propre + pape. + + + + La théologie, c'est la science qui étudie toutes les vérités + par rapport à Dieu. + Connaître le Dieu vivant. + + +

    La théologie systématique

    + + permet de connaître et réfuter les hérésies. + +

    La légétimité de la thélogie.

    + + Jésus à fait de la théologie. Il a fait de la prédication. + Avec la samaritaine, c'est de la théologie. + Le dialogue sur le divorce. + Les saducéens. Un échange théologique sur la résurection. + + + Héb : Présentation dogmatique sur le salut. Donc + le travail théologique es + + + 1 Cor 8:1 est la source + + + (0:0 vendredi soir 2) + L'ignorance n'est pas une preuve de spiritualité non plus. + + +

    Les concéquences de nos choix doctrinaux

    + + Exemple: celui des maniquéin. Une vision du monde très dualiste. + La matière c'est mal; l'esprit c'est bien. + Exemple: Les puritain, le dimanche, c'est comme le sabat, il ne + faut pas travailler. + + La négation de la justification de la justification par la foi. + Cela a amener Luther a un acétisme sévère. + + + Louis Gaussen. Il a écrit un cours de doctrine. Les conditions + requise pour faire de la bonne doctrine. + + +

    (0:13) La révélation

    + + + Des initiatives prisent volontairement par Dieu pour se faire + connaître de façon intelligible à l'homme. + L'homme reçoit la révélation. Il ne peut pas la fabriquer + lui-même. ( Jn 1:18 personne n'a jamais vu Dieu. ). + Héb 1.1 + +

    (0:15) Pourquoi la révélation.

    + + Le théisme. Croire qu'il y a un Dieu. +
      +
    • Catholisme
    • +
    • Islam
    • +
    • Les juifs
    • +
    • Protestant
    • +
    • Les mormons.
    • +
    +
    + + Polithéisme. Toutes les religions Grec et Romaine. + Les religions premières étaient politésite ! + Pourtant Adam et Eve n'étaient pas politéiste. + + + Agnostique: Ils ne peuvent pas prouver que Dieu existe. + + + Athéisme. + + + Déisme: Dieu n'intervient pas personnelement dans le monde. + On croit quand même dans un Dieu créateur. + + + Panthésime: Dieu est dans tout. + + + + + On ne peut pas dire que tous les théiste soit sauvé ! + La preuve cosmologique. Le monde existe or, il n'y a pas + d'effet sans cause. + Mais cette preuve cosmologuite n'est pas complet. + + + (0:24) L'ordre de la création. Une preuve de l'existance + de l'horlogé. (Dans Rom 1) Paul utilise cet argument pour + prouver la culpabilité des hommes! + + + La preuve morale. Dans la conscience des hommes, il y a une + conscience du bien et du mal. Mais est-ce de Dieu que + cela vient ? + + + Psaumes 14. L'insensé dit en sont coeur il n'y a point de Dieu. + C'est soit disant une contradiction en soit. Puisqu'on + utilise le concepte de quelquechose qui existe pour + dire qu'il n'existe pas. + + + + Théologie Naturel. Ce qu'on trouve dans les peuplades, c'est déjà + ce qui va permettre d'aller plus loin pour assoire la révélation + de Christ. + L'incompréhensibilité de Dieu. Rom 11:33. Job 11.7-8. Math 16.17 + 1 Cor 2:11 + + +

    (0:39) Révélation générale

    + + + Providence. L'oeuvre par laquelle Dieu soutient / maintient la création. + L'action de Dieu révèle sa puissance et sa providence. + La présence de Dieu se révèle au travers de la création. + + + (0:47) La conséquence de la révélation générale. + Les catholiques répondent par la positive. Les + protestant par la négative. ( Rom 1:18) Paul utilise + la révélation générale pour prouver la culpabilité de l'homme. + Nous avons la conscience que Dieu existe. + Eph 4.17-18. + + + (0:50) Il faut aussi réussir à décoder ce langage qui n'est pas + verbale. + Donc, la révélation générale est importante, mais elle n'est + pas suffisante pour ammener quelqu'un à la foi. + + +

    La révélation spéciale (0:52)

    + + + C'est une révélation spéciale à une groupe de personnes. + Il y a différente manière de ce manifester. Par exemple + Moïse le buisson ardent. + Parfois, c'est une révélation verbable. + Heb 1.1-2 Dieu nous parle de bien des manières. + +

    Qu'est-ce que Dieu révèle

    + + La trinité, les attributs de Dieu. Le salut du pécheur + repentant. La Bible est la révélation la plus complète. + On peut avoir accès a cet révélation sans pour autant + y croire ! + Naturellement on a pas accès a la compréhension de la révélation. + Saul de tarse conaissait les écritures mais pourtant, il ne les + comprend pas forcement. + + + La révélation spétiale ne suffit pas non plus pour venir a Christ. + Il faut l'intervention de l'Esprit de Dieu dans le coeur + des personnes qui ont accès a cette révélation. + Jn 5:19. Jn 14.6-9 Jn 5:33. + Christ nous révèle le Père. + +

    Samedi matin 1

    + + Rappel des éléments vus vendredi soir. +
      +
    • La connaissance au coeur de la foi
    • +
    • La dogmatique et la vie quotidienne
    • +
    • Les conditions pour faire de la théologie
    • +
    • Le coeur fait le théologien
    • +
    + La révélation ... +
      +
    • Jn 1.18 Personne n'a jamais vu Dieu
    • +
    • La révélation pourquoi (différentes approches du divin)
    • +
    • L'histoire des religions ...
    • +
    • L'incompréhensibilité de Dieu
    • +
    • Raison insuffisante pour connaître Dieu
    • +
    +
    + +

    La dictrine de l'écriture (0:29)

    + + + Le mot Bible qui veut dire bibliothèque. Il désigne a la fois + le support d'un livre que le livre lui-même. + Les phéniciens ce sont surtout spécialisés dans le Papirus. + On va parler du canon des écritures. C'est la liste normative + des livres qui constitue la Bible. + L'Ecriture, c'est: +
      +
    • Dieu parlant dans l'homme
    • +
    • Dieu parlant par l'homme
    • +
    • Dieu parlant comme l'homme
    • +
    • Dieu parlant pour l'homme.
    • +
    +
    + +

    Auteurs et périodes (0:40)

    +
      +
    • 2000 av JC pour Abraham
    • +
    • 1500 av JC pour Moïse
    • +
    • 1000 av JC pour David
    • +
    • 400 av JC pour Malachie
    • +
    • < 100 ap JC pour le NT
    • +
    + + Dieu va utiliser ce qui existe pour s'exprimer. Le forme + des traités d'alliance est flagrante. + + +

    Analogie 0:46

    +
      +
    • 1 Co 3;2,9.7, 1 Pi 2.2 : Le lait la nouriture solide
    • +
    • Ps 119.103 Le miel
    • +
    • Mc 4.14
    • +
    • Ps 119.105 : lumière
    • +
    • Mat 4.4 : le paim
    • +
    • Hb 4.12
    • +
    • Jer 23.29
    • +
    • Jcq 1.23
    • +
    • Ps 12.7
    • +
    • Mt 7.24
    • +
    • Ps 147.18
    • +
    • Jc : le miroir
    • +
    +

    Chercher l'erreur (0:58)

    + + Ancien testament 46 livres. Nouveau testament 27 livre. + Total 66 livres! + La différence se fait au niveau de l'Ancien Testament. + + +

    TANAK: Bible des Juifs

    + + + Tanak est un acronyme pour: Torah + Neviim + Ketouvim. +
      +
    • Torah : le Pentateuque, livre de la loi
    • +
    • Neviim : les Prophétes, Prophètes antérieurs / Prophètes postérieurs
    • +
    • Ketouvim : les Ecrits, Ecrits antérieurs / Les meguilloth / Ecrits postérieurs
    • +
    +
    +

    Nouveau Testament. Samedi matin 2

    + + 27 livres. + Les évangiles 4 livres. + Historique : 1 livres Actes des apôtres. + Enseignement: 21 livres. +
      +
    • Epitres evangéliques ou Grandes Epîtres
    • +
    • Epitres de captivité. Ephésiens, Philipiens, Colossiens
    • +
    • Epitres pastorales
    • +
    • Epitres anonyme
    • +
    • Epîtres Catholiques. Jacques 1 & 2 Pierre
    • +
    +
    + +

    Les Apocryphes (0:6)

    + + veut dire voilée, marteau + + + + + + + + + + + + + + + + +
    1 Maccabées +
    + 2 Maccabées +
    + Tobit +
    + Judith +
    + Additions à Esther (Ch 10.4-16:24) +
    + Additions à Daniel,cantique d'Azorias et prière des trois + jeunes gens dans la fournaise.(3:24-90). +
    + Additions à Daniel, l'histoire de Suzanne (Ch 13) +
    + Additions à Daniel, Bel et le Dragon (Ch 14) +
    + Baruch +
    + La lettre à Jérémie +
    + L'écclésiastique = siriacide = Sagesse de Jésus Ben Sirach +
    + la Sagesse de Salomon +
    + 12 Apocryphes. +
    +
    + + (0:19) 1 & 2 Maccabées sont deux livres d'histoire + très précieux. 1 Macc 1:25 raconte une événement historique + qui ne se trouve pas dans la Bible. + (0:21) Tobit et Judith. Tobit le père, Judith le fils. + (0:22) Judith, un livre de stratégie militaire. + L'histoire de Susanne. L'aditif à Daniel (Ch 13) à lire. + + + + C'est lors du concile de trente, le concile de la contre réforme + que les apocryphes vont être intégré dans la Bible catholique. + +

    La thèse du canon d'alexandrin (0:29)

    + + L'idée pour justifier la présence des apocryphes dans la Bible + est de dire qu'il y avait deux canons. Le conon Hébraïque, le + canon d'Alexandrie. (Personne ne soutient cette thèse). Il y a + Clavieus Joseph qui était Pharisiens et qui avait connu plusieurs + courant Juifs. Il était d'Alexandrie et il ne fait pas mention + des apocryphes commes faisant parti de la Bible. + + + (0:34) La septemte, contient des traductions des apocryphes. + + + +

    Le Canon (0:47)

    +

    Le canon de l'AT

    + +
      +
    • Ben Sira, début du IIe siècle. connaît l'AT actuel.
    • +
    • 2 Maccabées 2.13, fin du Iie sicècle, désigne Néhémie comme ayant + eu un rôle dans la constitution du canon.
    • +
    • Au 1er siècle, Joseph connaît "le recueil des livres sacrés" (Contre Apion 1.8).
    • +
    • Jésus connaît l'AT.
    • +
    • Mt 23.35 désigne l'AT du début à la fin selon l'ordre hébraïque des livres.
    • +
    • A Yamnia (110 > JC), on a discuté mais sur la base d'une liste reconnue. +
    • +
    +
    +

    Le canon du NT

    + + pas eu le temps de noter. + + +

    La Bible: parole de Dieu (0:55)

    + + (Samedi après midi. 0:0) Rappel du contenu de ce matin. + + +

    L'inspiration des écritures (0:7:34)

    + + + Jn 7:38 Deux interprétation sont possibles. Certain dise + de Jésus, d'autre disent du croyant. Comme il n'y a pas + de ponctuation, les deux solutions sont possibles. + + +

    Doctrine de l'inspiration (0:20)

    + + + + +

    Mode et étendue de l'inspiration (0:21)

    +

    Dictée

    + + Ce n'est pas le mode habituel d'inspiration. En générale, + Dieu laisse la liberté à l'auteur + + +

    Inspiration littérale

    + + + Il faut rejeter cette idée. cela voudrait dire que + chaque mot vient de Dieu. + + +

    Inspiration dynamique ou organique

    + + + Dieu n'a pas supplenté la personalité des auteurs. (0:28) + La conscience de Paul est tout a fait active quand il + écrit. + (0:35) + La parabole du sumeure. Le dernier personnage pose + souvent problème. + (0:43) + Jn 5 La guérison du paralétique. Le verset 4 n'est pas + dans les manuscrits les plus anciens. + (0:45) + Jn 8 Le texte de la femme adultère. Les éditeurs ne savaient + pas quoi faire! + + +

    Inspiration plénière

    + + + + +

    Inspiration verbale

    + + + + +

    Inerrance des Ecritures (0:47)

    + + + Terminologie purement thélogique. + + + + Confesser l'infaillibilité ou l'inerrance de l'Ecriture, c'est + affirmer que son autorité et sa sûreté s'étendent à tous ses détails. + + + L'inerrance ne concerne pas les "erreurs" grammaticales. + + + L'inerrance s'attach au seul sens du texte + + + Elle ne crédibilise pas ipso facto les citations + + + Elle se rapporte au texte original (autographes) + + + (0:59)Ce n'est pas parce que çà n'a pas été trouvé par l'archéologie + que le texte n'est pas vrai. + Daniel 5. + +

    L'autorité et la sureté des Ecritures (1:10)

    + + Ta parole est la vérité (Jn 17.17). + +

    Les quatres perfections de l'Ecriture. (Sam apr 2)

    +
      +
    • L'autorité de l'Ecriture étalon
    • +
    • La sureté de l'Ecriture rocher
    • +
    • La clarté de l'Ecriture (persicuité) lampe
    • +
    • La toute suffisance de l'Ecriture clé
    • +
    + + Il faut faire attention quand à l'interprétation du + texte. + Math 15. Les pharisiens ... Ce sont des gens sincères. Pourtant + il change la parole de Dieu par leur tradition. + Les loi de l'ancien Testament garde leur pertinance. Sauf + si le nouveau Testament donne d'autres indications! + + Il faut distinguer les lois relatives au culte. Les lois morales + et religieuse. + Example Heb 10. C'était l'ombre des choses à venir. + Col 2:17 Les lois qui concerne le sabbat. C'était le signe de l'alliance + au Sinaï. + + + Les lois sont la pour limiter l'extansion du mal. + (0:27) Il y a des lois qui régisse le mode de fonctionnement du pays. + La législation qui est donné dans la loi civile est très intéressante. + (0:29) Le sang c'est la vie. + + + (0:35) L'image du rocher. + (0:36) la clarté de l'écriture. La Bible n'est pas un code secret. + (0:40) la toute suffisance. + + + (0:50) Ben l'histoire des parchemin. + + + + +

    Conclusion

    + + + + + + + +
    + + + +
    + diff --git a/formapre/m5c5da.xml b/formapre/m5c5da.xml new file mode 100644 index 0000000..6900bc1 --- /dev/null +++ b/formapre/m5c5da.xml @@ -0,0 +1,195 @@ + + + + + EBERSOLD André + Devoir A Révélation + $Id: m5c5da.xml,v 1.3 2008/03/06 18:11:34 aebersol Exp $ + +Veuillez développer un glossaire des notions principales que vous relevez au fil de votre lecture sur ce sujet. +Lecture principale à faire : les pages Révélation Ecriture dans NICOLE J.M., Précis de Doctrine Chrétienne, Nogent-sur-Marne, IBN, 1994, pp 14 à 38 + + + + Devoir A Révélation +

    Glossaire

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NotionDéfinitionRéférences BibliquesAutre
    CanonD'après le J-M. Ce mot signifie en premier lieu roseau, d'où + règle de mesure (Ez 40:3) et par la suite liste officielle. Un + écrit est canonique tout à la fois parce qu'il a été inscrit sur + la liste et parce qu'il constitue une règle pour notre foi + et notre vie. + + + La définition du dictionnaire est: Ensemble de livres admis + comme divinement inspirés. +
    InerranceD'après le livre de J-M.N il s'agit du fait que la Bible est plainement inspirée + par Dieu, qu'elle est sans erreur. + Nb 23:19, Jn 17:17 + Je n'ai pas trouvé ce mot dans le dictonnaire. + Par contre, j'y ai trouvé inhérence. Ce terme + traduit le caractère inhérent de deux choses. + Dans le contexte, il s'agit du lien inhérent entre + la parole de Dieu et la vérité. +
    oracle Volonté de Dieu annoncée par les prophètes et + les apôtres. + + Deut 10:13 +
    Anathème Excommunication majeure prononcée contre les + hérétiques ou les ennemis de la foi. + Une condamnation totale. + Gal 1:8 +
    Pentecôte Fête chrétienne célébrée le septième dimanche + après Pâques pour commémorer la descente du + Saint-Esprit sur les apôtres. + C'est aussi une fête juive célébrée sept semaine + après le second jour de Pâques. + +
    Prophète Personne qui prétend révéler des vérités + cachées au nom d'un Dieu dont elle se dit + inspirée. + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NotionDéfinitionRéférences BibliquesAutre
    Apôtre + Chacun des douze disciples que Jésus-Christ choisit + pour prêcher l'évangile. + + Personne qui propage, défend une doctrine, + une opinion.
    Evangile Enseignement de Jésus-Christ. + + Texte, document essentiel qui sert de fondement à une + croyance, à une doctrine.
    L'hermé - neutique Qui a pour object, l'interprétation des textes. + +
    Exégèse Interprétation philologique, historique ou doctrinale + d'un texte dont le sens, la portée sont obscures ou sujets + à discussion. + +
    théo - pneustie Un terme basé sur le texte où Paul proclame que + l'Ecriture est divinement inspirée. + + 2 Tim 3:16 (théopneustos)
    Révélation générale Dieu se fait connaître par le moyen de la création. + Rom 1:20 +
    Révélation spécial Dieu s'est directement adressé à des hommes + pour se faire connaître à eux. + (Adam) Gn 3:9-11 (Noé) Gn 6.13-21 Jacob Gn 28.13-15 +
    Inspiration On entend par là une action du Saint Esprit agissant sur + l'auteur sacré et lui permettant d'exprimer d'une manière + exacte ce que Dieu lui révèle. + + 2 Tim 3:16 + Il peut aussi s'appliquer à une influance divine ou humaine + poussant un homme vers telle ou telle activité.
    +
    + + + + +
    + + +
    + diff --git a/formapre/m5c5db.xml b/formapre/m5c5db.xml new file mode 100644 index 0000000..5295c5a --- /dev/null +++ b/formapre/m5c5db.xml @@ -0,0 +1,137 @@ + + + + + EBERSOLD André + Devoir B Révélation + $Id: m5c5db.xml,v 1.4 2008/03/06 18:11:34 aebersol Exp $ + + La rédaction du site internet de l'Eglise vous sollicite pour rédiger un article de fond destiné + à présenter et soutenir la doctrine évangélique sur le sujet : "Dieu a parlé" +
    + Présentez les différentes formes de "révélations", leur(s) mode(s) de communication + aux différentes époques de l'Histoire selon ce que la Bible en dit. Vous soulignerez + ce qui est singulier au christianisme et rendrez vos lecteurs attentifs à ce qui peut + occasionner un risque de dérapage au sein même de la chrétieneté actuelle dans ce domaine. + +
    + + Devoir B Révélation + +

    Dieu a parlé

    + + Dieu le créateur ne peut être connu par ses créatures s'il ne + se révèle pas. En effet, si l'homme est créature, il y a forcement un créateur qui est indéniablement plus + grand que toute la création. Un créateur qui nous transcende, qui est infini, ne peut être connu par ce qui + est fini, limité. C'est pourquoi, tout au long de l'histoire de l'humanité, du peuple d'Israël en particulier, + Dieu s'est révélé. C'est ce qui nous est rappelé dans l'épitre aux Hébreux 1.1 : "A bien des reprises et + de bien des manières, Dieu a parlé ..." + + +

    La révélation générale

    +

    La révélation naturelle

    + + En tant que Ccréateur, Dieu n'a pas manqué de parler aux hommes au travers de la création. Le Psalmiste + Ps 19.2 dira : "Tous les cieux proclament combien Dieu est glorieux, l'étendue céleste publie l'oeuvre de ses + mains. + Cette révélation ne manquera pas d'être reprise par l'apôtre Paul dans Rom 1.20 "Car, depuis la création du monde, + les perfections invisibles de Dieu, sa puissance éternelle et sa divinité se voient dans ses oeuvres quand on + y réfléchit... + + + Aujourd'hui, il pourrait penser que l'oeuvre de la création est un moyen d'ammener notre société + à se tourner vers Dieu. Pourtant, n'oublions pas que cette création est corrompu par le péché + (Rom 8.20 Car la création a été soumise au pouvoir de la fragilité). + Que dire de toutes les atrocités (meurtre, injustice, esclavage, guerre, catastrophe ...) qui frappent le regard de nos contemporains ! + Cette réalité est plutôt une source de condamnation pour l'homme au lieu d'un moyen de salut. + L'apôtre Paul va dans se sens dans la suite du texte de Rom 1.21 "Ils n'ont donc aucune excuse, car ils ont + refusé de lui rendre l'honneur que l'on doit à Dieu et de lui exprimer leur reconnaissance." + +

    La révélation de Dieu par la conscience

    + + A coté de la révélation naturelle, on peut placer la révélation de Dieu par la conscience. Null doute que la conscience + du bien et du mal est inscrite dans le coeur de l'homme depuis la chute. L'apôtre Paul dira dans Rom 2.15 : + "Ils démontrent par leur comportement que les oeuvres demandées par la Loi sont inscrites dans leur coeur. + Leur conscience en témoigne également ..." + Mais comme le reste de la création, cette conscience est dévoyée par le péché au point que certains finissent + par :"appeler mal ce que est bien, et bien ce qui est mal." Es 5.20 + + +

    La révélation spéciale

    +

    Révélation dans l'AT

    + + En introduction, nous avons cité Heb 1.1 qui nous rappelle que de bien des manières Dieu a parlé autrefois par les prophètes. + Mais de qu'elle manière c'est-il révélé ? + +

    Directement

    + + Plusieurs passages de la Bible nous révèlent que Dieu s'est adressé directement à des hommes. Il s'est tout d'abord + adressé à Adam et EveGen 3.9-11 puis CaïnGn 4.6-15, Noé Gn 6.13, + AbrahamGn 12.1-3 IsaacGn 26.34 JacobGn 28.13-15. + Il ne faut bien sûr par oublier Moïse à qui Dieu s'est adressé face à faceEx 33.11. Même le peuple + d'Israël a pu entendre la voix de l'Eternel au SinaïDt 5.24. + + + Cependant, il ne s'est pas adressé de cette manière à tous le monde. Il n'a pas uniquement parlé de cette manière. Il serait + donc dangereux d'attendre aujourd'hui que Dieu s'adresse à nous de cette manière avant d'agir et de s'engager dans l'oeuvre + de Dieu. + +

    Par des visions et des songes

    + + C'est un mode de révélation que Dieu lui-même à cité: "Lorsqu'il y aura parmi vous un prophète, c'est dans une vision + que moi, l'Eternel je me ferai connaître de lui, c'est dans un songe que je lui parlerai..."Nb 12.6-8. + Ainsi Dieu s'est adressé à Daniel dans une visionDan 1.19 pour lui révéler le rêve du roi Nebuchodonosor. + + + Si Dieu s'est exprimé ainsi aux prophètes, il s'est exprimé de bien d'autres manières encore. Par exemple pour désigner le responsable + d'Israël qui a commis un acte d'infidèlité, s'est par le sort que le coupable fut désigné par l'EternelJos 7.14 + Pour Balam, l'Eternel fit parler une ânesseNb 22.28. + Dieu n'est pas à cours d'idée pour se révéler à ses créatures. Car ce qui compte en fin de compte, c'est que le message soit + reçu. Qu'importe le moyen de communication qui est utilisé. + + +

    Révélation dans l'NT

    + + Si sous l'AT, Dieu a surtout parlé par les prophètes, le NT donne de nouvelles indications :"Et maintenant, dans ces jours qui + sont les derniers, c'est par son Fils qu'il nous a parlé."Hb 1.2 + + + Il est frappant de constanter que les auteurs du NT s'inscrivent tous dans cette lignée. L'apôtre Paul attribue l'Evangile + qu'il annonce à une révélation de Jésus-ChristGal 1.12. L'auteur de l'apocalypse déclare également + que ce qu'il écrit vient d'une révélation de Jésus-Christ et qu'il l'a reçu d'un angeAp 1.1. + Les auteurs des évangiles ont tous été en contact direct avec Jésus-Christ. C'est de lui qu'ils ont reçu la révélation + finale de Dieu. + + + Pour celler cette révélation de l'évangile, l'apôtre Paul déclare comme anathème toute personne qui annonce un autre + évangile que celui qu'il a reçuGal 1.8. + Il n'y a eut depuis, aucune autre révélation qui ne contredise d'une manière à ou d'une autre la Bible. C'est bien là + toute l'exigence de l'écriture. Toute révélation doit être conforme à ce que dit la Bible. + + + + Nous pourrions être tentés de compléter la Bible mais dans l'apocalypse, Jean nous met en garde pour de tels agissements. + "... si quelqu'un y ajoute quoi que ce soit, Dieu ajoutera à son sort les fléaux décrits dans ce livre. Si quelqu'un + retranche quelque chose des paroles prophétiques de ce livre, + Dieu lui ôtera tout droit à l'arbre de vieAp 22.18-19" + + +

    La révélation de Jésus-Christ

    + + Certains textes pourtant laissent entendre que la révélation n'est pas complète. + Alors nous connaîtrons comme nous avons été connus1 Cor 13.12 Il s'agit de l'avènement du + retour de Christ sur terre que les chrétiens attendent1 Cor 1.7, 1Th 1.7 1 Pi 1.7. + Mais en attendant, il n'y a pas lieu de croire qu'il y aura une autre révélation. Rien dans l'écriture ne + nous permet de l'espérer. + +
    + + +
    + diff --git a/formapre/meinau.xml b/formapre/meinau.xml new file mode 100644 index 0000000..40a221b --- /dev/null +++ b/formapre/meinau.xml @@ -0,0 +1,47 @@ + + + + + L'église de la Meinau + $Date: 2008/03/06 18:11:35 $ + $Id: meinau.xml,v 1.3 2008/03/06 18:11:35 aebersol Exp $ + + L'église de la Meinau +

    Introduction

    + + L'église Baptiste de la Meinau était + + +

    Pourquoi j'ai quitté cette assemblée

    + + Cela peu paraître surprenant, mais c'est une des rares églises + au je me sentais plus mal à la fin du culte que quand j'y entrais. + Comment expliquer cela? Je ne sais pas trop. J'ai bien des idées, + mais aucune preuve tangible pour dire quoi que ce soit. + + + Le respect des status. Il est assez intéressant de + + +

    L'histoire de l'église

    + + + +
    + + + 19 Fév 2007 + Cours + Ebersold André + + + Prochain cours 16-17 mars. + + + + +
    diff --git a/formapre/module5_cours3_devoir_B.xml b/formapre/module5_cours3_devoir_B.xml new file mode 100644 index 0000000..0a3c0f9 --- /dev/null +++ b/formapre/module5_cours3_devoir_B.xml @@ -0,0 +1,26 @@ + + + + Devoir +

    devoir B

    +

    + " Qu'enseigne l'épître aux Galates sur la Loi de Moise ?" +

    +
    + + + + à rendre au plus tard le 11 févr 2007 + le devoir A du prochain cours ( en pièce jointe) + Bonne réception et merci de m'avoir supporté toutes ces années ! + amitiés, + bien fraternellement en Christ, + daniel + + + +
    diff --git a/formapre/news.xml b/formapre/news.xml new file mode 100644 index 0000000..2cc399a --- /dev/null +++ b/formapre/news.xml @@ -0,0 +1,36 @@ + + + + + diff --git a/formapre/program.xml b/formapre/program.xml new file mode 100644 index 0000000..a2b6b25 --- /dev/null +++ b/formapre/program.xml @@ -0,0 +1,29 @@ + + + + + + Programme 2007-2008 + $Date: 2008/03/06 18:11:35 $ + $Id: program.xml,v 1.11 2008/03/06 18:11:35 aebersol Exp $ + + Programme 2007-2008 + + + + + + + + +
    datethèmeintervenant
    12-13 nov 2007Annonce de la ParoleBernard HUCK
    30 nov 01 Déc 2007Retour de JC / Au-delàHans WITTENBACH
    01-02 fév 2008Sagesse et poésie ATSylvain ROMEROWSKI
    28-29 mars 2008Introduction à la relation d'aideNicole DEBRET
    23-24 mai 2008EthiqueThierry SEEWALD
    +
    +
    +
    + diff --git a/formapre/subscribe.xml b/formapre/subscribe.xml new file mode 100644 index 0000000..aae6ad7 --- /dev/null +++ b/formapre/subscribe.xml @@ -0,0 +1,50 @@ + + + Demande d'information + + Demande d'information + + +
    + Demande d'information + + + + + + + + + "}else{e+=""}if(f&&j.ListBox){if(f.Button||f.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarStart"},b.createHTML("span",null,""))}}}g="mceToolbarEnd";if(j.Button){g+=" mceToolbarEndButton"}else{if(j.SplitButton){g+=" mceToolbarEndSplitButton"}else{if(j.ListBox){g+=" mceToolbarEndListBox"}}}e+=b.createHTML("td",{"class":g},b.createHTML("span",null,""));return b.createHTML("table",{id:l.id,"class":"mceToolbar"+(m["class"]?" "+m["class"]:""),cellpadding:"0",cellspacing:"0",align:l.settings.align||""},""+e+"")}});(function(b){var a=b.util.Dispatcher,c=b.each;b.create("tinymce.AddOnManager",{items:[],urls:{},lookup:{},onAdd:new a(this),get:function(d){return this.lookup[d]},requireLangPack:function(e){var d=b.settings;if(d&&d.language){b.ScriptLoader.add(this.urls[e]+"/langs/"+d.language+".js")}},add:function(e,d){this.items.push(d);this.lookup[e]=d;this.onAdd.dispatch(this,e,d);return d},load:function(h,e,d,g){var f=this;if(f.urls[h]){return}if(e.indexOf("/")!=0&&e.indexOf("://")==-1){e=b.baseURL+"/"+e}f.urls[h]=e.substring(0,e.lastIndexOf("/"));b.ScriptLoader.add(e,d,g)}});b.PluginManager=new b.AddOnManager();b.ThemeManager=new b.AddOnManager()}(tinymce));(function(j){var g=j.each,d=j.extend,k=j.DOM,i=j.dom.Event,f=j.ThemeManager,b=j.PluginManager,e=j.explode,h=j.util.Dispatcher,a,c=0;j.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(j.documentBaseURL)){j.documentBaseURL+="/"}j.baseURL=new j.util.URI(j.documentBaseURL).toAbsolute(j.baseURL);j.baseURI=new j.util.URI(j.baseURL);j.onBeforeUnload=new h(j);i.add(window,"beforeunload",function(l){j.onBeforeUnload.dispatch(j,l)});j.onAddEditor=new h(j);j.onRemoveEditor=new h(j);j.EditorManager=d(j,{editors:[],i18n:{},activeEditor:null,init:function(q){var n=this,p,l=j.ScriptLoader,u,o=[],m;function r(x,y,t){var v=x[y];if(!v){return}if(j.is(v,"string")){t=v.replace(/\.\w+$/,"");t=t?j.resolve(t):0;v=j.resolve(v)}return v.apply(t||this,Array.prototype.slice.call(arguments,2))}q=d({theme:"simple",language:"en"},q);n.settings=q;i.add(document,"init",function(){var s,v;r(q,"onpageload");switch(q.mode){case"exact":s=q.elements||"";if(s.length>0){g(e(s),function(x){if(k.get(x)){m=new j.Editor(x,q);o.push(m);m.render(1)}else{g(document.forms,function(y){g(y.elements,function(z){if(z.name===x){x="mce_editor_"+c++;k.setAttrib(z,"id",x);m=new j.Editor(x,q);o.push(m);m.render(1)}})})}})}break;case"textareas":case"specific_textareas":function t(y,x){return x.constructor===RegExp?x.test(y.className):k.hasClass(y,x)}g(k.select("textarea"),function(x){if(q.editor_deselector&&t(x,q.editor_deselector)){return}if(!q.editor_selector||t(x,q.editor_selector)){u=k.get(x.name);if(!x.id&&!u){x.id=x.name}if(!x.id||n.get(x.id)){x.id=k.uniqueId()}m=new j.Editor(x.id,q);o.push(m);m.render(1)}});break}if(q.oninit){s=v=0;g(o,function(x){v++;if(!x.initialized){x.onInit.add(function(){s++;if(s==v){r(q,"oninit")}})}else{s++}if(s==v){r(q,"oninit")}})}})},get:function(l){if(l===a){return this.editors}return this.editors[l]},getInstanceById:function(l){return this.get(l)},add:function(m){var l=this,n=l.editors;n[m.id]=m;n.push(m);l._setActive(m);l.onAddEditor.dispatch(l,m);return m},remove:function(n){var m=this,l,o=m.editors;if(!o[n.id]){return null}delete o[n.id];for(l=0;l':"",visual_table_class:"mceItemTable",visual:1,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",valid_elements:"@[id|class|style|title|dir';if(F.document_base_url!=m.documentBaseURL){E.iframeHTML+=''}E.iframeHTML+='';if(m.relaxedDomain){E.iframeHTML+=''; + + bi = s.body_id || 'tinymce'; + if (bi.indexOf('=') != -1) { + bi = t.getParam('body_id', '', 'hash'); + bi = bi[t.id] || bi; + } + + bc = s.body_class || ''; + if (bc.indexOf('=') != -1) { + bc = t.getParam('body_class', '', 'hash'); + bc = bc[t.id] || ''; + } + + t.iframeHTML += ''; + + // Domain relaxing enabled, then set document domain + if (tinymce.relaxedDomain) { + // We need to write the contents here in IE since multiple writes messes up refresh button and back button + if (isIE || (tinymce.isOpera && parseFloat(opera.version()) >= 9.5)) + u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";var ed = window.parent.tinyMCE.get("' + t.id + '");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()'; + else if (tinymce.isOpera) + u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";document.close();ed.setupIframe();})()'; + } + + // Create iframe + n = DOM.add(o.iframeContainer, 'iframe', { + id : t.id + "_ifr", + src : u || 'javascript:""', // Workaround for HTTPS warning in IE6/7 + frameBorder : '0', + style : { + width : '100%', + height : h + } + }); + + t.contentAreaContainer = o.iframeContainer; + DOM.get(o.editorContainer).style.display = t.orgDisplay; + DOM.get(t.id).style.display = 'none'; + + if (!isIE || !tinymce.relaxedDomain) + t.setupIframe(); + + e = n = o = null; // Cleanup + }, + + setupIframe : function() { + var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b; + + // Setup iframe body + if (!isIE || !tinymce.relaxedDomain) { + d.open(); + d.write(t.iframeHTML); + d.close(); + } + + // Design mode needs to be added here Ctrl+A will fail otherwise + if (!isIE) { + try { + if (!s.readonly) + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } + } + + // IE needs to use contentEditable or it will display non secure items for HTTPS + if (isIE) { + // It will not steal focus if we hide it while setting contentEditable + b = t.getBody(); + DOM.hide(b); + + if (!s.readonly) + b.contentEditable = true; + + DOM.show(b); + } + + t.dom = new tinymce.dom.DOMUtils(t.getDoc(), { + keep_values : true, + url_converter : t.convertURL, + url_converter_scope : t, + hex_colors : s.force_hex_style_colors, + class_filter : s.class_filter, + update_styles : 1, + fix_ie_paragraphs : 1, + valid_styles : s.valid_styles + }); + + t.schema = new tinymce.dom.Schema(); + + t.serializer = new tinymce.dom.Serializer(extend(s, { + valid_elements : s.verify_html === false ? '*[*]' : s.valid_elements, + dom : t.dom, + schema : t.schema + })); + + t.selection = new tinymce.dom.Selection(t.dom, t.getWin(), t.serializer); + + t.formatter = new tinymce.Formatter(this); + + // Register default formats + t.formatter.register({ + alignleft : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}}, + {selector : 'img,table', styles : {'float' : 'left'}} + ], + + aligncenter : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}}, + {selector : 'img', styles : {display : 'block', marginLeft : 'auto', marginRight : 'auto'}}, + {selector : 'table', styles : {marginLeft : 'auto', marginRight : 'auto'}} + ], + + alignright : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}}, + {selector : 'img,table', styles : {'float' : 'right'}} + ], + + alignfull : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'justify'}} + ], + + bold : [ + {inline : 'strong'}, + {inline : 'span', styles : {fontWeight : 'bold'}}, + {inline : 'b'} + ], + + italic : [ + {inline : 'em'}, + {inline : 'span', styles : {fontStyle : 'italic'}}, + {inline : 'i'} + ], + + underline : [ + {inline : 'span', styles : {textDecoration : 'underline'}, exact : true}, + {inline : 'u'} + ], + + strikethrough : [ + {inline : 'span', styles : {textDecoration : 'line-through'}, exact : true}, + {inline : 'u'} + ], + + forecolor : {inline : 'span', styles : {color : '%value'}}, + hilitecolor : {inline : 'span', styles : {backgroundColor : '%value'}}, + fontname : {inline : 'span', styles : {fontFamily : '%value'}}, + fontsize : {inline : 'span', styles : {fontSize : '%value'}}, + fontsize_class : {inline : 'span', attributes : {'class' : '%value'}}, + blockquote : {block : 'blockquote', wrapper : 1, remove : 'all'}, + + removeformat : [ + {selector : 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand : true, deep : true}, + {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true}, + {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true} + ] + }); + + // Register default block formats + each('p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp'.split(/\s/), function(name) { + t.formatter.register(name, {block : name, remove : 'all'}); + }); + + // Register user defined formats + t.formatter.register(t.settings.formats); + + t.undoManager = new tinymce.UndoManager(t); + + // Pass through + t.undoManager.onAdd.add(function(um, l) { + if (!l.initial) + return t.onChange.dispatch(t, l, um); + }); + + t.undoManager.onUndo.add(function(um, l) { + return t.onUndo.dispatch(t, l, um); + }); + + t.undoManager.onRedo.add(function(um, l) { + return t.onRedo.dispatch(t, l, um); + }); + + t.forceBlocks = new tinymce.ForceBlocks(t, { + forced_root_block : s.forced_root_block + }); + + t.editorCommands = new tinymce.EditorCommands(t); + + // Pass through + t.serializer.onPreProcess.add(function(se, o) { + return t.onPreProcess.dispatch(t, o, se); + }); + + t.serializer.onPostProcess.add(function(se, o) { + return t.onPostProcess.dispatch(t, o, se); + }); + + t.onPreInit.dispatch(t); + + if (!s.gecko_spellcheck) + t.getBody().spellcheck = 0; + + if (!s.readonly) + t._addEvents(); + + t.controlManager.onPostRender.dispatch(t, t.controlManager); + t.onPostRender.dispatch(t); + + if (s.directionality) + t.getBody().dir = s.directionality; + + if (s.nowrap) + t.getBody().style.whiteSpace = "nowrap"; + + if (s.custom_elements) { + function handleCustom(ed, o) { + each(explode(s.custom_elements), function(v) { + var n; + + if (v.indexOf('~') === 0) { + v = v.substring(1); + n = 'span'; + } else + n = 'div'; + + o.content = o.content.replace(new RegExp('<(' + v + ')([^>]*)>', 'g'), '<' + n + ' _mce_name="$1"$2>'); + o.content = o.content.replace(new RegExp('', 'g'), ''); + }); + }; + + t.onBeforeSetContent.add(handleCustom); + t.onPostProcess.add(function(ed, o) { + if (o.set) + handleCustom(ed, o); + }); + } + + if (s.handle_node_change_callback) { + t.onNodeChange.add(function(ed, cm, n) { + t.execCallback('handle_node_change_callback', t.id, n, -1, -1, true, t.selection.isCollapsed()); + }); + } + + if (s.save_callback) { + t.onSaveContent.add(function(ed, o) { + var h = t.execCallback('save_callback', t.id, o.content, t.getBody()); + + if (h) + o.content = h; + }); + } + + if (s.onchange_callback) { + t.onChange.add(function(ed, l) { + t.execCallback('onchange_callback', t, l); + }); + } + + if (s.convert_newlines_to_brs) { + t.onBeforeSetContent.add(function(ed, o) { + if (o.initial) + o.content = o.content.replace(/\r?\n/g, '
    '); + }); + } + + if (s.fix_nesting && isIE) { + t.onBeforeSetContent.add(function(ed, o) { + o.content = t._fixNesting(o.content); + }); + } + + if (s.preformatted) { + t.onPostProcess.add(function(ed, o) { + o.content = o.content.replace(/^\s*/, ''); + o.content = o.content.replace(/<\/pre>\s*$/, ''); + + if (o.set) + o.content = '
    ' + o.content + '
    '; + }); + } + + if (s.verify_css_classes) { + t.serializer.attribValueFilter = function(n, v) { + var s, cl; + + if (n == 'class') { + // Build regexp for classes + if (!t.classesRE) { + cl = t.dom.getClasses(); + + if (cl.length > 0) { + s = ''; + + each (cl, function(o) { + s += (s ? '|' : '') + o['class']; + }); + + t.classesRE = new RegExp('(' + s + ')', 'gi'); + } + } + + return !t.classesRE || /(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(v) || t.classesRE.test(v) ? v : ''; + } + + return v; + }; + } + + if (s.cleanup_callback) { + t.onBeforeSetContent.add(function(ed, o) { + o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o); + }); + + t.onPreProcess.add(function(ed, o) { + if (o.set) + t.execCallback('cleanup_callback', 'insert_to_editor_dom', o.node, o); + + if (o.get) + t.execCallback('cleanup_callback', 'get_from_editor_dom', o.node, o); + }); + + t.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o); + + if (o.get) + o.content = t.execCallback('cleanup_callback', 'get_from_editor', o.content, o); + }); + } + + if (s.save_callback) { + t.onGetContent.add(function(ed, o) { + if (o.save) + o.content = t.execCallback('save_callback', t.id, o.content, t.getBody()); + }); + } + + if (s.handle_event_callback) { + t.onEvent.add(function(ed, e, o) { + if (t.execCallback('handle_event_callback', e, ed, o) === false) + Event.cancel(e); + }); + } + + // Add visual aids when new contents is added + t.onSetContent.add(function() { + t.addVisual(t.getBody()); + }); + + // Remove empty contents + if (s.padd_empty_editor) { + t.onPostProcess.add(function(ed, o) { + o.content = o.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
    [\r\n]*)$/, ''); + }); + } + + if (isGecko) { + // Fix gecko link bug, when a link is placed at the end of block elements there is + // no way to move the caret behind the link. This fix adds a bogus br element after the link + function fixLinks(ed, o) { + each(ed.dom.select('a'), function(n) { + var pn = n.parentNode; + + if (ed.dom.isBlock(pn) && pn.lastChild === n) + ed.dom.add(pn, 'br', {'_mce_bogus' : 1}); + }); + }; + + t.onExecCommand.add(function(ed, cmd) { + if (cmd === 'CreateLink') + fixLinks(ed); + }); + + t.onSetContent.add(t.selection.onSetContent.add(fixLinks)); + + if (!s.readonly) { + try { + // Design mode must be set here once again to fix a bug where + // Ctrl+A/Delete/Backspace didn't work if the editor was added using mceAddControl then removed then added again + d.designMode = 'Off'; + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } + } + } + + // A small timeout was needed since firefox will remove. Bug: #1838304 + setTimeout(function () { + if (t.removed) + return; + + t.load({initial : true, format : (s.cleanup_on_startup ? 'html' : 'raw')}); + t.startContent = t.getContent({format : 'raw'}); + t.initialized = true; + + t.onInit.dispatch(t); + t.execCallback('setupcontent_callback', t.id, t.getBody(), t.getDoc()); + t.execCallback('init_instance_callback', t); + t.focus(true); + t.nodeChanged({initial : 1}); + + // Load specified content CSS last + if (s.content_css) { + tinymce.each(explode(s.content_css), function(u) { + t.dom.loadCSS(t.documentBaseURI.toAbsolute(u)); + }); + } + + // Handle auto focus + if (s.auto_focus) { + setTimeout(function () { + var ed = tinymce.get(s.auto_focus); + + ed.selection.select(ed.getBody(), 1); + ed.selection.collapse(1); + ed.getWin().focus(); + }, 100); + } + }, 1); + + e = null; + }, + + + focus : function(sf) { + var oed, t = this, ce = t.settings.content_editable, ieRng, controlElm, doc = t.getDoc(); + + if (!sf) { + // Get selected control element + ieRng = t.selection.getRng(); + if (ieRng.item) { + controlElm = ieRng.item(0); + } + + // Is not content editable + if (!ce) + t.getWin().focus(); + + // Restore selected control element + // This is needed when for example an image is selected within a + // layer a call to focus will then remove the control selection + if (controlElm && controlElm.ownerDocument == doc) { + ieRng = doc.body.createControlRange(); + ieRng.addElement(controlElm); + ieRng.select(); + } + + } + + if (tinymce.activeEditor != t) { + if ((oed = tinymce.activeEditor) != null) + oed.onDeactivate.dispatch(oed, t); + + t.onActivate.dispatch(t, oed); + } + + tinymce._setActive(t); + }, + + execCallback : function(n) { + var t = this, f = t.settings[n], s; + + if (!f) + return; + + // Look through lookup + if (t.callbackLookup && (s = t.callbackLookup[n])) { + f = s.func; + s = s.scope; + } + + if (is(f, 'string')) { + s = f.replace(/\.\w+$/, ''); + s = s ? tinymce.resolve(s) : 0; + f = tinymce.resolve(f); + t.callbackLookup = t.callbackLookup || {}; + t.callbackLookup[n] = {func : f, scope : s}; + } + + return f.apply(s || t, Array.prototype.slice.call(arguments, 1)); + }, + + translate : function(s) { + var c = this.settings.language || 'en', i18n = tinymce.i18n; + + if (!s) + return ''; + + return i18n[c + '.' + s] || s.replace(/{\#([^}]+)\}/g, function(a, b) { + return i18n[c + '.' + b] || '{#' + b + '}'; + }); + }, + + getLang : function(n, dv) { + return tinymce.i18n[(this.settings.language || 'en') + '.' + n] || (is(dv) ? dv : '{#' + n + '}'); + }, + + getParam : function(n, dv, ty) { + var tr = tinymce.trim, v = is(this.settings[n]) ? this.settings[n] : dv, o; + + if (ty === 'hash') { + o = {}; + + if (is(v, 'string')) { + each(v.indexOf('=') > 0 ? v.split(/[;,](?![^=;,]*(?:[;,]|$))/) : v.split(','), function(v) { + v = v.split('='); + + if (v.length > 1) + o[tr(v[0])] = tr(v[1]); + else + o[tr(v[0])] = tr(v); + }); + } else + o = v; + + return o; + } + + return v; + }, + + nodeChanged : function(o) { + var t = this, s = t.selection, n = (isIE ? s.getNode() : s.getStart()) || t.getBody(); + + // Fix for bug #1896577 it seems that this can not be fired while the editor is loading + if (t.initialized) { + o = o || {}; + n = isIE && n.ownerDocument != t.getDoc() ? t.getBody() : n; // Fix for IE initial state + + // Get parents and add them to object + o.parents = []; + t.dom.getParent(n, function(node) { + if (node.nodeName == 'BODY') + return true; + + o.parents.push(node); + }); + + t.onNodeChange.dispatch( + t, + o ? o.controlManager || t.controlManager : t.controlManager, + n, + s.isCollapsed(), + o + ); + } + }, + + addButton : function(n, s) { + var t = this; + + t.buttons = t.buttons || {}; + t.buttons[n] = s; + }, + + addCommand : function(n, f, s) { + this.execCommands[n] = {func : f, scope : s || this}; + }, + + addQueryStateHandler : function(n, f, s) { + this.queryStateCommands[n] = {func : f, scope : s || this}; + }, + + addQueryValueHandler : function(n, f, s) { + this.queryValueCommands[n] = {func : f, scope : s || this}; + }, + + addShortcut : function(pa, desc, cmd_func, sc) { + var t = this, c; + + if (!t.settings.custom_shortcuts) + return false; + + t.shortcuts = t.shortcuts || {}; + + if (is(cmd_func, 'string')) { + c = cmd_func; + + cmd_func = function() { + t.execCommand(c, false, null); + }; + } + + if (is(cmd_func, 'object')) { + c = cmd_func; + + cmd_func = function() { + t.execCommand(c[0], c[1], c[2]); + }; + } + + each(explode(pa), function(pa) { + var o = { + func : cmd_func, + scope : sc || this, + desc : desc, + alt : false, + ctrl : false, + shift : false + }; + + each(explode(pa, '+'), function(v) { + switch (v) { + case 'alt': + case 'ctrl': + case 'shift': + o[v] = true; + break; + + default: + o.charCode = v.charCodeAt(0); + o.keyCode = v.toUpperCase().charCodeAt(0); + } + }); + + t.shortcuts[(o.ctrl ? 'ctrl' : '') + ',' + (o.alt ? 'alt' : '') + ',' + (o.shift ? 'shift' : '') + ',' + o.keyCode] = o; + }); + + return true; + }, + + execCommand : function(cmd, ui, val, a) { + var t = this, s = 0, o, st; + + if (!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd) && (!a || !a.skip_focus)) + t.focus(); + + o = {}; + t.onBeforeExecCommand.dispatch(t, cmd, ui, val, o); + if (o.terminate) + return false; + + // Command callback + if (t.execCallback('execcommand_callback', t.id, t.selection.getNode(), cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Registred commands + if (o = t.execCommands[cmd]) { + st = o.func.call(o.scope, ui, val); + + // Fall through on true + if (st !== true) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return st; + } + } + + // Plugin commands + each(t.plugins, function(p) { + if (p.execCommand && p.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + s = 1; + return false; + } + }); + + if (s) + return true; + + // Theme commands + if (t.theme && t.theme.execCommand && t.theme.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Execute global commands + if (tinymce.GlobalCommands.execCommand(t, cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Editor commands + if (t.editorCommands.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Browser commands + t.getDoc().execCommand(cmd, ui, val); + t.onExecCommand.dispatch(t, cmd, ui, val, a); + }, + + queryCommandState : function(cmd) { + var t = this, o, s; + + // Is hidden then return undefined + if (t._isHidden()) + return; + + // Registred commands + if (o = t.queryStateCommands[cmd]) { + s = o.func.call(o.scope); + + // Fall though on true + if (s !== true) + return s; + } + + // Registred commands + o = t.editorCommands.queryCommandState(cmd); + if (o !== -1) + return o; + + // Browser commands + try { + return this.getDoc().queryCommandState(cmd); + } catch (ex) { + // Fails sometimes see bug: 1896577 + } + }, + + queryCommandValue : function(c) { + var t = this, o, s; + + // Is hidden then return undefined + if (t._isHidden()) + return; + + // Registred commands + if (o = t.queryValueCommands[c]) { + s = o.func.call(o.scope); + + // Fall though on true + if (s !== true) + return s; + } + + // Registred commands + o = t.editorCommands.queryCommandValue(c); + if (is(o)) + return o; + + // Browser commands + try { + return this.getDoc().queryCommandValue(c); + } catch (ex) { + // Fails sometimes see bug: 1896577 + } + }, + + show : function() { + var t = this; + + DOM.show(t.getContainer()); + DOM.hide(t.id); + t.load(); + }, + + hide : function() { + var t = this, d = t.getDoc(); + + // Fixed bug where IE has a blinking cursor left from the editor + if (isIE && d) + d.execCommand('SelectAll'); + + // We must save before we hide so Safari doesn't crash + t.save(); + DOM.hide(t.getContainer()); + DOM.setStyle(t.id, 'display', t.orgDisplay); + }, + + isHidden : function() { + return !DOM.isHidden(this.id); + }, + + setProgressState : function(b, ti, o) { + this.onSetProgressState.dispatch(this, b, ti, o); + + return b; + }, + + load : function(o) { + var t = this, e = t.getElement(), h; + + if (e) { + o = o || {}; + o.load = true; + + // Double encode existing entities in the value + h = t.setContent(is(e.value) ? e.value : e.innerHTML, o); + o.element = e; + + if (!o.no_events) + t.onLoadContent.dispatch(t, o); + + o.element = e = null; + + return h; + } + }, + + save : function(o) { + var t = this, e = t.getElement(), h, f; + + if (!e || !t.initialized) + return; + + o = o || {}; + o.save = true; + + // Add undo level will trigger onchange event + if (!o.no_events) { + t.undoManager.typing = 0; + t.undoManager.add(); + } + + o.element = e; + h = o.content = t.getContent(o); + + if (!o.no_events) + t.onSaveContent.dispatch(t, o); + + h = o.content; + + if (!/TEXTAREA|INPUT/i.test(e.nodeName)) { + e.innerHTML = h; + + // Update hidden form element + if (f = DOM.getParent(t.id, 'form')) { + each(f.elements, function(e) { + if (e.name == t.id) { + e.value = h; + return false; + } + }); + } + } else + e.value = h; + + o.element = e = null; + + return h; + }, + + setContent : function(h, o) { + var t = this; + + o = o || {}; + o.format = o.format || 'html'; + o.set = true; + o.content = h; + + if (!o.no_events) + t.onBeforeSetContent.dispatch(t, o); + + // Padd empty content in Gecko and Safari. Commands will otherwise fail on the content + // It will also be impossible to place the caret in the editor unless there is a BR element present + if (!tinymce.isIE && (h.length === 0 || /^\s+$/.test(h))) { + o.content = t.dom.setHTML(t.getBody(), '
    '); + o.format = 'raw'; + } + + o.content = t.dom.setHTML(t.getBody(), tinymce.trim(o.content)); + + if (o.format != 'raw' && t.settings.cleanup) { + o.getInner = true; + o.content = t.dom.setHTML(t.getBody(), t.serializer.serialize(t.getBody(), o)); + } + + if (!o.no_events) + t.onSetContent.dispatch(t, o); + + return o.content; + }, + + getContent : function(o) { + var t = this, h; + + o = o || {}; + o.format = o.format || 'html'; + o.get = true; + + if (!o.no_events) + t.onBeforeGetContent.dispatch(t, o); + + if (o.format != 'raw' && t.settings.cleanup) { + o.getInner = true; + h = t.serializer.serialize(t.getBody(), o); + } else + h = t.getBody().innerHTML; + + h = h.replace(/^\s*|\s*$/g, ''); + o.content = h; + + if (!o.no_events) + t.onGetContent.dispatch(t, o); + + return o.content; + }, + + isDirty : function() { + var t = this; + + return tinymce.trim(t.startContent) != tinymce.trim(t.getContent({format : 'raw', no_events : 1})) && !t.isNotDirty; + }, + + getContainer : function() { + var t = this; + + if (!t.container) + t.container = DOM.get(t.editorContainer || t.id + '_parent'); + + return t.container; + }, + + getContentAreaContainer : function() { + return this.contentAreaContainer; + }, + + getElement : function() { + return DOM.get(this.settings.content_element || this.id); + }, + + getWin : function() { + var t = this, e; + + if (!t.contentWindow) { + e = DOM.get(t.id + "_ifr"); + + if (e) + t.contentWindow = e.contentWindow; + } + + return t.contentWindow; + }, + + getDoc : function() { + var t = this, w; + + if (!t.contentDocument) { + w = t.getWin(); + + if (w) + t.contentDocument = w.document; + } + + return t.contentDocument; + }, + + getBody : function() { + return this.bodyElement || this.getDoc().body; + }, + + convertURL : function(u, n, e) { + var t = this, s = t.settings; + + // Use callback instead + if (s.urlconverter_callback) + return t.execCallback('urlconverter_callback', u, e, true, n); + + // Don't convert link href since thats the CSS files that gets loaded into the editor also skip local file URLs + if (!s.convert_urls || (e && e.nodeName == 'LINK') || u.indexOf('file:') === 0) + return u; + + // Convert to relative + if (s.relative_urls) + return t.documentBaseURI.toRelative(u); + + // Convert to absolute + u = t.documentBaseURI.toAbsolute(u, s.remove_script_host); + + return u; + }, + + addVisual : function(e) { + var t = this, s = t.settings; + + e = e || t.getBody(); + + if (!is(t.hasVisual)) + t.hasVisual = s.visual; + + each(t.dom.select('table,a', e), function(e) { + var v; + + switch (e.nodeName) { + case 'TABLE': + v = t.dom.getAttrib(e, 'border'); + + if (!v || v == '0') { + if (t.hasVisual) + t.dom.addClass(e, s.visual_table_class); + else + t.dom.removeClass(e, s.visual_table_class); + } + + return; + + case 'A': + v = t.dom.getAttrib(e, 'name'); + + if (v) { + if (t.hasVisual) + t.dom.addClass(e, 'mceItemAnchor'); + else + t.dom.removeClass(e, 'mceItemAnchor'); + } + + return; + } + }); + + t.onVisualAid.dispatch(t, e, t.hasVisual); + }, + + remove : function() { + var t = this, e = t.getContainer(); + + t.removed = 1; // Cancels post remove event execution + t.hide(); + + t.execCallback('remove_instance_callback', t); + t.onRemove.dispatch(t); + + // Clear all execCommand listeners this is required to avoid errors if the editor was removed inside another command + t.onExecCommand.listeners = []; + + tinymce.remove(t); + DOM.remove(e); + }, + + destroy : function(s) { + var t = this; + + // One time is enough + if (t.destroyed) + return; + + if (!s) { + tinymce.removeUnload(t.destroy); + tinyMCE.onBeforeUnload.remove(t._beforeUnload); + + // Manual destroy + if (t.theme && t.theme.destroy) + t.theme.destroy(); + + // Destroy controls, selection and dom + t.controlManager.destroy(); + t.selection.destroy(); + t.dom.destroy(); + + // Remove all events + + // Don't clear the window or document if content editable + // is enabled since other instances might still be present + if (!t.settings.content_editable) { + Event.clear(t.getWin()); + Event.clear(t.getDoc()); + } + + Event.clear(t.getBody()); + Event.clear(t.formElement); + } + + if (t.formElement) { + t.formElement.submit = t.formElement._mceOldSubmit; + t.formElement._mceOldSubmit = null; + } + + t.contentAreaContainer = t.formElement = t.container = t.settings.content_element = t.bodyElement = t.contentDocument = t.contentWindow = null; + + if (t.selection) + t.selection = t.selection.win = t.selection.dom = t.selection.dom.doc = null; + + t.destroyed = 1; + }, + + // Internal functions + + _addEvents : function() { + // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset + var t = this, i, s = t.settings, lo = { + mouseup : 'onMouseUp', + mousedown : 'onMouseDown', + click : 'onClick', + keyup : 'onKeyUp', + keydown : 'onKeyDown', + keypress : 'onKeyPress', + submit : 'onSubmit', + reset : 'onReset', + contextmenu : 'onContextMenu', + dblclick : 'onDblClick', + paste : 'onPaste' // Doesn't work in all browsers yet + }; + + function eventHandler(e, o) { + var ty = e.type; + + // Don't fire events when it's removed + if (t.removed) + return; + + // Generic event handler + if (t.onEvent.dispatch(t, e, o) !== false) { + // Specific event handler + t[lo[e.fakeType || e.type]].dispatch(t, e, o); + } + }; + + // Add DOM events + each(lo, function(v, k) { + switch (k) { + case 'contextmenu': + if (tinymce.isOpera) { + // Fake contextmenu on Opera + t.dom.bind(t.getBody(), 'mousedown', function(e) { + if (e.ctrlKey) { + e.fakeType = 'contextmenu'; + eventHandler(e); + } + }); + } else + t.dom.bind(t.getBody(), k, eventHandler); + break; + + case 'paste': + t.dom.bind(t.getBody(), k, function(e) { + eventHandler(e); + }); + break; + + case 'submit': + case 'reset': + t.dom.bind(t.getElement().form || DOM.getParent(t.id, 'form'), k, eventHandler); + break; + + default: + t.dom.bind(s.content_editable ? t.getBody() : t.getDoc(), k, eventHandler); + } + }); + + t.dom.bind(s.content_editable ? t.getBody() : (isGecko ? t.getDoc() : t.getWin()), 'focus', function(e) { + t.focus(true); + }); + + + // Fixes bug where a specified document_base_uri could result in broken images + // This will also fix drag drop of images in Gecko + if (tinymce.isGecko) { + // Convert all images to absolute URLs +/* t.onSetContent.add(function(ed, o) { + each(ed.dom.select('img'), function(e) { + var v; + + if (v = e.getAttribute('_mce_src')) + e.src = t.documentBaseURI.toAbsolute(v); + }) + });*/ + + t.dom.bind(t.getDoc(), 'DOMNodeInserted', function(e) { + var v; + + e = e.target; + + if (e.nodeType === 1 && e.nodeName === 'IMG' && (v = e.getAttribute('_mce_src'))) + e.src = t.documentBaseURI.toAbsolute(v); + }); + } + + // Set various midas options in Gecko + if (isGecko) { + function setOpts() { + var t = this, d = t.getDoc(), s = t.settings; + + if (isGecko && !s.readonly) { + if (t._isHidden()) { + try { + if (!s.content_editable) + d.designMode = 'On'; + } catch (ex) { + // Fails if it's hidden + } + } + + try { + // Try new Gecko method + d.execCommand("styleWithCSS", 0, false); + } catch (ex) { + // Use old method + if (!t._isHidden()) + try {d.execCommand("useCSS", 0, true);} catch (ex) {} + } + + if (!s.table_inline_editing) + try {d.execCommand('enableInlineTableEditing', false, false);} catch (ex) {} + + if (!s.object_resizing) + try {d.execCommand('enableObjectResizing', false, false);} catch (ex) {} + } + }; + + t.onBeforeExecCommand.add(setOpts); + t.onMouseDown.add(setOpts); + } + + // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250 + // WebKit can't even do simple things like selecting an image + // This also fixes so it's possible to select mceItemAnchors + if (tinymce.isWebKit) { + t.onClick.add(function(ed, e) { + e = e.target; + + // Needs tobe the setBaseAndExtend or it will fail to select floated images + if (e.nodeName == 'IMG' || (e.nodeName == 'A' && t.dom.hasClass(e, 'mceItemAnchor'))) + t.selection.getSel().setBaseAndExtent(e, 0, e, 1); + }); + } + + // Add node change handlers + t.onMouseUp.add(t.nodeChanged); + //t.onClick.add(t.nodeChanged); + t.onKeyUp.add(function(ed, e) { + var c = e.keyCode; + + if ((c >= 33 && c <= 36) || (c >= 37 && c <= 40) || c == 13 || c == 45 || c == 46 || c == 8 || (tinymce.isMac && (c == 91 || c == 93)) || e.ctrlKey) + t.nodeChanged(); + }); + + // Add reset handler + t.onReset.add(function() { + t.setContent(t.startContent, {format : 'raw'}); + }); + + // Add shortcuts + if (s.custom_shortcuts) { + if (s.custom_undo_redo_keyboard_shortcuts) { + t.addShortcut('ctrl+z', t.getLang('undo_desc'), 'Undo'); + t.addShortcut('ctrl+y', t.getLang('redo_desc'), 'Redo'); + } + + // Add default shortcuts for gecko + t.addShortcut('ctrl+b', t.getLang('bold_desc'), 'Bold'); + t.addShortcut('ctrl+i', t.getLang('italic_desc'), 'Italic'); + t.addShortcut('ctrl+u', t.getLang('underline_desc'), 'Underline'); + + // BlockFormat shortcuts keys + for (i=1; i<=6; i++) + t.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]); + + t.addShortcut('ctrl+7', '', ['FormatBlock', false, '

    ']); + t.addShortcut('ctrl+8', '', ['FormatBlock', false, '

    ']); + t.addShortcut('ctrl+9', '', ['FormatBlock', false, '
    ']); + + function find(e) { + var v = null; + + if (!e.altKey && !e.ctrlKey && !e.metaKey) + return v; + + each(t.shortcuts, function(o) { + if (tinymce.isMac && o.ctrl != e.metaKey) + return; + else if (!tinymce.isMac && o.ctrl != e.ctrlKey) + return; + + if (o.alt != e.altKey) + return; + + if (o.shift != e.shiftKey) + return; + + if (e.keyCode == o.keyCode || (e.charCode && e.charCode == o.charCode)) { + v = o; + return false; + } + }); + + return v; + }; + + t.onKeyUp.add(function(ed, e) { + var o = find(e); + + if (o) + return Event.cancel(e); + }); + + t.onKeyPress.add(function(ed, e) { + var o = find(e); + + if (o) + return Event.cancel(e); + }); + + t.onKeyDown.add(function(ed, e) { + var o = find(e); + + if (o) { + o.func.call(o.scope); + return Event.cancel(e); + } + }); + } + + if (tinymce.isIE) { + // Fix so resize will only update the width and height attributes not the styles of an image + // It will also block mceItemNoResize items + t.dom.bind(t.getDoc(), 'controlselect', function(e) { + var re = t.resizeInfo, cb; + + e = e.target; + + // Don't do this action for non image elements + if (e.nodeName !== 'IMG') + return; + + if (re) + t.dom.unbind(re.node, re.ev, re.cb); + + if (!t.dom.hasClass(e, 'mceItemNoResize')) { + ev = 'resizeend'; + cb = t.dom.bind(e, ev, function(e) { + var v; + + e = e.target; + + if (v = t.dom.getStyle(e, 'width')) { + t.dom.setAttrib(e, 'width', v.replace(/[^0-9%]+/g, '')); + t.dom.setStyle(e, 'width', ''); + } + + if (v = t.dom.getStyle(e, 'height')) { + t.dom.setAttrib(e, 'height', v.replace(/[^0-9%]+/g, '')); + t.dom.setStyle(e, 'height', ''); + } + }); + } else { + ev = 'resizestart'; + cb = t.dom.bind(e, 'resizestart', Event.cancel, Event); + } + + re = t.resizeInfo = { + node : e, + ev : ev, + cb : cb + }; + }); + + t.onKeyDown.add(function(ed, e) { + switch (e.keyCode) { + case 8: + // Fix IE control + backspace browser bug + if (t.selection.getRng().item) { + ed.dom.remove(t.selection.getRng().item(0)); + return Event.cancel(e); + } + } + }); + + /*if (t.dom.boxModel) { + t.getBody().style.height = '100%'; + + Event.add(t.getWin(), 'resize', function(e) { + var docElm = t.getDoc().documentElement; + + docElm.style.height = (docElm.offsetHeight - 10) + 'px'; + }); + }*/ + } + + if (tinymce.isOpera) { + t.onClick.add(function(ed, e) { + Event.prevent(e); + }); + } + + // Add custom undo/redo handlers + if (s.custom_undo_redo) { + function addUndo() { + t.undoManager.typing = 0; + t.undoManager.add(); + }; + + t.dom.bind(t.getDoc(), 'focusout', function(e) { + if (!t.removed && t.undoManager.typing) + addUndo(); + }); + + t.onKeyUp.add(function(ed, e) { + if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45 || e.ctrlKey) + addUndo(); + }); + + t.onKeyDown.add(function(ed, e) { + var rng, parent, bookmark; + + // IE has a really odd bug where the DOM might include an node that doesn't have + // a proper structure. If you try to access nodeValue it would throw an illegal value exception. + // This seems to only happen when you delete contents and it seems to be avoidable if you refresh the element + // after you delete contents from it. See: #3008923 + if (isIE && e.keyCode == 46) { + rng = t.selection.getRng(); + + if (rng.parentElement) { + parent = rng.parentElement(); + + // Select next word when ctrl key is used in combo with delete + if (e.ctrlKey) { + rng.moveEnd('word', 1); + rng.select(); + } + + // Delete contents + t.selection.getSel().clear(); + + // Check if we are within the same parent + if (rng.parentElement() == parent) { + bookmark = t.selection.getBookmark(); + + try { + // Update the HTML and hopefully it will remove the artifacts + parent.innerHTML = parent.innerHTML; + } catch (ex) { + // And since it's IE it can sometimes produce an unknown runtime error + } + + // Restore the caret position + t.selection.moveToBookmark(bookmark); + } + + // Block the default delete behavior since it might be broken + e.preventDefault(); + return; + } + } + + // Is caracter positon keys + if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45) { + if (t.undoManager.typing) + addUndo(); + + return; + } + + if (!t.undoManager.typing) { + t.undoManager.add(); + t.undoManager.typing = 1; + } + }); + + t.onMouseDown.add(function() { + if (t.undoManager.typing) + addUndo(); + }); + } + }, + + _isHidden : function() { + var s; + + if (!isGecko) + return 0; + + // Weird, wheres that cursor selection? + s = this.selection.getSel(); + return (!s || !s.rangeCount || s.rangeCount == 0); + }, + + // Fix for bug #1867292 + _fixNesting : function(s) { + var d = [], i; + + s = s.replace(/<(\/)?([^\s>]+)[^>]*?>/g, function(a, b, c) { + var e; + + // Handle end element + if (b === '/') { + if (!d.length) + return ''; + + if (c !== d[d.length - 1].tag) { + for (i=d.length - 1; i>=0; i--) { + if (d[i].tag === c) { + d[i].close = 1; + break; + } + } + + return ''; + } else { + d.pop(); + + if (d.length && d[d.length - 1].close) { + a = a + ''; + d.pop(); + } + } + } else { + // Ignore these + if (/^(br|hr|input|meta|img|link|param)$/i.test(c)) + return a; + + // Ignore closed ones + if (/\/>$/.test(a)) + return a; + + d.push({tag : c}); // Push start element + } + + return a; + }); + + // End all open tags + for (i=d.length - 1; i>=0; i--) + s += ''; + + return s; + } + }); +})(tinymce); + +(function(tinymce) { + // Added for compression purposes + var each = tinymce.each, undefined, TRUE = true, FALSE = false; + + tinymce.EditorCommands = function(editor) { + var dom = editor.dom, + selection = editor.selection, + commands = {state: {}, exec : {}, value : {}}, + settings = editor.settings, + bookmark; + + function execCommand(command, ui, value) { + var func; + + command = command.toLowerCase(); + if (func = commands.exec[command]) { + func(command, ui, value); + return TRUE; + } + + return FALSE; + }; + + function queryCommandState(command) { + var func; + + command = command.toLowerCase(); + if (func = commands.state[command]) + return func(command); + + return -1; + }; + + function queryCommandValue(command) { + var func; + + command = command.toLowerCase(); + if (func = commands.value[command]) + return func(command); + + return FALSE; + }; + + function addCommands(command_list, type) { + type = type || 'exec'; + + each(command_list, function(callback, command) { + each(command.toLowerCase().split(','), function(command) { + commands[type][command] = callback; + }); + }); + }; + + // Expose public methods + tinymce.extend(this, { + execCommand : execCommand, + queryCommandState : queryCommandState, + queryCommandValue : queryCommandValue, + addCommands : addCommands + }); + + // Private methods + + function execNativeCommand(command, ui, value) { + if (ui === undefined) + ui = FALSE; + + if (value === undefined) + value = null; + + return editor.getDoc().execCommand(command, ui, value); + }; + + function isFormatMatch(name) { + return editor.formatter.match(name); + }; + + function toggleFormat(name, value) { + editor.formatter.toggle(name, value ? {value : value} : undefined); + }; + + function storeSelection(type) { + bookmark = selection.getBookmark(type); + }; + + function restoreSelection() { + selection.moveToBookmark(bookmark); + }; + + // Add execCommand overrides + addCommands({ + // Ignore these, added for compatibility + 'mceResetDesignMode,mceBeginUndoLevel' : function() {}, + + // Add undo manager logic + 'mceEndUndoLevel,mceAddUndoLevel' : function() { + editor.undoManager.add(); + }, + + 'Cut,Copy,Paste' : function(command) { + var doc = editor.getDoc(), failed; + + // Try executing the native command + try { + execNativeCommand(command); + } catch (ex) { + // Command failed + failed = TRUE; + } + + // Present alert message about clipboard access not being available + if (failed || !doc.queryCommandSupported(command)) { + if (tinymce.isGecko) { + editor.windowManager.confirm(editor.getLang('clipboard_msg'), function(state) { + if (state) + open('http://www.mozilla.org/editor/midasdemo/securityprefs.html', '_blank'); + }); + } else + editor.windowManager.alert(editor.getLang('clipboard_no_support')); + } + }, + + // Override unlink command + unlink : function(command) { + if (selection.isCollapsed()) + selection.select(selection.getNode()); + + execNativeCommand(command); + selection.collapse(FALSE); + }, + + // Override justify commands to use the text formatter engine + 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) { + var align = command.substring(7); + + // Remove all other alignments first + each('left,center,right,full'.split(','), function(name) { + if (align != name) + editor.formatter.remove('align' + name); + }); + + toggleFormat('align' + align); + }, + + // Override list commands to fix WebKit bug + 'InsertUnorderedList,InsertOrderedList' : function(command) { + var listElm, listParent; + + execNativeCommand(command); + + // WebKit produces lists within block elements so we need to split them + // we will replace the native list creation logic to custom logic later on + // TODO: Remove this when the list creation logic is removed + listElm = dom.getParent(selection.getNode(), 'ol,ul'); + if (listElm) { + listParent = listElm.parentNode; + + // If list is within a text block then split that block + if (/^(H[1-6]|P|ADDRESS|PRE)$/.test(listParent.nodeName)) { + storeSelection(); + dom.split(listParent, listElm); + restoreSelection(); + } + } + }, + + // Override commands to use the text formatter engine + 'Bold,Italic,Underline,Strikethrough' : function(command) { + toggleFormat(command); + }, + + // Override commands to use the text formatter engine + 'ForeColor,HiliteColor,FontName' : function(command, ui, value) { + toggleFormat(command, value); + }, + + FontSize : function(command, ui, value) { + var fontClasses, fontSizes; + + // Convert font size 1-7 to styles + if (value >= 1 && value <= 7) { + fontSizes = tinymce.explode(settings.font_size_style_values); + fontClasses = tinymce.explode(settings.font_size_classes); + + if (fontClasses) + value = fontClasses[value - 1] || value; + else + value = fontSizes[value - 1] || value; + } + + toggleFormat(command, value); + }, + + RemoveFormat : function(command) { + editor.formatter.remove(command); + }, + + mceBlockQuote : function(command) { + toggleFormat('blockquote'); + }, + + FormatBlock : function(command, ui, value) { + return toggleFormat(value || 'p'); + }, + + mceCleanup : function() { + var bookmark = selection.getBookmark(); + + editor.setContent(editor.getContent({cleanup : TRUE}), {cleanup : TRUE}); + + selection.moveToBookmark(bookmark); + }, + + mceRemoveNode : function(command, ui, value) { + var node = value || selection.getNode(); + + // Make sure that the body node isn't removed + if (node != editor.getBody()) { + storeSelection(); + editor.dom.remove(node, TRUE); + restoreSelection(); + } + }, + + mceSelectNodeDepth : function(command, ui, value) { + var counter = 0; + + dom.getParent(selection.getNode(), function(node) { + if (node.nodeType == 1 && counter++ == value) { + selection.select(node); + return FALSE; + } + }, editor.getBody()); + }, + + mceSelectNode : function(command, ui, value) { + selection.select(value); + }, + + mceInsertContent : function(command, ui, value) { + selection.setContent(value); + }, + + mceInsertRawHTML : function(command, ui, value) { + selection.setContent('tiny_mce_marker'); + editor.setContent(editor.getContent().replace(/tiny_mce_marker/g, value)); + }, + + mceSetContent : function(command, ui, value) { + editor.setContent(value); + }, + + 'Indent,Outdent' : function(command) { + var intentValue, indentUnit, value; + + // Setup indent level + intentValue = settings.indentation; + indentUnit = /[a-z%]+$/i.exec(intentValue); + intentValue = parseInt(intentValue); + + if (!queryCommandState('InsertUnorderedList') && !queryCommandState('InsertOrderedList')) { + each(selection.getSelectedBlocks(), function(element) { + if (command == 'outdent') { + value = Math.max(0, parseInt(element.style.paddingLeft || 0) - intentValue); + dom.setStyle(element, 'paddingLeft', value ? value + indentUnit : ''); + } else + dom.setStyle(element, 'paddingLeft', (parseInt(element.style.paddingLeft || 0) + intentValue) + indentUnit); + }); + } else + execNativeCommand(command); + }, + + mceRepaint : function() { + var bookmark; + + if (tinymce.isGecko) { + try { + storeSelection(TRUE); + + if (selection.getSel()) + selection.getSel().selectAllChildren(editor.getBody()); + + selection.collapse(TRUE); + restoreSelection(); + } catch (ex) { + // Ignore + } + } + }, + + mceToggleFormat : function(command, ui, value) { + editor.formatter.toggle(value); + }, + + InsertHorizontalRule : function() { + selection.setContent('
    '); + }, + + mceToggleVisualAid : function() { + editor.hasVisual = !editor.hasVisual; + editor.addVisual(); + }, + + mceReplaceContent : function(command, ui, value) { + selection.setContent(value.replace(/\{\$selection\}/g, selection.getContent({format : 'text'}))); + }, + + mceInsertLink : function(command, ui, value) { + var link = dom.getParent(selection.getNode(), 'a'); + + if (tinymce.is(value, 'string')) + value = {href : value}; + + if (!link) { + execNativeCommand('CreateLink', FALSE, 'javascript:mctmp(0);'); + each(dom.select('a[href=javascript:mctmp(0);]'), function(link) { + dom.setAttribs(link, value); + }); + } else { + if (value.href) + dom.setAttribs(link, value); + else + editor.dom.remove(link, TRUE); + } + }, + + selectAll : function() { + var root = dom.getRoot(), rng = dom.createRng(); + + rng.setStart(root, 0); + rng.setEnd(root, root.childNodes.length); + + editor.selection.setRng(rng); + } + }); + + // Add queryCommandState overrides + addCommands({ + // Override justify commands + 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) { + return isFormatMatch('align' + command.substring(7)); + }, + + 'Bold,Italic,Underline,Strikethrough' : function(command) { + return isFormatMatch(command); + }, + + mceBlockQuote : function() { + return isFormatMatch('blockquote'); + }, + + Outdent : function() { + var node; + + if (settings.inline_styles) { + if ((node = dom.getParent(selection.getStart(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0) + return TRUE; + + if ((node = dom.getParent(selection.getEnd(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0) + return TRUE; + } + + return queryCommandState('InsertUnorderedList') || queryCommandState('InsertOrderedList') || (!settings.inline_styles && !!dom.getParent(selection.getNode(), 'BLOCKQUOTE')); + }, + + 'InsertUnorderedList,InsertOrderedList' : function(command) { + return dom.getParent(selection.getNode(), command == 'insertunorderedlist' ? 'UL' : 'OL'); + } + }, 'state'); + + // Add queryCommandValue overrides + addCommands({ + 'FontSize,FontName' : function(command) { + var value = 0, parent; + + if (parent = dom.getParent(selection.getNode(), 'span')) { + if (command == 'fontsize') + value = parent.style.fontSize; + else + value = parent.style.fontFamily.replace(/, /g, ',').replace(/[\'\"]/g, '').toLowerCase(); + } + + return value; + } + }, 'value'); + + // Add undo manager logic + if (settings.custom_undo_redo) { + addCommands({ + Undo : function() { + editor.undoManager.undo(); + }, + + Redo : function() { + editor.undoManager.redo(); + } + }); + } + }; +})(tinymce); +(function(tinymce) { + var Dispatcher = tinymce.util.Dispatcher; + + tinymce.UndoManager = function(editor) { + var self, index = 0, data = []; + + function getContent() { + return tinymce.trim(editor.getContent({format : 'raw', no_events : 1})); + }; + + return self = { + typing : 0, + + onAdd : new Dispatcher(self), + onUndo : new Dispatcher(self), + onRedo : new Dispatcher(self), + + add : function(level) { + var i, settings = editor.settings, lastLevel; + + level = level || {}; + level.content = getContent(); + + // Add undo level if needed + lastLevel = data[index]; + if (lastLevel && lastLevel.content == level.content) { + if (index > 0 || data.length == 1) + return null; + } + + // Time to compress + if (settings.custom_undo_redo_levels) { + if (data.length > settings.custom_undo_redo_levels) { + for (i = 0; i < data.length - 1; i++) + data[i] = data[i + 1]; + + data.length--; + index = data.length; + } + } + + // Get a non intrusive normalized bookmark + level.bookmark = editor.selection.getBookmark(2, true); + + // Crop array if needed + if (index < data.length - 1) { + // Treat first level as initial + if (index == 0) + data = []; + else + data.length = index + 1; + } + + data.push(level); + index = data.length - 1; + + self.onAdd.dispatch(self, level); + editor.isNotDirty = 0; + + return level; + }, + + undo : function() { + var level, i; + + if (self.typing) { + self.add(); + self.typing = 0; + } + + if (index > 0) { + level = data[--index]; + + editor.setContent(level.content, {format : 'raw'}); + editor.selection.moveToBookmark(level.bookmark); + + self.onUndo.dispatch(self, level); + } + + return level; + }, + + redo : function() { + var level; + + if (index < data.length - 1) { + level = data[++index]; + + editor.setContent(level.content, {format : 'raw'}); + editor.selection.moveToBookmark(level.bookmark); + + self.onRedo.dispatch(self, level); + } + + return level; + }, + + clear : function() { + data = []; + index = self.typing = 0; + }, + + hasUndo : function() { + return index > 0 || self.typing; + }, + + hasRedo : function() { + return index < data.length - 1; + } + }; + }; +})(tinymce); + +(function(tinymce) { + // Shorten names + var Event = tinymce.dom.Event, + isIE = tinymce.isIE, + isGecko = tinymce.isGecko, + isOpera = tinymce.isOpera, + each = tinymce.each, + extend = tinymce.extend, + TRUE = true, + FALSE = false; + + function cloneFormats(node) { + var clone, temp, inner; + + do { + if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(node.nodeName)) { + if (clone) { + temp = node.cloneNode(false); + temp.appendChild(clone); + clone = temp; + } else { + clone = inner = node.cloneNode(false); + } + + clone.removeAttribute('id'); + } + } while (node = node.parentNode); + + if (clone) + return {wrapper : clone, inner : inner}; + }; + + // Checks if the selection/caret is at the end of the specified block element + function isAtEnd(rng, par) { + var rng2 = par.ownerDocument.createRange(); + + rng2.setStart(rng.endContainer, rng.endOffset); + rng2.setEndAfter(par); + + // Get number of characters to the right of the cursor if it's zero then we are at the end and need to merge the next block element + return rng2.cloneContents().textContent.length == 0; + }; + + function isEmpty(n) { + n = n.innerHTML; + + n = n.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi, '-'); // Keep these convert them to - chars + n = n.replace(/<[^>]+>/g, ''); // Remove all tags + + return n.replace(/[ \u00a0\t\r\n]+/g, '') == ''; + }; + + function splitList(selection, dom, li) { + var listBlock, block; + + if (isEmpty(li)) { + listBlock = dom.getParent(li, 'ul,ol'); + + if (!dom.getParent(listBlock.parentNode, 'ul,ol')) { + dom.split(listBlock, li); + block = dom.create('p', 0, '
    '); + dom.replace(block, li); + selection.select(block, 1); + } + + return FALSE; + } + + return TRUE; + }; + + tinymce.create('tinymce.ForceBlocks', { + ForceBlocks : function(ed) { + var t = this, s = ed.settings, elm; + + t.editor = ed; + t.dom = ed.dom; + elm = (s.forced_root_block || 'p').toLowerCase(); + s.element = elm.toUpperCase(); + + ed.onPreInit.add(t.setup, t); + + t.reOpera = new RegExp('(\\u00a0| | )<\/' + elm + '>', 'gi'); + t.rePadd = new RegExp(']+)><\\\/p>|]+)\\\/>|]+)>\\s+<\\\/p>|

    <\\\/p>||

    \\s+<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR1 = new RegExp(']+)>[\\s\\u00a0]+<\\\/p>|

    [\\s\\u00a0]+<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR2 = new RegExp('<%p()([^>]+)>( | )<\\\/%p>|<%p>( | )<\\\/%p>'.replace(/%p/g, elm), 'gi'); + t.reBR2Nbsp = new RegExp(']+)>\\s*
    \\s*<\\\/p>|

    \\s*
    \\s*<\\\/p>'.replace(/p/g, elm), 'gi'); + + function padd(ed, o) { + if (isOpera) + o.content = o.content.replace(t.reOpera, ''); + + o.content = o.content.replace(t.rePadd, '<' + elm + '$1$2$3$4$5$6>\u00a0'); + + if (!isIE && !isOpera && o.set) { + // Use   instead of BR in padded paragraphs + o.content = o.content.replace(t.reNbsp2BR1, '<' + elm + '$1$2>
    '); + o.content = o.content.replace(t.reNbsp2BR2, '<' + elm + '$1$2>
    '); + } else + o.content = o.content.replace(t.reBR2Nbsp, '<' + elm + '$1$2>\u00a0'); + }; + + ed.onBeforeSetContent.add(padd); + ed.onPostProcess.add(padd); + + if (s.forced_root_block) { + ed.onInit.add(t.forceRoots, t); + ed.onSetContent.add(t.forceRoots, t); + ed.onBeforeGetContent.add(t.forceRoots, t); + } + }, + + setup : function() { + var t = this, ed = t.editor, s = ed.settings, dom = ed.dom, selection = ed.selection; + + // Force root blocks when typing and when getting output + if (s.forced_root_block) { + ed.onBeforeExecCommand.add(t.forceRoots, t); + ed.onKeyUp.add(t.forceRoots, t); + ed.onPreProcess.add(t.forceRoots, t); + } + + if (s.force_br_newlines) { + // Force IE to produce BRs on enter + if (isIE) { + ed.onKeyPress.add(function(ed, e) { + var n; + + if (e.keyCode == 13 && selection.getNode().nodeName != 'LI') { + selection.setContent('
    ', {format : 'raw'}); + n = dom.get('__'); + n.removeAttribute('id'); + selection.select(n); + selection.collapse(); + return Event.cancel(e); + } + }); + } + } + + if (s.force_p_newlines) { + if (!isIE) { + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && !e.shiftKey && !t.insertPara(e)) + Event.cancel(e); + }); + } else { + // Ungly hack to for IE to preserve the formatting when you press + // enter at the end of a block element with formatted contents + // This logic overrides the browsers default logic with + // custom logic that enables us to control the output + tinymce.addUnload(function() { + t._previousFormats = 0; // Fix IE leak + }); + + ed.onKeyPress.add(function(ed, e) { + t._previousFormats = 0; + + // Clone the current formats, this will later be applied to the new block contents + if (e.keyCode == 13 && !e.shiftKey && ed.selection.isCollapsed() && s.keep_styles) + t._previousFormats = cloneFormats(ed.selection.getStart()); + }); + + ed.onKeyUp.add(function(ed, e) { + // Let IE break the element and the wrap the new caret location in the previous formats + if (e.keyCode == 13 && !e.shiftKey) { + var parent = ed.selection.getStart(), fmt = t._previousFormats; + + // Parent is an empty block + if (!parent.hasChildNodes()) { + parent = dom.getParent(parent, dom.isBlock); + + if (parent) { + parent.innerHTML = ''; + + if (t._previousFormats) { + parent.appendChild(fmt.wrapper); + fmt.inner.innerHTML = '\uFEFF'; + } else + parent.innerHTML = '\uFEFF'; + + selection.select(parent, 1); + ed.getDoc().execCommand('Delete', false, null); + } + } + } + }); + } + + if (isGecko) { + ed.onKeyDown.add(function(ed, e) { + if ((e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) + t.backspaceDelete(e, e.keyCode == 8); + }); + } + } + + // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973 + if (tinymce.isWebKit) { + function insertBr(ed) { + var rng = selection.getRng(), br, div = dom.create('div', null, ' '), divYPos, vpHeight = dom.getViewPort(ed.getWin()).h; + + // Insert BR element + rng.insertNode(br = dom.create('br')); + + // Place caret after BR + rng.setStartAfter(br); + rng.setEndAfter(br); + selection.setRng(rng); + + // Could not place caret after BR then insert an nbsp entity and move the caret + if (selection.getSel().focusNode == br.previousSibling) { + selection.select(dom.insertAfter(dom.doc.createTextNode('\u00a0'), br)); + selection.collapse(TRUE); + } + + // Create a temporary DIV after the BR and get the position as it + // seems like getPos() returns 0 for text nodes and BR elements. + dom.insertAfter(div, br); + divYPos = dom.getPos(div).y; + dom.remove(div); + + // Scroll to new position, scrollIntoView can't be used due to bug: http://bugs.webkit.org/show_bug.cgi?id=16117 + if (divYPos > vpHeight) // It is not necessary to scroll if the DIV is inside the view port. + ed.getWin().scrollTo(0, divYPos); + }; + + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && (e.shiftKey || (s.force_br_newlines && !dom.getParent(selection.getNode(), 'h1,h2,h3,h4,h5,h6,ol,ul')))) { + insertBr(ed); + Event.cancel(e); + } + }); + } + + // Padd empty inline elements within block elements + // For example:

    becomes

     

    + ed.onPreProcess.add(function(ed, o) { + each(dom.select('p,h1,h2,h3,h4,h5,h6,div', o.node), function(p) { + if (isEmpty(p)) { + each(dom.select('span,em,strong,b,i', o.node), function(n) { + if (!n.hasChildNodes()) { + n.appendChild(ed.getDoc().createTextNode('\u00a0')); + return FALSE; // Break the loop one padding is enough + } + }); + } + }); + }); + + // IE specific fixes + if (isIE) { + // Replaces IE:s auto generated paragraphs with the specified element name + if (s.element != 'P') { + ed.onKeyPress.add(function(ed, e) { + t.lastElm = selection.getNode().nodeName; + }); + + ed.onKeyUp.add(function(ed, e) { + var bl, n = selection.getNode(), b = ed.getBody(); + + if (b.childNodes.length === 1 && n.nodeName == 'P') { + n = dom.rename(n, s.element); + selection.select(n); + selection.collapse(); + ed.nodeChanged(); + } else if (e.keyCode == 13 && !e.shiftKey && t.lastElm != 'P') { + bl = dom.getParent(n, 'p'); + + if (bl) { + dom.rename(bl, s.element); + ed.nodeChanged(); + } + } + }); + } + } + }, + + find : function(n, t, s) { + var ed = this.editor, w = ed.getDoc().createTreeWalker(n, 4, null, FALSE), c = -1; + + while (n = w.nextNode()) { + c++; + + // Index by node + if (t == 0 && n == s) + return c; + + // Node by index + if (t == 1 && c == s) + return n; + } + + return -1; + }, + + forceRoots : function(ed, e) { + var t = this, ed = t.editor, b = ed.getBody(), d = ed.getDoc(), se = ed.selection, s = se.getSel(), r = se.getRng(), si = -2, ei, so, eo, tr, c = -0xFFFFFF; + var nx, bl, bp, sp, le, nl = b.childNodes, i, n, eid; + + // Fix for bug #1863847 + //if (e && e.keyCode == 13) + // return TRUE; + + // Wrap non blocks into blocks + for (i = nl.length - 1; i >= 0; i--) { + nx = nl[i]; + + // Ignore internal elements + if (nx.nodeType === 1 && nx.getAttribute('_mce_type')) { + bl = null; + continue; + } + + // Is text or non block element + if (nx.nodeType === 3 || (!t.dom.isBlock(nx) && nx.nodeType !== 8 && !/^(script|mce:script|style|mce:style)$/i.test(nx.nodeName))) { + if (!bl) { + // Create new block but ignore whitespace + if (nx.nodeType != 3 || /[^\s]/g.test(nx.nodeValue)) { + // Store selection + if (si == -2 && r) { + if (!isIE) { + // If selection is element then mark it + if (r.startContainer.nodeType == 1 && (n = r.startContainer.childNodes[r.startOffset]) && n.nodeType == 1) { + // Save the id of the selected element + eid = n.getAttribute("id"); + n.setAttribute("id", "__mce"); + } else { + // If element is inside body, might not be the case in contentEdiable mode + if (ed.dom.getParent(r.startContainer, function(e) {return e === b;})) { + so = r.startOffset; + eo = r.endOffset; + si = t.find(b, 0, r.startContainer); + ei = t.find(b, 0, r.endContainer); + } + } + } else { + // Force control range into text range + if (r.item) { + tr = d.body.createTextRange(); + tr.moveToElementText(r.item(0)); + r = tr; + } + + tr = d.body.createTextRange(); + tr.moveToElementText(b); + tr.collapse(1); + bp = tr.move('character', c) * -1; + + tr = r.duplicate(); + tr.collapse(1); + sp = tr.move('character', c) * -1; + + tr = r.duplicate(); + tr.collapse(0); + le = (tr.move('character', c) * -1) - sp; + + si = sp - bp; + ei = le; + } + } + + // Uses replaceChild instead of cloneNode since it removes selected attribute from option elements on IE + // See: http://support.microsoft.com/kb/829907 + bl = ed.dom.create(ed.settings.forced_root_block); + nx.parentNode.replaceChild(bl, nx); + bl.appendChild(nx); + } + } else { + if (bl.hasChildNodes()) + bl.insertBefore(nx, bl.firstChild); + else + bl.appendChild(nx); + } + } else + bl = null; // Time to create new block + } + + // Restore selection + if (si != -2) { + if (!isIE) { + bl = b.getElementsByTagName(ed.settings.element)[0]; + r = d.createRange(); + + // Select last location or generated block + if (si != -1) + r.setStart(t.find(b, 1, si), so); + else + r.setStart(bl, 0); + + // Select last location or generated block + if (ei != -1) + r.setEnd(t.find(b, 1, ei), eo); + else + r.setEnd(bl, 0); + + if (s) { + s.removeAllRanges(); + s.addRange(r); + } + } else { + try { + r = s.createRange(); + r.moveToElementText(b); + r.collapse(1); + r.moveStart('character', si); + r.moveEnd('character', ei); + r.select(); + } catch (ex) { + // Ignore + } + } + } else if (!isIE && (n = ed.dom.get('__mce'))) { + // Restore the id of the selected element + if (eid) + n.setAttribute('id', eid); + else + n.removeAttribute('id'); + + // Move caret before selected element + r = d.createRange(); + r.setStartBefore(n); + r.setEndBefore(n); + se.setRng(r); + } + }, + + getParentBlock : function(n) { + var d = this.dom; + + return d.getParent(n, d.isBlock); + }, + + insertPara : function(e) { + var t = this, ed = t.editor, dom = ed.dom, d = ed.getDoc(), se = ed.settings, s = ed.selection.getSel(), r = s.getRangeAt(0), b = d.body; + var rb, ra, dir, sn, so, en, eo, sb, eb, bn, bef, aft, sc, ec, n, vp = dom.getViewPort(ed.getWin()), y, ch, car; + + // If root blocks are forced then use Operas default behavior since it's really good +// Removed due to bug: #1853816 +// if (se.forced_root_block && isOpera) +// return TRUE; + + // Setup before range + rb = d.createRange(); + + // If is before the first block element and in body, then move it into first block element + rb.setStart(s.anchorNode, s.anchorOffset); + rb.collapse(TRUE); + + // Setup after range + ra = d.createRange(); + + // If is before the first block element and in body, then move it into first block element + ra.setStart(s.focusNode, s.focusOffset); + ra.collapse(TRUE); + + // Setup start/end points + dir = rb.compareBoundaryPoints(rb.START_TO_END, ra) < 0; + sn = dir ? s.anchorNode : s.focusNode; + so = dir ? s.anchorOffset : s.focusOffset; + en = dir ? s.focusNode : s.anchorNode; + eo = dir ? s.focusOffset : s.anchorOffset; + + // If selection is in empty table cell + if (sn === en && /^(TD|TH)$/.test(sn.nodeName)) { + if (sn.firstChild.nodeName == 'BR') + dom.remove(sn.firstChild); // Remove BR + + // Create two new block elements + if (sn.childNodes.length == 0) { + ed.dom.add(sn, se.element, null, '
    '); + aft = ed.dom.add(sn, se.element, null, '
    '); + } else { + n = sn.innerHTML; + sn.innerHTML = ''; + ed.dom.add(sn, se.element, null, n); + aft = ed.dom.add(sn, se.element, null, '
    '); + } + + // Move caret into the last one + r = d.createRange(); + r.selectNodeContents(aft); + r.collapse(1); + ed.selection.setRng(r); + + return FALSE; + } + + // If the caret is in an invalid location in FF we need to move it into the first block + if (sn == b && en == b && b.firstChild && ed.dom.isBlock(b.firstChild)) { + sn = en = sn.firstChild; + so = eo = 0; + rb = d.createRange(); + rb.setStart(sn, 0); + ra = d.createRange(); + ra.setStart(en, 0); + } + + // Never use body as start or end node + sn = sn.nodeName == "HTML" ? d.body : sn; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes + sn = sn.nodeName == "BODY" ? sn.firstChild : sn; + en = en.nodeName == "HTML" ? d.body : en; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes + en = en.nodeName == "BODY" ? en.firstChild : en; + + // Get start and end blocks + sb = t.getParentBlock(sn); + eb = t.getParentBlock(en); + bn = sb ? sb.nodeName : se.element; // Get block name to create + + // Return inside list use default browser behavior + if (n = t.dom.getParent(sb, 'li,pre')) { + if (n.nodeName == 'LI') + return splitList(ed.selection, t.dom, n); + + return TRUE; + } + + // If caption or absolute layers then always generate new blocks within + if (sb && (sb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { + bn = se.element; + sb = null; + } + + // If caption or absolute layers then always generate new blocks within + if (eb && (eb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { + bn = se.element; + eb = null; + } + + // Use P instead + if (/(TD|TABLE|TH|CAPTION)/.test(bn) || (sb && bn == "DIV" && /left|right/gi.test(dom.getStyle(sb, 'float', 1)))) { + bn = se.element; + sb = eb = null; + } + + // Setup new before and after blocks + bef = (sb && sb.nodeName == bn) ? sb.cloneNode(0) : ed.dom.create(bn); + aft = (eb && eb.nodeName == bn) ? eb.cloneNode(0) : ed.dom.create(bn); + + // Remove id from after clone + aft.removeAttribute('id'); + + // Is header and cursor is at the end, then force paragraph under + if (/^(H[1-6])$/.test(bn) && isAtEnd(r, sb)) + aft = ed.dom.create(se.element); + + // Find start chop node + n = sc = sn; + do { + if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName)) + break; + + sc = n; + } while ((n = n.previousSibling ? n.previousSibling : n.parentNode)); + + // Find end chop node + n = ec = en; + do { + if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName)) + break; + + ec = n; + } while ((n = n.nextSibling ? n.nextSibling : n.parentNode)); + + // Place first chop part into before block element + if (sc.nodeName == bn) + rb.setStart(sc, 0); + else + rb.setStartBefore(sc); + + rb.setEnd(sn, so); + bef.appendChild(rb.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari + + // Place secnd chop part within new block element + try { + ra.setEndAfter(ec); + } catch(ex) { + //console.debug(s.focusNode, s.focusOffset); + } + + ra.setStart(en, eo); + aft.appendChild(ra.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari + + // Create range around everything + r = d.createRange(); + if (!sc.previousSibling && sc.parentNode.nodeName == bn) { + r.setStartBefore(sc.parentNode); + } else { + if (rb.startContainer.nodeName == bn && rb.startOffset == 0) + r.setStartBefore(rb.startContainer); + else + r.setStart(rb.startContainer, rb.startOffset); + } + + if (!ec.nextSibling && ec.parentNode.nodeName == bn) + r.setEndAfter(ec.parentNode); + else + r.setEnd(ra.endContainer, ra.endOffset); + + // Delete and replace it with new block elements + r.deleteContents(); + + if (isOpera) + ed.getWin().scrollTo(0, vp.y); + + // Never wrap blocks in blocks + if (bef.firstChild && bef.firstChild.nodeName == bn) + bef.innerHTML = bef.firstChild.innerHTML; + + if (aft.firstChild && aft.firstChild.nodeName == bn) + aft.innerHTML = aft.firstChild.innerHTML; + + // Padd empty blocks + if (isEmpty(bef)) + bef.innerHTML = '
    '; + + function appendStyles(e, en) { + var nl = [], nn, n, i; + + e.innerHTML = ''; + + // Make clones of style elements + if (se.keep_styles) { + n = en; + do { + // We only want style specific elements + if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(n.nodeName)) { + nn = n.cloneNode(FALSE); + dom.setAttrib(nn, 'id', ''); // Remove ID since it needs to be unique + nl.push(nn); + } + } while (n = n.parentNode); + } + + // Append style elements to aft + if (nl.length > 0) { + for (i = nl.length - 1, nn = e; i >= 0; i--) + nn = nn.appendChild(nl[i]); + + // Padd most inner style element + nl[0].innerHTML = isOpera ? ' ' : '
    '; // Extra space for Opera so that the caret can move there + return nl[0]; // Move caret to most inner element + } else + e.innerHTML = isOpera ? ' ' : '
    '; // Extra space for Opera so that the caret can move there + }; + + // Fill empty afterblook with current style + if (isEmpty(aft)) + car = appendStyles(aft, en); + + // Opera needs this one backwards for older versions + if (isOpera && parseFloat(opera.version()) < 9.5) { + r.insertNode(bef); + r.insertNode(aft); + } else { + r.insertNode(aft); + r.insertNode(bef); + } + + // Normalize + aft.normalize(); + bef.normalize(); + + function first(n) { + return d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE).nextNode() || n; + }; + + // Move cursor and scroll into view + r = d.createRange(); + r.selectNodeContents(isGecko ? first(car || aft) : car || aft); + r.collapse(1); + s.removeAllRanges(); + s.addRange(r); + + // scrollIntoView seems to scroll the parent window in most browsers now including FF 3.0b4 so it's time to stop using it and do it our selfs + y = ed.dom.getPos(aft).y; + ch = aft.clientHeight; + + // Is element within viewport + if (y < vp.y || y + ch > vp.y + vp.h) { + ed.getWin().scrollTo(0, y < vp.y ? y : y - vp.h + 25); // Needs to be hardcoded to roughly one line of text if a huge text block is broken into two blocks + //console.debug('SCROLL!', 'vp.y: ' + vp.y, 'y' + y, 'vp.h' + vp.h, 'clientHeight' + aft.clientHeight, 'yyy: ' + (y < vp.y ? y : y - vp.h + aft.clientHeight)); + } + + return FALSE; + }, + + backspaceDelete : function(e, bs) { + var t = this, ed = t.editor, b = ed.getBody(), dom = ed.dom, n, se = ed.selection, r = se.getRng(), sc = r.startContainer, n, w, tn, walker; + + // Delete when caret is behind a element doesn't work correctly on Gecko see #3011651 + if (!bs && r.collapsed && sc.nodeType == 1 && r.startOffset == sc.childNodes.length) { + walker = new tinymce.dom.TreeWalker(sc.lastChild, sc); + + // Walk the dom backwards until we find a text node + for (n = sc.lastChild; n; n = walker.prev()) { + if (n.nodeType == 3) { + r.setStart(n, n.nodeValue.length); + r.collapse(true); + se.setRng(r); + return; + } + } + } + + // The caret sometimes gets stuck in Gecko if you delete empty paragraphs + // This workaround removes the element by hand and moves the caret to the previous element + if (sc && ed.dom.isBlock(sc) && !/^(TD|TH)$/.test(sc.nodeName) && bs) { + if (sc.childNodes.length == 0 || (sc.childNodes.length == 1 && sc.firstChild.nodeName == 'BR')) { + // Find previous block element + n = sc; + while ((n = n.previousSibling) && !ed.dom.isBlock(n)) ; + + if (n) { + if (sc != b.firstChild) { + // Find last text node + w = ed.dom.doc.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE); + while (tn = w.nextNode()) + n = tn; + + // Place caret at the end of last text node + r = ed.getDoc().createRange(); + r.setStart(n, n.nodeValue ? n.nodeValue.length : 0); + r.setEnd(n, n.nodeValue ? n.nodeValue.length : 0); + se.setRng(r); + + // Remove the target container + ed.dom.remove(sc); + } + + return Event.cancel(e); + } + } + } + } + }); +})(tinymce); + +(function(tinymce) { + // Shorten names + var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend; + + tinymce.create('tinymce.ControlManager', { + ControlManager : function(ed, s) { + var t = this, i; + + s = s || {}; + t.editor = ed; + t.controls = {}; + t.onAdd = new tinymce.util.Dispatcher(t); + t.onPostRender = new tinymce.util.Dispatcher(t); + t.prefix = s.prefix || ed.id + '_'; + t._cls = {}; + + t.onPostRender.add(function() { + each(t.controls, function(c) { + c.postRender(); + }); + }); + }, + + get : function(id) { + return this.controls[this.prefix + id] || this.controls[id]; + }, + + setActive : function(id, s) { + var c = null; + + if (c = this.get(id)) + c.setActive(s); + + return c; + }, + + setDisabled : function(id, s) { + var c = null; + + if (c = this.get(id)) + c.setDisabled(s); + + return c; + }, + + add : function(c) { + var t = this; + + if (c) { + t.controls[c.id] = c; + t.onAdd.dispatch(c, t); + } + + return c; + }, + + createControl : function(n) { + var c, t = this, ed = t.editor; + + each(ed.plugins, function(p) { + if (p.createControl) { + c = p.createControl(n, t); + + if (c) + return false; + } + }); + + switch (n) { + case "|": + case "separator": + return t.createSeparator(); + } + + if (!c && ed.buttons && (c = ed.buttons[n])) + return t.createButton(n, c); + + return t.add(c); + }, + + createDropMenu : function(id, s, cc) { + var t = this, ed = t.editor, c, bm, v, cls; + + s = extend({ + 'class' : 'mceDropDown', + constrain : ed.settings.constrain_menus + }, s); + + s['class'] = s['class'] + ' ' + ed.getParam('skin') + 'Skin'; + if (v = ed.getParam('skin_variant')) + s['class'] += ' ' + ed.getParam('skin') + 'Skin' + v.substring(0, 1).toUpperCase() + v.substring(1); + + id = t.prefix + id; + cls = cc || t._cls.dropmenu || tinymce.ui.DropMenu; + c = t.controls[id] = new cls(id, s); + c.onAddItem.add(function(c, o) { + var s = o.settings; + + s.title = ed.getLang(s.title, s.title); + + if (!s.onclick) { + s.onclick = function(v) { + if (s.cmd) + ed.execCommand(s.cmd, s.ui || false, s.value); + }; + } + }); + + ed.onRemove.add(function() { + c.destroy(); + }); + + // Fix for bug #1897785, #1898007 + if (tinymce.isIE) { + c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + + bm = ed.selection.getBookmark(1); + }); + + c.onHideMenu.add(function() { + if (bm) { + ed.selection.moveToBookmark(bm); + bm = 0; + } + }); + } + + return t.add(c); + }, + + createListBox : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + + if (ed.settings.use_native_selects) + c = new tinymce.ui.NativeListBox(id, s); + else { + cls = cc || t._cls.listbox || tinymce.ui.ListBox; + c = new cls(id, s); + } + + t.controls[id] = c; + + // Fix focus problem in Safari + if (tinymce.isWebKit) { + c.onPostRender.add(function(c, n) { + // Store bookmark on mousedown + Event.add(n, 'mousedown', function() { + ed.bookmark = ed.selection.getBookmark(1); + }); + + // Restore on focus, since it might be lost + Event.add(n, 'focus', function() { + ed.selection.moveToBookmark(ed.bookmark); + ed.bookmark = null; + }); + }); + } + + if (c.hideMenu) + ed.onMouseDown.add(c.hideMenu, c); + + return t.add(c); + }, + + createButton : function(id, s, cc) { + var t = this, ed = t.editor, o, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.label = ed.translate(s.label); + s.scope = s.scope || ed; + + if (!s.onclick && !s.menu_button) { + s.onclick = function() { + ed.execCommand(s.cmd, s.ui || false, s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + unavailable_prefix : ed.getLang('unavailable', ''), + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + + if (s.menu_button) { + cls = cc || t._cls.menubutton || tinymce.ui.MenuButton; + c = new cls(id, s); + ed.onMouseDown.add(c.hideMenu, c); + } else { + cls = t._cls.button || tinymce.ui.Button; + c = new cls(id, s); + } + + return t.add(c); + }, + + createMenuButton : function(id, s, cc) { + s = s || {}; + s.menu_button = 1; + + return this.createButton(id, s, cc); + }, + + createSplitButton : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onclick) { + s.onclick = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + cls = cc || t._cls.splitbutton || tinymce.ui.SplitButton; + c = t.add(new cls(id, s)); + ed.onMouseDown.add(c.hideMenu, c); + + return c; + }, + + createColorSplitButton : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls, bm; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onclick) { + s.onclick = function(v) { + if (tinymce.isIE) + bm = ed.selection.getBookmark(1); + + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + 'menu_class' : ed.getParam('skin') + 'Skin', + scope : s.scope, + more_colors_title : ed.getLang('more_colors') + }, s); + + id = t.prefix + id; + cls = cc || t._cls.colorsplitbutton || tinymce.ui.ColorSplitButton; + c = new cls(id, s); + ed.onMouseDown.add(c.hideMenu, c); + + // Remove the menu element when the editor is removed + ed.onRemove.add(function() { + c.destroy(); + }); + + // Fix for bug #1897785, #1898007 + if (tinymce.isIE) { + c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + bm = ed.selection.getBookmark(1); + }); + + c.onHideMenu.add(function() { + if (bm) { + ed.selection.moveToBookmark(bm); + bm = 0; + } + }); + } + + return t.add(c); + }, + + createToolbar : function(id, s, cc) { + var c, t = this, cls; + + id = t.prefix + id; + cls = cc || t._cls.toolbar || tinymce.ui.Toolbar; + c = new cls(id, s); + + if (t.get(id)) + return null; + + return t.add(c); + }, + + createSeparator : function(cc) { + var cls = cc || this._cls.separator || tinymce.ui.Separator; + + return new cls(); + }, + + setControlType : function(n, c) { + return this._cls[n.toLowerCase()] = c; + }, + + destroy : function() { + each(this.controls, function(c) { + c.destroy(); + }); + + this.controls = null; + } + }); +})(tinymce); + +(function(tinymce) { + var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isIE = tinymce.isIE, isOpera = tinymce.isOpera; + + tinymce.create('tinymce.WindowManager', { + WindowManager : function(ed) { + var t = this; + + t.editor = ed; + t.onOpen = new Dispatcher(t); + t.onClose = new Dispatcher(t); + t.params = {}; + t.features = {}; + }, + + open : function(s, p) { + var t = this, f = '', x, y, mo = t.editor.settings.dialog_type == 'modal', w, sw, sh, vp = tinymce.DOM.getViewPort(), u; + + // Default some options + s = s || {}; + p = p || {}; + sw = isOpera ? vp.w : screen.width; // Opera uses windows inside the Opera window + sh = isOpera ? vp.h : screen.height; + s.name = s.name || 'mc_' + new Date().getTime(); + s.width = parseInt(s.width || 320); + s.height = parseInt(s.height || 240); + s.resizable = true; + s.left = s.left || parseInt(sw / 2.0) - (s.width / 2.0); + s.top = s.top || parseInt(sh / 2.0) - (s.height / 2.0); + p.inline = false; + p.mce_width = s.width; + p.mce_height = s.height; + p.mce_auto_focus = s.auto_focus; + + if (mo) { + if (isIE) { + s.center = true; + s.help = false; + s.dialogWidth = s.width + 'px'; + s.dialogHeight = s.height + 'px'; + s.scroll = s.scrollbars || false; + } + } + + // Build features string + each(s, function(v, k) { + if (tinymce.is(v, 'boolean')) + v = v ? 'yes' : 'no'; + + if (!/^(name|url)$/.test(k)) { + if (isIE && mo) + f += (f ? ';' : '') + k + ':' + v; + else + f += (f ? ',' : '') + k + '=' + v; + } + }); + + t.features = s; + t.params = p; + t.onOpen.dispatch(t, s, p); + + u = s.url || s.file; + u = tinymce._addVer(u); + + try { + if (isIE && mo) { + w = 1; + window.showModalDialog(u, window, f); + } else + w = window.open(u, s.name, f); + } catch (ex) { + // Ignore + } + + if (!w) + alert(t.editor.getLang('popup_blocked')); + }, + + close : function(w) { + w.close(); + this.onClose.dispatch(this); + }, + + createInstance : function(cl, a, b, c, d, e) { + var f = tinymce.resolve(cl); + + return new f(a, b, c, d, e); + }, + + confirm : function(t, cb, s, w) { + w = w || window; + + cb.call(s || this, w.confirm(this._decode(this.editor.getLang(t, t)))); + }, + + alert : function(tx, cb, s, w) { + var t = this; + + w = w || window; + w.alert(t._decode(t.editor.getLang(tx, tx))); + + if (cb) + cb.call(s || t); + }, + + resizeBy : function(dw, dh, win) { + win.resizeBy(dw, dh); + }, + + // Internal functions + + _decode : function(s) { + return tinymce.DOM.decode(s).replace(/\\n/g, '\n'); + } + }); +}(tinymce)); +(function(tinymce) { + function CommandManager() { + var execCommands = {}, queryStateCommands = {}, queryValueCommands = {}; + + function add(collection, cmd, func, scope) { + if (typeof(cmd) == 'string') + cmd = [cmd]; + + tinymce.each(cmd, function(cmd) { + collection[cmd.toLowerCase()] = {func : func, scope : scope}; + }); + }; + + tinymce.extend(this, { + add : function(cmd, func, scope) { + add(execCommands, cmd, func, scope); + }, + + addQueryStateHandler : function(cmd, func, scope) { + add(queryStateCommands, cmd, func, scope); + }, + + addQueryValueHandler : function(cmd, func, scope) { + add(queryValueCommands, cmd, func, scope); + }, + + execCommand : function(scope, cmd, ui, value, args) { + if (cmd = execCommands[cmd.toLowerCase()]) { + if (cmd.func.call(scope || cmd.scope, ui, value, args) !== false) + return true; + } + }, + + queryCommandValue : function() { + if (cmd = queryValueCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + }, + + queryCommandState : function() { + if (cmd = queryStateCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + } + }); + }; + + tinymce.GlobalCommands = new CommandManager(); +})(tinymce); +(function(tinymce) { + tinymce.Formatter = function(ed) { + var formats = {}, + each = tinymce.each, + dom = ed.dom, + selection = ed.selection, + TreeWalker = tinymce.dom.TreeWalker, + rangeUtils = new tinymce.dom.RangeUtils(dom), + isValid = ed.schema.isValid, + isBlock = dom.isBlock, + forcedRootBlock = ed.settings.forced_root_block, + nodeIndex = dom.nodeIndex, + INVISIBLE_CHAR = '\uFEFF', + MCE_ATTR_RE = /^(src|href|style)$/, + FALSE = false, + TRUE = true, + undefined, + pendingFormats = {apply : [], remove : []}; + + function isArray(obj) { + return obj instanceof Array; + }; + + function getParents(node, selector) { + return dom.getParents(node, selector, dom.getRoot()); + }; + + function isCaretNode(node) { + return node.nodeType === 1 && (node.face === 'mceinline' || node.style.fontFamily === 'mceinline'); + }; + + // Public functions + + function get(name) { + return name ? formats[name] : formats; + }; + + function register(name, format) { + if (name) { + if (typeof(name) !== 'string') { + each(name, function(format, name) { + register(name, format); + }); + } else { + // Force format into array and add it to internal collection + format = format.length ? format : [format]; + + each(format, function(format) { + // Set deep to false by default on selector formats this to avoid removing + // alignment on images inside paragraphs when alignment is changed on paragraphs + if (format.deep === undefined) + format.deep = !format.selector; + + // Default to true + if (format.split === undefined) + format.split = !format.selector || format.inline; + + // Default to true + if (format.remove === undefined && format.selector && !format.inline) + format.remove = 'none'; + + // Mark format as a mixed format inline + block level + if (format.selector && format.inline) { + format.mixed = true; + format.block_expand = true; + } + + // Split classes if needed + if (typeof(format.classes) === 'string') + format.classes = format.classes.split(/\s+/); + }); + + formats[name] = format; + } + } + }; + + function apply(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, rng, i; + + function moveStart(rng) { + var container = rng.startContainer, + offset = rng.startOffset, + walker, node; + + // Move startContainer/startOffset in to a suitable node + if (container.nodeType == 1 || container.nodeValue === "") { + container = container.nodeType == 1 ? container.childNodes[offset] : container; + + // Might fail if the offset is behind the last element in it's container + if (container) { + walker = new TreeWalker(container, container.parentNode); + for (node = walker.current(); node; node = walker.next()) { + if (node.nodeType == 3 && !isWhiteSpaceNode(node)) { + rng.setStart(node, 0); + break; + } + } + } + } + + return rng; + }; + + function setElementFormat(elm, fmt) { + fmt = fmt || format; + + if (elm) { + each(fmt.styles, function(value, name) { + dom.setStyle(elm, name, replaceVars(value, vars)); + }); + + each(fmt.attributes, function(value, name) { + dom.setAttrib(elm, name, replaceVars(value, vars)); + }); + + each(fmt.classes, function(value) { + value = replaceVars(value, vars); + + if (!dom.hasClass(elm, value)) + dom.addClass(elm, value); + }); + } + }; + + function applyRngStyle(rng) { + var newWrappers = [], wrapName, wrapElm; + + // Setup wrapper element + wrapName = format.inline || format.block; + wrapElm = dom.create(wrapName); + setElementFormat(wrapElm); + + rangeUtils.walk(rng, function(nodes) { + var currentWrapElm; + + function process(node) { + var nodeName = node.nodeName.toLowerCase(), parentName = node.parentNode.nodeName.toLowerCase(), found; + + // Stop wrapping on br elements + if (isEq(nodeName, 'br')) { + currentWrapElm = 0; + + // Remove any br elements when we wrap things + if (format.block) + dom.remove(node); + + return; + } + + // If node is wrapper type + if (format.wrapper && matchNode(node, name, vars)) { + currentWrapElm = 0; + return; + } + + // Can we rename the block + if (format.block && !format.wrapper && isTextBlock(nodeName)) { + node = dom.rename(node, wrapName); + setElementFormat(node); + newWrappers.push(node); + currentWrapElm = 0; + return; + } + + // Handle selector patterns + if (format.selector) { + // Look for matching formats + each(formatList, function(format) { + if (dom.is(node, format.selector) && !isCaretNode(node)) { + setElementFormat(node, format); + found = true; + } + }); + + // Continue processing if a selector match wasn't found and a inline element is defined + if (!format.inline || found) { + currentWrapElm = 0; + return; + } + } + + // Is it valid to wrap this item + if (isValid(wrapName, nodeName) && isValid(parentName, wrapName)) { + // Start wrapping + if (!currentWrapElm) { + // Wrap the node + currentWrapElm = wrapElm.cloneNode(FALSE); + node.parentNode.insertBefore(currentWrapElm, node); + newWrappers.push(currentWrapElm); + } + + currentWrapElm.appendChild(node); + } else { + // Start a new wrapper for possible children + currentWrapElm = 0; + + each(tinymce.grep(node.childNodes), process); + + // End the last wrapper + currentWrapElm = 0; + } + }; + + // Process siblings from range + each(nodes, process); + }); + + // Cleanup + each(newWrappers, function(node) { + var childCount; + + function getChildCount(node) { + var count = 0; + + each(node.childNodes, function(node) { + if (!isWhiteSpaceNode(node) && !isBookmarkNode(node)) + count++; + }); + + return count; + }; + + function mergeStyles(node) { + var child, clone; + + each(node.childNodes, function(node) { + if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) { + child = node; + return FALSE; // break loop + } + }); + + // If child was found and of the same type as the current node + if (child && matchName(child, format)) { + clone = child.cloneNode(FALSE); + setElementFormat(clone); + + dom.replace(clone, node, TRUE); + dom.remove(child, 1); + } + + return clone || node; + }; + + childCount = getChildCount(node); + + // Remove empty nodes + if (childCount === 0) { + dom.remove(node, 1); + return; + } + + if (format.inline || format.wrapper) { + // Merges the current node with it's children of similar type to reduce the number of elements + if (!format.exact && childCount === 1) + node = mergeStyles(node); + + // Remove/merge children + each(formatList, function(format) { + // Merge all children of similar type will move styles from child to parent + // this: text + // will become: text + each(dom.select(format.inline, node), function(child) { + removeFormat(format, vars, child, format.exact ? child : null); + }); + }); + + // Remove child if direct parent is of same type + if (matchNode(node.parentNode, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + + // Look for parent with similar style format + if (format.merge_with_parents) { + dom.getParent(node.parentNode, function(parent) { + if (matchNode(parent, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + }); + } + + // Merge next and previous siblings if they are similar texttext becomes texttext + if (node) { + node = mergeSiblings(getNonWhiteSpaceSibling(node), node); + node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE)); + } + } + }); + }; + + if (format) { + if (node) { + rng = dom.createRng(); + + rng.setStartBefore(node); + rng.setEndAfter(node); + + applyRngStyle(expandRng(rng, formatList)); + } else { + if (!selection.isCollapsed() || !format.inline) { + // Apply formatting to selection + bookmark = selection.getBookmark(); + applyRngStyle(expandRng(selection.getRng(TRUE), formatList)); + + selection.moveToBookmark(bookmark); + selection.setRng(moveStart(selection.getRng(TRUE))); + ed.nodeChanged(); + } else + performCaretAction('apply', name, vars); + } + } + }; + + function remove(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, i, rng; + + function moveStart(rng) { + var container = rng.startContainer, + offset = rng.startOffset, + walker, node, nodes, tmpNode; + + // Convert text node into index if possible + if (container.nodeType == 3 && offset >= container.nodeValue.length - 1) { + container = container.parentNode; + offset = nodeIndex(container) + 1; + } + + // Move startContainer/startOffset in to a suitable node + if (container.nodeType == 1) { + nodes = container.childNodes; + container = nodes[Math.min(offset, nodes.length - 1)]; + walker = new TreeWalker(container); + + // If offset is at end of the parent node walk to the next one + if (offset > nodes.length - 1) + walker.next(); + + for (node = walker.current(); node; node = walker.next()) { + if (node.nodeType == 3 && !isWhiteSpaceNode(node)) { + // IE has a "neat" feature where it moves the start node into the closest element + // we can avoid this by inserting an element before it and then remove it after we set the selection + tmpNode = dom.create('a', null, INVISIBLE_CHAR); + node.parentNode.insertBefore(tmpNode, node); + + // Set selection and remove tmpNode + rng.setStart(node, 0); + selection.setRng(rng); + dom.remove(tmpNode); + + return; + } + } + } + }; + + // Merges the styles for each node + function process(node) { + var children, i, l; + + // Grab the children first since the nodelist might be changed + children = tinymce.grep(node.childNodes); + + // Process current node + for (i = 0, l = formatList.length; i < l; i++) { + if (removeFormat(formatList[i], vars, node, node)) + break; + } + + // Process the children + if (format.deep) { + for (i = 0, l = children.length; i < l; i++) + process(children[i]); + } + }; + + function findFormatRoot(container) { + var formatRoot; + + // Find format root + each(getParents(container.parentNode).reverse(), function(parent) { + var format; + + // Find format root element + if (!formatRoot && parent.id != '_start' && parent.id != '_end') { + // Is the node matching the format we are looking for + format = matchNode(parent, name, vars); + if (format && format.split !== false) + formatRoot = parent; + } + }); + + return formatRoot; + }; + + function wrapAndSplit(format_root, container, target, split) { + var parent, clone, lastClone, firstClone, i, formatRootParent; + + // Format root found then clone formats and split it + if (format_root) { + formatRootParent = format_root.parentNode; + + for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) { + clone = parent.cloneNode(FALSE); + + for (i = 0; i < formatList.length; i++) { + if (removeFormat(formatList[i], vars, clone, clone)) { + clone = 0; + break; + } + } + + // Build wrapper node + if (clone) { + if (lastClone) + clone.appendChild(lastClone); + + if (!firstClone) + firstClone = clone; + + lastClone = clone; + } + } + + // Never split block elements if the format is mixed + if (split && (!format.mixed || !isBlock(format_root))) + container = dom.split(format_root, container); + + // Wrap container in cloned formats + if (lastClone) { + target.parentNode.insertBefore(lastClone, target); + firstClone.appendChild(target); + } + } + + return container; + }; + + function splitToFormatRoot(container) { + return wrapAndSplit(findFormatRoot(container), container, container, true); + }; + + function unwrap(start) { + var node = dom.get(start ? '_start' : '_end'), + out = node[start ? 'firstChild' : 'lastChild']; + + // If the end is placed within the start the result will be removed + // So this checks if the out node is a bookmark node if it is it + // checks for another more suitable node + if (isBookmarkNode(out)) + out = out[start ? 'firstChild' : 'lastChild']; + + dom.remove(node, true); + + return out; + }; + + function removeRngStyle(rng) { + var startContainer, endContainer; + + rng = expandRng(rng, formatList, TRUE); + + if (format.split) { + startContainer = getContainer(rng, TRUE); + endContainer = getContainer(rng); + + if (startContainer != endContainer) { + // Wrap start/end nodes in span element since these might be cloned/moved + startContainer = wrap(startContainer, 'span', {id : '_start', _mce_type : 'bookmark'}); + endContainer = wrap(endContainer, 'span', {id : '_end', _mce_type : 'bookmark'}); + + // Split start/end + splitToFormatRoot(startContainer); + splitToFormatRoot(endContainer); + + // Unwrap start/end to get real elements again + startContainer = unwrap(TRUE); + endContainer = unwrap(); + } else + startContainer = endContainer = splitToFormatRoot(startContainer); + + // Update range positions since they might have changed after the split operations + rng.startContainer = startContainer.parentNode; + rng.startOffset = nodeIndex(startContainer); + rng.endContainer = endContainer.parentNode; + rng.endOffset = nodeIndex(endContainer) + 1; + } + + // Remove items between start/end + rangeUtils.walk(rng, function(nodes) { + each(nodes, function(node) { + process(node); + }); + }); + }; + + // Handle node + if (node) { + rng = dom.createRng(); + rng.setStartBefore(node); + rng.setEndAfter(node); + removeRngStyle(rng); + return; + } + + if (!selection.isCollapsed() || !format.inline) { + bookmark = selection.getBookmark(); + removeRngStyle(selection.getRng(TRUE)); + selection.moveToBookmark(bookmark); + + // Check if start element still has formatting then we are at: "text|text" and need to move the start into the next text node + if (match(name, vars, selection.getStart())) { + moveStart(selection.getRng(true)); + } + + ed.nodeChanged(); + } else + performCaretAction('remove', name, vars); + }; + + function toggle(name, vars, node) { + if (match(name, vars, node)) + remove(name, vars, node); + else + apply(name, vars, node); + }; + + function matchNode(node, name, vars, similar) { + var formatList = get(name), format, i, classes; + + function matchItems(node, format, item_name) { + var key, value, items = format[item_name], i; + + // Check all items + if (items) { + // Non indexed object + if (items.length === undefined) { + for (key in items) { + if (items.hasOwnProperty(key)) { + if (item_name === 'attributes') + value = dom.getAttrib(node, key); + else + value = getStyle(node, key); + + if (similar && !value && !format.exact) + return; + + if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars))) + return; + } + } + } else { + // Only one match needed for indexed arrays + for (i = 0; i < items.length; i++) { + if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i])) + return format; + } + } + } + + return format; + }; + + if (formatList && node) { + // Check each format in list + for (i = 0; i < formatList.length; i++) { + format = formatList[i]; + + // Name name, attributes, styles and classes + if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) { + // Match classes + if (classes = format.classes) { + for (i = 0; i < classes.length; i++) { + if (!dom.hasClass(node, classes[i])) + return; + } + } + + return format; + } + } + } + }; + + function match(name, vars, node) { + var startNode, i; + + function matchParents(node) { + // Find first node with similar format settings + node = dom.getParent(node, function(node) { + return !!matchNode(node, name, vars, true); + }); + + // Do an exact check on the similar format element + return matchNode(node, name, vars); + }; + + // Check specified node + if (node) + return matchParents(node); + + // Check pending formats + if (selection.isCollapsed()) { + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + if (pendingFormats.apply[i].name == name) + return true; + } + + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + if (pendingFormats.remove[i].name == name) + return false; + } + + return matchParents(selection.getNode()); + } + + // Check selected node + node = selection.getNode(); + if (matchParents(node)) + return TRUE; + + // Check start node if it's different + startNode = selection.getStart(); + if (startNode != node) { + if (matchParents(startNode)) + return TRUE; + } + + return FALSE; + }; + + function matchAll(names, vars) { + var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name; + + // If the selection is collapsed then check pending formats + if (selection.isCollapsed()) { + for (ni = 0; ni < names.length; ni++) { + // If the name is to be removed, then stop it from being added + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + name = names[ni]; + + if (pendingFormats.remove[i].name == name) { + checkedMap[name] = true; + break; + } + } + } + + // If the format is to be applied + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + for (ni = 0; ni < names.length; ni++) { + name = names[ni]; + + if (!checkedMap[name] && pendingFormats.apply[i].name == name) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + } + } + + // Check start of selection for formats + startElement = selection.getStart(); + dom.getParent(startElement, function(node) { + var i, name; + + for (i = 0; i < names.length; i++) { + name = names[i]; + + if (!checkedMap[name] && matchNode(node, name, vars)) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + }); + + return matchedFormatNames; + }; + + function canApply(name) { + var formatList = get(name), startNode, parents, i, x, selector; + + if (formatList) { + startNode = selection.getStart(); + parents = getParents(startNode); + + for (x = formatList.length - 1; x >= 0; x--) { + selector = formatList[x].selector; + + // Format is not selector based, then always return TRUE + if (!selector) + return TRUE; + + for (i = parents.length - 1; i >= 0; i--) { + if (dom.is(parents[i], selector)) + return TRUE; + } + } + } + + return FALSE; + }; + + // Expose to public + tinymce.extend(this, { + get : get, + register : register, + apply : apply, + remove : remove, + toggle : toggle, + match : match, + matchAll : matchAll, + matchNode : matchNode, + canApply : canApply + }); + + // Private functions + + function matchName(node, format) { + // Check for inline match + if (isEq(node, format.inline)) + return TRUE; + + // Check for block match + if (isEq(node, format.block)) + return TRUE; + + // Check for selector match + if (format.selector) + return dom.is(node, format.selector); + }; + + function isEq(str1, str2) { + str1 = str1 || ''; + str2 = str2 || ''; + + str1 = '' + (str1.nodeName || str1); + str2 = '' + (str2.nodeName || str2); + + return str1.toLowerCase() == str2.toLowerCase(); + }; + + function getStyle(node, name) { + var styleVal = dom.getStyle(node, name); + + // Force the format to hex + if (name == 'color' || name == 'backgroundColor') + styleVal = dom.toHex(styleVal); + + // Opera will return bold as 700 + if (name == 'fontWeight' && styleVal == 700) + styleVal = 'bold'; + + return '' + styleVal; + }; + + function replaceVars(value, vars) { + if (typeof(value) != "string") + value = value(vars); + else if (vars) { + value = value.replace(/%(\w+)/g, function(str, name) { + return vars[name] || str; + }); + } + + return value; + }; + + function isWhiteSpaceNode(node) { + return node && node.nodeType === 3 && /^([\s\r\n]+|)$/.test(node.nodeValue); + }; + + function wrap(node, name, attrs) { + var wrapper = dom.create(name, attrs); + + node.parentNode.insertBefore(wrapper, node); + wrapper.appendChild(node); + + return wrapper; + }; + + function expandRng(rng, format, remove) { + var startContainer = rng.startContainer, + startOffset = rng.startOffset, + endContainer = rng.endContainer, + endOffset = rng.endOffset, sibling, lastIdx; + + // This function walks up the tree if there is no siblings before/after the node + function findParentContainer(container, child_name, sibling_name, root) { + var parent, child; + + root = root || dom.getRoot(); + + for (;;) { + // Check if we can move up are we at root level or body level + parent = container.parentNode; + + // Stop expanding on block elements or root depending on format + if (parent == root || (!format[0].block_expand && isBlock(parent))) + return container; + + for (sibling = parent[child_name]; sibling && sibling != container; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return container; + + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return container; + } + + container = container.parentNode; + } + + return container; + }; + + // If index based start position then resolve it + if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) { + lastIdx = startContainer.childNodes.length - 1; + startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset]; + + if (startContainer.nodeType == 3) + startOffset = 0; + } + + // If index based end position then resolve it + if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) { + lastIdx = endContainer.childNodes.length - 1; + endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1]; + + if (endContainer.nodeType == 3) + endOffset = endContainer.nodeValue.length; + } + + // Exclude bookmark nodes if possible + if (isBookmarkNode(startContainer.parentNode)) + startContainer = startContainer.parentNode; + + if (isBookmarkNode(startContainer)) + startContainer = startContainer.nextSibling || startContainer; + + if (isBookmarkNode(endContainer.parentNode)) + endContainer = endContainer.parentNode; + + if (isBookmarkNode(endContainer)) + endContainer = endContainer.previousSibling || endContainer; + + // Move start/end point up the tree if the leaves are sharp and if we are in different containers + // Example * becomes !: !

    *texttext*

    ! + // This will reduce the number of wrapper elements that needs to be created + // Move start point up the tree + if (format[0].inline || format[0].block_expand) { + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + + // Expand start/end container to matching selector + if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) { + function findSelectorEndPoint(container, sibling_name) { + var parents, i, y; + + if (container.nodeType == 3 && container.nodeValue.length == 0 && container[sibling_name]) + container = container[sibling_name]; + + parents = getParents(container); + for (i = 0; i < parents.length; i++) { + for (y = 0; y < format.length; y++) { + if (dom.is(parents[i], format[y].selector)) + return parents[i]; + } + } + + return container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findSelectorEndPoint(startContainer, 'previousSibling'); + endContainer = findSelectorEndPoint(endContainer, 'nextSibling'); + } + + // Expand start/end container to matching block element or text node + if (format[0].block || format[0].selector) { + function findBlockEndPoint(container, sibling_name, sibling_name2) { + var node; + + // Expand to block of similar type + if (!format[0].wrapper) + node = dom.getParent(container, format[0].block); + + // Expand to first wrappable block element or any block element + if (!node) + node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isBlock); + + // Exclude inner lists from wrapping + if (node && format[0].wrapper) + node = getParents(node, 'ul,ol').reverse()[0] || node; + + // Didn't find a block element look for first/last wrappable element + if (!node) { + node = container; + + while (node[sibling_name] && !isBlock(node[sibling_name])) { + node = node[sibling_name]; + + // Break on BR but include it will be removed later on + // we can't remove it now since we need to check if it can be wrapped + if (isEq(node, 'br')) + break; + } + } + + return node || container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findBlockEndPoint(startContainer, 'previousSibling'); + endContainer = findBlockEndPoint(endContainer, 'nextSibling'); + + // Non block element then try to expand up the leaf + if (format[0].block) { + if (!isBlock(startContainer)) + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + + if (!isBlock(endContainer)) + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + } + + // Setup index for startContainer + if (startContainer.nodeType == 1) { + startOffset = nodeIndex(startContainer); + startContainer = startContainer.parentNode; + } + + // Setup index for endContainer + if (endContainer.nodeType == 1) { + endOffset = nodeIndex(endContainer) + 1; + endContainer = endContainer.parentNode; + } + + // Return new range like object + return { + startContainer : startContainer, + startOffset : startOffset, + endContainer : endContainer, + endOffset : endOffset + }; + } + + function removeFormat(format, vars, node, compare_node) { + var i, attrs, stylesModified; + + // Check if node matches format + if (!matchName(node, format)) + return FALSE; + + // Should we compare with format attribs and styles + if (format.remove != 'all') { + // Remove styles + each(format.styles, function(value, name) { + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(getStyle(compare_node, name), value)) + dom.setStyle(node, name, ''); + + stylesModified = 1; + }); + + // Remove style attribute if it's empty + if (stylesModified && dom.getAttrib(node, 'style') == '') { + node.removeAttribute('style'); + node.removeAttribute('_mce_style'); + } + + // Remove attributes + each(format.attributes, function(value, name) { + var valueOut; + + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) { + // Keep internal classes + if (name == 'class') { + value = dom.getAttrib(node, name); + if (value) { + // Build new class value where everything is removed except the internal prefixed classes + valueOut = ''; + each(value.split(/\s+/), function(cls) { + if (/mce\w+/.test(cls)) + valueOut += (valueOut ? ' ' : '') + cls; + }); + + // We got some internal classes left + if (valueOut) { + dom.setAttrib(node, name, valueOut); + return; + } + } + } + + // IE6 has a bug where the attribute doesn't get removed correctly + if (name == "class") + node.removeAttribute('className'); + + // Remove mce prefixed attributes + if (MCE_ATTR_RE.test(name)) + node.removeAttribute('_mce_' + name); + + node.removeAttribute(name); + } + }); + + // Remove classes + each(format.classes, function(value) { + value = replaceVars(value, vars); + + if (!compare_node || dom.hasClass(compare_node, value)) + dom.removeClass(node, value); + }); + + // Check for non internal attributes + attrs = dom.getAttribs(node); + for (i = 0; i < attrs.length; i++) { + if (attrs[i].nodeName.indexOf('_') !== 0) + return FALSE; + } + } + + // Remove the inline child if it's empty for example or + if (format.remove != 'none') { + removeNode(node, format); + return TRUE; + } + }; + + function removeNode(node, format) { + var parentNode = node.parentNode, rootBlockElm; + + if (format.block) { + if (!forcedRootBlock) { + function find(node, next, inc) { + node = getNonWhiteSpaceSibling(node, next, inc); + + return !node || (node.nodeName == 'BR' || isBlock(node)); + }; + + // Append BR elements if needed before we remove the block + if (isBlock(node) && !isBlock(parentNode)) { + if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1)) + node.insertBefore(dom.create('br'), node.firstChild); + + if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1)) + node.appendChild(dom.create('br')); + } + } else { + // Wrap the block in a forcedRootBlock if we are at the root of document + if (parentNode == dom.getRoot()) { + if (!format.list_block || !isEq(node, format.list_block)) { + each(tinymce.grep(node.childNodes), function(node) { + if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) { + if (!rootBlockElm) + rootBlockElm = wrap(node, forcedRootBlock); + else + rootBlockElm.appendChild(node); + } else + rootBlockElm = 0; + }); + } + } + } + } + + // Never remove nodes that isn't the specified inline element if a selector is specified too + if (format.selector && format.inline && !isEq(format.inline, node)) + return; + + dom.remove(node, 1); + }; + + function getNonWhiteSpaceSibling(node, next, inc) { + if (node) { + next = next ? 'nextSibling' : 'previousSibling'; + + for (node = inc ? node : node[next]; node; node = node[next]) { + if (node.nodeType == 1 || !isWhiteSpaceNode(node)) + return node; + } + } + }; + + function isBookmarkNode(node) { + return node && node.nodeType == 1 && node.getAttribute('_mce_type') == 'bookmark'; + }; + + function mergeSiblings(prev, next) { + var marker, sibling, tmpSibling; + + function compareElements(node1, node2) { + // Not the same name + if (node1.nodeName != node2.nodeName) + return FALSE; + + function getAttribs(node) { + var attribs = {}; + + each(dom.getAttribs(node), function(attr) { + var name = attr.nodeName.toLowerCase(); + + // Don't compare internal attributes or style + if (name.indexOf('_') !== 0 && name !== 'style') + attribs[name] = dom.getAttrib(node, name); + }); + + return attribs; + }; + + function compareObjects(obj1, obj2) { + var value, name; + + for (name in obj1) { + // Obj1 has item obj2 doesn't have + if (obj1.hasOwnProperty(name)) { + value = obj2[name]; + + // Obj2 doesn't have obj1 item + if (value === undefined) + return FALSE; + + // Obj2 item has a different value + if (obj1[name] != value) + return FALSE; + + // Delete similar value + delete obj2[name]; + } + } + + // Check if obj 2 has something obj 1 doesn't have + for (name in obj2) { + // Obj2 has item obj1 doesn't have + if (obj2.hasOwnProperty(name)) + return FALSE; + } + + return TRUE; + }; + + // Attribs are not the same + if (!compareObjects(getAttribs(node1), getAttribs(node2))) + return FALSE; + + // Styles are not the same + if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style')))) + return FALSE; + + return TRUE; + }; + + // Check if next/prev exists and that they are elements + if (prev && next) { + function findElementSibling(node, sibling_name) { + for (sibling = node; sibling; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return node; + + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return sibling; + } + + return node; + }; + + // If previous sibling is empty then jump over it + prev = findElementSibling(prev, 'previousSibling'); + next = findElementSibling(next, 'nextSibling'); + + // Compare next and previous nodes + if (compareElements(prev, next)) { + // Append nodes between + for (sibling = prev.nextSibling; sibling && sibling != next;) { + tmpSibling = sibling; + sibling = sibling.nextSibling; + prev.appendChild(tmpSibling); + } + + // Remove next node + dom.remove(next); + + // Move children into prev node + each(tinymce.grep(next.childNodes), function(node) { + prev.appendChild(node); + }); + + return prev; + } + } + + return next; + }; + + function isTextBlock(name) { + return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name); + }; + + function getContainer(rng, start) { + var container, offset, lastIdx; + + container = rng[start ? 'startContainer' : 'endContainer']; + offset = rng[start ? 'startOffset' : 'endOffset']; + + if (container.nodeType == 1) { + lastIdx = container.childNodes.length - 1; + + if (!start && offset) + offset--; + + container = container.childNodes[offset > lastIdx ? lastIdx : offset]; + } + + return container; + }; + + function performCaretAction(type, name, vars) { + var i, currentPendingFormats = pendingFormats[type], + otherPendingFormats = pendingFormats[type == 'apply' ? 'remove' : 'apply']; + + function hasPending() { + return pendingFormats.apply.length || pendingFormats.remove.length; + }; + + function resetPending() { + pendingFormats.apply = []; + pendingFormats.remove = []; + }; + + function perform(caret_node) { + // Apply pending formats + each(pendingFormats.apply.reverse(), function(item) { + apply(item.name, item.vars, caret_node); + }); + + // Remove pending formats + each(pendingFormats.remove.reverse(), function(item) { + remove(item.name, item.vars, caret_node); + }); + + dom.remove(caret_node, 1); + resetPending(); + }; + + // Check if it already exists then ignore it + for (i = currentPendingFormats.length - 1; i >= 0; i--) { + if (currentPendingFormats[i].name == name) + return; + } + + currentPendingFormats.push({name : name, vars : vars}); + + // Check if it's in the other type, then remove it + for (i = otherPendingFormats.length - 1; i >= 0; i--) { + if (otherPendingFormats[i].name == name) + otherPendingFormats.splice(i, 1); + } + + // Pending apply or remove formats + if (hasPending()) { + ed.getDoc().execCommand('FontName', false, 'mceinline'); + pendingFormats.lastRng = selection.getRng(); + + // IE will convert the current word + each(dom.select('font,span'), function(node) { + var bookmark; + + if (isCaretNode(node)) { + bookmark = selection.getBookmark(); + perform(node); + selection.moveToBookmark(bookmark); + ed.nodeChanged(); + } + }); + + // Only register listeners once if we need to + if (!pendingFormats.isListening && hasPending()) { + pendingFormats.isListening = true; + + each('onKeyDown,onKeyUp,onKeyPress,onMouseUp'.split(','), function(event) { + ed[event].addToTop(function(ed, e) { + // Do we have pending formats and is the selection moved has moved + if (hasPending() && !tinymce.dom.RangeUtils.compareRanges(pendingFormats.lastRng, selection.getRng())) { + each(dom.select('font,span'), function(node) { + var textNode, rng; + + // Look for marker + if (isCaretNode(node)) { + textNode = node.firstChild; + + if (textNode) { + perform(node); + + rng = dom.createRng(); + rng.setStart(textNode, textNode.nodeValue.length); + rng.setEnd(textNode, textNode.nodeValue.length); + selection.setRng(rng); + ed.nodeChanged(); + } else + dom.remove(node); + } + }); + + // Always unbind and clear pending styles on keyup + if (e.type == 'keyup' || e.type == 'mouseup') + resetPending(); + } + }); + }); + } + } + }; + }; +})(tinymce); + +tinymce.onAddEditor.add(function(tinymce, ed) { + var filters, fontSizes, dom, settings = ed.settings; + + if (settings.inline_styles) { + fontSizes = tinymce.explode(settings.font_size_style_values); + + function replaceWithSpan(node, styles) { + dom.replace(dom.create('span', { + style : styles + }), node, 1); + }; + + filters = { + font : function(dom, node) { + replaceWithSpan(node, { + backgroundColor : node.style.backgroundColor, + color : node.color, + fontFamily : node.face, + fontSize : fontSizes[parseInt(node.size) - 1] + }); + }, + + u : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'underline' + }); + }, + + strike : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'line-through' + }); + } + }; + + function convert(editor, params) { + dom = editor.dom; + + if (settings.convert_fonts_to_spans) { + tinymce.each(dom.select('font,u,strike', params.node), function(node) { + filters[node.nodeName.toLowerCase()](ed.dom, node); + }); + } + }; + + ed.onPreProcess.add(convert); + + ed.onInit.add(function() { + ed.selection.onSetContent.add(convert); + }); + } +}); + diff --git a/js/tinymce/jscripts/tiny_mce/utils/editable_selects.js b/js/tinymce/jscripts/tiny_mce/utils/editable_selects.js new file mode 100644 index 0000000..6cf1b16 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/utils/editable_selects.js @@ -0,0 +1,70 @@ +/** + * editable_selects.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +var TinyMCE_EditableSelects = { + editSelectElm : null, + + init : function() { + var nl = document.getElementsByTagName("select"), i, d = document, o; + + for (i=0; i'; + h += ' '; + + return h; +} + +function updateColor(img_id, form_element_id) { + document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value; +} + +function setBrowserDisabled(id, state) { + var img = document.getElementById(id); + var lnk = document.getElementById(id + "_link"); + + if (lnk) { + if (state) { + lnk.setAttribute("realhref", lnk.getAttribute("href")); + lnk.removeAttribute("href"); + tinyMCEPopup.dom.addClass(img, 'disabled'); + } else { + if (lnk.getAttribute("realhref")) + lnk.setAttribute("href", lnk.getAttribute("realhref")); + + tinyMCEPopup.dom.removeClass(img, 'disabled'); + } + } +} + +function getBrowserHTML(id, target_form_element, type, prefix) { + var option = prefix + "_" + type + "_browser_callback", cb, html; + + cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback")); + + if (!cb) + return ""; + + html = ""; + html += ''; + html += ' '; + + return html; +} + +function openBrowser(img_id, target_form_element, type, option) { + var img = document.getElementById(img_id); + + if (img.className != "mceButtonDisabled") + tinyMCEPopup.openBrowser(target_form_element, type, option); +} + +function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { + if (!form_obj || !form_obj.elements[field_name]) + return; + + var sel = form_obj.elements[field_name]; + + var found = false; + for (var i=0; i parseInt(v)) + st = this.mark(f, n); + } + } + + return st; + }, + + hasClass : function(n, c, d) { + return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className); + }, + + getNum : function(n, c) { + c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0]; + c = c.replace(/[^0-9]/g, ''); + + return c; + }, + + addClass : function(n, c, b) { + var o = this.removeClass(n, c); + n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c; + }, + + removeClass : function(n, c) { + c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' '); + return n.className = c != ' ' ? c : ''; + }, + + tags : function(f, s) { + return f.getElementsByTagName(s); + }, + + mark : function(f, n) { + var s = this.settings; + + this.addClass(n, s.invalid_cls); + this.markLabels(f, n, s.invalid_cls); + + return false; + }, + + markLabels : function(f, n, ic) { + var nl, i; + + nl = this.tags(f, "label"); + for (i=0; i 1){ + argStr = x[1]; + argVals = argStr.split("&"); + } + if(argVals.length > 0){ + for(var i=0;i aebw.js diff --git a/js/xgui/aebw.js b/js/xgui/aebw.js new file mode 100644 index 0000000..817645a --- /dev/null +++ b/js/xgui/aebw.js @@ -0,0 +1,192 @@ + +var AEBW;if(typeof AEBW=="undefined"||!AEBW){AEBW={global:this};AEBW.control={};AEBW.DOM=(document.getElementById?true:false);AEBW.IE=(document.all&&!AEBW.DOM?true:false);var proto=AEBW.prototype;AEBW.$=function(){var elements=new Array();for(var i=0;i=200&&stat<300)||stat==304||stat==1223||(!stat&&(location.protocol=='file:'||location.protocol=='chrome:'));} +x._getText=function(uri,fail_ok){ + var http=this.HTTPRequest(); + http.open('GET',uri,false); + try{ + /* http.send(false); + send does not have parameters in IE 8 Aie + */ + http.send(null); + if(!x._isDocOk(http)){ + var err=Error("Unable to load file"+uri+" status:"+http.status); + err.status=http.status; + err.responseText=http.responseText; + throw err;}}catch(e){ +alert("Failed Load:"+uri+" "+e); +if(fail_ok){return null;} +throw e;} +return http.responseText;}})();AEBW.require=function(moduleName){var relpath=moduleName.split('.').join('/')+'.js';this._loadUri(this.baseUrl+relpath);} +AEBW.fromJson=function(str){return eval("("+str+")");} + +AEBW.eval = function (str) { + return eval(str); +} + +AEBW._escapeString=function(str){return('"'+str.replace(/(["\\])/g,'\\$1')+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");} +AEBW.toJson=function(obj){var recurse=arguments.callee;var objt=typeof objt;if(objt=='number'||objt=='boolean'){return obj+"";} +if(AEBW.isString(obj)){return AEBW._escapeString(obj);} +if(obj===null){return"null";};if(obj.nodeType&&obj.clodeNode){return"";} +if(typeof obj.json=="function"){var newObj=new obj.json();if(obj!==newObj){return recurse(newObj);}} +if(AEBW.isArray(obj)){var res="[";for(var i in obj){res+=recurse(i)+",";} +res+="null]";return res;} +if(objt=="function"){return null;} +var val="";var output=[];for(var k in obj){var kstr;if(typeof k=='number'){kstr='"'+k+'"';}else if(typeof k=="string"){if(k=="prototype"){continue;};kstr=AEBW._escapeString(k);}else{continue;} +val=recurse(obj[k]);if(typeof val!='string'){continue;} +output.push(kstr+":"+val);} +return"{"+output.join(",")+"}";}} +AEBW.declare=function(className,superclass,props){var dd=arguments.callee,mixins;var init=(props||0).constructor,ctor=dd._delegate(superclass),fn;for(var i in props){if(AEBW.isFunction(fn=props[i])&&!0[i]){fn.nom=i;}} +AEBW.extend(ctor,{declaredClass:className,_constructor:init,preamble:null},props||0);ctor.prototype.constructor=ctor;return AEBW.setObject(className,ctor);} +AEBW.delegate=AEBW._delegate=function(obj,_b2){function TMP(){};TMP.prototype=obj;var tmp=new TMP();if(_b2){AEBW.mixin(tmp,_b2);} +return tmp;};AEBW.mixin(AEBW.declare,{_delegate:function(base,mixin){var bp=(base||0).prototype,mp=(mixin||0).prototype;var ctor=AEBW.declare._makeCtor();AEBW.mixin(ctor,{superclass:bp,mixin:mp,extend:AEBW.declare._extend});if(base){ctor.prototype=AEBW._delegate(bp);} +AEBW.extend(ctor,AEBW.declare._core,mp||0,{_constructor:null,preamble:null});ctor.prototype.constructor=ctor;ctor.prototype.declaredClass=(bp||0).declaredClass+'_'+(mp||0).declaredClass;return ctor;},_extend:function(props){for(var i in props){if(AEBW.isFunction(fn=props[i])&&!0[i]){fn.nom=i;}} +AEBW.extend(this,props);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(args){var c=args.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=args,ii,fn;if(a[0]){if(((fn=a[0].preamble))){a=fn.apply(this,a)||a;}} +if((fn=c.prototype.preamble)){a=fn.apply(this,a)||a;} +if(ct&&ct.apply){ct.apply(this,a);} +if(mct&&mct.apply){mct.apply(this,a);} +if((ii=c.prototype._constructor)){ii.apply(this,args);} +if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,args);}},_findMixin:function(mixin){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==mixin||(m instanceof mixin.constructor)){return p;} +if(m&&(m=m._findMixin(mixin))){return m;} +c=p&&p.constructor;}},_findMethod:function(name,method,ptype,has){var p=ptype,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(name,method,m,has))){return m;} +if((f=p[name])&&(has==(f==method))){return p;} +p=c.superclass;}while(p);return!has&&(p=this._findMixin(ptype))&&this._findMethod(name,method,p,has);},inherited:function(name,args,newArgs){var a=arguments;if(!AEBW.isString(a[0])){newArgs=args;args=name;name=args.callee.nom;} +a=newArgs||args;var c=args.callee,p=this.constructor.prototype,fn,mp;if(this[name]!=c||p[name]==c){mp=this._findMethod(name,c,p,true);if(!mp){throw(this.declaredClass+': inherited method "'+name+'" mismatch');} +p=this._findMethod(name,c,mp,false);} +fn=p&&p[name];if(!fn){throw(mp.declaredClass+': inherited method "'+name+'" not found');} +return fn.apply(this,a);}}});if(!AEBW.control){AEBW.control={};} +if(!AEBW.control.menubar){AEBW.control.menubar=function(div_,direction){this._dir=direction;this._div=AEBW.getObject(div_);this._submenus=new Array();var ul=this._div.getElementsByTagName("ul");if(ul){var k=0;for(i=0;i=0)&&(row'+text+'';with(AEBW.control.calendar){_add_evs(cell);} +return cell;};row=document.createElement("tr");head.appendChild(row);cell=hh('?',1,1);cell.className="calendar help";cell=hh(', ',6,1);cell.className="calendar date";row=document.createElement("tr");head.appendChild(row);cell=hh('«',1,-2);cell.className="calendar py";cell.onHandler=this._onPrevYear;cell=hh('‹',1,-1);cell.onHandler=this._onPrevMonth;cell.className="calendar pm";cell=hh('today',3,0);cell=hh('›',1,1);cell.onHandler=this._onNextMonth;cell.className="calendar nm";cell=hh('»',1,2);cell.className="calendar ny";cell.onHandler=this._onNextYear;row=document.createElement("tr");head.appendChild(row);for(s=0;s<7;s++){var cell=document.createElement("th");cell.innerHTML=this.wd[s];row.appendChild(cell);} +row=document.createElement('tr');this._tbody.appendChild(row);for(i=1;i<=42;i++) +{var x=' ';var cell=document.createElement('td');cell.onclick=this.onMouseClick;cell.calendar=this;cell.className="day";cell.innerHTML=''+x+'';row.appendChild(cell);if(((i)%7==1)||((i%7)==0))cell.className+=" weekend";if(((i)%7==0)&&(i<36)) +{row=document.createElement('tr');this._tbody.appendChild(row);}}};proto._init=function(date){var todaydate=new Date() +var scanfortoday=(date.getFullYear()==todaydate.getFullYear()&&(date.getMonth()+1)==todaydate.getMonth()+1)?todaydate.getDate():0 +var mn=this.mn;var dim=[31,0,31,30,31,30,31,31,30,31,30,31];var oD=new Date(date);oD.setDate(1);oD.od=oD.getDay()+1;dim[1]=(((oD.getFullYear()%100!=0)&&(oD.getFullYear()%4==0))||(oD.getFullYear()%400==0))?29:28;var row=this._tbody.firstChild;this.date=new Date(date);for(i=0;i<6;i++,row=row.nextSibling) +{var cell=row.firstChild;for(j=1;j<8;j++,cell=cell.nextSibling) +{var k=i*7+j;var x=((k-oD.od>=0)&&(k-oD.od=0)&&(k-oD.od0;){if(cls[--i]!=className){ar[ar.length]=cls[i];}} +el.className=ar.join(" ");};proto.addClass=function(el,className){this.removeClass(el,className);el.className+=" "+className;};} +if(!AEBW.control){AEBW.control={};} +if(!AEBW.control.notebook) +{AEBW.control.notebook=function(name,pg) +{this.s_nom_boite=name;this.s_box_current=pg;this.s_onglet_current=name+pg;};var proto=AEBW.control.notebook.prototype;proto.s_box_current="";proto.s_onglet_current=""; +proto.openBoite=function(pg) +{var s_nom_onglet=this.s_nom_boite+pg;if(this.s_box_current!=""){var d_boite_courante=document.getElementById(this.s_box_current);d_boite_courante.className="pageHidden";} +if(this.s_onglet_current!=""){var li_onglet_current=document.getElementById(this.s_onglet_current);li_onglet_current.className="notebooktitle";} +var d_boite=document.getElementById(pg); +d_boite.className="page"; +try { + this.onShow(d_boite,pg); +} catch (e) { } +var li_onglet=document.getElementById(s_nom_onglet);li_onglet.className="notebooktitlecurrent";this.s_box_current=pg;this.s_onglet_current=s_nom_onglet;}; + proto.onShow = function(elem,id) {}; +} +AEBW.declare("AEBW.JsonRpc",AEBW,{constructor:function(url){this.url=url;this.handle=function(ob,method,params){var obj={"method":method,"params":params,"id":1};var str=Object.toJSON(obj);new Ajax.Request(this.url,{method:'post',contentType:'application/json',postBody:str,onFailure:function(){alert("Failed Request");ob.onFailure("Json request failure");},onSuccess:function(response){with(response){if(headerJSON!=null) +{if(typeof headerJSON.error!=='undefined'){if(typeof ob.onFailure!=='undefined'){if(headerJSON.error==null){if(typeof ob.onSuccess!=='undefined'){ob.onSuccess(headerJSON.result);}else{alert("Success without return call back");}}else +ob.onFailure(headerJSON.error);}else +alert("Failed Request:"+headerJSON.error);}else{if(typeof ob.onSuccess!=='undefined'){ob.onSuccess(headerJSON.result);}else +alert("Yes Request:"+url+" "+headerJSON);}}else +alert("Success Request but not Json:"+responseText);}}});}}}); diff --git a/js/xgui/aebw.sh b/js/xgui/aebw.sh new file mode 100644 index 0000000..8a6df3a --- /dev/null +++ b/js/xgui/aebw.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cat xgui.js xgui_menu.js xgui_table.js xgui_button.js xgui_calendar.js xgui_tab.js xgui_jsonrpc.js | ../jsmin > aebw.js diff --git a/js/xgui/xgui.js b/js/xgui/xgui.js new file mode 100644 index 0000000..091906a --- /dev/null +++ b/js/xgui/xgui.js @@ -0,0 +1,439 @@ +var AEBW; +if (typeof AEBW == "undefined" || ! AEBW ) { + AEBW = {global:this }; + AEBW.control = {}; + AEBW.DOM = (document.getElementById ? true : false); + AEBW.IE = (document.all && !AEBW.DOM ? true : false); + var proto = AEBW.prototype; + + AEBW.$ = function () { + var elements = new Array(); + for (var i = 0; i < arguments.length; i++) { + var element = arguments[i]; + if (typeof element == 'string') + element = document.getElementById(element); + + if (arguments.length == 1) + return element; + + elements.push(element); + } + + return elements; + }; + /** + * + */ + AEBW._getProp = function(parts,create,context) { + var obj = context || AEBW.global; + for (var i = 0 ,p ; obj && (p=parts[i]) ; i++) { + //alert("_gPro"+i+" part="+p); + obj = (p in obj ? obj[p] : (create ? obj[p]={} : undefined)); + } + return obj; + } + /** + * + */ + AEBW.setObject = function (name, value, context) { + var parts = name.split('.'),p=parts.pop(), obj=AEBW._getProp(parts,true,context); + //alert("SetObject:"+name+" Value="+value+" p="+p+" obj="+obj); + return obj && p ? (obj[p]=value) : undefined; + } + + AEBW.HTTPRequest = function () { + if (window.XMLHttpRequest) { + return new XMLHttpRequest(); + } else if (window.ActiveXObject){ + try { + return new ActiveXObject('Msxml2.XMLHTTP'); + } catch (e) { + } + return new ActiveXObject('Microsoft.XMLHTTP'); + } else return null; + }; + AEBW.getObject = function (div_) { + if( AEBW.DOM) return document.getElementById(div_); + if( AEBW.IE) return document.all[div_]; + return( null); + + }; + AEBW.writeObject = function(div_,html_) { + var Obj = AEBW.getObject( div_); + if( Obj) + Obj.innerHTML = html_; + }; + /* \brief Graphical functions + * + * \return Array of two elements [x, y] + */ + AEBW.findPos = function (obj) { + var curleft = curtop = 0; + if (typeof(obj.offsetParent) != "undefined") { + do { + curleft += obj.offsetLeft; + curtop += obj.offsetTop; + } while (obj = obj.offsetParent); + } else return [obj.x,obj.y]; + return [curleft,curtop]; + }; + /** + * @brief mix p properties into obj quiet interesting + * copied from dojotoolkit !!! + */ + AEBW._mixin = function (/* Object */ obj, /* Object*/ps) { + var tobj = {} ; + for ( var x in ps ) { + if ( tobj[x] === 'undefined' ||tobj[x] != ps[x] ) + obj[x] = ps[x]; + } + return obj; + } + /** + * \brief mix in obj a list of objects ... + * + */ + AEBW.mixin = function(/* Object */ obj , /* Object ... */ props) { + for (var i=1 ; i < arguments.length ; i++ ){ + this._mixin(obj,arguments[i]); + } + return obj; + } + + /** + * + */ + AEBW.isFunction = function(it) { + return it && (typeof it == 'function' || it instanceof Function); + } + AEBW.isArray = function (a) { + return a && (typeof a=='array' || a instanceof Array); + } + AEBW.isString = function (a) { + return a && (typeof a=='string' || a instanceof String); + } + /** + * @brief add all properties to an object + * as prototype. So all instances of the + * object own the methods !!! + */ + + AEBW.extend = function(/* Object*/constructor ,/*Object .... */ props) { + var l = arguments.length; + for (var i = 1 ; i < l ; i++ ) { + AEBW._mixin(constructor.prototype,arguments[i]); + } + return constructor; + } +} + +/** + * Loader stuff + */ +(function() { + var x=AEBW; + /** + * + */ + x.mixin(x,{ + config : {}, + _loadedUrls :[] + }); + /** + * @brief load an uri if not already loaded + * callback stuff is not yet handled + */ + x._loadUri = function(uri,cb) { + if (this._loadedUrls[uri]) { + return true; + } + var contents = this._getText(uri,true); + if( ! contents) {return false;} + this._loadedUrls[uri] = true; + this._loadedUrls.push(uri); + /** + * Ok, + */ + contents = "(function(){"+contents+"})();"; + /**/ + var val = x["eval"](contents); + } + + })(); +/* End loader stuff */ + + +if (typeof window != 'undefined') { + (function() { + var x = AEBW; + /* try to find root path of aebw */ + if (document && document.getElementsByTagName ) { + var scripts = document.getElementsByTagName('script'); + var regE = /aebw(\.xd)?\.js/i; + for ( var i = 0 ; i < scripts.length ; i++) { + var src = scripts[i].getAttribute('src'); + if (!src) { continue;} + var m = src.match(regE); + if (m) { + if ( !x.config || ! x.config.baseUrl ) { + x.config = {}; + x.config.baseUrl = src.substring(0,m.index); + } + } + } + } + x.baseUrl = x.config.baseUrl; + /** + * @brief Check If we were able to load the + * requested file. + * + */ + x._isDocOk = function ( http ) { + var stat = http.status || 0; + return (stat >= 200 && stat < 300 ) || + stat == 304 || + stat == 1223 || + (!stat && (location.protocol=='file:' || location.protocol =='chrome:') ); + } + /** + * AEBW._getText function to make request of + * necessary stuff might be used fo json ... + */ + x._getText = function( uri, fail_ok) { + var http = this.HTTPRequest(); + http.open('GET',uri,false); + try { + /* http.send(false) ; Does not work on IE 8 */ + http.send(); + if (!x._isDocOk(http) ){ + var err = Error("Unable to load file"+uri+" status:"+http.status); + err.status = http.status; + err.responseText = http.responseText; + throw err; + } + } catch (e) { + if (fail_ok) {return null; } + throw e; + } + return http.responseText; /* result of the request ... */ + } + })(); + + AEBW.require = function (moduleName) { + // Should check if already loaded . + + // Convert moduleName to Path + // does not work for relative paths take care + var relpath = moduleName.split('.').join('/')+'.js'; + this._loadUri(this.baseUrl+relpath); + } + /** + * Return an object from json string... http://www.json.org + */ + AEBW.fromJson = function (str) { + return eval("(" +str+")"); + } + /** + * @brief Escape a json string + */ + AEBW._escapeString = function(str) { + return ('"' + str.replace(/(["\\])/g, '\\$1') + '"'). + replace(/[\f]/g, "\\f").replace(/[\b]/g, "\\b").replace(/[\n]/g, "\\n"). + replace(/[\t]/g, "\\t").replace(/[\r]/g, "\\r"); // string + } + /** + * @brief Transform an object to a json string ... + */ + AEBW.toJson = function(/* Object*/ obj) { + var recurse = arguments.callee; + + var objt = typeof objt; + + if (objt == 'number' || objt == 'boolean') { + return obj +"" ; + } + if (AEBW.isString(obj)) { + return AEBW._escapeString(obj); + } + if (obj === null) { return "null";}; + + if (obj.nodeType && obj.clodeNode) {return "";} + /** + * Do we have serialisation object ? + */ + if (typeof obj.json == "function" ){ + var newObj = new obj.json(); + if (obj !== newObj) { + return recurse(newObj); + } + } + /* Arrays ...*/ + if (AEBW.isArray(obj) ) { + var res ="["; + for (var i in obj) { + res += recurse(i)+","; + } + res+="null]"; + return res; + } + if (objt == "function" ) { + return null; + } + var val=""; + var output= []; + /* Common attributes .... */ + for (var k in obj) { + var kstr; + if (typeof k == 'number') { + kstr= '"' + k + '"'; + } else if (typeof k == "string") { + if (k == "prototype") {continue;}; + kstr = AEBW._escapeString(k) ; + } else { + continue; + } + val = recurse(obj[k]); + if (typeof val != 'string') { + continue; + } + output.push(kstr+":"+val); + } + return "{"+output.join(",")+"}"; + } +} + +/** + * className : String + * superClass : Function | Fonction[] + * props : Object + */ +AEBW.declare = function (className, superclass ,props) { + var dd = arguments.callee,mixins; + + // prepare values + var init = (props||0).constructor, ctor = dd._delegate(superclass), fn; + // name methods (experimental) + for(var i in props){ if(AEBW.isFunction(fn = props[i]) && !0[i]){fn.nom = i;} } // 0[i] checks Object.prototype + // decorate prototype + AEBW.extend(ctor, {declaredClass: className, _constructor: init, preamble: null}, props || 0); + // special help for IE + ctor.prototype.constructor = ctor; + // create named reference + return AEBW.setObject(className, ctor); // Function +} + +AEBW.delegate = AEBW._delegate = function(obj,_b2){ + function TMP(){}; + TMP.prototype=obj; + var tmp=new TMP(); + if(_b2){AEBW.mixin(tmp,_b2);} + return tmp; +}; + +AEBW.mixin(AEBW.declare, { + _delegate: function(base, mixin){ + var bp = (base||0).prototype, mp = (mixin||0).prototype; + // fresh constructor, fresh prototype + var ctor = AEBW.declare._makeCtor(); + // cache ancestry + AEBW.mixin(ctor, {superclass: bp, mixin: mp, extend: AEBW.declare._extend}); + // chain prototypes + if(base){ctor.prototype = AEBW._delegate(bp);} + // add mixin and core + AEBW.extend(ctor, AEBW.declare._core, mp||0, {_constructor: null, preamble: null}); + // special help for IE + ctor.prototype.constructor = ctor; + // name this class for debugging + ctor.prototype.declaredClass = (bp||0).declaredClass + '_' + (mp||0).declaredClass; + return ctor; + }, +_extend: function(props){ + for(var i in props){ if(AEBW.isFunction(fn=props[i]) && !0[i]){fn.nom=i;} } + AEBW.extend(this, props); + }, + _makeCtor: function(){ + // we have to make a function, but don't want to close over anything + return function(){ this._construct(arguments); }; + }, + _core: { + _construct: function(args){ + var c=args.callee, s=c.superclass, ct=s&&s.constructor, m=c.mixin, mct=m&&m.constructor, a=args, ii, fn; + // side-effect of = used on purpose here, lint may complain, don't try this at home + if(a[0]){ + // FIXME: preambles for each mixin should be allowed + // FIXME: + // should we allow the preamble here NOT to modify the + // default args, but instead to act on each mixin + // independently of the class instance being constructed + // (for impedence matching)? + + // allow any first argument w/ a "preamble" property to act as a + // class preamble (not exclusive of the prototype preamble) + if(/*dojo.isFunction*/((fn = a[0].preamble))){ + a = fn.apply(this, a) || a; + } + } + // prototype preamble + if((fn = c.prototype.preamble)){a = fn.apply(this, a) || a;} + // FIXME: + // need to provide an optional prototype-settable + // "_explicitSuper" property which disables this + // initialize superclass + if(ct&&ct.apply){ct.apply(this, a);} + // initialize mixin + if(mct&&mct.apply){mct.apply(this, a);} + // initialize self + if((ii=c.prototype._constructor)){ii.apply(this, args);} + // post construction + if(this.constructor.prototype==c.prototype && (ct=this.postscript)){ ct.apply(this, args); } + }, + _findMixin: function(mixin){ + var c = this.constructor, p, m; + while(c){ + p = c.superclass; + m = c.mixin; + if(m==mixin || (m instanceof mixin.constructor)){return p;} + if(m && (m=m._findMixin(mixin))){return m;} + c = p && p.constructor; + } + }, + _findMethod: function(name, method, ptype, has){ + // consciously trading readability for bytes and speed in this low-level method + var p=ptype, c, m, f; + do{ + c = p.constructor; + m = c.mixin; + // find method by name in our mixin ancestor + if(m && (m=this._findMethod(name, method, m, has))){return m;} + // if we found a named method that either exactly-is or exactly-is-not 'method' + if((f=p[name])&&(has==(f==method))){return p;} + // ascend chain + p = c.superclass; + }while(p); + // if we couldn't find an ancestor in our primary chain, try a mixin chain + return !has && (p=this._findMixin(ptype)) && this._findMethod(name, method, p, has); + }, + inherited: function(name, args, newArgs){ + // optionalize name argument (experimental) + var a = arguments; + if(!AEBW.isString(a[0])){newArgs=args; args=name; name=args.callee.nom;} + a = newArgs||args; + var c = args.callee, p = this.constructor.prototype, fn, mp; + // if not an instance override + if(this[name] != c || p[name] == c){ + mp = this._findMethod(name, c, p, true); + if(!mp){throw(this.declaredClass + ': inherited method "' + name + '" mismatch');} + p = this._findMethod(name, c, mp, false); + } + fn = p && p[name]; + if(!fn){throw(mp.declaredClass + ': inherited method "' + name + '" not found');} + // if the function exists, invoke it in our scope + return fn.apply(this, a); + } + } + + } + ); +/* + * vim:et:ts=4:sw=4: + */ diff --git a/js/xgui/xgui_asn1.js b/js/xgui/xgui_asn1.js new file mode 100644 index 0000000..cbcefa3 --- /dev/null +++ b/js/xgui/xgui_asn1.js @@ -0,0 +1,7 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.button ) +{ + AEBW.control.button = function () + { + } +} diff --git a/js/xgui/xgui_base64.js b/js/xgui/xgui_base64.js new file mode 100644 index 0000000..292a808 --- /dev/null +++ b/js/xgui/xgui_base64.js @@ -0,0 +1,107 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.base64 ) +{ + AEBW.Base64 = function () + { + this.base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + this.base64DecodeChars = new Array( + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, + -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, + -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1); + + } + var proto = AEBW.Base64.prototype; + + proto.encode = function(str) { + var out, i, len; + var c1, c2, c3; + + len = str.length; + i = 0; + out = ""; + while(i < len) { + c1 = str.charCodeAt(i++) & 0xff; + if(i == len) + { + out += this.base64EncodeChars.charAt(c1 >> 2); + out += this.base64EncodeChars.charAt((c1 & 0x3) << 4); + out += "=="; + break; + } + c2 = str.charCodeAt(i++); + if(i == len) + { + out += this.base64EncodeChars.charAt(c1 >> 2); + out += this.base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4)); + out += this.base64EncodeChars.charAt((c2 & 0xF) << 2); + out += "="; + break; + } + c3 = str.charCodeAt(i++); + out += this.base64EncodeChars.charAt(c1 >> 2); + out += this.base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4)); + out += this.base64EncodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >>6)); + out += this.base64EncodeChars.charAt(c3 & 0x3F); + } + return out; + } + + proto.decode = function(str) { + var c1, c2, c3, c4; + var i, len, out; + + len = str.length; + i = 0; + out = ""; + while(i < len) { + /* c1 */ + do { + c1 = this.base64DecodeChars[str.charCodeAt(i++) & 0xff]; + } while(i < len && c1 == -1); + if(c1 == -1) + break; + + /* c2 */ + do { + c2 = this.base64DecodeChars[str.charCodeAt(i++) & 0xff]; + } while(i < len && c2 == -1); + if(c2 == -1) + break; + + out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4)); + + /* c3 */ + do { + c3 = str.charCodeAt(i++) & 0xff; + if(c3 == 61) + return out; + c3 = this.base64DecodeChars[c3]; + } while(i < len && c3 == -1); + if(c3 == -1) + break; + + out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2)); + + /* c4 */ + do { + c4 = str.charCodeAt(i++) & 0xff; + if(c4 == 61) + return out; + c4 = this.base64DecodeChars[c4]; + } while(i < len && c4 == -1); + if(c4 == -1) + break; + out += String.fromCharCode(((c3 & 0x03) << 6) | c4); + } + return out; + + + + } + +} diff --git a/js/xgui/xgui_button.js b/js/xgui/xgui_button.js new file mode 100644 index 0000000..cbcefa3 --- /dev/null +++ b/js/xgui/xgui_button.js @@ -0,0 +1,7 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.button ) +{ + AEBW.control.button = function () + { + } +} diff --git a/js/xgui/xgui_calendar.js b/js/xgui/xgui_calendar.js new file mode 100644 index 0000000..b610e56 --- /dev/null +++ b/js/xgui/xgui_calendar.js @@ -0,0 +1,300 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.calendar) +{ + var cell = null; + var row = null; + AEBW.control._C = null; + AEBW.control.calendar = function (name,cl) { + this.td = new Date(); + this.mn=['January','February','March','April','May','June','July','August','September','October','November','December']; + this.wd=['Su','Mo','Tu','We','Th','Fr','Sa']; + this._name = name; + this._class = cl; + this.element = document.getElementById(name); + this._table = document.createElement("table"); + this._div = document.createElement("div"); + this._div.className = "calendar"; + this._table.calendar = this; + this._table.className = cl; + this._table.border = 0; + this.element.appendChild(this._div); + this._div.appendChild(this._table); + this._caption =document.createElement("caption"); + this._thead =document.createElement("thead"); + this._tbody =document.createElement("tbody"); + this._tfoot =document.createElement("tfoot"); + this._table.appendChild(this._caption); + this._table.appendChild(this._thead); + this._table.appendChild(this._tbody); + this.onSelect = null; /* Public methods */ + this.onChange = null; +/* + Does not work on IE + this._table.setAttribute("cellspacing",0); + this._table.setAttribute("cellpadding",0); +*/ + this._table.cellSpacing = 0; + this._table.cellPadding = 0; + this._table.setAttribute("border",0); + this.is_ie = ( /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ); + this._active = null; /* tells active element */ + this.create(); + }; + + var proto = AEBW.control.calendar.prototype; + proto.addEvent = function (e, evn,f) { + e.onclick = f; + }; + AEBW.control.calendar._add_evs = function (c) { + with (AEBW.control.calendar.prototype) { + addEvent(c,'',onMouseClick); + }; + }; + proto.getElement = function(e) + { + var f = null; + if (!e) + { e = window.event; + f = e.srcElement; + } else f = e.currentTarget; + return f; + }; + + proto.onMouseClick = function(e) { + var f = null; + if (!e) { + e = window.event; + f = e.srcElement; + while ( (f.nodeType == 1) && !/^TD$/i.test(f.tagName) ) { + f = f.parentNode; + } +/* + alert('Found tp:'+f.nodeType+' element '+f.tagName+' content : '+f.innerHTML+' test='+/^TD$/i.test(f.tagName)); +*/ + } else + f = e.currentTarget; + if (f.onHandler) f.onHandler(); + + }; + + proto._onNextMonth = function() { + var cal = this.calendar; + if (cal.date) + { + var date = new Date(cal.date); + date.setMonth(date.getMonth() + 1); + cal.setDate(date); + if (cal.onChange) cal.onChange(date); + } else { + /* I should never enter here*/ + var date = new Date(); + date.setMonth(date.getMonth() + 1); + alert('Bad case ins onNextMonth'); + cal.setDate(date); + } + }; + proto._onPrevMonth = function() { + var cal = this.calendar; + if (cal.date) + { + var date = new Date(cal.date); + date.setMonth(date.getMonth() - 1); + cal.setDate(date); + if (cal.onChange) cal.onChange(date); + } else + alert('Bad case ins onPrevMonth'); + }; + + proto._onNextYear = function () { + var cal = this.calendar; + if (cal.date) + { + var date = new Date(cal.date); + date.setFullYear(date.getFullYear() + 1); + cal.setDate(date); + if (cal.onChange) cal.onChange(date); + } else + alert('Bad case ins onNextYear'); + }; + proto._onPrevYear = function () { + var cal = this.calendar; + if (cal.date) + { + var date = new Date(cal.date); + date.setFullYear(date.getFullYear() - 1); + cal.setDate(date); + if (cal.onChange) cal.onChange(date); + } else + alert('Bad case ins onPrevYaer'); + }; + proto.removeEvent = function(e,evn,f) { + if (e.detachEvent) { // IE + e.detachEvent("on" + evn, f); + } else if (e.removeEventListener) { // Gecko / W3C + e.removeEventListener(evn, f, true); + } else { + e["on" + evn] = null; + } + + }; + + proto.Draw = function () + { + var head = this._thead; + var cal = this; + var hh = function (text,cs,nt) + { + cell = document.createElement('td'); + cell.calendar = cal; + if ( row ) row.appendChild(cell); + cell.colSpan = cs; + cell.className = 'calendar_item'; + cell.innerHTML = ''+text+''; + with (AEBW.control.calendar) { + _add_evs(cell); + } + return cell; + }; + row = document.createElement("tr"); + head.appendChild(row); + cell = hh('?',1,1); + cell.className = "calendar help"; + cell = hh(', ',6,1); + cell.className = "calendar date"; + /* buttons */ + row = document.createElement("tr"); + head.appendChild(row); + cell=hh('«',1,-2); + cell.className = "calendar py"; + cell.onHandler = this._onPrevYear; + cell=hh('‹',1,-1); + cell.onHandler = this._onPrevMonth; + cell.className = "calendar pm"; + cell=hh('today',3,0); + cell=hh('›',1,1); + cell.onHandler = this._onNextMonth; + cell.className = "calendar nm"; + cell=hh('»',1,2); + cell.className = "calendar ny"; + cell.onHandler = this._onNextYear; + /* days */ + row = document.createElement("tr"); + head.appendChild(row); + for(s=0;s<7;s++ ) { + var cell = document.createElement("th"); + cell.innerHTML = this.wd[s]; + row.appendChild(cell); + } + row = document.createElement('tr'); + this._tbody.appendChild(row); + for (i = 1 ; i <= 42; i++) + { + var x= ' '; + var cell = document.createElement('td'); + cell.onclick = this.onMouseClick; + cell.calendar = this; + cell.className = "day"; + cell.innerHTML = ''+x+''; + row.appendChild(cell); + if ( ((i)%7 == 1) || ((i%7)==0)) cell.className+=" weekend"; + if(((i)%7==0)&&(i<36)) + { + row = document.createElement('tr'); + this._tbody.appendChild(row); + } + } + }; + /* + * This function shall be used to + * to fill the table. + */ + proto._init = function(date) { + var todaydate=new Date() //DD added + var scanfortoday=(date.getFullYear()==todaydate.getFullYear() && (date.getMonth()+1)==todaydate.getMonth()+1)? todaydate.getDate() : 0 //DD added + var mn=this.mn; + var dim=[31,0,31,30,31,30,31,31,30,31,30,31]; + var oD = new Date(date); //DD replaced line to fix date bug when current day is 31st + oD.setDate(1); + oD.od=oD.getDay()+1; //DD replaced line to fix date bug when current day is 31st + dim[1]=(((oD.getFullYear()%100!=0)&&(oD.getFullYear()%4==0))||(oD.getFullYear()%400==0))?29:28; + var row = this._tbody.firstChild; + this.date = new Date(date); + for (i = 0 ; i < 6 ; i++, row=row.nextSibling) + { + var cell = row.firstChild; + for ( j = 1 ; j < 8 ; j++ ,cell=cell.nextSibling) + { + var k = i * 7 + j ; + var x=((k-oD.od>=0)&&(k-oD.od=0)&&(k-oD.od 0;) { + if (cls[--i] != className) { + ar[ar.length] = cls[i]; + } + } + el.className = ar.join(" "); +}; + + proto.addClass = function(el, className) { + this.removeClass(el, className); + el.className += " " + className; +}; +} diff --git a/js/xgui/xgui_combobox.js b/js/xgui/xgui_combobox.js new file mode 100644 index 0000000..1ff220c --- /dev/null +++ b/js/xgui/xgui_combobox.js @@ -0,0 +1,79 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.comboBox ) +{ + AEBW.control.comboBox = function (id) + { + this.s_class = "comboBox"; + this.s_id = ""; + this.detect = navigator.userAgent.toLowerCase(); + this.nTop = 0; + this.nLeft = 0; + } + /* static functions */ + var proto = AEBW.control.comboBox.prototype; + + proto.onChange = function() { + val = this.options[this.selectedIndex].value; + document.getElementById("txt"+this.s_name).value = val; + } + + proto.onFocus = function() { + } + proto.onInit = function(ctrl) { + selectWidth = ctrl.offsetWidth; + + txtfield = document.createElement("input"); + txtfield.id = "txt" + ctrl.name; + txtfield.className = "comboText"; + txtfield.style.zIndex = "99999"; + txtfield.value = ""; + txtfield.style.position = "absolute"; + txtfield.style.border = "none"; + if (this.detect.indexOf("safari") + 1) { + selectButtonWidth = 18; + txtfield.style.marginTop = "0px"; + txtfield.style.marginLeft = "0px"; + } else if (this.detect.indexOf("opera") + 1) { + selectButtonWidth = 27; + txtfield.style.marginTop = "4px"; + txtfield.style.marginLeft = "4px"; + } else { + selectButtonWidth = 27; + txtfield.style.marginTop = "2px"; + txtfield.style.marginLeft = "3px"; + } + + txtfield.style.width = (selectWidth - selectButtonWidth) +"px"; + ctrl.parentNode.appendChild(txtfield); + } + + proto.getElementsByClassName = function(node,classname) { + var a = []; + var re = new RegExp('(^| )' + classname + '( |$)'); + var els = document.getElementsByTagName(node); + for (var i = 0 , j = els.length; i < j ; i++ ) + if (re.test(els[i].className)) a.push(els[i]); + return a; + } + } + + proto.initIframe = function(ctrl) { + textfield = document.getElementById("txt" + ctrl.name); + textWidth = textfield.offsetWidth; + textHeight = textfield.offsetHeight; + hackFrame = document.createElement("iframe"); + hackFrame.setAttribute("src", "placeHolder.html"); + hackFrame.setAttribute("scrolling", "0"); + hackFrame.setAttribute("tabindex", "-1"); + hackFrame.id = "frame" + ctrl.name; + hackFrame.style.position = "absolute"; + hackFrame.style.width = textWidth + "px"; + hackFrame.style.height = textHeight + "px"; + hackFrame.style.top = nTop + "px"; + hackFrame.style.left = nLeft + "px"; + hackFrame.style.marginTop = "3px"; + hackFrame.style.marginLeft = "3px"; + ctrl.parentNode.insertBefore(hackFrame, textfield); + } + +} diff --git a/js/xgui/xgui_corba.js b/js/xgui/xgui_corba.js new file mode 100644 index 0000000..c8600a4 --- /dev/null +++ b/js/xgui/xgui_corba.js @@ -0,0 +1,49 @@ +if ( ! AEBW.CORBA ) {AEBW.CORBA = {};} +if ( !AEBW.CORBA.Obj ) +{ + /** + * A CORBA Object. Shall be used to invoke + * + */ + AEBW.CORBA.Obj = function (jobj) { + for (var prop in jobj) { + alert("Go though properties:" + prop); + if (prop == "oid") { + this[prop] = jobj[prop]; + } + if (prop == "protos") { + this.methods = new Array(); + alert("Have prototypes:" + jobj[prop]); + for (var fcts in jobj[prop] ) { + this.methods[fcts]=fcts; + this[fcts] = function (method,params) { + this.invoke(method,params); + } + this[fcts].fcts = fcts; + } + } + } + + }; + /** + * Any object Object + * + */ + AEBW.CORBA.Any = function() + { + }; + /** + * Request Object + * + */ + AEBW.CORBA.Request = function() + { + }; + /** CORBA.OBf Prototypes */ + var proto = AEBW.CORBA.Obj.prototype; + + proto.invoke = function (nm,prs) { + alert("invoke "+this.oid+" "+nm); + }; + +} diff --git a/js/xgui/xgui_dialogbox.js b/js/xgui/xgui_dialogbox.js new file mode 100644 index 0000000..b48999d --- /dev/null +++ b/js/xgui/xgui_dialogbox.js @@ -0,0 +1,70 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.dialogbox ) +{ + AEBW.control.dialogbox = function (id) + { + this.s_class = "dialogBox"; + this._content = null; + if (id != null) { + this.s_id = id; + } else + this.s_id = null; + } + /* static functions */ + var proto = AEBW.control.dialogbox.prototype; + proto.load = function (path) { + var obj = this; + new Ajax.Request(path, + { + method: 'get', + //postBody: str, + onFailure: function () { + obj.onFailure("Failed load file"); + }, + onSuccess: function(response) { + with (response) + { + if (headerJSON !=null) + { + if ( typeof headerJSON.error !== 'undefined') { + obj.onFailure(headerJSON.error); + } else { + obj.onLoaded(headerJSON.response); + } + } else { + obj.onLoaded(responseText); + } + } + } + }); + + } + proto.onLoaded = function(html) { + this._content = html; + } + proto.onFailure = function(html) { + alert("Failed="+html); + this._content = html; + } + proto.show = function() { + $(this.s_id).innerHTML = this._content; + this.onShow(); + } + + proto.hide = function () { + this.onHide(); + } + + proto.onShow = function () { + } + proto.onHide = function() { + } + proto.isNumber= function(elem) { + return (!isNaN(parseFloat(elem.value)) && isFinite(elem.value)); + } + proto.isDate = function(elem) { + validate = /^\d{4}-\d{2}-\d{2}$/; + return validate.test(elem.value); + } + +} diff --git a/js/xgui/xgui_hex.js b/js/xgui/xgui_hex.js new file mode 100644 index 0000000..0f07a45 --- /dev/null +++ b/js/xgui/xgui_hex.js @@ -0,0 +1,46 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.Hex ) +{ + AEBW.Hex = function () + { + + } + AEBW.Hex.decode = function (a) { + if (AEBW.Hex.decoder == undefined) { + var hex = "0123456789ABCDEF"; + var allow = " \f\n\r\t\u00A0\u2028\u2029"; + var dec = []; + for (var i = 0; i < 16; ++i) + dec[hex.charAt(i)] = i; + hex = hex.toLowerCase(); + for (var i = 10; i < 16; ++i) + dec[hex.charAt(i)] = i; + for (var i = 0; i < allow.length; ++i) + dec[allow.charAt(i)] = -1; + AEBW.Hex.decoder = dec; + } + var out = []; + var bits = 0, char_count = 0; + for (var i = 0; i < a.length; ++i) { + var c = a.charAt(i); + if (c == '=') + break; + c = Hex.decoder[c]; + if (c == -1) + continue; + if (c == undefined) + throw 'Illegal character at offset ' + i; + bits |= c; + if (++char_count >= 2) { + out[out.length] = bits; + bits = 0; + char_count = 0; + } else { + bits <<= 4; + } + } + if (char_count) + throw "Hex encoding incomplete: 4 bits missing"; + return out; + } +} diff --git a/js/xgui/xgui_json.js b/js/xgui/xgui_json.js new file mode 100644 index 0000000..c311d9b --- /dev/null +++ b/js/xgui/xgui_json.js @@ -0,0 +1,81 @@ + +AEBW.declare("AEBW.Json",AEBW, { + +constructor: function(url) { + this.url=url; +}, + +handle: function(service,method,params) { + var obj = {"service": service,"method":method,"params" : params, "id":'1'}; + var str=Object.toJSON(obj); + + var me = this; + new Ajax.Request(this.url, + { + method: 'post', + contentType: 'application/json' , + postBody: str, + onFailure: function () { + alert("Failed AEBW.Json Request service="+service+" Method="+method); + }, + onSuccess: function(response) { + with (response) { + if (headerJSON !=null) + { + if ( typeof headerJSON.error !== 'undefined' && headerJSON.error !== null) { + alert("Failed AEBW.Json Request "+method+":"+headerJSON.error); + me.onFailure(headerJSON.error); + } else { + if (me['on'+method] != null) { + me['on'+method](headerJSON); + } else { + alert("Yes AEBW.Json Request:"+headerJSON); + } + //.onSuccess(headerJSON.response); + } + } else + alert("Success Request:"+responseText); + } + } + }); + }, +handlefct: function(service,method,params,_onSuccess,_onFailure) { + var obj = {"service": service,"method":method,"params" : params, "id":'1'}; + var str=Object.toJSON(obj); + + var me = this; + new Ajax.Request(this.url, + { + method: 'post', + contentType: 'application/json' , + postBody: str, + onFailure: function () { + if (_onFailure != null) { + _onFailure(); + } else { + alert("Failed AEBW.Json Request service="+service+" Method="+method); + } + }, + onSuccess: function(response) { + with (response) { + if (headerJSON !=null) + { + if ( typeof headerJSON.error !== 'undefined' && headerJSON.error !== null) { + alert("Failed AEBW.Json Request "+service+"."+method+":"+headerJSON.error); + _onSuccess(headerJSON); + } else { + if (_onSuccess != null) { + _onSuccess(headerJSON); + } else { + alert("Yes AEBW.Json Request:"+headerJSON); + } + //.onSuccess(headerJSON.response); + } + } else + alert("AEBW.Json handlefct"+str+" onSuccess Request response text:"+responseText); + } + } + }); + } +}); + diff --git a/js/xgui/xgui_jsonrpc.js b/js/xgui/xgui_jsonrpc.js new file mode 100644 index 0000000..55cbb12 --- /dev/null +++ b/js/xgui/xgui_jsonrpc.js @@ -0,0 +1,49 @@ +AEBW.declare("AEBW.JsonRpc",AEBW, { + constructor: function(url) { + this.url=url; + this.handle = function(ob,method,params) { + var obj = {"method": method,"params" : params, "id":1}; + var str=Object.toJSON(obj); + + /* + contentType: 'application/json', + */ + new Ajax.Request(this.url, + { + method: 'post', + contentType: 'application/json', + postBody: str, + onFailure: function () { + alert("Failed Request"); + ob.onFailure("Json request failure"); + }, + onSuccess: function(response) { + with (response) { + if (headerJSON !=null) + { + if ( typeof headerJSON.error !== 'undefined') { + if (typeof ob.onFailure !== 'undefined') { + if (headerJSON.error == null ) { + if (typeof ob.onSuccess !== 'undefined') { + ob.onSuccess(headerJSON.result); + } else { + alert("Success without return call back"); + } + }else + ob.onFailure(headerJSON.error); + } else + alert("Failed Request:"+headerJSON.error); + } else { + if (typeof ob.onSuccess !== 'undefined') { + ob.onSuccess(headerJSON.result); + } else + alert("Yes Request:"+url+" "+headerJSON); + } + } else + alert("Success Request "+str+" but not Json:"+responseText); + } + } + }); + } + } +}); diff --git a/js/xgui/xgui_menu.js b/js/xgui/xgui_menu.js new file mode 100644 index 0000000..e24343f --- /dev/null +++ b/js/xgui/xgui_menu.js @@ -0,0 +1,67 @@ +if ( ! AEBW.control ) {AEBW.control = {};} + +if (! AEBW.control.menubar ) { + AEBW.control.menubar = function (div_,direction) { + this._dir = direction; /* should be horizontal or vertical */ + this._div = AEBW.getObject(div_); + this._submenus = new Array(); + var ul = this._div.getElementsByTagName("ul"); + if (ul) { + var k = 0; + for (i = 0 ; i < ul.length ; i++ ) { + var n = ul.item(i); + if (n.className == "horizontalSubMenu") { + n.style.display = "none"; + /*n.style.position = "absolute"; + */n.style.visibility = "hidden"; + n.style.width = ""; + n.style.right = ""; + n.style.left = ""; + this._submenus[k++] = new AEBW.control.menu(this._div,n.parentNode,n); + } else { + this._menu = new AEBW.control.menu(this._div,n.parentNode,n); + } + } + } + }; +} +/** + * Menu stuff in menu bar + */ +if (! AEBW.control.menu ) +{ + AEBW.control.menu = function (_div,_pli,_ul) { + var li_pos = AEBW.findPos(_pli); + if (_div != _pli ) { + var act = _pli.getElementsByTagName("a").item(0); + li_pos = AEBW.findPos(act); + _pli.onmouseover = function() { + _ul.style.visibility= "visible"; + _ul.style.display= "block"; + }; + _pli.onmouseout = function() { + _ul.style.visibility= "hidden"; + _ul.style.display= "none"; + }; + + /* + Does not work at all witj IE + if (AEBW.DOM) { _ul.style.width= _pli.offestWidth; } + */ + } + var d_p = AEBW.findPos(_div); + var x = li_pos[0] - d_p[0]; + _ul.style.left = x + "px"; + _ul.style.top = _pli.offsetHeight + "px"; +/* + _ul.style.top = li_pos[1] + "px"; +*/ + }; + + var proto = AEBW.control.menu.prototype; + + proto.initialize = function (menu,direction) { + this._dir = direction; + this._div = AEBW.getObject(menu); + }; +} diff --git a/js/xgui/xgui_stream.js b/js/xgui/xgui_stream.js new file mode 100644 index 0000000..622a258 --- /dev/null +++ b/js/xgui/xgui_stream.js @@ -0,0 +1,7 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.Stream ) +{ + AEBW.Stream = function () + { + } +} diff --git a/js/xgui/xgui_tab.js b/js/xgui/xgui_tab.js new file mode 100644 index 0000000..ed35a4d --- /dev/null +++ b/js/xgui/xgui_tab.js @@ -0,0 +1,61 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.notebook) +{ + AEBW.control.notebook = function (name,pg) + { + this.s_nom_boite = name; + this.s_box_current = pg; + this.s_onglet_current = name+pg; + }; + var proto = AEBW.control.notebook.prototype; + proto.s_box_current = ""; + proto.s_onglet_current = ""; + + proto.openBoite = function (pg) + { + var s_nom_onglet = this.s_nom_boite + pg; + // Ferme la boite ouverte, si il y en a une// + if(this.s_box_current!=""){ + var d_boite_courante = document.getElementById(this.s_box_current); + d_boite_courante.className = "pageHidden"; + try { + this.onHide(d_boite_courante,this.s_box_current); + } catch (e) { + } + } + + // Grise l'on en cours si il y en a un// + if(this.s_onglet_current!=""){ + var li_onglet_current = document.getElementById(this.s_onglet_current); + li_onglet_current.className = "notebooktitle"; + } + + // Ouvre la nouvelle boite// + var d_boite = document.getElementById(pg); + d_boite.className = "page"; + try { + this.onShow(d_boite,pg); + } catch (e) { + } + + // Spécifie l'onglet courant// + var li_onglet = document.getElementById(s_nom_onglet); + li_onglet.className = "notebooktitlecurrent"; + + // On sauvegarde les valeurs de la boite et de l'onglet en cours // + this.s_box_current = pg; + this.s_onglet_current = s_nom_onglet; + + }; + + proto.onShow = function (elem,id) { + try { + eval("this.onShow"+id+"(elem,id);"); + } catch (e) {} + }; + proto.onHide = function (elem,id) { + try { + eval("this.onHide"+id+"(elem,id);"); + } catch (e) {} + }; +} diff --git a/js/xgui/xgui_table.js b/js/xgui/xgui_table.js new file mode 100644 index 0000000..a470b5d --- /dev/null +++ b/js/xgui/xgui_table.js @@ -0,0 +1,77 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.table ) +{ + AEBW.control.table = function (name) + { + this._id = name; + this._table = document.getElementById(name); + this._NbColums = this._table.tHead.rows[0].cells.length; + this._NbRows = this._table.tBodies[0].rows.length; + }; + var proto = AEBW.control.table.prototype; + + proto._NbRows = 0; + proto._NbColums = 0; + proto._table = {}; + + proto.addRow = function() + { + var row = document.createElement('tr'); + this._table.tBodies[0].appendChild(row); + this._NbRows = this._NbRows + 1; + if (this._NbRows % 2) { + row.setAttribute('class','odd'); + } else { + row.setAttribute('class','even'); + } + + var obj = this; + /* Add the cells */ + for (var i = 0 ; i < this._NbColums ; i++) { + var td; + td = document.createElement('td'); + td.innerHTML =" "; + td.setAttribute('mode','RW'); + td.setAttribute('state','RD'); + td.onclick = function () { var row = this.getAttribute('row');var col=this.getAttribute('col');obj._onSelect(row,col);}; + td.setAttribute('row',this._NbRows); + td.setAttribute('col',i+1); + this._table.tBodies[0].rows[this._NbRows-1].appendChild(td); + } + return this._table.tBodies[0].rows[this._NbRows-1]; + }; + proto._onSelect = function(row,col) { + try { + this.onSelect(this.getCell(row-1,col -1),row,col); + } catch (e) { + } + } + proto.delRow = function(row) + { + if ( (row >= 0) && (row < this._NbRows)) + { + this._table.tBodies[0].deleteRow(row); + this._NbRows = this._NbRows - 1; + } else + alert('delRow out of range '+this._NbRows +' rmove ' +row); + }; + proto.getCell = function(row, col) + { + return this._table.tBodies[0].rows[row].cells[col]; + }; + + proto.cleanTable = function() { + for (var r = 0 ; r < this._NbRows ; r++) { + for (var c = 0 ; c < this._NbColums ; c++ ) { + var td = this._table.tBodies[0].rows[r].cells[c]; + td.innerHTML = " "; + } + } + }; + proto.eraseAllRows = function () { + var nbr = this._nbRows; + for ( i = 0 ; i < nbr ; i++ ) { + this.delRow(0); + } + } +} diff --git a/js/xgui/xgui_wizard.js b/js/xgui/xgui_wizard.js new file mode 100644 index 0000000..4f10e1f --- /dev/null +++ b/js/xgui/xgui_wizard.js @@ -0,0 +1,66 @@ +if ( ! AEBW.control ) {AEBW.control = {};} +if (! AEBW.control.Wizard) +{ + AEBW.control.Wizard = function (name,pages) + { + var next = document.getElementById(name+"_next"); + var prev = document.getElementById(name+"_prev"); + this.pages = pages; + this.s_name = name; + this.s_current = pages[0]; + var obj = this; + next.onclick = function() { + obj.next(); + } + prev.onclick = function() { + obj.prev(); + } + + }; + var proto = AEBW.control.Wizard.prototype; + proto.s_box_current = ""; + proto.s_onglet_current = ""; + + proto.next = function () + { + var idx = this.pages.indexOf(this.s_current); + // Ferme la boite ouverte, si il y en a une// + if(this.s_current!="" && idx < this.pages.length - 1) { + var d_boite_courante = document.getElementById(this.s_current); + d_boite_courante.className = "pageHidden"; + } + if (idx < this.pages.length - 1) { + idx++; + var d_boite = document.getElementById(this.pages[idx]); + d_boite.className = "page"; + this.s_current = this.pages[idx]; + this.onNext(this.pages[idx-1]); + } else { + alert("End of the pages"); + } + + // Ouvre la nouvelle boite// + + // On sauvegarde les valeurs de la boite et de l'onglet en cours // + + }; + proto.prev = function() { + var idx = this.pages.indexOf(this.s_current); + if(this.s_current!="" && idx > 0) { + var d_boite_courante = document.getElementById(this.s_current); + d_boite_courante.className = "pageHidden"; + } + if (idx > 0) { + idx--; + var d_boite = document.getElementById(this.pages[idx]); + d_boite.className = "page"; + this.s_current = this.pages[idx]; + this.onPrev(this.pages[idx+1]); + } else { + alert("End of the pages"); + } + + }; + proto.onNext =function(cid) {}; + proto.onPrev = function (cid) {} +} diff --git a/liens.xml b/liens.xml new file mode 100644 index 0000000..94aa9c8 --- /dev/null +++ b/liens.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/liens_php.xml b/liens_php.xml new file mode 100644 index 0000000..2188b70 --- /dev/null +++ b/liens_php.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/linux.en_US.UTF-8.xml b/linux.en_US.UTF-8.xml new file mode 100644 index 0000000..8b7a061 --- /dev/null +++ b/linux.en_US.UTF-8.xml @@ -0,0 +1,47 @@ + + + + Linux + Linux + $Date: 2010/08/25 15:10:02 $ + $Id: linux.en_US.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + Linux + +

    Introduction

    +
      +
    • +
    • +
    +
    + + +

    Driver developpment

    +

    +
    + + +
    + + + 27 Fév 2007 + + + Start this page + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/linux.fr_FR.UTF-8.xml b/linux.fr_FR.UTF-8.xml new file mode 100644 index 0000000..7476557 --- /dev/null +++ b/linux.fr_FR.UTF-8.xml @@ -0,0 +1,55 @@ + + + + Linux + Linux + $Date: 2010/08/25 15:10:02 $ + $Id: linux.fr_FR.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + Linux + +

    Introduction

    +
      +
    • +
    • +
    +
    + +

    Linux est un terme générique qui désigne généralement le noyau GPL + de Linus Torvald. Depuis, on trouve ce mot un peu partout. + Dans le développement , dans + le domain du .

    +
    + + +

    Développement /portage de driver

    +
      +
    • Watchdog driver
    • +
    • Led driver and trigger.
    • Le driver de trigger pour linux 2.6.19 + peut être . +
    • I2c driver
    • +
    +
    +
    + + + 27 Fév 2007 + + + Start this page + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/linux.xml b/linux.xml new file mode 100644 index 0000000..cca5807 --- /dev/null +++ b/linux.xml @@ -0,0 +1,78 @@ + + + + Linux + Linux + $Date: 2009/03/28 07:54:52 $ + $Id: linux.xml,v 1.8 2009/03/28 07:54:52 aeb Exp $ + + Linux + Linux +

    Introduction

    +

    Introduction

    +
      +
    • +
    • +
    +
      +
    • +
    • +
    + + + + Linux est un terme générique qui désigne généralement le noyau GPL + de Linus Torvald. Depuis, on trouve ce mot un peu partout. + Dans le développement , dans + le domain du . + + + + +

    Développement /portage de driver

    +

    Driver developpment

    + + +
      +
    • Watchdog driver
    • +
    • Led driver and trigger.
    • Le driver de trigger pour linux 2.6.19 + peut être . +
    • I2c driver
    • +
    +

    Temps réel sous Linux

    +

    Realtime on Linux

    + + + + + + +
    + + + 27 Fév 2007 + + + Start this page + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/linux_embedded.xml b/linux_embedded.xml new file mode 100644 index 0000000..47aca56 --- /dev/null +++ b/linux_embedded.xml @@ -0,0 +1,112 @@ + + + + Linux embarqué + Embedded Linux + Linux, embarquée, pc104 + Linux, embedded, software, drivers, pc104 + Cette page décrit mon intéret pour linux dans l'embarqué. + + $Date: 2008/03/06 18:11:28 $ + $Id: linux_embedded.xml,v 1.5 2008/03/06 18:11:28 aebersol Exp $ + + Linux embarqué + Embedded Linux +

    Introduction

    +

    Introduction

    + + Information about my knowledge in embedded linux. My hardware, and some developments. + + + My hardware is a PC104 AMD board from SSV (very old now). The board has 4Mo flash and + 32 MB RAM. + + + I am interested in working with other hardware like that one provided by . + + + + + + +

    Développement /portage de driver

    +

    Driver development

    +
      +
    • Watchdog driver
    • +
    • Led driver and trigger.
    • Le driver de trigger pour linux 2.6.19 + peut être . +
    • I2c driver pour le rtc max6917
    • +
    • Driver i2c pour piloter des IOs
    • +
    +
      +
    • Watchdog driver
    • +
    • Led driver and trigger.
    • . +
    • I2c driver for rtc max6917
    • +
    • I2C Driver for IOs
    • +
    + + +

    Des liens utiles

    +

    Useful links

    + + Les liens sur internet sont foules. Aussi, je vous propose ma sélection de liens. + +
      +
    • le package qui contient tout ce qui est nécessaire pour démarrer un système
    • +
    • +
    • un package qui permet de réaliser une distribution embarquée complète
    • +
    +
      +
    • The base for an embedded linux system (after the toochain of curse)
    • +
    • a libc library designed for embedded system. real small footprint
    • +
    • a package that containes all the necessary stuff to build a complet development environment
    • +
    +

    + + +

    + + + + +
    + + + 10 Juil 2007 + EBERSOLD André + + + English version of that page. + + + Version anglaise de la page. + + + + + 27 Fév 2007 + + + Start this page + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/linux_rt.en_US.UTF-8.xml b/linux_rt.en_US.UTF-8.xml new file mode 100644 index 0000000..9465ee7 --- /dev/null +++ b/linux_rt.en_US.UTF-8.xml @@ -0,0 +1,52 @@ + + + + Linux temps réel + Realtime Linux + $Date: 2010/08/25 15:10:02 $ + $Id: linux_rt.en_US.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + +

    Realtime Linux

    +

    Introduction

    +

    In the market, you can find several Realtime layer for linux. The most well knowns are :

    +
      +
    • Xenomai GPL
    • +
    • RTAI GPL. les développements sont focalisés sur X86
    • +
    • RT Linux kernel 2.4 (GPL) avec un brevet, RTLinux Pro Kernel 2.6 (WindRiver)
    • +
    +

    Driver developpment

    +

    The main purpose of drivers is to bring to the system new hardware functionalities.

    +

    Realtime on Linux

    +

    Xenomai

    +

    I used this realtime layer to migrate a whole system from linux 2.4 x86 to linux 2.6 power PC. + In our first approch the API's are similar between RT linux and Xenomai. But when it came to + the functionnal behavior, I notice differences in the implementation and usage of the API. +

    +

    Fifos , what's different between RTLinux and Xenomai

    +

    Pour la version domaine public de RTLinux, une fifo ne peut fonctionner que dans un seul sens. + Il n'y a pas de notion de priorité de message. La fifo est une structure avec un buffer + circulaire alloué lors de la création de la fifo. Ce principe permet d'optimiser au maximum + la manipulation des données. Il n'est pas question d'allouer de la mémoire pour envoyer + un paquet.

    +
    + +
    + + + 27 Fév 2007 + + + Start this page + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/linux_rt.fr_FR.UTF-8.xml b/linux_rt.fr_FR.UTF-8.xml new file mode 100644 index 0000000..8b8a7dd --- /dev/null +++ b/linux_rt.fr_FR.UTF-8.xml @@ -0,0 +1,61 @@ + + + + Linux temps réel + Realtime Linux + $Date: 2010/08/25 15:10:02 $ + $Id: linux_rt.fr_FR.UTF-8.xml,v 1.1 2010/08/25 15:10:02 aebersol Exp $ + + +

    Linux temps réel

    +

    Introduction

    +

    Il existe plusieurs couches temps réel dures qui permettent de s'interfacer avec + linux. Les trois principaux que j'ai retenu sont:

    +
      +
    • GPL
    • +
    • GPL. les développements sont focalisés sur X86
    • +
    • RT Linux kernel 2.4 (GPL) avec un brevet, RTLinux Pro Kernel 2.6 (WindRiver)
    • +
    +
    + +

    Développement /portage de driver

    + +

    Temps réel sous Linux

    +

    Xenomai

    +

    Dans le cadre de mon travail, j'ai été amené à utiliser ce composant. Toutes les couches + temps réel proposent plus ou moins la même API. Aussi, le passage d'une implémention + à l'autre n'est pas un challange particulier. La où les choses peuvent se gâter, + c'est quand on commence par s'intéresser de près au système. +

    + +

    Les Fifos , comparatif entre RTLinux et Xenomai

    +

    Pour la version domaine public de RTLinux, une fifo ne peut fonctionner que dans un seul sens. + Il n'y a pas de notion de priorité de message. La fifo est une structure avec un buffer + circulaire alloué lors de la création de la fifo. Ce principe permet d'optimiser au maximum + la manipulation des données. Il n'est pas question d'allouer de la mémoire pour envoyer + un paquet.

    +

    Pour Xenomai, si de premier abord les choses sont très semblables, en interne ce n'est pas + du tout le cas. + La fifo de xenomai manipule deux queues internes. Par conséquent, les fifos Xenomai sont + bidirectionnelles.

    +
    +
    + + + 27 Fév 2007 + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/linux_rt.xml b/linux_rt.xml new file mode 100644 index 0000000..85a42d0 --- /dev/null +++ b/linux_rt.xml @@ -0,0 +1,86 @@ + + + + Linux temps réel + Realtime Linux + $Date: 2008/03/06 18:13:10 $ + $Id: linux_rt.xml,v 1.4 2008/03/06 18:13:10 aebersol Exp $ + + Linux temps réel + Realtime Linux +

    Introduction

    +

    Introduction

    + + + + Il existe plusieurs couches temps réel dures qui permettent de s'interfacer avec + linux. Les trois principaux que j'ai retenu sont: + +
      +
    • GPL
    • +
    • GPL. les développements sont focalisés sur X86
    • +
    • RT Linux kernel 2.4 (GPL) avec un brevet, RTLinux Pro Kernel 2.6 (WindRiver)
    • +
    + + + +

    Développement /portage de driver

    +

    Driver developpment

    + + + + +

    Temps réel sous Linux

    +

    Realtime on Linux

    +

    Xenomai

    + + Dans le cadre de mon travail, j'ai été amené à utiliser ce composant. Toutes les couches + temps réel proposent plus ou moins la même API. Aussi, le passage d'une implémention + à l'autre n'est pas un challange particulier. La où les choses peuvent se gâter, + c'est quand on commence par s'intéresser de près au système. + +

    Les Fifos , comparatif entre RTLinux et Xenomai

    + + Pour la version domaine public de RTLinux, une fifo ne peut fonctionner que dans un seul sens. + Il n'y a pas de notion de priorité de message. La fifo est une structure avec un buffer + circulaire alloué lors de la création de la fifo. Ce principe permet d'optimiser au maximum + la manipulation des données. Il n'est pas question d'allouer de la mémoire pour envoyer + un paquet. + + + Pour Xenomai, si de premier abord les choses sont très semblables, en interne ce n'est pas + du tout le cas. + La fifo de xenomai manipule deux queues internes. Par conséquent, les fifos Xenomai sont + bidirectionnelles. + + + +
    + + + 27 Fév 2007 + + + Start this page + + + Mon expérience Linux chez Alcatel. + + + + + +
    + diff --git a/locale/fr_FR.UTF-8.mo b/locale/fr_FR.UTF-8.mo new file mode 100644 index 0000000000000000000000000000000000000000..2a386323b61fc8b60ca497c01ae26553063cdcc5 GIT binary patch literal 2649 zcmZvcJ8T?97{@0s0wy6~5+FRngh!m$+IJyH<{*jf^VvycCyvk9fKo8G`}uCd-p*!b z_MD@k3_=1b6uP8H5vM~)k!V231wyHifCh<2g#;BKQGvw&yIsd2%4om&?d&|h*L?e9 z|Hh95S{d>r|#n2U*WwAnRX`#XRl@*^k}egWy4s?L7kC4~~Jn{}gxwIhhA}-BuXI`*wkB z-#&C4*F(kk7eOo)BVa!`3Gz8_fULIx^7`||ya(B?i{KXUQo*Yr@B5_SXW%Z3zXbXG zpFuwFR}ij=zd^SDpJKcYLE!zHL7v|RvOPP%9pGM&&p8Tmerh1^UjPq)XF=ZgE{G$= z2Oyt!3B)5VqhouQL7u+>^86PdU)`@jJmO}-??Be`6Ug`J50LHOgkZA&+d;PLIgs^M zKt6v2h29j&OSl0vCJjG4zi^0!SIcdEh(1Z98NDG6X3> zxbc608^?37_m;L{{+% zaa=p;TKMS1anoq%9@`{NIJQjs7RlTIc}$!%nN6rGrt~6BT9c&?ugP2JO_-lHWtuv{ zunEt^w88@J)O86j@0xsHI!(6rl#sKajQ zvSu@%l-|e+7TAss5rTRikviOHiF&H7_L+*s0>#))Vxgrx@1P4Qyvm0NZG&P>9iBE4 zVLeGMa|jy`i@?8bvH?pnF`ic~qbWNaiWQuKU-DX{(=&JIpQ!8}<9`zumW zV}TlV?Wu2;I8ec~Yw9Q%%bG5jGZoo4b9yeQTIxk47+0Pu@=&S#LQpy!l*+O^Tsd_3 zK&f0RVPP;!9nI$!>-we;yzc5n@OF$g6V`!SLET z*1t$Ls3oC^bkeNI;fD5ouLU!PBJG1!l@&Q*DG6I^GgXr%-gYrDJ9?^GTbmeDj#A}Y z6*<&G_J$C~o+Cr~#Tsh)$b@cfeVvpITQk@Zlo0eZ9STjdsGE0PQC?lqPQB_AqcXK7 zH4Y_+J5SkaX|F81UU9En!}YmU-Bxp9BR;6fDJ3V2Mp*31ve%U0a@wqm|{N%B$pLs!&>-8z^SW~5_LL*7G@ z=d;{oiHeXh$*^bFF)?qt*d}@fk7J;>qhT&grU#xVYWKY$1YnZ>-i_ywedAEtuaP$aWNW?si!|2Sw+jAoHG zdHL(RmVY&`e1%^T{|kyzpUJ}_>KWAKl}@o3gL@rHGD1erXUK~iP;igy014~Gsu%3g wnlArZIQks7lSnjDbZ0W=IWft=%5~pM1d;^D5Lr%q8$SaCm45;xZu3a|2efrw!~g&Q literal 0 HcmV?d00001 diff --git a/locale/fr_FR.UTF-8.po b/locale/fr_FR.UTF-8.po new file mode 100644 index 0000000..e09b3f8 --- /dev/null +++ b/locale/fr_FR.UTF-8.po @@ -0,0 +1,268 @@ +msgid "" +msgstr "" +"Project-Id-Version: aebWebSite\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-01 18:24+0100\n" +"PO-Revision-Date: \n" +"Last-Translator: EBERSOLD \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: French\n" +"X-Poedit-Country: FRANCE\n" +"X-Poedit-Basepath: /home/aebersol/syndic/htdocs\n" +"X-Poedit-SearchPath-0: app/config\n" +"X-Poedit-SearchPath-1: app/compta\n" + +#: app/config/trinity.php:27 +msgid "Login" +msgstr "Login" + +#: app/config/trinity.php:28 +#: app/config/andre.php:61 +msgid "user :" +msgstr "utilisateur" + +#: app/config/trinity.php:31 +#: app/config/andre.php:65 +msgid "password : " +msgstr "mot de passe" + +#: app/config/trinity.php:216 +#: app/config/trinity.php:237 +#: app/config/trinity.php:254 +#: app/config/trinity.php:257 +#: app/config/trinity.php:271 +#: app/config/trinity.php:272 +#: app/config/trinity.php:273 +#: app/config/trinity.php:274 +#: app/config/trinity.php:278 +#: app/config/trinity.php:279 +#: app/config/trinity.php:310 +#: app/config/andre.php:360 +#: app/config/andre.php:374 +#: app/config/andre.php:384 +#: app/config/andre.php:435 +msgid "Home" +msgstr "Accueil" + +#: app/config/trinity.php:217 +#: app/config/trinity.php:238 +#: app/config/trinity.php:258 +#: app/config/trinity.php:316 +msgid "Who we are" +msgstr "Qui nous sommes" + +#: app/config/trinity.php:218 +#: app/config/trinity.php:242 +#: app/config/trinity.php:265 +#: app/config/trinity.php:314 +#: app/config/andre.php:361 +#: app/config/andre.php:437 +msgid "Contact us" +msgstr "Contactez-nous" + +#: app/config/trinity.php:219 +#: app/config/trinity.php:267 +#: app/config/trinity.php:321 +#: app/config/andre.php:387 +#: app/config/andre.php:443 +msgid "Links" +msgstr "Liens" + +#: app/config/trinity.php:220 +#: app/config/trinity.php:234 +#: app/config/trinity.php:235 +#: app/config/trinity.php:236 +#: app/config/trinity.php:241 +#: app/config/trinity.php:262 +#: app/config/trinity.php:313 +msgid "LifeGroups" +msgstr "Groupes de vie" + +#: app/config/trinity.php:221 +#: app/config/trinity.php:239 +#: app/config/trinity.php:263 +#: app/config/trinity.php:320 +#: app/config/andre.php:362 +#: app/config/andre.php:442 +msgid "Calendar" +msgstr "Calendrier" + +#: app/config/trinity.php:223 +#: app/config/andre.php:364 +msgid "Send comments or suggestion to :" +msgstr "Commentaires" + +#: app/config/trinity.php:234 +msgid "North" +msgstr "Nord" + +#: app/config/trinity.php:235 +msgid "Center" +msgstr "Centre" + +#: app/config/trinity.php:236 +msgid "South" +msgstr "Sud" + +#: app/config/trinity.php:238 +msgid "Discover who we are" +msgstr "Qui nous sommes" + +#: app/config/trinity.php:256 +msgid "His shares" +msgstr "Ces partages" + +#: app/config/trinity.php:256 +#: app/config/trinity.php:311 +#: app/config/andre.php:436 +msgid "Shares" +msgstr "Partage" + +#: app/config/trinity.php:257 +msgid "Welcome" +msgstr "Bienvenue" + +#: app/config/trinity.php:259 +#: app/config/trinity.php:317 +msgid "What we believe" +msgstr "Ce que nous croyons" + +#: app/config/trinity.php:260 +#: app/config/trinity.php:315 +msgid "Meet our Pastor" +msgstr "Rencontrer le Pasteur" + +#: app/config/trinity.php:261 +#: app/config/trinity.php:318 +msgid "What to expect" +msgstr "A quoi s'attendre" + +#: app/config/trinity.php:264 +#: app/config/trinity.php:319 +msgid "Podcast" +msgstr "Audio" + +#: app/config/trinity.php:266 +msgid "Maps & Directions" +msgstr "Carte et Direction" + +#: app/config/trinity.php:266 +#: app/config/trinity.php:322 +msgid "Maps" +msgstr "Carte" + +#: app/config/trinity.php:270 +msgid "Your" +msgstr "Votre" + +#: app/config/trinity.php:270 +msgid "Spiritual" +msgstr "Spirituel" + +#: app/config/trinity.php:270 +msgid "Journey" +msgstr "Voyage" + +#: app/config/trinity.php:271 +msgid "Who is Jesus ?" +msgstr "Qui est Jésus" + +#: app/config/trinity.php:272 +msgid "Is God the Center ?" +msgstr "Est-ce que Dieu est le centre?" + +#: app/config/trinity.php:273 +msgid "Daily devotionals" +msgstr "Etude journalière" + +#: app/config/trinity.php:274 +msgid "You're not alone" +msgstr "Vous n'êtes pas seul" + +#: app/config/trinity.php:277 +#: app/config/trinity.php:312 +msgid "Most important" +msgstr "Le plus important" + +#: app/config/trinity.php:278 +msgid "About God" +msgstr "A propos de Dieu" + +#: app/config/trinity.php:279 +msgid "Christian Faith" +msgstr "La Foi chrétienne" + +#: app/config/trinity.php:280 +#: app/config/trinity.php:323 +msgid "Baptism" +msgstr "Baptème" + +#: app/config/trinity.php:281 +msgid "Questions" +msgstr "Questions" + +#: app/config/trinity.php:284 +msgid "Logout" +msgstr "Quitter" + +#: app/config/trinity.php:286 +msgid "Member" +msgstr "Membre" + +#: app/config/trinity.php:309 +#: app/config/andre.php:434 +msgid "Profile" +msgstr "Profile" + +#: app/config/trinity.php:324 +msgid "Location" +msgstr "Lieu" + +#: app/config/trinity.php:325 +#: app/config/andre.php:446 +msgid "Federation" +msgstr "Fédération" + +#: app/config/andre.php:375 +#: app/config/andre.php:439 +msgid "Activity" +msgstr "Activités" + +#: app/config/andre.php:376 +msgid "Cv" +msgstr "Cv" + +#: app/config/andre.php:376 +#: app/config/andre.php:440 +msgid "CV" +msgstr "CV" + +#: app/config/andre.php:377 +#: app/config/andre.php:441 +msgid "Hobbies" +msgstr "Loisirs" + +#: app/config/andre.php:378 +#: app/config/andre.php:388 +#: app/config/andre.php:438 +msgid "Contact" +msgstr "Contact" + +#: app/config/andre.php:385 +#: app/config/andre.php:445 +msgid "Products" +msgstr "Produits" + +#: app/config/andre.php:386 +#: app/config/andre.php:444 +msgid "Services" +msgstr "Services" + +#: app/compta/identity.php:48 +#: app/compta/booking.php:14 +msgid "Only syndic can add a user in organisation" +msgstr "Seul le syndic peut ajouter un utilisateur." + diff --git a/locale/fr_FR/LC_MESSAGES/andre.mo b/locale/fr_FR/LC_MESSAGES/andre.mo new file mode 100644 index 0000000000000000000000000000000000000000..2a386323b61fc8b60ca497c01ae26553063cdcc5 GIT binary patch literal 2649 zcmZvcJ8T?97{@0s0wy6~5+FRngh!m$+IJyH<{*jf^VvycCyvk9fKo8G`}uCd-p*!b z_MD@k3_=1b6uP8H5vM~)k!V231wyHifCh<2g#;BKQGvw&yIsd2%4om&?d&|h*L?e9 z|Hh95S{d>r|#n2U*WwAnRX`#XRl@*^k}egWy4s?L7kC4~~Jn{}gxwIhhA}-BuXI`*wkB z-#&C4*F(kk7eOo)BVa!`3Gz8_fULIx^7`||ya(B?i{KXUQo*Yr@B5_SXW%Z3zXbXG zpFuwFR}ij=zd^SDpJKcYLE!zHL7v|RvOPP%9pGM&&p8Tmerh1^UjPq)XF=ZgE{G$= z2Oyt!3B)5VqhouQL7u+>^86PdU)`@jJmO}-??Be`6Ug`J50LHOgkZA&+d;PLIgs^M zKt6v2h29j&OSl0vCJjG4zi^0!SIcdEh(1Z98NDG6X3> zxbc608^?37_m;L{{+% zaa=p;TKMS1anoq%9@`{NIJQjs7RlTIc}$!%nN6rGrt~6BT9c&?ugP2JO_-lHWtuv{ zunEt^w88@J)O86j@0xsHI!(6rl#sKajQ zvSu@%l-|e+7TAss5rTRikviOHiF&H7_L+*s0>#))Vxgrx@1P4Qyvm0NZG&P>9iBE4 zVLeGMa|jy`i@?8bvH?pnF`ic~qbWNaiWQuKU-DX{(=&JIpQ!8}<9`zumW zV}TlV?Wu2;I8ec~Yw9Q%%bG5jGZoo4b9yeQTIxk47+0Pu@=&S#LQpy!l*+O^Tsd_3 zK&f0RVPP;!9nI$!>-we;yzc5n@OF$g6V`!SLET z*1t$Ls3oC^bkeNI;fD5ouLU!PBJG1!l@&Q*DG6I^GgXr%-gYrDJ9?^GTbmeDj#A}Y z6*<&G_J$C~o+Cr~#Tsh)$b@cfeVvpITQk@Zlo0eZ9STjdsGE0PQC?lqPQB_AqcXK7 zH4Y_+J5SkaX|F81UU9En!}YmU-Bxp9BR;6fDJ3V2Mp*31ve%U0a@wqm|{N%B$pLs!&>-8z^SW~5_LL*7G@ z=d;{oiHeXh$*^bFF)?qt*d}@fk7J;>qhT&grU#xVYWKY$1YnZ>-i_ywedAEtuaP$aWNW?si!|2Sw+jAoHG zdHL(RmVY&`e1%^T{|kyzpUJ}_>KWAKl}@o3gL@rHGD1erXUK~iP;igy014~Gsu%3g wnlArZIQks7lSnjDbZ0W=IWft=%5~pM1d;^D5Lr%q8$SaCm45;xZu3a|2efrw!~g&Q literal 0 HcmV?d00001 diff --git a/loisirs.en_US.UTF-8.xml b/loisirs.en_US.UTF-8.xml new file mode 100644 index 0000000..a24318f --- /dev/null +++ b/loisirs.en_US.UTF-8.xml @@ -0,0 +1,28 @@ + + + + Hobbies + Les loisirs que nous pouvons partager + Danse, danse, Salsa, salsa, tango, Tango, video, cours, musique, Musique, Andre, EBERSOLD + $Date: 2010/08/25 15:10:02 $ + $Id: loisirs.en_US.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ + + +

    Hobbies

    +

    My family

    +

    Dance

    +

    Dancing Salsa, swing and rock were my favorit hobbies. I danced about 2 or 3 times a week. Now, since I'm married new priorities had to be setup. I stopped going out almost every night to dedicate my time to my wife and my daugther.

    +

    Music

    +

    During my free time I play piano.

    +
    +
    Music
    +
    +

    I'm a fan of music. My favorite style is salsa. Even so, the music I played most often is christian music in the church.

    +
    +
    + +
    +
    + diff --git a/loisirs.fr_FR.UTF-8.xml b/loisirs.fr_FR.UTF-8.xml new file mode 100644 index 0000000..c4b57bb --- /dev/null +++ b/loisirs.fr_FR.UTF-8.xml @@ -0,0 +1,96 @@ + + + + Loisirs + Hobbies + Hobbies + Les loisirs que nous pouvons partager + Danse, Salsa, Tango, video, cours, musique + + $Date: 2010/08/25 10:05:24 $ + $Id: loisirs.fr_FR.UTF-8.xml,v 1.2 2010/08/25 10:05:24 aebersol Exp $ + + +

    Loisirs

    +

    Danse

    +

    Lorsque j'ai commencé à travailler dans la vie professionnelle, mon principal loisir était de continuer à faire ce que je faisais en entreprise. Mais avec le temps, les amis se faisaient de plus en plus rares. Aussi, j'ai commencé par prospecter de nouveaux horizons.

    +

    J'ai commencé par prendre des cours de danse. J'en avais rêvé déjà très jeune. Maintenant, l'occasion était là. Plus de devoir, plus de stress après le boulot.

    +

    La valse, le cha-cha-cha, la rumba, le rock furent les premières danses que j'ai apprisent. Il s'agit de danses traditionnelles qu'on retrouve souvent dans les bals ou les mariages.

    +

    Au bout de trois ans, l'école de danse où j'étais a fermée. Un peu déçu sur le coup, je me suis lancé dans d'autres types de danse. La salsa portoricaine, et le lindy maintenant.

    +

    Musique

    +

    Le piano est l'instrument que j'ai commencé à l'âge de 14 ans. Aujourd'hui je n'en fais plus tellement. Il faut dire qu'on ne peut pas tout faire à la fois. J'ai principalement exercé mon talent de pianiste dans les églises. Actuellement, j'essaye de progresser en travaillant le blues.

    +
    Address'); + wnd.document.close(); + } + }, + + // Copies the original source code in to the clipboard. Uses either IE only method or Flash object if ClipboardSwf is set + CopyToClipboard: { + label: 'copy to clipboard', + check: function() { return window.clipboardData != null || dp.sh.ClipboardSwf != null; }, + func: function(sender, highlighter) + { + var code = dp.sh.Utils.FixForBlogger(highlighter.originalCode) + .replace(/</g,'<') + .replace(/>/g,'>') + .replace(/&/g,'&') + ; + + if(window.clipboardData) + { + window.clipboardData.setData('text', code); + } + else if(dp.sh.ClipboardSwf != null) + { + var flashcopier = highlighter.flashCopier; + + if(flashcopier === null) + { + flashcopier = document.createElement('div'); + highlighter.flashCopier = flashcopier; + highlighter.div.appendChild(flashcopier); + } + + flashcopier.innerHTML = ''; + } + + alert('The code is in your clipboard now'); + } + }, + + // creates an invisible iframe, puts the original source code inside and prints it + PrintSource: { + label: 'print', + func: function(sender, highlighter) + { + var iframe = document.createElement('IFRAME'); + var doc = null; + + // this hides the iframe + iframe.style.cssText = 'position:absolute;width:0px;height:0px;left:-500px;top:-500px;'; + + document.body.appendChild(iframe); + doc = iframe.contentWindow.document; + + dp.sh.Utils.CopyStyles(doc, window.document); + doc.write('
    ' + highlighter.div.innerHTML + '
    '); + doc.close(); + + iframe.contentWindow.focus(); + iframe.contentWindow.print(); + + alert('Printing...'); + + document.body.removeChild(iframe); + } + }, + + About: { + label: '?', + func: function(highlighter) + { + var wnd = window.open('', '_blank', 'dialog,width=300,height=150,scrollbars=0'); + var doc = wnd.document; + + dp.sh.Utils.CopyStyles(doc, window.document); + + doc.write(dp.sh.Strings.AboutDialog.replace('{V}', dp.sh.Version)); + doc.close(); + wnd.focus(); + } + } +}; + +// creates a
    with all toolbar links +dp.sh.Toolbar.Create = function(highlighter) +{ + var div = document.createElement('DIV'); + + div.className = 'tools'; + + for(var name in dp.sh.Toolbar.Commands) + { + var cmd = dp.sh.Toolbar.Commands[name]; + + if(cmd.check != null && !cmd.check(highlighter)) + continue; + + div.innerHTML += '' + cmd.label + ''; + } + + return div; +} + +// executes toolbar command by name +dp.sh.Toolbar.Command = function(name, sender) +{ + var n = sender; + + while(n != null && n.className.indexOf('dp-highlighter') == -1) + n = n.parentNode; + + if(n != null) + dp.sh.Toolbar.Commands[name].func(sender, n.highlighter); +} + +// copies all from 'target' window to 'dest' +dp.sh.Utils.CopyStyles = function(destDoc, sourceDoc) +{ + var links = sourceDoc.getElementsByTagName('link'); + + for(var i = 0; i < links.length; i++) + if(links[i].rel.toLowerCase() == 'stylesheet') + destDoc.write(''); +} + +dp.sh.Utils.FixForBlogger = function(str) +{ + return (dp.sh.isBloggerMode == true) ? str.replace(/|<br\s*\/?>/gi, '\n') : str; +} + +// +// Common reusable regular expressions +// +dp.sh.RegexLib = { + MultiLineCComments : new RegExp('/\\*[\\s\\S]*?\\*/', 'gm'), + SingleLineCComments : new RegExp('//.*$', 'gm'), + SingleLinePerlComments : new RegExp('#.*$', 'gm'), + DoubleQuotedString : new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"','g'), + SingleQuotedString : new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'", 'g') +}; + +// +// Match object +// +dp.sh.Match = function(value, index, css) +{ + this.value = value; + this.index = index; + this.length = value.length; + this.css = css; +} + +// +// Highlighter object +// +dp.sh.Highlighter = function() +{ + this.noGutter = false; + this.addControls = true; + this.collapse = false; + this.tabsToSpaces = true; + this.wrapColumn = 80; + this.showColumns = true; +} + +// static callback for the match sorting +dp.sh.Highlighter.SortCallback = function(m1, m2) +{ + // sort matches by index first + if(m1.index < m2.index) + return -1; + else if(m1.index > m2.index) + return 1; + else + { + // if index is the same, sort by length + if(m1.length < m2.length) + return -1; + else if(m1.length > m2.length) + return 1; + } + return 0; +} + +dp.sh.Highlighter.prototype.CreateElement = function(name) +{ + var result = document.createElement(name); + result.highlighter = this; + return result; +} + +// gets a list of all matches for a given regular expression +dp.sh.Highlighter.prototype.GetMatches = function(regex, css) +{ + var index = 0; + var match = null; + + while((match = regex.exec(this.code)) != null) + this.matches[this.matches.length] = new dp.sh.Match(match[0], match.index, css); +} + +dp.sh.Highlighter.prototype.AddBit = function(str, css) +{ + if(str === null || str.length === 0) + return; + + var span = this.CreateElement('SPAN'); + +// str = str.replace(/&/g, '&'); + str = str.replace(/ /g, ' '); + str = str.replace(//g, '>'); + str = str.replace(/\n/gm, ' 
    '); + + // when adding a piece of code, check to see if it has line breaks in it + // and if it does, wrap individual line breaks with span tags + if(css != null) + { + if((/br/gi).test(str)) + { + var lines = str.split(' 
    '); + + for(var i = 0; i < lines.length; i++) + { + span = this.CreateElement('SPAN'); + span.className = css; + span.innerHTML = lines[i]; + + this.div.appendChild(span); + + // don't add a
    for the last line + if(i + 1 < lines.length) + this.div.appendChild(this.CreateElement('BR')); + } + } + else + { + span.className = css; + span.innerHTML = str; + this.div.appendChild(span); + } + } + else + { + span.innerHTML = str; + this.div.appendChild(span); + } +} + +// checks if one match is inside any other match +dp.sh.Highlighter.prototype.IsInside = function(match) +{ + if(match === null || match.length === 0) + return false; + + for(var i = 0; i < this.matches.length; i++) + { + var c = this.matches[i]; + + if(c === null) + continue; + + if((match.index > c.index) && (match.index < c.index + c.length)) + return true; + } + + return false; +} + +dp.sh.Highlighter.prototype.ProcessRegexList = function() +{ + for(var i = 0; i < this.regexList.length; i++) + this.GetMatches(this.regexList[i].regex, this.regexList[i].css); +} + +dp.sh.Highlighter.prototype.ProcessSmartTabs = function(code) +{ + var lines = code.split('\n'); + var result = ''; + var tabSize = 4; + var tab = '\t'; + + // This function inserts specified amount of spaces in the string + // where a tab is while removing that given tab. + function InsertSpaces(line, pos, count) + { + var left = line.substr(0, pos); + var right = line.substr(pos + 1, line.length); // pos + 1 will get rid of the tab + var spaces = ''; + + for(var i = 0; i < count; i++) + spaces += ' '; + + return left + spaces + right; + } + + // This function process one line for 'smart tabs' + function ProcessLine(line, tabSize) + { + if(line.indexOf(tab) == -1) + return line; + + var pos = 0; + + while((pos = line.indexOf(tab)) != -1) + { + // This is pretty much all there is to the 'smart tabs' logic. + // Based on the position within the line and size of a tab, + // calculate the amount of spaces we need to insert. + var spaces = tabSize - pos % tabSize; + + line = InsertSpaces(line, pos, spaces); + } + + return line; + } + + // Go through all the lines and do the 'smart tabs' magic. + for(var i = 0; i < lines.length; i++) + result += ProcessLine(lines[i], tabSize) + '\n'; + + return result; +} + +dp.sh.Highlighter.prototype.SwitchToList = function() +{ + // thanks to Lachlan Donald from SitePoint.com for this
    tag fix. + var html = this.div.innerHTML.replace(/<(br)\/?>/gi, '\n'); + var lines = html.split('\n'); + + if(this.addControls == true) + this.bar.appendChild(dp.sh.Toolbar.Create(this)); + + // add columns ruler + if(this.showColumns) + { + var div = this.CreateElement('div'); + var columns = this.CreateElement('div'); + var showEvery = 10; + var i = 1; + + while(i <= 150) + { + if(i % showEvery === 0) + { + div.innerHTML += i; + i += (i + '').length; + } + else + { + div.innerHTML += '·'; + i++; + } + } + + columns.className = 'cumns'; + columns.appendChild(div); + this.bar.appendChild(columns); + } + + for(var i = 0; i < lines.length - 1; i++) + { + var li = this.CreateElement('LI'); + var span = this.CreateElement('SPAN'); + + // uses .line1 and .line2 css styles for alternating lines + li.className = (i % 2 === 0) ? 'alt' : ''; + span.innerHTML = lines[i] + ' '; + + li.appendChild(span); + this.ol.appendChild(li); + } + + this.div.innerHTML = ''; +} + +dp.sh.Highlighter.prototype.Highlight = function(code) +{ + function Trim(str) + { + return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1'); + } + + function Chop(str) + { + return str.replace(/\n*$/, '').replace(/^\n*/, ''); + } + + function Unindent(str) + { + var lines = dp.sh.Utils.FixForBlogger(str).split('\n'); + var indents = new Array(); + var regex = new RegExp('^\\s*', 'g'); + var min = 1000; + + // go through every line and check for common number of indents + for(var i = 0; i < lines.length && min > 0; i++) + { + if(Trim(lines[i]).length === 0) + continue; + + var matches = regex.exec(lines[i]); + + if(matches != null && matches.length > 0) + min = Math.min(matches[0].length, min); + } + + // trim minimum common number of white space from the begining of every line + if(min > 0) + for(var i = 0; i < lines.length; i++) + lines[i] = lines[i].substr(min); + + return lines.join('\n'); + } + + // This function returns a portions of the string from pos1 to pos2 inclusive + function Copy(string, pos1, pos2) + { + return string.substr(pos1, pos2 - pos1); + } + + var pos = 0; + + if(code === null) + code = ''; + + this.originalCode = code; + this.code = Chop(Unindent(code)); + this.div = this.CreateElement('DIV'); + this.bar = this.CreateElement('DIV'); + this.ol = this.CreateElement('OL'); + this.matches = new Array(); + + this.div.className = 'dp-highlighter'; + this.div.highlighter = this; + + this.bar.className = 'bar'; + + // set the first line + if (this.firstLine != null) + this.ol.start = this.firstLine; + + if(this.CssClass != null) + this.ol.className = this.CssClass; + + if(this.collapse) + this.div.className += ' collapsed'; + + if(this.noGutter) + this.div.className += ' nogutter'; + + // replace tabs with spaces + if(this.tabsToSpaces == true) + this.code = this.ProcessSmartTabs(this.code); + + this.ProcessRegexList(); + + // if no matches found, add entire code as plain text + if(this.matches.length === 0) + { + this.AddBit(this.code, null); + this.SwitchToList(); + this.div.appendChild(this.bar); + this.div.appendChild(this.ol); + return; + } + + // sort the matches + this.matches = this.matches.sort(dp.sh.Highlighter.SortCallback); + + // The following loop checks to see if any of the matches are inside + // of other matches. This process would get rid of highligted strings + // inside comments, keywords inside strings and so on. + for(var i = 0; i < this.matches.length; i++) + if(this.IsInside(this.matches[i])) + this.matches[i] = null; + + // Finally, go through the final list of matches and pull the all + // together adding everything in between that isn't a match. + for(var i = 0; i < this.matches.length; i++) + { + var match = this.matches[i]; + + if(match === null || match.length === 0) + continue; + + this.AddBit(Copy(this.code, pos, match.index), null); + this.AddBit(match.value, match.css); + + pos = match.index + match.length; + } + + this.AddBit(this.code.substr(pos), null); + + this.SwitchToList(); + this.div.appendChild(this.bar); + this.div.appendChild(this.ol); +} + +dp.sh.Highlighter.prototype.GetKeywords = function(str) +{ + return '\\b' + str.replace(/ /g, '\\b|\\b') + '\\b'; +} + +dp.sh.BloggerMode = function() +{ + dp.sh.isBloggerMode = true; +} + +// highlightes all elements identified by name and gets source code from specified property +dp.sh.HighlightAll = function(name, showGutter /* optional */, showControls /* optional */, collapseAll /* optional */, firstLine /* optional */, showColumns /* optional */) +{ + function FindValue() + { + var a = arguments; + + for(var i = 0; i < a.length; i++) + { + if(a[i] === null) + continue; + + if(typeof(a[i]) == 'string' && a[i] != '') + return a[i] + ''; + + if(typeof(a[i]) == 'object' && a[i].value != '') + return a[i].value + ''; + } + + return null; + } + + function IsOptionSet(value, list) + { + for(var i = 0; i < list.length; i++) + if(list[i] == value) + return true; + + return false; + } + + function GetOptionValue(name, list, defaultValue) + { + var regex = new RegExp('^' + name + '\\[(\\w+)\\]$', 'gi'); + var matches = null; + + for(var i = 0; i < list.length; i++) + if((matches = regex.exec(list[i])) != null) + return matches[1]; + + return defaultValue; + } + + function FindTagsByName(list, name, tagName) + { + var tags = document.getElementsByTagName(tagName); + + for(var i = 0; i < tags.length; i++) + if(tags[i].getAttribute('name') == name) + list.push(tags[i]); + } + + var elements = []; + var highlighter = null; + var registered = {}; + var propertyName = 'innerHTML'; + + // for some reason IE doesn't find
     by name, however it does see them just fine by tag name... 
    +	FindTagsByName(elements, name, 'pre');
    +	FindTagsByName(elements, name, 'textarea');
    +
    +	if(elements.length === 0)
    +		return;
    +
    +	// register all brushes
    +	for(var brush in dp.sh.Brushes)
    +	{
    +		var aliases = dp.sh.Brushes[brush].Aliases;
    +
    +		if(aliases === null)
    +			continue;
    +		
    +		for(var i = 0; i < aliases.length; i++)
    +			registered[aliases[i]] = brush;
    +	}
    +
    +	for(var i = 0; i < elements.length; i++)
    +	{
    +		var element = elements[i];
    +		var options = FindValue(
    +				element.attributes['class'], element.className, 
    +				element.attributes['language'], element.language
    +				);
    +		var language = '';
    +
    +		if(options === null)
    +			continue;
    +		
    +		options = options.split(':');
    +		
    +		language = options[0].toLowerCase();
    +
    +		if(registered[language] === null)
    +			continue;
    +		
    +		// instantiate a brush
    +		highlighter = new dp.sh.Brushes[registered[language]]();
    +		
    +		// hide the original element
    +		element.style.display = 'none';
    +
    +        if (typeof(showGutter) === 'undefined') {
    +            highlighter.noGutter = IsOptionSet('nogutter', options);
    +        } else {
    +            highlighter.noGutter = !showGutter;
    +        }
    +
    +        if (typeof(showControls) === 'undefined') {
    +            highlighter.addControls = !IsOptionSet('nocontrols', options);
    +        } else {
    +            highlighter.addControls = showControls;
    +        }
    +
    +        if (typeof(collapseAll) === 'undefined') {
    +            highlighter.collapse = IsOptionSet('collapse', options);
    +        } else {
    +            highlighter.collapse = collapseAll;
    +        }
    +
    +        if (typeof(showColumns) === 'undefined') {
    +            highlighter.showColumns = IsOptionSet('showcolumns', options);
    +        } else {
    +            highlighter.showColumns = showColumns;
    +        }
    +
    +		// write out custom brush style
    +		var headNode = document.getElementsByTagName('head')[0];
    +		if(highlighter.Style && headNode)
    +		{
    +			var styleNode = document.createElement('style');
    +			styleNode.setAttribute('type', 'text/css');
    +
    +			if(styleNode.styleSheet) // for IE
    +			{
    +				styleNode.styleSheet.cssText = highlighter.Style;
    +			}
    +			else // for everyone else
    +			{
    +				var textNode = document.createTextNode(highlighter.Style);
    +				styleNode.appendChild(textNode);
    +			}
    +
    +			headNode.appendChild(styleNode);
    +		}
    +		
    +		// first line idea comes from Andrew Collington, thanks!
    +		highlighter.firstLine = (firstLine === null) ? parseInt(GetOptionValue('firstline', options, 1)) : firstLine;
    +
    +		highlighter.Highlight(element[propertyName]);
    +		
    +		highlighter.source = element;
    +
    +		element.parentNode.insertBefore(highlighter.div, element);
    +	}	
    +}
    diff --git a/js/tinymce/changelog.txt b/js/tinymce/changelog.txt
    new file mode 100644
    index 0000000..29d0810
    --- /dev/null
    +++ b/js/tinymce/changelog.txt
    @@ -0,0 +1,640 @@
    +Version 3.1.0.1 (2008-06-18)
    +	Fixed bug where the Opera line break fix didn't work correctly on Mac OS X and Unix.
    +	Fixed bug where IE was producing the default value the maxlength attribute of input elements.
    +Version 3.1.0 (2008-06-17)
    +	Fixed bug where the paste as text didn't work correctly it encoded produced paragraphs and br elements.
    +	Fixed bug where embed element in XHTML style didn't work correctly in the media plugin.
    +	Fixed bug where style elements was forced empty in IE. The will now be wrapped in a comment just like script elements.
    +	Fixed bug where some script elements wrapped in CDATA could fail to be serialized correctly.
    +	Fixed bug where FF 3 produced -moz- internal styles in some style attributes.
    +	Fixed bug where query strings and external URLs didn't work correctly in style attributes.
    +	Fixed bug where shape attribute of area elements got serialized as rect regardless of it's initial value in IE 6.
    +	Fixed bug where selection of elements inside layers would fail in IE since focus was moved to the document body.
    +	Fixed bug where pressing enter/return in an editable select box would produce an __mce_add_custom__ class value.
    +	Fixed bug where changing font size of text placed inside a colored text chunk would remove the parent node.
    +	Fixed bug where Opera 9.5 final produced a strange line break behavior due to a workaround for previous Opera versions.
    +	Fixed bug where text/background color would produce a strange focus problem when you tried to click on the body in IE.
    +	Fixed issue where selecting the title of an listbox equals the old 2.x behavior of changing the value to an empty string.
    +	Fixed issue where it was common for the media plugin to break if the _value attribute wasn't added for the param element.
    +	Fixed issue where the wrong parent editor instance might be updated if you use fullscreen mode in an incorrect way.
    +	Fixed issue where Safari was producing a warning about the base element not being closed correctly.
    +	Removed redundant form element name matching from regexp in the DOMUtils class.
    +Version 3.0.9 (2008-06-02)
    +	Added new contextmenu_offset_x/contextmenu_offset_y options for the contextmenu plugin.
    +	Added cite attribute to the default rule for the blockquote element.
    +	Added support for using arrow keys for selection of items in listboxes.
    +	Added support for using arrow keys for selection of items in dropmenus.
    +	Fixed bug where blockformat change on elements with BR inside them didn't change correctly on Firefox.
    +	Fixed bug where removing table rows inside thead or tfoot would remove the whole table if it was the last one.
    +	Fixed bug where XHR synchronous mode didn't execute the callback handlers synchronously.
    +	Fixed bug where setting border to 0 didn't add border: 0 to the style attribute when using the advimage dialog.
    +	Fixed bug where the selection of images and table cells didn't work correctly when the editor is placed in a frame and running on IE.
    +	Fixed bug where the store/restore of a selection didn't work correctly in non IE browsers.
    +	Fixed bug where only the first element would be invalid for the invalid_elements option.
    +	Fixed bug where paste as plain text didn't encode the characters correctly when they where inserted.
    +	Fixed bug where HTML source window couldn't be maximized on Gecko when the maximizable feature was enabled.
    +	Fixed bug where color selection using the color picker could produce exception in IE.
    +	Fixed bug where font size changes could produce produce extra redundant elements.
    +	Fixed bug where IE could produce unknown runtime error if you replaced a image with another image from a separate frame.
    +	Fixed bug where the domLoaded state for the Event class wasn't set correctly if the editor was loaded dynamically using the gzip compressor.
    +	Fixed bug where handling of the base element for a page would produce incorrect urls. Based on a patch contributed by John LeSueur.
    +	Fixed bug where table constraint alert boxes was presented with an empty value and wasn't the skinned inline ones.
    +	Fixed bug where the onChange event wasn't fired when the form was submitted. It's now also triggered when the save method is called.
    +	Fixed bug where encoding set to xml didn't work as expected. It now encodes the contents into XML entities.
    +	Fixed bug where numrows didn't work correctly for the merge cells dialog of the table plugin.
    +	Fixed bug where the onGetContent event was fired even when the no_events flag was set.
    +	Fixed bug where the preview panels for the advimage and the media plugin could overflow on Safari and FF 3.
    +	Fixed bug where the editing and removal of abbr elements using the xhtmlxtras plugin working correctly on IE.
    +	Fixed bug where save button in the save plugin didn't work correctly on IE.
    +	Fixed bug where dragging layers didn't work as expected since it would snap back to it's original location if you saved.
    +	Fixed bug where the description of the template plugin dialog wasn't updated correctly.
    +	Fixed bug where the values for frame and rules in the table dialogs where swapped.
    +	Fixed bug where the elements like ins, del, cite, acronym and abbr didn't have the default editing style as the old 2.x branch.
    +	Fixed bug where ask mode would lock the focused textarea if you pressed cancel in the confirm dialog on FF 3.
    +	Fixed bug where ask mode would produce contents for empty textareas if you reloaded the page.
    +	Fixed so the onGetContent event gets the full pass through object just like the other events.
    +	Fixed so attributes for block elements remains the same when you change format of a element.
    +Version 3.0.8 (2008-04-30)
    +	Fixed bug where IE would produce an error if textareas without names where converted.
    +	Fixed bug where editor wasn't forced empty when there was only a single br or empty paragraph left.
    +	Fixed bug where IE would produce an warning message if object elements where produced in the media plugins preview running on https.
    +	Fixed bug where new addVer function didn't handle hash items correctly. Patch contributed by Mirek Burkon.
    +	Fixed bug where font_size_style_values option wasn't applied correctly to fonts inside the editor.
    +	Fixed bug where image selection could be lost if a image was edited using context menu on IE.
    +	Fixed bug where style values wasn't updated properly due to an invalid regexp.
    +	Fixed bug where IE 6 where displaying warning message about insecure items when inserting an image while using https. Patch contributed by Norifumi Sunaoka.
    +	Fixed bug where IE was producing an auto save message if you selected a color from the color split button.
    +	Fixed bug where backspace sometimes would move the caret to the end of the previous block in Gecko.
    +	Fixed bug where the rowlayout manager didn't work as described in the documentation.
    +	Fixed bug where the default options for the fullpage plugin wasn't applied correctly.
    +	Fixed bug where selection would jump one character if you applied a styles to a words in non IE browsers.
    +	Fixed bug where undo levels wasn't added correctly if you went back in undo history and added a new event.
    +	Fixed bug where font size dropdown didn't mark the selected size in IE.
    +	Fixed bug where the size of the editor was determined using clientWidth instead of offsetWidth.
    +	Fixed so the onchange event doesn't fire on the initial undo level, it will also fire when the editor is blurred.
    +	Fixed so the advhr plugin produces XHTML valid output instead of non standard attributes.
    +	Fixed so blockquote gets converted into [quote] in when the bbcode plugin is enabled.
    +	Fixed so theme_advanced_font_sizes can be named for example Font 1=1, Font 2=2 etc.
    +	Fixed so editor_selector/editor_deselector can be regexps. By default only strings are allowed not part regexps like before.
    +	Fixed so that the version suffix is optional. It still requires the build process so you need to export it manually.
    +	Fixed so it's possible to tab to table cells in non Gecko browsers and also produce new rows if you tab at the end of a table. Contributed by Josh Peek.
    +Version 3.0.7 (2008-04-14)
    +	Added new version suffix to all internal GET requests to make sure that the users cache gets cleared correctly.
    +	Fixed issue with isDirty returning true event if it wasn't dirty on IE due to changes in tables during initialization.
    +	Fixed memory leak in IE where if a page was unloaded before all images on the page was loaded it would leak.
    +	Fixed bug in IE where underline and strikethrough could produce an exception error message.
    +	Fixed bug where inserting paragraphs in totally empty table cells would produce odd effects.
    +	Fixed bug where layer style data wasn't updated correctly due to some performance enhancements with the DOM serializer.
    +	Fixed bug where it would convert the wrong element if there was two elements with the same name and id on the page.
    +	Fixed bug where it was possible to add style information to the body element using the style plugin.
    +	Fixed bug where Gecko would add an extra undo level some times due to the blur event.
    +	Fixed bug where the underline icon would get active if the caret was inside a link element.
    +	Fixed bug where merging th cells not working correctly. Patch contributed by André R.
    +	Fixed bug where forecolorpicker and backcolorpicker buttons where rendered incorrectly when the o2k7 skin was used.
    +	Fixed bug where comment couldn't contain -- since it's invalid markup. It will now at least not break on those invalid comments.
    +	Fixed bug where apos wasn't handled correctly in IE. It will now convert apos to ' on IE since that browser doesn't support that entity.
    +	Fixed bug where entities wasn't encoded correctly inside pre elements since they where protected from whitespace removal.
    +	Fixed bug where color split buttons where rendered incorrectly on IE6 when using the non default theme.
    +	Fixed so caret is placed after links ones they are created, to improve usability of the editor.
    +	Fixed so you can select tables by clicking on it's borders in non IE browsers to normalize the behavior.
    +	Fixed so the menus can be toggled by clicking once more on the icon in listboxes, menubuttons and splitbuttons based on code contributed by Josh Peek.
    +	Fixed so buttons can be labeled, currently only works with the default skin, so it's kind of experimental. Patch contributed by Daniel Insley.
    +	Fixed so forecolorpicker and backcolorpicker remembers the last selected color. Patch contributed by Shane Tomlinson.
    +	Fixed so that you can only execute the mceAddEditor command once for the same instance name.
    +	Fixed so command functions added with addCommand can pass though the call to default handles if it returns true.
    +Version 3.0.6.2 (2008-04-07)
    +	Fixed bug where empty tables couldn't be edited correctly on non IE browsers if they where loaded into the editor.
    +	Fixed bug where it was impossible to resize layers correctly in IE since it thought it was an image.
    +	Fixed bug where an editor instance was stealing focus in IE resulting in a scroll to the editor on page reloads.
    +	Fixed bug where Safari was crashing on Mac OS X if you closed dialogs using the Esc key.
    +Version 3.0.6.1 (2008-04-04)
    +	Added support for the missing mceAddFrameControl command. The input for this command has changed so consult the Wiki.
    +	Fixed bug where sub menus for the drop menus would leave an empty element behind.
    +	Fixed memory leak in IE if the editor was placed in a frame or iframe.
    +Version 3.0.6 (2008-04-03)
    +	Added elements to the default value of valid_elements option. It now contains all XHTML strict elements and a few transitional.
    +	Added more accessibility fixes, it's now possible to navigate and close list boxes and split button menus with the keyboard.
    +	Added missing getInfo method to the contextmenu and safari plugin, this caused problems for the Drupal module.
    +	Added new inlinepopups_zindex option to the inlinepopups plugin so that you can configure the default start z-index.
    +	Added new setControlType method to the tinymce.ControlManager class. This method enables you to override the default classes.
    +	Added ability to specific an optional control class to use instead of the default one for the ControlManager methods. Based on concept by Josh Peek.
    +	Fixed bug where attribute rules for the DOM Serializer couldn't contain - or _ characters in their names.
    +	Fixed bug where inlinepopups event blocker and modal dialog blocker elements produced vertical scrollbars.
    +	Fixed bug where there was a rendering issue with quirks mode in Safari moving the resize handle to an incorrect position.
    +	Fixed bug with forecolor/backcolor controls on IE. Sometimes elements positioned relative will generate display errors.
    +	Fixed bug where a p2 was leaking out in the global name space when you selected a color from the forecolor/backcolor controls.
    +	Fixed bug where empty paragraphs didn't work as expected in browsers other than IE.
    +	Fixed bug where the load method of the tinymce.dom.ScriptLoader didn't check if the file was already loaded.
    +	Fixed bug where the load method for the PluginManager and ThemeManager didn't check if a plugin/theme by a specific name was all ready loaded.
    +	Fixed bug where the theme_advanced_link_targets option didn't work correctly with the advanced themes link dialog. Patch contributed by Arnold B.
    +	Fixed bug where the style command would merge classes into empty span elements.
    +	Fixed bug where the style command would remove empty span elements outside the current selection.
    +	Fixed bug where the fix for the Safari backspace bug removed all editor contents if it was filled with empty paragraphs.
    +	Fixed bug where alert and confirm boxes opened by the inlinepopups plugin would produce an exception if domain relaxing was used.
    +	Fixed bug where Safari was adding style attributes to all elements when you paste them into the editor.
    +	Fixed bug where the spellchecker menus was visually incorrect since the space for the non existing icon was still there.
    +	Fixed bug where remove_linebreaks option didn't remove line breaks inside the text contents of a element.
    +	Fixed bug where Safari 3.1 was introducing _mc_tmp into paragraphs due to the new querySelectorAll and a TinyMCE specific workaround.
    +	Fixed bug where getParam method in the Editor class was returning incorrect objects and would mess up the font drop down. Patch contributed by speednet.
    +	Fixed bug where the table dialog would produce an exception in IE when you edited tables since it tried to place focus in a disabled field.
    +	Fixed bug where class attribute on some span elements was removed on cleanup.
    +	Fixed bug where resizing the editor in IE could produce an exception if the editor width/height got to be a negative value.
    +	Fixed bug where wmv files wouldn't play since the src param was used instead of the url param.
    +	Fixed bug where br elements would be added here and there in Gecko. Geckos internal _moz_dirty br elements where serialized as well.
    +	Fixed bug where editing named anchors would produce two anchors instead of one updated one.
    +	Fixed bug where arrow and function keys didn't work when an noneditable element was focused within the editor.
    +	Fixed bug where the dispatcher could produce an exception if the listener list was altered inside an event callback.
    +	Fixed bug where it was impossible to totally empty the editor contents on Safari due to an mistreatment of nbsp as whitespace. Patch contributed by Andrew Ozz.
    +	Fixed bug where TinyMCE would not convert textareas with the same name attribute value. It will now generate an unique id for those textareas.
    +	Fixed bug where backspace/delete key was deleting td elements inside tables while running on Gecko.
    +	Fixed bug where Firefox 3.0b4 and Opera 9.26 where scrolling to the top of document when pressing return/enter.
    +	Fixed bug where the template plugin wasn't just inserting the mceTmpl tagged element.
    +	Fixed bug where the alert method of the default WindowManager implementation didn't translate input language strings like the inlinepopups dialog does.
    +	Fixed bugs with the backspace behavior in Gecko. The caret was placed on incorrect locations in the DOM sometimes.
    +	Fixed so advimage dialog and table dialogs has support for editable select boxes for the class value.
    +	Fixed so the media, pagebreak and spellchecker doesn't load it's default content.css file if the content_css option is set to false.
    +	Fixed so the paste_use_dialog option works again it's enabled by default but can be disabled on IE. Patch contributed by Speednet.
    +	Fixed so that the fullscreen editor is focused when switching fullscreen editing on.
    +	Fixed so it's possible to edit images and links inside tables using the context menu.
    +	Fixed so table dialogs and the advanced image dialog doesn't loose selection in IE if the dialogs where navigated/submitted with the keyboard.
    +	Fixed so the theme_advanced_blockformats options can have named items for example title 1=h1;title 2=h2.
    +	Fixed so it's possible to add a custom editor_css for the simple theme.
    +	Fixed quirks with directionality rtl, patch contributed by Andrew Ozz.
    +	Fixed so the inlinepopups default start zIndex is 300000.
    +	Fixed typo in media plugin Shockware is now replaced with Shockwave.
    +	Fixed psuedo memory leak in IE with the replaceChild method inside the DOMUtils.replace method.
    +	Fixed so memory is released when an editor instance is removed from page.
    +	Optimized the color split button menus so that they use less event handlers.
    +	Removed the util/mclayer.js file since it's no longer used by any of the TinyMCE dialogs and is considered deprecated.
    +Version 3.0.5 (2008-03-12)
    +	Added new black skin variant to the o2k7 skin contributed by Stefan Moonen.
    +	Added new explode method to the tinymce core class. This does a split but removed whitespace it also defaults to a , delimiter.
    +	Added new detection logic for IE 8 standards mode into the DOMUtils class strMode can now be checked to see if that mode is on/off.
    +	Added new noscale option value for the scale select box for Flash in the media plugin.
    +	Fixed bug where the menu for the ColorSplitButton wasn't removed when the editor was removed.
    +	Fixed bug where font colors couldn't be edited correctly since the style of the element didn't get updated correctly.
    +	Fixed bug where class of elements would get lost when TinyMCE was fixing incorrect HTML markup.
    +	Fixed bug where table editing would produce double height values.
    +	Fixed bug where width style value wouldn't be removed if you switched width unit from cm/em to pixels or percent.
    +	Fixed bug where the search/replace input box wasn't auto focused like the other dialogs.
    +	Fixed bug where the old mceAddControl command would use the fullscreen settings next time it created an instance.
    +	Fixed bug where multiple lines where added to the target cell if you merged multiple empty cells.
    +	Fixed bug where drop down menus would be incorrectly positioned inside scrollable divs.
    +	Fixed bug where the separators of the silver skin variant didn't display correctly in IE 6.
    +	Fixed bug where createStyleSheet seems to load scripts at opposite order in some IE versions.
    +	Fixed bug where directionality could produce odd results for the UI and the dialogs.
    +	Fixed bug where the DOM serializer wouldn't serialize custom namespaced attributes in IE 6 using the *[*] valid elements rule.
    +	Fixed bug where table caption would be inserted after the thead element if you swapped a tr to be inside the thead.
    +	Fixed bug where the youtube detection logic for the media plugin was to generic.
    +	Fixed so the deprecated and undocumented theme_advanced_path_location set to none won't hide the whole statusbar.
    +	Fixed so most input lists can have whitespace in them they are now split using the new tinymce.explode method.
    +	Fixed so the popup_css and popup_css_add URLs are relative to where the current document is located.
    +	Fixed various bugs and quirks with the store/restore selection logic.
    +	Fixed so the editor starts in IE 8 standards mode but still that browser is very very buggy.
    +	Fixed so dialog_type set to modal will block the background and other inline windows and only give access to the front most window.
    +Version 3.0.4.1 (2008-03-08)
    +	Fixed critical bug where it was impossible to edit images when inlinepopups where used due to lost selection in IE.
    +Version 3.0.4 (2008-03-07)
    +	Added new option constrain_menus, this enables you to force view port constraints on all menus. Contributed by Shane Tomlinson.
    +	Fixed bug where table background wasn't visible inside the editor due to a default CSS rule overriding the style attribute.
    +	Fixed bug where links would get a null class added if no styles was used in IE.
    +	Fixed bug where spellchecker was auto focusing the editor in IE.
    +	Fixed bug where document.domain would produce invalid argument if the editor was loaded in IE6 over a network UNC path.
    +	Fixed bug where table height attribute was used, this is deprecated in XHTML so it now adds it as an style.
    +	Fixed bug where textareas with style values would produce error in IE.
    +	Fixed so the first element in each dialog is focused by default to enhance keyboard usage.
    +	Fixed so you can add a mceFocus class to elements to make it auto focused.
    +	Fixed so you can close dialogs using the esc key.
    +	Fixed so you can press return/enter to submit the action of each dialog.
    +	Fixed so tabbing inside an inline popups wont focus the resize anchor elements.
    +	Fixed so you can press ok in inline alert messages using the return/enter key.
    +	Fixed so textareas can be set to non px or % sizes for example em, cm, pt etc.
    +	Fixed so non pixel values can be used in width/height properties for tables.
    +	Fixed so the custom context menu can be disabled by holding down ctrl key while clicking.
    +	Fixed so the layout for the o2k7 skin looks better if you don't have separators before and after list boxes.
    +	Fixed so the sub classes get a copy of the super class constructor function to ease up type checking.
    +	Fixed so font sizes for the format block previews are normalized according to http://www.w3.org/TR/CSS21/sample.html (it can be overridden).
    +	Fixed so font sizes for h1-h6 in the default content.css is normalized according to http://www.w3.org/TR/CSS21/sample.html (it can be overridden).
    +Version 3.0.3 (2008-03-03)
    +	Fixed bug where an error about document.domain would be thrown if TinyMCE was loaded using a different port.
    +	Fixed bug where mode exact would convert textareas without id or name if the elements option was omitted.
    +	Fixed bug where the caret could be placed at an incorrect location when backspace was used in Gecko.
    +	Fixed bug where local file:// URLs where converted into absolute domain URLs.
    +	Fixed bug where an error was produced if a editor was removed inside an editor command.
    +	Fixed bug where force_p_newlines didn't effect the paste plugin correctly.
    +	Fixed bug where the paste plugin was producing an exception on IE if you pasted contents with middots.
    +	Fixed bug where delete key could produce exceptions in Gecko sometimes due to the fix for the table cell bug.
    +	Fixed bug where the layer plugin would produce an visual add class called mceVisualAid this one is now renamed to mceItemVisualAid to mark it internal.
    +	Fixed bug where TinyMCE wouldn't initialize properly if ActiveX controls was disabled in IE.
    +	Fixed bug where tables and other elements that had visual aids on them would produce an extra space after any custom class names.
    +	Fixed bug where search with an empty string would produce some odd "invalid pointer" error in IE.
    +	Fixed bug where elements like menus where placed at incorrect positions in Opera 9.26.
    +	Fixed bug where IE was loosing focus of the editor when you clicked some dropmenu and if it was placed in a frame or iframe.
    +	Fixed bug where focus of images could be lost in IE if you focused the accessibility confirm dialog in the advimage plugin.
    +	Fixed bug where nestled font elements would produce odd output like missing font elements.
    +	Fixed bug where text colors and styles got removed if invalid_elements included the font element.
    +	Fixed bug where text-decoration set to underline or line-through would remove other styles from span elements.
    +	Fixed bug where editor contents like \n\n would be incorrectly handled and processed as real line feeds.
    +	Fixed bug where incorrectly encoded urls with ampersands in them would be decoded incorrectly.
    +	Optimized the DOMUtils decode method to be a lot faster if the string doesn't have any entities to decode.
    +Version 3.0.2.1 (2008-02-26)
    +	Fixed alert/confirm dialogs so they display correctly.
    +Version 3.0.2 (2008-02-26)
    +	Added new body_id option that enables you to specify the id of the body inside the editor iframe based on ideas by David Bildström (ChronoZ).
    +	Added new body_class option that enables you to set the class for the body of the editor iframe based on ideas by David Bildström (ChronoZ).
    +	Added new CSS class to the default content.css files mceForceColors that forces white background and black text can be used with the body_class option.
    +	Added new type parameter to the Editor.getParam function to reduce redundant logic for parsing hash tables.
    +	Added new isDone method to the ScriptLoaded class, this enables you to check if a script has been loaded or not.
    +	Added new resizeTo and resizeBy methods for the advanced theme. Can be called using tinyMCE.activeEditor.theme.resizeTo(w, h);
    +	Added new skin_variant option this can be used to extend existing skins with slight modifications like color.
    +	Added new variant of the o2k7 skin called "silver" based on a contribution made by Stefan Moonen.
    +	Fixed bug where the template plugin might produce errors if the template_mdate_classes wasn't configured.
    +	Fixed bug where the media plugin didn't convert the URLs for movies once they where inserted.
    +	Fixed bug where the style field for the advlink dialog didn't work correctly if you edited an existing link.
    +	Fixed bug where alignment of toolbars would fail in editor was uses in a quirks mode on IE, fix contributed by Peter Wood & Art Lawry.
    +	Fixed bug where initialization of multiple editors at the same time using the mceAddControl method would produce errors.
    +	Fixed bug where initialization of editors using mceAddControl command or new tinymce.Editor calls would fail during page load.
    +	Fixed bug where the check for domain relaxing could fail if the document.domain property was changed by another script.
    +	Fixed bug where textareas couldn't be named description or any other name that matches the meta elements in IE and Opera.
    +	Fixed bug where the element path would fail sometimes in IE due to "unknown runtime error" on innerHTML.
    +	Fixed bug where Safari would crash if you was hiding the editor before serializing the contents.
    +	Fixed bug where the editor wasn't scaled propertly in fullscreen mode using the old fullscreen_new_window option.
    +	Fixed bug where render method didn't load language packs in IE and Opera if you rendered an editor during page load.
    +	Fixed bug where resizing the browser window in fullscreen didn't resize the editor.
    +	Fixed bug where the blockquote command didn't move the caret inside the new empty blockquote if you used it on an empty document.
    +	Fixed bug where auto in a style width/height for the textarea would produce an editor with the size value of 100. Fix contributed by Shane Tomlinson.
    +	Fixed bug where restoration of selection at the beginning of an element could fail in Gecko.
    +	Fixed bug where caret restoration after a cleanup could place the it at an incorrect location.
    +	Fixed bug where delete key inside td elements would delete the cell in Gecko.
    +	Fixed so the blockquote button toggles individual lines. This behavior is a bit more like the old indentation behavior in the 2.x branch.
    +	Fixed so the dialog language packs only gets loaded the first time you open a dialog.
    +	Fixed so all classes in the whole UI is prefixed with "mce" to avoid collisions, use the skin converter to update your existing skins.
    +	Fixed so all classes in the inlinepopups logic is prefixed with "mce" to avoid collisions, use the skin converter to update your existing skins.
    +	Fixed so that the window in fullscreen mode can be resized when fullscreen_new_window option is enabled.
    +	Fixed so blockquote elements are formatted in the source output with an linefeed before and after it.
    +	Optimized the editor initialization by reducing the number of calls to getBookmark/moveToBookmark.
    +Version 3.0.1 (2008-02-21)
    +	Added spellchecker plugin into the main package, but without any backend can be specified with the spellchecker_rpc_url option.
    +	Added src attribute for script elements to the default valid_elements option value.
    +	Added extra parameter to the class_filter callback it can now also filter out classes based on the whole CSS rule.
    +	Added support for domain relaxing, TinyMCE can now be loaded from an remote domain as long as they are on the same root domain.
    +	Added support for custom elements the new custom_elements option enables you to add non HTML elements to the editor.
    +	Added support for the W3C Selectors API that was added to latest nightly build of WebKit.
    +	Fixed bug where some object param element wasn't stored correctly using the media plugin.
    +	Fixed bug where Opera was scrolling to top of page is drop menus on list boxes where displayed.
    +	Fixed bug where IE6 was crashing if a format block was used on a container with anchor elements.
    +	Fixed bug where spans with font sizes wasn't handled correctly when editor was loading contents.
    +	Fixed bug where mode exact couldn't convert editors with name only. Id is no longer required but recommended.
    +	Fixed bug where the mceInsertRawHTML command produced an extra undo level.
    +	Fixed bug where the specific_textareas mode didn't work correctly this is the same thing as textareas now.
    +	Fixed bug where the values of input elements in the HTML page of dialogs pages where changed in IE.
    +	Fixed bug where fullscreen and fullpage plugins didn't work well together.
    +	Fixed bug where embed elements wasn't handled properly in the media plugin.
    +	Fixed bug where style information on span elements gets munged when fonts are converted to spans.
    +	Fixed bug where some entities in element attributes where encoded incorrectly in the latest WebKit build.
    +	Fixed bug where initialization would fail in IE if there where two input elements with the name submit in the form.
    +	Fixed bug where fullscreen mode didn't work correctly in IE when the fullscreen_new_window option was used.
    +	Fixed bug where invalid contents like an ul inside a p element would produce odd results in IE.
    +	Fixed bug where Opera 9.2x was placing the drop menus at incorrect locations if the editor was placed in a table.
    +	Fixed bug where Opera was producing odd results if enter/return was pressed while having forced_root_blocks disabled.
    +	Fixed bug where layer plugin was stealing focus in IE on initialization.
    +	Fixed bug where body attributes wasn't set properly in the fullpage plugin, fix contributed by Hiroaki Kawai.
    +	Fixed bug where insert image and insert link dialogs where producing an extra level in the undo history.
    +	Fixed bug where Gecko would produce an error if empty elements like 
    where inserted using mceInsertContent. + Fixed bug where center alignment of images produced odd results inside table cells. + Fixed bug where center alignment of images couldn't be toggled correctly. + Fixed bug where alignment of images inside tables would produce double float style items in IE if the fix_table_elements option was enabled. + Fixed bug where a variable called 'v' was polluting the global namespace. Objects tinymce and tinyMCE are the only ones allowed to be global. + Fixed bug where insert table from context menu couldn't insert new tables inside existing tables. + Fixed bug where Safari wouldn't produce br elements on enter when the force_br_newlines option was enabled. + Fixed bug where switching cell type in table cell dialog would produce odd attributes in IE. + Fixed bug where Gecko was outputting internal attributes if valid_elements where set to "*[*]". + Fixed bug where the style plugin would produce non hex colors inside the dialog when running on Gecko. + Fixed bug where an empty src value for insert image would remove the currently selected image if it wasn't and image element. + Fixed bug where hidden input elements would break the logic for the tab_focus option. + Fixed bug where save button wasn't working correctly in fullscreen mode. + Fixed bug where the editor was forced to be placed in a form element if the save_onsavecallback option was used. + Fixed bug where upper case param attributes wasn't parsed correctly in the media plugin. + Fixed bug where render method of tinymce.Editor class would produce an exception if the strict_loading_mode option was omitted. + Fixed bug where nodeChanged event could be fired while the editor was loading and there for produce an exception in FF. + Fixed bug where no undo levels where added if the user created new table rows using the tab key on Gecko. + Fixed bug where tables would be broken if you selected a different block format for contents withing an table cell. + Fixed bug where the render method of the tinymce.Editor class didn't setup the tinymce.EditorManager.settings object correctly. + Fixed bug where the advanced image dialog would go to the first tab if the alternative image was changed using the file browser link. + Fixed bug where the forced_root_block option would produce BR elements inside empty blocks if the block wasn't a paragraph. + Fixed bug where the forced_root_block doesn't work correctly on IE if the specified element was something else than paragraphs. + Fixed bug where selection of images would get lost if user selected something from the context menu in IE. + Fixed bug where the context menu plugin would pollute the global namespace with two variables p1 and p2. + Fixed compatibility issue with Mootools, it is destroying document.getElementById on unload in IE. (Mantra: You don't own the internal objects). + Fixed bugs where dialogs/tabs and other UI elements where rendered incorrectly in Firefox 3. + Fixed so the auto CSS class importer is compatible with 2.x. + Fixed so the editor UI and inlinedialogs works correctly with the YUI CSS reset package. + Fixed so header and footer elements are forced to lower case when the fullpage plugin is used. + Fixed so load prefixes "-" for plugins and themes isn't required if the plugin/theme was loaded by the ThemeManager/PluginManager. + Fixed so the JSONRequest uses application/json content type to make Ruby on rails happy. + Fixed so the CSS rule is more exact for the body in the default content.css files. Body is now defined as "body.mceContentBody" instead of just "body". + Fixed so the tiny_mce_dev.js uses XHR instead of document.write to load scripts to resolve an issue with Opera 9.50. + Fixed so language pack loading can be disabled by setting the language option to false. Can be useful for systems with their own language pack management. +Version 3.0 (2008-01-30) + Added map and area elements to the default valid_elements list and also some indentation rules. + Fixed bug where empty paragraphs wasn't padded when loading contents. + Fixed bug where the RowLayout manager didn't work at all. + Fixed bug where style attribute data would get messed up in advimage dialog. + Fixed bug where the table dialogs class select wasn't updated correctly. + Fixed bug where elements would get extra whitespace around on insert when body was present in valid_elements. + Fixed bug where coords attribute of the area element wasn't handled properly in IE. + Fixed bug where Safari didn't produce BR elements on shift+return. + Fixed bug where force blocks would cast odd invalid attribute exception in IE. + Fixed bug where media plugin would produce extra whitespace before and after objects. + Fixed bug where cleanup_callback could break the contents of the editor. But use the new event system instead of this option. + Fixed bug where the tab_focus option didn't work between editor instanced. You can now tab between editors. + Fixed bug where the load function of the ScriptLoader class didn't load single files without the load que as it was supposed to. + Fixed bug where the execcommand_callback parameter order was incorrect. Recommendation use the new addCommand method. + Fixed bug where range.select calls sometimes failed on some IE versions. + Fixed bug where Safari was scrolling to top of document when enter/returned was pressed. + Fixed bug where fullscreen_new_window option didn't work correctly. + Fixed bug where the nonbreaking plugin inserted an space instead of an non breaking space the first time. + Fixed bug where the visualization of non breaking spaces where visual in element path. + Fixed so the focus is restored to the editor after inserting an custom character. + Fixed so the isNotDirty state is set to false if a new undo level is added. + Fixed so pointless style information for borders gets removed in IE. + Fixed so the resize button has a se-resize cursor css value. +Version 3.0rc2 (2008-01-18) + Added new fix_nesting option to fix bug #1867292, this is disabled by default. + Added new indentation option enables you to specify how much each indent/outdent call will add/remove. + Added easier support for enabling/disabling icon columns on drop menues. + Added new menu button control class. This control is very similar to the splitbutton but without any onclick action. + Added support for previous tab focus (shift+tab). The tab_focus setting now takes two items next and previous element. + Fixed bug where iframes inside the editor got removed in Firefox on initial load. + Fixed bug where the CSS for abbr elements wasn't applied correctly in IE. + Fixed bug where mceAddControl on element inside a hidden container produced errors. + Fixed bug where closed anchors like produced strange results. + Fixed bug where caret would jump to the top of the editor if enter was pressed a the end of a list. + Fixed bug where remove editor failed if the editor wasn't properly initialized. + Fixed bug where render call on for a non existing element produced exception. + Fixed bug where parent window was hidden when the color picker was used in a non inlinepopups setup. + Fixed bug where onchange event wasn't fired correctly on IE when color picker was used in dialogs. + Fixed bug where save plugin could not save contents if the converted element wasn't an textarea. + Fixed bug where events might be fired even after an editor instance was removed such as blur events. + Fixed bug where an exception about undefined undo levels could be throwed sometimes. + Fixed bug where the plugin_preview_pageurl option didn't work. + Fixed bug where adding/removing an editor instance very fast could produce problems. + Fixed bug where the link button was highlighted when an anchor element was selected. + Fixed bug where the selected contents where removed if a new anchor element was added. + Fixed bug where splitbuttons where rendered one pixel down in the default theme. + Fixed bug where some buttons where placed at incorrect positions in the o2k7 theme. + Fixed bug that made it impossible to visually disable a custom button that used an image instead of CSS sprites. + Fixed bug where it wasn't possible to press delete/backspace if the editor was added+removed and re-added due to a FF bug. + Fixed bug where an entities option with only 38,amp,60,lt,62,gt would fail in IE. + Fixed bug where innerHTML sometimes generated unknown runtime error on IE. + Fixed bug where content_css files wasn't loaded in the template preview iframe. + Fixed bug where scroll position was incorrect when toggling fullscreen mode. + Fixed bug where restoration of overflow didn't work correctly when disabling fullscreen mode in Opera. + Fixed bug where drop menus where places at incorrect locations if the editor was placed in a scrollable container element. + Fixed bug where hideMenu didn't hide sub menus correctly. It will now hide all menus recursively. + Fixed so theme_advanced_path_location can be used in init options for compatibility reasons. + Fixed so the drop menu colors matches the rest of o2k7 theme. + Fixed so the preview example.html file is updated to the new 3.x API. + Fixed so the margins are the same by default inside the editable area between IE and other browsers. + Fixed so editor contents gets stored before it the onSubmit event is fired. +Version 3.0rc1 (2008-01-08) + Added new classes for toolbar rows in advanced theme mceToolbarRow1..n enabled you to change appearance of individual rows. + Added auto detection for the strict_loading_mode option when running in application/xhtml+xml mode on Gecko. + Optimized the HTML serializer by bundling some post process methods together. + Fixed so that the toolbars have unique IDs, enables you to alter the toolbars using the ControlManager and the DOM. + Fixed bug where delta values for dialog sizes in language packs didn't work correctly due to missing string to number casting. + Fixed bug where paragraph generation logic didn't handle hr or table elements correctly if they where the only element. + Fixed bug where some elements got extra linebreaks added after or before it in HTML output. + Fixed bug where it was hard to modify existing style data on table rows and table cells. + Fixed bug where the dom.getRect method didn't handle non pixel values correctly. + Fixed bug where strikethrough and underline couldn't be toggled on existing span elements. + Fixed bug where the postprocessor searched for nsbp instead of nbsp entities. + Fixed bug where it was impossible to edit links that had child elements within them. + Fixed bug where it was possible to click on the parent item of a submenu. + Fixed bug where mouseover/mouseout images couldn't be removed in advimage dialog. + Fixed bug where drop menus didn't work when running in application/xhtml+xml mode. + Fixed bug where Opera added doctype to output in application/xhtml+xml mode. + Fixed bug where some DOM methods didn't work correctly in the application/xhtml+xml mode. + Fixed bug where the inlinepopups didn't work correctly in the application/xhtml+xml mode. + Fixed bug where the ColorSplitButton didn't display correctly in the application/xhtml+xml mode. + Fixed bug where the UI layout was incorrect on Gecko browsers when running in application/xhtml+xml mode. + Fixed bug where the word paste plugin produced exception while running in application/xhtml+xml mode. + Fixed bug where there wasn't any hidden input element generated for divs while running in application/xhtml+xml mode. + Fixed bug where indentation of script/style/pre elements where incorrect. + Fixed bug where script element contents was removed in IE. + Fixed bug where script element contents got entity encoded. + Fixed bug where you couldn't edit existing element styles using the styles plugin. + Fixed bug where styles wasn't updated properly sometimes due to an performance enhancement. + Fixed bug where font sizes couldn't be changed using the style plugin. + Fixed bug where an error was produced in Gecko browsers when switching back from fullscreen mode. + Fixed bug where Opera was producing br elements after elements like h3. + Fixed bug where TinyMCE couldn't be loaded on a page using - characters in it's URL. + Fixed bug where the editor container element was forced to have a specific name. + Fixed bug with force_br_newlines option on Firefox, even though it should never be used (Read FAQ). + Fixed bug where onclick event had an return true; prefix added when creating an popup. + Fixed bug where the theme_advanced_statusbar_location option couldn't handle the value "none". + Fixed issue with URLs with multiple at characters for example an Zope URI. + Fixed so simple and advanced themes doesn't collide. + Fixed so a elements gets removed when the href field is left empty, the href attribute is required in a link after all. + Fixed so img elements gets removed when the src field is left empty, the src attribute is required for all images after all. + Removed the indent and encode methods from the tinymce.dom.Serializer class due to performance enhancement and reduction of the API size. +Version 3.0b3 (2007-12-14) + Added new getElement method to Editor class, returns the element that was replaced with the editor instance. + Added new unavailable prefix for disabled controls for accessibility reasons. + Fixed bug where regexp patterns couldn't be used for the editor_selector/editor_deselector options. + Fixed bug where the DOM wasn't properly initialized before the onInit event was executed in popups. + Fixed bug where font sizes where reduced by font size actions on previous spans in Safari. + Fixed bug where HR elements got places at the wrong location in IE. + Fixed bug where align/justify didn't work correctly on multiple paragraphs. + Fixed bug with missing translation for cell scope settings. + Fixed bug where selection/caret position was lost on some table actions. + Fixed bug where editor instances couldn't be added to hidden div elements. + Fixed bug where list elements in Safari would get an odd ID attribute. + Fixed bug where IE would return when the editor was completely empty. + Fixed bug where accessibility title attribute for access keys wasn't setup properly. + Fixed bug where forecolorpicker and backcolorpicker control names wasn't working. + Fixed bug where inserting template content didn't work in Safari due to selection exception. + Fixed bug where absolute URLs to remote hosts couldn't be used for background images. + Fixed bug where mysterious span elements where produced in Safari when injecting HTML contents. + Fixed bug where the media plugin didn't work correctly on the latest Opera 9.24. + Fixed bug where indentation of HTML output wasn't applied to all block elements. + Fixed bug where Safari was production DOM exception if you pressed enter in an empty editor. + Fixed bug where media plugin didn't parse script tags correctly patch contributed by Mathieu Campagna. + Fixed bug where the drop menus of list boxes like blockformat could produce scrolling of the page. + Fixed bug where the drop menus where placed at an incorrect location if TinyMCE was placed in a scrollable div. + Fixed bug where submit buttons couldn't be named submit, it's not recommended to name submit buttons submit anyway. + Fixed bug where the stylelistbox produced an exception if there was only one class in the list box. + Fixed bug where the stylelistbox wasn't updated correctly when the current class was removed. + Fixed bug where the formatblock command sometimes removed the body element. + Fixed bug where fullscreen switching in IE sometimes produced an exception when the spellchecker plugin was enabled. + Fixed issue where FF produced an empty paragraph when the editor was completely empty. + Fixed issue with size of image dialog in the advanced theme. + Fixed issues with the bbcode plugin it now also handles spans and the [font] rule. + Fixed so the style compression feature is a bit smarter to resolve issues with Opera. + Reintroduced the remove_linebreaks option, this is enabled by default. +Version 3.0b2 (2007-11-29) + Added type and compact attributes to the default valid_elements list for the ul and ol elements. + Added missing accessibility support to native list boxes in both the toolbar and dialogs. + Added missing access key for the element path for accessibility reasons. + Fixed support for loading themes from external URLs. + Fixed bug where setOuterHTML didn't work correctly when multiple elements where passed to it. + Fixed bug with visualchars plugin was moving elements around in the DOM. + Fixed bug with DIV elements that got converted into editors on IE. + Fixed bug with paste plugin using the old event API. + Fixed bug where the spellchecker was removing the word when it was ignored. + Fixed bug where fullscreen wasn't working properly. + Fixed bug where the base href element and attribute was ignored. + Fixed bug where redo function didn't work in IE. + Fixed bug where content_css didn't work as previous 2.x branch. + Fixed bug where preview dialog was throwing errors if the content_css wasn't defined. + Fixed bug where the theme_advanced_path option didn't work like the 2.x branch. + Fixed bug where the theme_advanced_statusbar_location was called theme_advanced_status_location. + Fixed bug where the strict_loading_mode option didn't work if you created editors dynamically without using the EditorManager. + Fixed bug where some language values wasn't translated such as insert and update in dialogs. + Fixed bug where some image attributes wasn't stored correctly when inserting an image. + Fixed bug where fullscreen mode didn't restore scrollbars when disabled. + Fixed bug where there was no visual representation for tab focus in toolbars on IE. + Fixed bug where HR elements wasn't treated as block elements so forced_root_block would fail on these. + Fixed bug where autosave presented warning message even when the form was submitted normally. + Fixed typo of openBrower it's now openBrowser in form_utils.js. + Fixed various HTML problems like missing TD elements and duplicated doctypes. + Fixed default values for theme_advanced_resize_horizontal, theme_advanced_resizing_use_cookie to be 2.x compatible. + Moved spellchecker JS files into the development package. + Removed support for theme_advanced_path_location since the theme_advanced_statusbar_location is the correct option name. +Version 3.0b1 (2007-11-21) + Added new tab_focus option, that enables you to specify a element id or that the next element to be focused on tab key down. + Added new addQueryValueHandler method to the tinymce.Editor class. + Added new class_filter option, this enables you to specify a function that can filter out CSS classes for the styles list box. + Added support form [url=url]title[/url] to the bbcode plugin. + Renamed the addCommandQueryState method in the tinymce.Editor class to addQueryStateHandler. + Renamed loadQue to loadQueue, to correct spelling. + Removed the createDOM method from the window manager and replace it with a createInstance method. + Removed the add to beginning of class attribute parameter of the DOMUtils.addClass method. + Fixed bug with the forced_root_block option, didn't work correctly with multiple inline elements. + Fixed bug where image dialogs replaced the current image element with a new one even when it was updated. + Fixed bug where the submit trigger wasn't executed when divs where converted into editor instances. + Fixed bug where div elements that got converted into editors didn't get a hidden input element generated for them. + Fixed bug where the the media_use_script option for the media plugin wasn't working correctly. + Fixed bug where the font size and font family listboxes wasn't updated correctly on Safari. + Fixed bug where the height of the fieldset in default image dialog for the advanced theme was to small. + Fixed bug where the font sizes behaved incorrectly after a cleanup on Safari. + Fixed bug where formatblock didn't work correctly in Safari on some elements. + Fixed bug where template plugin didn't insert content correctly unless some options where specified. + Fixed bug where charmap on Safari produced scrollbars. + Fixed bug where there was white artifacts in some dialogs due to missing background color. + Fixed bug where port was added to all external URLs if the editor was loaded from a custom port. + Fixed bug where the context menus got duplicated on Safari 3.0.4 on Mac OS X. + Fixed bug where dialogs like paste from word was huge on Firefox. + Fixed bug with media plugin not working with windows media objects. + Fixed bug where a forever loop was created if multiple instances where submitted using form.submit. + Fixed bug with editing a table produce error in IE when inlinepopups where used. + Fixed bug where the style plugin generated ugly looking style information in IE. + Fixed bug where the inline dialogs that got opened while in fullscreen mode wasn't visible. + Fixed bug where it was difficult to place the caret inside the word paste dialog. + Fixed bug where Opera produced strange border in the word paste dialog. + Fixed bug where viewport constraints could move a inlinepopup to a negative x, y position if the viewport was to small. + Fixed bug where template plugin was producing an error due to a deprecated API call. + Fixed bug where drag drop of images failed in Gecko if a document_base_url was specified. + Fixed bug where Firefox 3 failed to apply block formats like H1-H6 it still breaks on DIVs this has been reported to bugzilla. + Fixed bug where IE was producing a warning dialog about non secure items when running TinyMCE over HTTPS. + Fixed bug where the onbeforeunload event was triggered when menus or dialogs where opened. + Fixed bug where the fullscreen mode of the HTML view source box threw an error. + Fixed bug where the mceFocus command didn't work correctly. + Fixed bug where the selection could get lost in IE using inlinepopups. + Fixed so the body of the editor area has the mceContentBody class just like the 2.x branch. + Fixed so the media icon gets active when a media element is selected. +Version 3.0a3 (2007-11-13) + Added new experimental jQuery and Prototype framework adapters to the development package. + Added new translation.html file for the development package. Helps with the internationalization of TinyMCE. + Added new setup callback option, use this callback to add events to TinyMCE. This method is recommended over the old callbacks. + Added new API documetation to all classes, functions, events, properties to the Wiki with examples etc. + Added new init method to all plugins and themes, since it's shorter to write and it mimics interface capable languages better. + Fixed various CSS issues in the default skin such as alignment of split buttons and separators. + Fixed issues with mod_security. It didn't like that a content type of text/javascript was forced in a XHR. + Fixed all events so that they now pass the sender object as it's first argument. + Fixed some DOM methods so they now can take an array as input. + Fixed so addButton and the methods of the ControlManager uses less arguments and it now uses a settings object instead. + Fixed various issues with the tinymce.util.URI class. + Fixed bug in IE and Safari and the on demand gzip loading feature. + Fixed bug with moving inline windows sometimes failed in IE6. + Fixed bug where save_callback function wasn't executed at all. + Fixed bug where inlinepopups produces scrollbars if windows where moved to the corners of the browser. + Fixed bug where view HTML source failed when inserting a embedded media object. + Fixed bug where the listbox menus didn't display correctly on IE6. + Fixed bug where undo level wasn't added when editor was blurred. + Fixed bug where spellchecker wasn't disabled when fullscreen mode was enabled. + Fixed bug where Firefox could crash some times when the user switched to fullscreen mode. + Fixed bug where tinymce.ui.DropMenu didn't remove all item data when an item was removed from the menu. + Fixed bug where anchor list in advlink dialog wasn't populated correctly in Safari. + Fixed bug where it wasn't possible to edit tables in IE when inlinepopups was enabled. + Fixed bug where it wasn't possible to change the table width of an existing table. + Fixed bug where xhtmlxtras like abbr didn't work correctly on IE. + Fixed bug where IE6 had some graphics rendering issues with the inlinepopups. + Fixed bug where inlinepopup windows where moved incorrectly when they were boundary checked for min width. + Fixed bug where textareas without id or name couldn't be converted into editor instances. + Fixed bug where TinyMCE was stealing element focus on IE. + Fixed bug where the getParam method didn't handle false values correctly. + Fixed bug where inlinepopups was clipped by other TinyMCE instances or relative elements in IE. + Fixed bug where the contextmenu was clipped by other TinyMCE instances or relative elements in IE. + Fixed bug where listbox menus was clipped by other TinyMCE instances or relative elements in IE. + Fixed bug where listboxes wasn't updated correctly when the a value wasn't found by select. + Fixed various CSS issues that produced odd rendering bugs in IE. + Fixed issues with tinymce.ui.DropMenu class, it required some optional settings to be specified. + Fixed so multiple blockquotes can be removed with a easier method than before. + Optimized some of the core API to boost performance. + Removed some functions from the core API that wasn't needed. +Version 3.0a2 (2007-11-02) + Fixed critical bug where IE generaded an error on a hasAttribute call in the serialization engine. + Fixed critical bug where some dialogs didn't open in the non dev package. + Fixed bug when using the theme_advanced_styles option. Error was thrown in some dialogs. + Fixed bug where the close buttons produced an error when native windows where used. + Fixed bug in default skin so that split buttons gets activated correctly. + Fixed so plugins can be loaded from external urls outsite the plugins directory. +Version 3.0a1 (2007-11-01) + Rewrote the core and most of the plugins and themes from scratch. + Added new and improved serialization engine, faster and more powerful. + Added new internal event system, things like editor.onClick.add(func). + Added new inlinepopups plugin, the dialogs are now skinnable and uses clearlooks2 as default. + Added new contextmenu plugin, context menus can now have submenus and plugins can add items on the fly. + Added new skin support for the simple and advanced themes you can alter the whole UI using CSS. + Added new o2k7 skin for the simple and advanced themes. + Added new custom list boxes for font size/format/style etc with preview support. + Added new UI management, enabled plugins to create controls like splitbuttons or menus easier. + Added new JSON parser/serializer and JSON-RPC class to the core API. + Added new cookie utility class to the core API. + Added new Unit testing class to the core API only available in dev mode. + Added new firebug lite integration when loading the dev version of TinyMCE. + Added new Safari plugin, fixes lots compatibility of issues with Safari 3.x. + Added new URI/URL parsing it now handles the hole RFC and even some exceptions. + Added new pagebreak plugin, enables you to insert pagebreak comments like + Added new on demand loading of plugins and themes. Enables you to load and init TinyMCE at any time. + Added new throbber/progress visualization a plugin can show/hide this when it's needed. + Added new blockquote button. Enables you to wrap paragraphs in blockquotes. + Added new compat2x plugin. Will provide a TinyMCE 2.x API for older plugins. + Added new theme_advanced_resizing_min_width, theme_advanced_resizing_min_height options. + Added new theme_advanced_resizing_max_height, theme_advanced_resizing_max_height options. + Added new use_native_selects option. Enables you to toggle native listboxes on and off. + Added new docs_url option enables you to specify where the TinyMCE user documentation is located. + Added new frame and rules options for the table dialog. + Added new global rule for valid_elements/extended_valid_elements enables you to specify global attributes for all elements. + Added new deny attribute rule characher so it's possible to deny global attribute rules on specific elements. + Added new unit tests in the dev package of TinyMCE. Runs tests on the core API, commands and settings of the editor. + Readded the inline_styles option and enabled it by default so deprecated attributes are no longer used. + Removed all button images and replaced them with CSS sprite images. Reduces the number of requests needed. + Removed lots of language files and merged them into the base language files. Reduces the number of requests needed. + Removed lots of unnecessary files and merged many of them together to reduce requests and improve loading speed. + Reduced the over all script size by 33% and the number of files/requests by 75% so it loads a lot faster. + Fixed so convert_fonts_to_spans are enabled by default. So no more font tags. + Fixed so underline and strikethrough uses spans instread of deprecated U and STRIKE elements. + Fixed so indent/outdent adds/removed margin-left instead of blockquotes. + Fixed so alignment of paragraphs results in a text-align style value instead of the deprecated align attribute. + Fixed so alignment of images uses float or vertical-align style values instead of the deprecated align attribute. + Fixed so all classes from @import stylesheets gets imported into the editor. + Fixed so the directionality can toggle the dir attribute on and off. + Fixed so the fullscreen_settings can be used for all types of fullscreen modes. + Fixed so the advanced HR dialog gets displayed when inserting a HR not only on edit. + Fixed bug where word wrap didn't work in the source editor on Safari. + Fixed so non HTML elements can be used within the editor such as + Fixed various memory leaks in IE and reduced the unload cleanups needed. + Fixed so the preformatted option adds an invisible container pre tag inside the editor. + Renamed the _template plugin to example and updated it to use the new 3.x API. diff --git a/js/tinymce/examples/css/content.css b/js/tinymce/examples/css/content.css new file mode 100644 index 0000000..9ab37f4 --- /dev/null +++ b/js/tinymce/examples/css/content.css @@ -0,0 +1,51 @@ +body { + background-color: #FFFFFF; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; + scrollbar-3dlight-color: #F0F0EE; + scrollbar-arrow-color: #676662; + scrollbar-base-color: #F0F0EE; + scrollbar-darkshadow-color: #DDDDDD; + scrollbar-face-color: #E0E0DD; + scrollbar-highlight-color: #F0F0EE; + scrollbar-shadow-color: #F0F0EE; + scrollbar-track-color: #F5F5F5; +} + +td { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; +} + +pre { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; +} + +.example1 { + font-weight: bold; + font-size: 14px +} + +.example2 { + font-weight: bold; + font-size: 12px; + color: #FF0000 +} + +.tablerow1 { + background-color: #BBBBBB; +} + +thead { + background-color: #FFBBBB; +} + +tfoot { + background-color: #BBBBFF; +} + +th { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 13px; +} diff --git a/js/tinymce/examples/css/word.css b/js/tinymce/examples/css/word.css new file mode 100644 index 0000000..79b820a --- /dev/null +++ b/js/tinymce/examples/css/word.css @@ -0,0 +1,53 @@ +body { + background-color: #FFFFFF; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; + scrollbar-3dlight-color: #F0F0EE; + scrollbar-arrow-color: #676662; + scrollbar-base-color: #F0F0EE; + scrollbar-darkshadow-color: #DDDDDD; + scrollbar-face-color: #E0E0DD; + scrollbar-highlight-color: #F0F0EE; + scrollbar-shadow-color: #F0F0EE; + scrollbar-track-color: #F5F5F5; +} + +p {margin:0; padding:0;} + +td { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; +} + +pre { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; +} + +.example1 { + font-weight: bold; + font-size: 14px +} + +.example2 { + font-weight: bold; + font-size: 12px; + color: #FF0000 +} + +.tablerow1 { + background-color: #BBBBBB; +} + +thead { + background-color: #FFBBBB; +} + +tfoot { + background-color: #BBBBFF; +} + +th { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 13px; +} diff --git a/js/tinymce/examples/full.html b/js/tinymce/examples/full.html new file mode 100644 index 0000000..147b458 --- /dev/null +++ b/js/tinymce/examples/full.html @@ -0,0 +1,83 @@ + + + +Full featured example + + + + + + + + + + +

    Full featured example

    + +

    + This page shows all available buttons and plugins that are included in the TinyMCE core package. + There are more examples on how to use TinyMCE in the Wiki. +

    + + + + + + +
    + + + + + + diff --git a/js/tinymce/examples/index.html b/js/tinymce/examples/index.html new file mode 100644 index 0000000..076dbbe --- /dev/null +++ b/js/tinymce/examples/index.html @@ -0,0 +1,10 @@ + + + + TinyMCE examples + + + + + + diff --git a/js/tinymce/examples/lists/image_list.js b/js/tinymce/examples/lists/image_list.js new file mode 100644 index 0000000..ad54a97 --- /dev/null +++ b/js/tinymce/examples/lists/image_list.js @@ -0,0 +1,9 @@ +// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system. +// There images will be displayed as a dropdown in all image dialogs if the "external_link_image_url" +// option is defined in TinyMCE init. + +var tinyMCEImageList = new Array( + // Name, URL + ["Logo 1", "media/logo.jpg"], + ["Logo 2 Over", "media/logo_over.jpg"] +); diff --git a/js/tinymce/examples/lists/link_list.js b/js/tinymce/examples/lists/link_list.js new file mode 100644 index 0000000..238dacb --- /dev/null +++ b/js/tinymce/examples/lists/link_list.js @@ -0,0 +1,10 @@ +// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system. +// There links will be displayed as a dropdown in all link dialogs if the "external_link_list_url" +// option is defined in TinyMCE init. + +var tinyMCELinkList = new Array( + // Name, URL + ["Moxiecode", "http://www.moxiecode.com"], + ["Freshmeat", "http://www.freshmeat.com"], + ["Sourceforge", "http://www.sourceforge.com"] +); diff --git a/js/tinymce/examples/lists/media_list.js b/js/tinymce/examples/lists/media_list.js new file mode 100644 index 0000000..62c1c04 --- /dev/null +++ b/js/tinymce/examples/lists/media_list.js @@ -0,0 +1,10 @@ +// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system. +// There flash movies will be displayed as a dropdown in all media dialog if the "media_external_list_url" +// option is defined in TinyMCE init. + +var tinyMCEMediaList = [ + // Name, URL + ["Some Flash", "media/sample.swf"], + ["Some Quicktime", "media/sample.mov"], + ["Some AVI", "media/sample.avi"] +]; \ No newline at end of file diff --git a/js/tinymce/examples/lists/template_list.js b/js/tinymce/examples/lists/template_list.js new file mode 100644 index 0000000..79d3f86 --- /dev/null +++ b/js/tinymce/examples/lists/template_list.js @@ -0,0 +1,9 @@ +// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system. +// There templates will be displayed as a dropdown in all media dialog if the "template_external_list_url" +// option is defined in TinyMCE init. + +var tinyMCETemplateList = [ + // Name, URL, Description + ["Simple snippet", "templates/snippet1.htm", "Simple HTML snippet."], + ["Layout", "templates/layout1.htm", "HTML Layout."] +]; \ No newline at end of file diff --git a/js/tinymce/examples/media/logo.jpg b/js/tinymce/examples/media/logo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ad535d671f3282f03cac284e0640f88b3e54bed5 GIT binary patch literal 2729 zcmaJ?c{tSj8vp%fqZ!*UB3T>BlFBv_F)cLyxbIJU85pN=vza;N8>=iK|;=RWuIKHvBGKJVxKeBXcG@B41_Z;SwPM+x=> z0E7U*MX>=JJm3ZZhy8@u!zJP3vq=IDm)L~b^b;r^6h=k{qa-gY{~yfXDgXbn@eDvq0(*e(P!J73&>$2IZm@wI0DwTCAnKF>I^!^UWrAUv1kx zwFLfEYc7@&F?8vNYjKO*&d>jy@yQa3)IcciDpX1v6p7{`qvx&Fe-hywQ`=6SNU? zkb56O^8kpFkwj<-z@j@oV<5?807A}KP&u7FLAl|-P($(+S!bclhlQh$=8fg zqhkfl2qH1Da}DE+QD4=A}%dh!PC~hZ|-`XPzT*Xb7;^LP3Yojwl zub=xiyxugFa{V9QoCheEMzA8Y+Pc}0-`if;sW+RPj_V!yN*@zR1CZf;Ggq$i_ur0{ zST&2A$wExtM_vZ;dWD#NIyyKqnRY5>Ct>fNO7$4Sbv^uH9#vxlFgV|nN0bbE!1a<)AUKQ9)JqOLau7_6h3Myk;)6SJ~VD=y_lh0&Bq!Chyu$ zb!Bni+-Y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^m$#AIScIDE!b|zu_+?XlQvi&*5-whw3jv9T4t(lL*o=#^j*vy19zEZhLqCq{g zBa^d;VRdQ$`&$M~J(IU!?(KV+t?xC|`z~!ozhYMbjXDk9e^oIa8zfBXsf|V2tJ^j$l6h!9MGp%Il@&7?_xL zBCQYCc#RJeOe{?=%NmzE7VJ@$kzY> literal 0 HcmV?d00001 diff --git a/js/tinymce/examples/media/logo_over.jpg b/js/tinymce/examples/media/logo_over.jpg new file mode 100644 index 0000000000000000000000000000000000000000..79fcd884a4d8adb002219f14a12c57b584abddfa GIT binary patch literal 6473 zcmaKQbx<7L6Yb&-!QBEu0xa$poJB%d+&w^$h2Rh*NO1Sy?knEI)aCPweau= zug_PDi10rkz5?m>M*bgA{{ihk{Cnkf)+>*Mij0K(|1kee`Tq}Ix&XMS01m)C0vs*? z9v2P)7w)AG&;bCzApsEJ0RI6I0SOre6#$R+n&vC_&;AEQIQajuXm0>;2(Rg&AtECo z;r^o$;1QAFkOBB8cm$}p5^uTaxTOe*XgSr)R2?P3^k}Ch-vi!#b&8i(&*@$__0O%% ztLx=459HNgAbw5e)fXZHA`%87!arB9F#x!Dh)A?=@sT;X=p;5cxd~1kzx&7a z{NA7^LNPs8GwYTjd|3cszNQY3i+~Fd2k227YK;<*3RV{|1~G9tnJAcLr9dFPtqG1Q zHimmf1RW%2HZv^L^6~-+?gtXPU)HDiM#8}U143H1<^@jZS{wxiKRqzzZ-+rmf73zN z{#7IW;6#D`8C~js93OshIWx%JsAwvP35@BBf&Qu4jM`O%85G~slQ6wLVDwq6gCM^S zbm{Aa4$dpIJbcmycbMZGuPfLJoDU^m`ud`SNx*5R1v+O(1ItZmjmP~PCJG6Qf0nzQ z}K|To<-glwK1Sj6KMvp zZ&F|Tj$!l-4CKIAgef3wPivX;{?T?-J$GjPi3(-4p%*^XEFGj95G0q=1Vfj7wh^<$tRNs%Z7@@1~*M_QfH7^r}jZNT|R~ z;=DHd`$O!Ic*g1*v(&o64nbj$3t>IO!n|CEap{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M&Woi1VUuo^_lBcUFn2+ z2&14+zD^nUW&ezmzN2WI;+$Hg3#--{vh=qeZ9iPxN&WcnVlViQf=dPooKcG~XW4Y*Jw%JHhVFOsGm(Cz z%q)FyNqlSNG8Rn!eLudi!ba0U5@=n7ycA=M${|n*0Eky2RGgG4uj;#j{&@2D$i$UWlnLyqJ3EVGZHnIB~^FE9d@*+xc?)K z8G+=jRTGdOanNkX<_#U-b}7!?T@z-|T)wLsMu;z8>u59QcSEJ>pcp5@iqv#FGvsx4 zDCnl|6h{L?)t+PVCssGjtQ96nMXN~$8|kxKeZJU;HejxV zxt7Y1l_Z9c9MQO+& zI%{ZFf=%hJeLi4r*5+onX|Wccab2mXO>c)VS4)iA0@ih4&3{2Xignysn%#=5Vav3^ zMFWy6tnL_b?z0&}r|Uu`K205_R0ixuBfPfZQHJ;J?Ji<>hvw7F@3-*@Np&OHCTX*6 z$Vz|GRjL08RZ)amWvSpOS64Ii@az|(MAi)5u56`+ul6o@Joyw@CKq!z!*8$h(K}q2 zwy_x_MF&S$tBJ*=%UziyC+|e#9}p6a!(vXTl3l2$R!r|Jlv3*;RI6@~Cm=yp_|5By zJ$(+GdqSl2d&djypSml9k#^9N@agWf0QFS{ymJRdv7%hN; S-qS7kw!Q$6SxdEE=Kl{(%`j~M literal 0 HcmV?d00001 diff --git a/js/tinymce/examples/media/sample.avi b/js/tinymce/examples/media/sample.avi new file mode 100644 index 0000000000000000000000000000000000000000..238bb688a5bd844ec8ada2d20bc4c796c7ccafe3 GIT binary patch literal 82944 zcmeHw33yf2x%NqNGVOCtaxyZ6kcm0Wg8{-Q$`mSS1XPB|3?_^r1jxu72p}j9jN*VI zh~m)Nid9-`Q4!HvFSRscYkRfYR$E0>p!wf-?fqr1eG+N^|K9)k|Es6>M)v!D-&$v% zefC~!eee4AS~rXuKK!<;LtH~Aj7lFfD*wjK;V#$QnM;bMEt@yDugm2ca&@fh`4k-B zfBq5?M+sk)ZUn^}Crm}}D;oN$2R>W>`j zE^o#o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@x0pp_idIR9`N_}1x5dH z@Qd*==SKAybpZ1pAI!bnzNXr1eD&)419Pt3{v_u=-amWivWEEMkeR=^YWJxXajo8a zAUOUAjz9hg{AOW%Uz#)SbZEi(fsa-1o9}(Tf904vp4^zdKKvd& zztk_Q_ST#--mDvVIO6@OW3KyU&r6>_wCfs%C-&**{vFeL^)_l(LT~Pi< zRmCrdKD+0tPXg@L=~Up2h&(?9wyoj+Ec zH|6es(*7LUw+peOPn3LlU;krkkM=EV|9O|PPCwhQyJ+;=a(>f)Ui|V$=hpN%T(YR3 zw&UE~!mza)J=gVC`YhYWx>C&l)}0xA=&C-;JvV&R<+VXiUTXQ=`(LQ@!}(XXI)1A6 zjitTvK6^g0_W9#Ib2Fc;z4++oD!*iZ#=$i7BB_Lt|r^5M4S?~W{=>S6m>kNmV6cV;K% zufKfsN1LhL1oPLw8~Oe7W-jmXCYB=T-hJkDKmK*&@0vs#kHc}fhJW3`<=U5E+gA?2 zKJ7_1-gdpqbxHHzG27)juGuG-V`VzcUbzjQso6IjaJeRE_K$wza&cE-Ilt@Pa=Ezw ef#CR$aDKGoeHNbo-Szkn-fIc|@BgPO@V@{gVhxr6 literal 0 HcmV?d00001 diff --git a/js/tinymce/examples/media/sample.dcr b/js/tinymce/examples/media/sample.dcr new file mode 100644 index 0000000..0142348 --- /dev/null +++ b/js/tinymce/examples/media/sample.dcr @@ -0,0 +1 @@ +XFIRn \ No newline at end of file diff --git a/js/tinymce/examples/media/sample.mov b/js/tinymce/examples/media/sample.mov new file mode 100644 index 0000000000000000000000000000000000000000..9c0a0932c5be644ceca99e48cce317b0643918e6 GIT binary patch literal 55622 zcmeFYXIPWX*Drb}gb;d%P=tiuJ4%(%t2B|Klu!jhIsyU`dPfulR0LE+P^u_JTIeW9 z5d?fhdPk*7lXC7@p67Z0=X&1{`&|3O+1DQYWzDRaS!>OjnS0jUi2wkgT>OK*ef&`< z6fqG%pum4gGy_+?ysm*PkE_>Qod{LULjC>(007hy0Lae+5RiFHsQ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l;I<+&a&67c_i#O=fusRP{$K3wva0H1*gbU-JH14Muh0N!Z>9yq)O4B(dez{TX? z007=IgA@S3!BEiMD8Lz_wm(VlfS27J;h8Xd7vr-3(`q%2HdnG7`F*|k$1gSmKV5kn z+0Pu{5oMrdr%@~et$hRDQ~|Y2K7Z@w??>$fKxZ#7@B#0M0NVHK^&@*|kb}-BDFzRJ zw*5(8mz4HjlW%E;KX8Lk=^;6jD+?MfR~})T({lgo^U%MGT9oHO4*%f=9Wsv`z##tt zPmG8AZ|mXJ;AF-NJk1#Fzo#Ga!RbH{Xk81`gX#P0WT7Liz>*tc-0J31a7q9fxa14m zz-)wpFFjBU1P)RIk7a~}So%7hnYKHx{4>l`n08|Mi3xQEnvWHLzUBuWdWXgQl_GHS z{qM6tW()*?hr|Js{P(W^(+}>SGCv+P@h1SZVkz9sEOMX}4m9#I(8%vc^cN*Ew+}x489Hu0st~Ma3lZ# literal 0 HcmV?d00001 diff --git a/js/tinymce/examples/media/sample.ram b/js/tinymce/examples/media/sample.ram new file mode 100644 index 0000000..e2ce04c --- /dev/null +++ b/js/tinymce/examples/media/sample.ram @@ -0,0 +1 @@ +http://streaming.uga.edu/samples/ayp_lan.rm \ No newline at end of file diff --git a/js/tinymce/examples/media/sample.rm b/js/tinymce/examples/media/sample.rm new file mode 100644 index 0000000000000000000000000000000000000000..51dddd2e261f57b49856252ad26f47b4967ff31f GIT binary patch literal 410 zcmdN3@^xciU=RXg2w)Eg@(%zqjX>P>Cm@(9o`HdJK2SiNfq{Dm0|S>d1B0s?0|WDa z24)6sUzdO&pxktj4h9BA69{HB0O|o^5MbNFz`$G0<5-%KnXeFBQk0sQE0PG}=vU|# zjftvfKKrq-V7r+X@-r!E<3Cm1Lg*&SZ#6dU<%mu1e0pT!D z7yqCzV*^G9hAj*{U^9RuW9I||0|f;p8wH4sOkF@3Ca^3nLLetUJu^8mM>j1qCp9xK PEgz`C2ZF&`xPc@9#??gJ literal 0 HcmV?d00001 diff --git a/js/tinymce/examples/media/sample.swf b/js/tinymce/examples/media/sample.swf new file mode 100644 index 0000000000000000000000000000000000000000..60d02a7fc4eeab894d99e91128ddfc983ef8801a GIT binary patch literal 248 zcmV$HN@WY#B2&q}WLK1m zl&ys9LJ>nKQCSArlRc#DBzsx1WKHh${hjyy-N(I;d;hxrn8$O@%;$V&;mpfMU3pra^~cc+B&Temmd4X2v!)Fjkg{ yNQS2tIY%${#5M#t8(-(e!gZJ!ws#u_@dXJE2QFVFXo^}AVtFT&`=-(zn=Il&;(fgU literal 0 HcmV?d00001 diff --git a/js/tinymce/examples/menu.html b/js/tinymce/examples/menu.html new file mode 100644 index 0000000..f8a1ff1 --- /dev/null +++ b/js/tinymce/examples/menu.html @@ -0,0 +1,16 @@ + + + +Menu + + + +

    Examples

    +Full featured +Simple theme +Skin support +Word processor + + \ No newline at end of file diff --git a/js/tinymce/examples/simple.html b/js/tinymce/examples/simple.html new file mode 100644 index 0000000..9b2765b --- /dev/null +++ b/js/tinymce/examples/simple.html @@ -0,0 +1,43 @@ + + + +Simple theme example + + + + + + + + + +
    +

    Simple theme example

    + +

    + This page shows you the simple theme and it's core functionality you can extend it by changing the code use the advanced theme if you need to configure/add more buttons etc. + There are more examples on how to use TinyMCE in the Wiki. +

    + + + + +
    + + +
    + + + diff --git a/js/tinymce/examples/skins.html b/js/tinymce/examples/skins.html new file mode 100644 index 0000000..eb1bd49 --- /dev/null +++ b/js/tinymce/examples/skins.html @@ -0,0 +1,212 @@ + + + +Skin support example + + + + + + + + + +
    +

    Skin support example

    + +

    + This page displays the two skins that TinyMCE comes with. You can make your own by creating a CSS file in themes/advanced/skins//ui.css + There are more examples on how to use TinyMCE in the Wiki. +

    + + + + +
    + + + +
    + + + +
    + + + +
    + + +
    + + + diff --git a/js/tinymce/examples/templates/layout1.htm b/js/tinymce/examples/templates/layout1.htm new file mode 100644 index 0000000..7248c23 --- /dev/null +++ b/js/tinymce/examples/templates/layout1.htm @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +
    Column 1Column 2
    Username: {$username}Staffid: {$staffid}
    diff --git a/js/tinymce/examples/templates/snippet1.htm b/js/tinymce/examples/templates/snippet1.htm new file mode 100644 index 0000000..98f42c3 --- /dev/null +++ b/js/tinymce/examples/templates/snippet1.htm @@ -0,0 +1 @@ +This is just some code. diff --git a/js/tinymce/examples/word.html b/js/tinymce/examples/word.html new file mode 100644 index 0000000..1681c4a --- /dev/null +++ b/js/tinymce/examples/word.html @@ -0,0 +1,67 @@ + + + +Word processor example + + + + + + + + + +
    +

    Word processor example

    + +

    + This page shows you how to configure TinyMCE to work more like common word processors. + There are more examples on how to use TinyMCE in the Wiki. +

    + + + + +
    + + +
    + + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/browser.css b/js/tinymce/jscripts/tiny_mce/filemanager/browser.css new file mode 100644 index 0000000..48b3075 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/browser.css @@ -0,0 +1,84 @@ +/* + * FCKeditor - The text editor for internet + * Copyright (C) 2003-2005 Frederico Caldeira Knabben + * + * Licensed under the terms of the GNU Lesser General Public License: + * http://www.opensource.org/licenses/lgpl-license.php + * + * For further information visit: + * http://www.fckeditor.net/ + * + * "Support Open Source software. What about a donation today?" + * + * File Name: browser.css + * CSS styles used by all pages that compose the File Browser. + * + * File Authors: + * Frederico Caldeira Knabben (fredck@fckeditor.net) + */ + +body +{ + background-color: #f1f1e3; +} + +form +{ + margin: 0px 0px 0px 0px ; + padding: 0px 0px 0px 0px ; +} + +.Frame +{ + background-color: #f1f1e3; + border-color: #f1f1e3; + border-right: thin inset; + border-top: thin inset; + border-left: thin inset; + border-bottom: thin inset; +} + +body.FileArea +{ + + background-color: #ffffff; +} + +body, td, input, select +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; +} + +.ActualFolder +{ + font-weight: bold; + font-size: 14px; +} + +.PopupButtons +{ + border-top: #d5d59d 1px solid; + background-color: #e3e3c7; + padding: 7px 10px 7px 10px; +} + +.Button, button +{ + border-right: #737357 1px solid; + border-top: #737357 1px solid; + border-left: #737357 1px solid; + color: #3b3b1f; + border-bottom: #737357 1px solid; + background-color: #c7c78f; +} + +.FolderListCurrentFolder img +{ + background-image: url(images/FolderOpened.gif); +} + +.FolderListFolder img +{ + background-image: url(images/Folder.gif); +} \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/browser.html b/js/tinymce/jscripts/tiny_mce/filemanager/browser.html new file mode 100644 index 0000000..26eb4e4 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/browser.html @@ -0,0 +1,150 @@ + + + + + FCKeditor - Resources Browser + + + + + + + + + + + + + + + + + + + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/basexml.php b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/basexml.php new file mode 100644 index 0000000..b21b16c --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/basexml.php @@ -0,0 +1,68 @@ +' ; + + // Create the main "Connector" node. + echo '' ; + + // Add the current folder node. + echo '' ; +} + +function CreateXmlFooter() +{ + echo '' ; +} + +function SendError( $number, $text ) +{ + SetXmlHeaders() ; + + // Create the XML document header + echo '' ; + + echo '' ; + + exit ; +} +?> \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/commands.php b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/commands.php new file mode 100644 index 0000000..a3f5e41 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/commands.php @@ -0,0 +1,211 @@ +' ; + } + + closedir( $oCurrentFolder ) ; + + // Open the "Folders" node. + echo "" ; + + natcasesort( $aFolders ) ; + foreach ( $aFolders as $sFolder ) + echo $sFolder ; + + // Close the "Folders" node. + echo "" ; +} + +function GetFoldersAndFiles( $resourceType, $currentFolder ) +{ + // Map the virtual path to the local server path. + $sServerDir = ServerMapFolder( $resourceType, $currentFolder ) ; + + // Arrays that will hold the folders and files names. + $aFolders = array() ; + $aFiles = array() ; + + $oCurrentFolder = opendir( $sServerDir ) ; + + while ( $sFile = readdir( $oCurrentFolder ) ) + { + if ( $sFile != '.' && $sFile != '..' ) + { + if ( is_dir( $sServerDir . $sFile ) ) + $aFolders[] = '' ; + else + { + $iFileSize = filesize( $sServerDir . $sFile ) ; + if ( $iFileSize > 0 ) + { + $iFileSize = round( $iFileSize / 1024 ) ; + if ( $iFileSize < 1 ) $iFileSize = 1 ; + } + + $aFiles[] = '' ; + } + } + } + + // Send the folders + natcasesort( $aFolders ) ; + echo '' ; + + foreach ( $aFolders as $sFolder ) + echo $sFolder ; + + echo '' ; + + // Send the files + natcasesort( $aFiles ) ; + echo '' ; + + foreach ( $aFiles as $sFiles ) + echo $sFiles ; + + echo '' ; +} + +function CreateFolder( $resourceType, $currentFolder ) +{ + $sErrorNumber = '0' ; + $sErrorMsg = '' ; + + if ( isset( $_GET['NewFolderName'] ) ) + { + $sNewFolderName = $_GET['NewFolderName'] ; + + if ( strpos( $sNewFolderName, '..' ) !== FALSE ) + $sErrorNumber = '102' ; // Invalid folder name. + else + { + // Map the virtual path to the local server path of the current folder. + $sServerDir = ServerMapFolder( $resourceType, $currentFolder ) ; + + if ( is_writable( $sServerDir ) ) + { + $sServerDir .= $sNewFolderName ; + + $sErrorMsg = CreateServerFolder( $sServerDir ) ; + + switch ( $sErrorMsg ) + { + case '' : + $sErrorNumber = '0' ; + break ; + case 'Invalid argument' : + case 'No such file or directory' : + $sErrorNumber = '102' ; // Path too long. + break ; + default : + $sErrorNumber = '110' ; + break ; + } + } + else + $sErrorNumber = '103' ; + } + } + else + $sErrorNumber = '102' ; + + // Create the "Error" node. + echo '' ; +} + +function FileUpload( $resourceType, $currentFolder ) +{ + $sErrorNumber = '0' ; + $sFileName = '' ; + + if ( isset( $_FILES['NewFile'] ) && !is_null( $_FILES['NewFile']['tmp_name'] ) ) + { + $oFile = $_FILES['NewFile'] ; + + // Map the virtual path to the local server path. + $sServerDir = ServerMapFolder( $resourceType, $currentFolder ) ; + + // Get the uploaded file name. + $sFileName = $oFile['name'] ; + $sOriginalFileName = $sFileName ; + $sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ; + $sExtension = strtolower( $sExtension ) ; + + global $Config ; + + $arAllowed = $Config['AllowedExtensions'][$resourceType] ; + $arDenied = $Config['DeniedExtensions'][$resourceType] ; + + if ( ( count($arAllowed) == 0 || in_array( $sExtension, $arAllowed ) ) && ( count($arDenied) == 0 || !in_array( $sExtension, $arDenied ) ) ) + { + $iCounter = 0 ; + + while ( true ) + { + $sFilePath = $sServerDir . $sFileName ; + + if ( is_file( $sFilePath ) ) + { + $iCounter++ ; + $sFileName = RemoveExtension( $sOriginalFileName ) . '(' . $iCounter . ').' . $sExtension ; + $sErrorNumber = '201' ; + } + else + { + move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ; + + if ( is_file( $sFilePath ) ) + { + $oldumask = umask(0) ; + chmod( $sFilePath, 0777 ) ; + umask( $oldumask ) ; + } + + break ; + } + } + } + else + $sErrorNumber = '202' ; + } + else + $sErrorNumber = '202' ; + + echo '' ; + + exit ; +} +?> \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/config.php b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/config.php new file mode 100644 index 0000000..c423c40 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/config.php @@ -0,0 +1,61 @@ + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/connector.php b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/connector.php new file mode 100644 index 0000000..a1116b5 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/connector.php @@ -0,0 +1,107 @@ + 0 ) +{ + $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ; + + if ( ! preg_match( '#^/$#', $GLOBALS["UserFilesDirectory"] ) ) + $GLOBALS["UserFilesDirectory"] .= '/' ; +} +else +{ + // Map the "UserFiles" path to a local directory. + $GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ; +} + +DoResponse() ; + +function DoResponse() +{ + if ( !isset( $_GET['Command'] ) || !isset( $_GET['Type'] ) || !isset( $_GET['CurrentFolder'] ) ) + return ; + + // Get the main request informaiton. + $sCommand = $_GET['Command'] ; + $sResourceType = $_GET['Type'] ; + $sCurrentFolder = $_GET['CurrentFolder'] ; + + // Check if it is an allowed type. + if ( !in_array( $sResourceType, array('File','Image','Flash','Media') ) ) + return ; + + // Check the current folder syntax (must begin and start with a slash). + if ( ! preg_match( '#^/$#', $sCurrentFolder ) ) $sCurrentFolder .= '/' ; + if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ; + + // Check for invalid folder paths (..) + if ( strpos( $sCurrentFolder, '..' ) ) + SendError( 102, "" ) ; + + // File Upload doesn't have to Return XML, so it must be intercepted before anything. + if ( $sCommand == 'FileUpload' ) + { + FileUpload( $sResourceType, $sCurrentFolder ) ; + return ; + } + + CreateXmlHeader( $sCommand, $sResourceType, $sCurrentFolder ) ; + + // Execute the required command. + switch ( $sCommand ) + { + case 'GetFolders' : + GetFolders( $sResourceType, $sCurrentFolder ) ; + break ; + case 'GetFoldersAndFiles' : + GetFoldersAndFiles( $sResourceType, $sCurrentFolder ) ; + break ; + case 'CreateFolder' : + CreateFolder( $sResourceType, $sCurrentFolder ) ; + break ; + } + + CreateXmlFooter() ; + + exit ; +} +?> diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/io.php b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/io.php new file mode 100644 index 0000000..3ffb7d3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/io.php @@ -0,0 +1,99 @@ + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/util.php b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/util.php new file mode 100644 index 0000000..8b87fcb --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/connectors/php/util.php @@ -0,0 +1,37 @@ + \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/frmactualfolder.html b/js/tinymce/jscripts/tiny_mce/filemanager/frmactualfolder.html new file mode 100644 index 0000000..98de246 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/frmactualfolder.html @@ -0,0 +1,63 @@ + + + + + + + + + + + + +
    + +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/frmcreatefolder.html b/js/tinymce/jscripts/tiny_mce/filemanager/frmcreatefolder.html new file mode 100644 index 0000000..95b2d8b --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/frmcreatefolder.html @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + +
    + +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/frmfolders.html b/js/tinymce/jscripts/tiny_mce/filemanager/frmfolders.html new file mode 100644 index 0000000..d5bf6da --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/frmfolders.html @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/frmresourceslist.html b/js/tinymce/jscripts/tiny_mce/filemanager/frmresourceslist.html new file mode 100644 index 0000000..33c550c --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/frmresourceslist.html @@ -0,0 +1,157 @@ + + + + + + + + + + +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/frmresourcetype.html b/js/tinymce/jscripts/tiny_mce/filemanager/frmresourcetype.html new file mode 100644 index 0000000..85089ce --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/frmresourcetype.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + +
    + Resource Type
    + +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/frmupload.html b/js/tinymce/jscripts/tiny_mce/filemanager/frmupload.html new file mode 100644 index 0000000..c2bfdda --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/filemanager/frmupload.html @@ -0,0 +1,109 @@ + + + + + + + + + +
    + + + + +
    + Upload a new file in this folder
    + + + + + +
     
    +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/ButtonArrow.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/ButtonArrow.gif new file mode 100644 index 0000000000000000000000000000000000000000..a355e5a449014d40f6e686aec027356b9e72c626 GIT binary patch literal 138 zcmZ?wbhEHb?doRyP?sz1@R%qk?NW&|^ p|eTtnS=Y)v`XcZE0Wm%(S+{n>TgunLDTH*uh2T&!5`4%$c3C%y;hIyZ_+f R9g8PVpFMx^^0^>`H30UMeqjIr literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/FolderOpened.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/FolderOpened.gif new file mode 100644 index 0000000000000000000000000000000000000000..0c5dd413efe52ef8df245c62d38abd3fb5531faf GIT binary patch literal 132 zcmZ?wbhEHb6krfwSj5I~?p*T!b93g*Vfg=l&j0`a85n>J5UKc+g^_`QjX?*<2C5Wb zU|{yl*mXxoV3&KA=w%M0D)qo6IdPeS4hsuYt(PRqFy=dMJ1DS(;Y^uj?AqnKDvKH$ h4uqvBmU_;}`s(90J$U9C1Ji>22?c3Bc`6JH)&Op|Ft`8! literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/FolderOpened32.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/FolderOpened32.gif new file mode 100644 index 0000000000000000000000000000000000000000..3e3fcf56cc471cb8f44c5edb5f23407f120b75a9 GIT binary patch literal 264 zcmV+j0r&n#Nk%w1VITk?0HOx~fPet_`1s7sW&i*HnVA6p%$fiHng9R)A^8LW000L7 zEC2ui03ZM$000Bcc)HyFFv{78y_ZT7y6*y^J)B{lXE-t?>Kf|WzJ*zbST3@`>l>e7 zXTYP`jx|Fqxg-!3v!5%8G&mPg=26MzE|piEc$^ay3Qmr2&HfAsp|@13xD0Kw@Z;yk4lxJy}TbYwv1&v{IeS%6~q)(8cfvHH9 z1FWAXijuHrXtPjLUZ*y?s=NoSsJ^hlX9AX3p}@()!dFnYxLu3VoKMAM-ecScv*YCD O=I1Nv>g((j2>?5Tf_QiU literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/FolderUp.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/FolderUp.gif new file mode 100644 index 0000000000000000000000000000000000000000..ad5bc202670bfa12195e767c28050b236089e940 GIT binary patch literal 132 zcmV-~0DJ#ONk%w1VGsZi0HOx~_xJbz|IYu;oSd8h&dy{1|C|5-0RR90A^8LW000L7 zEC2ui01yBW0009?c)Hv>5E}PD2&Iha2KgWnMapoU=v5GtnPtYC3GCs*Ml2M2edj

    h0KmVcuWJD*FM9~M9v0;0gPtyf2D4lb<@_VjwB*Bz)~b>#zfjC@IsD5w|Oidff-V#g8}2kNqXb| z3*=vg3;-`U_%`_V2~bM`Zz#+RT^Sx39b;sQ1LKpSLm`J&E4zlMTrP)fis|!OD8)8jZh1;Bx0l-= z|5olUpD))!On*&71F@oVS4HgTQTv+9Iq!CAXG00xRC*#ce9p0;gBC#?#*V6(fm&gZ6(iJ-?<*$cbd*Pk~-cu8ti%)$w~m zF}hZExT5MvJfM2lQ43BrJ}jtiY)z1z1`ujO>Tf(rd_j!es+s?@v3Z@+H#wzy1)VN~ z@>^29db%?9H2l8(hXn%^4iv!}88EbHo(0)mmo&(%=?eP|btA=e;a;G2Q0DP z{-2wtWFHm{1TQkUDOA}p5{MVR_NXWH$j~Q!`r_`FL9mV*0)_R8X_@LhsNeFX+sNR+ zSfg*(_dLbjNJHJs(*8ZS&&0=-PQx#BQM^m*xk9gs-%qS znBFlNEK&BnY6)r2oZVd1)G6?=(lHPMAXN*g^vz7X7pY-0Z6&Aw2(%UNZ;9`9D~)47 zrrC(Kl^)sZ>YQrb0&SZ5`MJ2}gUe;0&|w@Y2TdTqQnY+2%QP)b0SNt_6c z?vCNb#g{jS zqzS1F7Yi`j+&oF3vk@0`c_AlBY-{D z_{yQ;#4A33CbnP$uv<4j5!vO4<#7+FSQ$k_Zp>IRAV4-*NE~_OF;=T}DqVd0X!Bwp wStD5{bcIq>&_CW_%>cTRhtqE{M<8rT)nil z!>wDl1_cGpIX9=cxY)_bDS6JhrAwC@0;zN7lIJ9Qd3jyCc5Tj_ImyXD;@rJ^_ma;g z8yY5`d;cG#;{UlRQ>F+A2pqe249Ed0F-%To`2XJ!Xvn$mii(QIjvZ@hX<_)!zyK8e z52b({B7x#h7DfgJLk1m?dXS$O*!~}wQ6SMQ*?%Hs(g~SEVHZ}EoNC$|w?XZ5<=d*g ztFz3tLuQ?K`?%vx*6#ZsEPVF1?cDu#wReB{`LnL&mDMf!E$w>6I^8|>%FP4+RFsZbl(HUW2zRj7*mpIc#(i7%CXAa&G$1 zb$HJi?&sBSc@@$XSXf!41ycM4mR3*HJEyr}!-dTZEo^K(lB@3>s9p2_-O+~A4J>>T HEDY8FY?%te literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/cs.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/cs.gif new file mode 100644 index 0000000000000000000000000000000000000000..b62bd026061c32a9c6e5e0b7bb0f63f29e2b3dff GIT binary patch literal 224 zcmZ?wbhEHbRA5kGSj5J_(8AEt(sJzBF^2yPK=2<7fDFZ-EQ|~cYz#UeQIJ{&=A{`~ z7yn&Y>lvzH@j8}i<%6w^G1qDysAQ$w*7Cw zb)JWJSY*qv{Jo}@*85%ep#_^mxz@^Ek!v|my$+pkc#iYHgR|<)Hv*145}Xzy*?#uy zW+72u^}VkibX`f?;iJ!XMxcLs>SwXJYbV{lxV?&3^z_y8;(O=jz293O)tFaX(OQ+m V(AC}3+t;1pIBD{fscM`I)&R&*NlyR( literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/dll.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/dll.gif new file mode 100644 index 0000000000000000000000000000000000000000..9b54964576b86bdff354807f15bf8d7b45c26a87 GIT binary patch literal 258 zcmZ?wbhEHbRA5kGSj5KA(!y};*s+$DmjC}5fZ#tE02zuuSr{1@*cfy`q9C;l%*Qjd z?)>vVsp-1YB3p;!?=`iwp6{W_Q5=rtdap9Js!4P!*0z~@{&9%b7hSQiZSf+3>%l=4 zbC?{xRHYJ^JbD!_YN>wVRmm#fINl3>={^y&r(Zh2+A*{0{Dp5OF3+;}xtHpSu`tBg zGna`sL=;C?F*CGG>|*W7kZQMY%L(e5o+#PMJTG{P!~)G$mL+Rfuc**k!@v;4&?&i6 zd2`3?whaZ+?fYX6_}i99@A5dc@yywS=ck>!bS&ZO&I-occkbT1e<$7H@sp>|OgR~> E0d_=epa1{> literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/doc.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/doc.gif new file mode 100644 index 0000000000000000000000000000000000000000..b557568b3d1ca19f9520b38a4c74de4e4abe0301 GIT binary patch literal 260 zcmZ?wbhEHbRA5kGSj5WE($aG5*f9o%{|rD320#W7DE?$&WME)r&;fBkY8jYMM(kq! zXJF^1sbKNi_rQt=M|)>{Hf)}-F6;CphX;mvXV)1h&Uf|7+UJv?arlkMs(3X`m9CP_ zv)3+@oW^!z&6Ep|?ycG7>(EguSdif;%5!b$-mI&xN9DLr?#s-QF^TF-@eHzvD|N|b zOf4v2R;u;NYnoIoQPMuWEU$95PkPn_w-&EyGa42)SIuA0xw3g_dy3)$ug*<%>t}2f z_1`SBb+_-1>AS@Cs_Z|y`tZVS$C7M#_MAI&;Bx2%Zo@;jPiRElfABCu;mOly&tE8T HGFSruuDNnD literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/exe.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/exe.gif new file mode 100644 index 0000000000000000000000000000000000000000..758499394afc5814b9da3e02d6b2996623ea3ece GIT binary patch literal 170 zcmZ?wbhEHbRA5kGSj5V3?AWoEmKKKp{}~v71PA~bK%n@Og^_`Ql|cu@0jXtR&X3r2 z=bynT&((V^Uh}fgcb2F-r!c4K#l%&et8O!#Y3N#3U@Bnaczx0Bu1&8c>vg>^p7?UH zZNaiF>{E4?pUHaCwNz`jZ!Y_szmxXvGM=^K87~uK*>B$dd{+jey?NVLeM+n`tOzMk R;r49r>h9_76XRsC1^{%DM?C-l literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/fla.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/fla.gif new file mode 100644 index 0000000000000000000000000000000000000000..923079fc6bbc36b0f3cef03c381d42fb9962c753 GIT binary patch literal 946 zcmdUs-ET{A9EZO<+S9YC?Wob8m!v&2wj#5`EE?U~b1XJhOV`LE=R#U_A%>LBTk4|S zDr>A5I=U%J+YM1$%pthhOzORHK?$-Hd%=a%c}WpTjsL=P_1t})AeVLSTYuigUXan3z0}9Eu?9h z4g>-bhr_|LX#{*U>a$wohya=sD6q38WU|M2-pz4VO66u*f^)O9+M!lQeLk<%>M)rS z@wg8m9uWb%T~Db3Za0TeOoiOEDnX+NMMe>+W=#Q_8XFq2BNU$qP77YIcVbf*696Fd zj|ur7p?-?809aV`H~#M@Ajvq{CbpuYvZaL}@K*dVj_I0@`ubTVq)>xVDrh4rms5^3Spr$J-t`?u;zkBE4#^Dz7jki4oSKP`v#fm9opMHCnZ;} zz1GBI{`)<+KP-zs;Tg$M-Djcl;f+t)SC6%Q2YyxP#?LXbXR8Ot7T)hy{Qg~6P_(9= zkQdf^l{=`riw%{(Tm{ue)-_qW)%G&WtZSVquZKD9wz*vvb@{U-2|A~ACfIDf%*e$P z?cUS3lIChBh={$LNy`98ZaqW`&r0BuD z4e~{vlsT1)@1B+?J7{TnC0!%;?@hifwn#f%#%SZ*H~5S4*^M6Md&ZgN-V?5w@~~=t z{vj(Nr0)EH;qJQ9o~mu@T=}_;Ri6HWl}~Q2nBysSj+e}{F=hLUxurkNGZZr8)2@BH zc*QJFQiqE)DV<5`2@a_I-->GXJTEl6a!_e0hA-#`rlP|j&e=bb4-A%VXakYh*qgmk zvHe)KIKK@GwKB_#Mav3D*S`~KYRv;jX8bUE+RCqgjUTO z!>wDl1_cGpIX9=cxY)_bDS6JhrAwC@0;zN7lIJ9Qd3jyCc5Tj_ImyXD;@rJ^_ma;g z8yY5`d;cG#;{UlRQ>F+A2pqe249Ed0F-%To`2XJ!Xvn$mii(QIjvZ@hX<=w#VE7Ld z{?7oU!6cAD3{d>Z!pOj2$e;sK4Du5L+y4VI3M85(`%k1yIw5l??81tYQ%!s0HmH5B zd|S15b(Xny$gJ~jA9viz+I|0nh0or$qwC-1oqj!Uc6Wh(V`Y&}TYG3|b5l!oMQw0E zU2}DBPkvau_T>@iN3<4dSxx*7gJJ}yHGHWubb-ZC< zSlGlWA{rr3aE6m1Db7hm;O9fu#z~Ku=EN*`;OKotHpw{YmFPBEF7n0SPh z-5{fcDcGTDk%p2-0>i<1jU3uMQ*0^|Rtd8?vkEi_C^|6;eq&3yu%Yol*KBr%M_EkF zYZ-VLm6m7(GRQOXifBkk9A$F2w>LUu!BPQ*!<<6eDjpXepmF>6I+p(?v&mbqn H!e9*mGolF; literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/htm.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/htm.gif new file mode 100644 index 0000000000000000000000000000000000000000..a9bdf0030869bb72b8115ce01f776f080576c7b9 GIT binary patch literal 1527 zcmeH`{ZA8j0LH)9QYgijQL3Xb9mPUCP}fsqdcG`2MWB@s=vZ*wTcIvP>jLr2GVQVz zsSK7QR(9EZxjA2Q#At5f;%#Q}wifXeUv8S=#l7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hM9wS;j7`s`7wKLDp*>DhI@QNg9!o+0tN&L0099CjEIQ}9w`}xc~qK1}B2eunLhO1qbA^(8kG)-OZLR3gZX7ufVg|lgu6kyp9dh2Lp`={0ea3 zRk2Bt6j2zmPk^)m0|*c>7hphwdAIZ_Tu9)AfCB}5AQpJ`>%gY~7hP4_$kEY6ivuWr zG7x}|0$2f9dO*-I!MFjSBu46|fSW;`HDGmoXF$NCPz@$-^C$~x1)sz&7Wm{;z|D>@ zT50Ow!0F9suh7Qo*i~JLu`3*bN(-%0)23ZRSgqsKfC6c-Vo@4Qc<-OXa5)%S%y@AG F06XGF$;AKw literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/js.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/js.gif new file mode 100644 index 0000000000000000000000000000000000000000..fe0c98e975c3e36eb30275c584f5cfdaf2bb0b52 GIT binary patch literal 274 zcmV+t0qy=rNk%w1VITk?0HOu}goFUb#>Rw%g#Z5l00030|NsC0{{R30A^8LW000I6 zEC2ui03ZM$000BmXe!+PP|3N9y*Oh*C>2_$F`ZY5XdwigX@IE+vgH@c7VW_sE=S8CAk;96zye@OEi4J7%yYsMBs14lfQi{kx>D-2z!ZXXBlpHGLXfU%%aXw0F>cMSa3P;YN@~85 zXs1wZZWz^I$sBYt#31HnOf{Juf_6(VW^93iSL5Ui2-3o>8d&O_<;{7#7K;Vu(OKI1 z;;nFSdR=&TNjQdbgFbA98Gu(;7;}G#8%mLqI%r`kjz?`jI+KK=hk>Yqn`^8sag(rR zlwho{Z*H_0P?(bV5^7Hid_8W(lfGF~=&@ij1P5SHA!N?yuXeKm(zYURrXvvm z02f3pqh`0;IW=%{9SIi~0s#OTdVEQ2Ol&zEl$9KW28V}scnlMdOpzUuf|p+%1)7?P z01XV0D}SVKrgN#Pn~IA~O|XEpgtw{zx&ywUzrd%Nxy1wo$jCSwwH=v>x)%i*2akTq zHq?X(tPK|nG~C`lOry0C7kB42j-ocmf3*q&0}5#WYDWEvmd}fogI6N`T1e}k!-tOq z(ohn}-H8`1Wc?9D>*5=M-@a9>NX;Y2kQ+xsakOZHqDGMu1u7}oQqW64yn5l}LW1JS wh3#O{lo3win^+%9nY4LhR#Tomen<@mRfIy6Sg}_1V5zIuua$U+O%VbBJG0Wu*8l(j literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/pdf.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/pdf.gif new file mode 100644 index 0000000000000000000000000000000000000000..4950ec87c13f9918009b13ae2db6732e07317cd0 GIT binary patch literal 567 zcmZ?wbhEHbRA5kGxT?c&?%cWOmX-nn0?EnA&*#k9yLa!kYuBE81--YlJa+8Z+O=z= zqN28L-TFKz$jQm+d3Ls!m)G;X$DT(;JvTIbuW9(arRBM$;q&V1=Rr|Zrc8OBocum0 z>iOQi_cS%Lv$N*_4RmsP@8tEoXUg-Qp6A)c?~98qEiH?Si~j=w0|?x^cMrw{^GPHW zf3h$#Fz5gw5P@~~Qom*ewqZhw7 zKBurJtN!*1^O!YOYu9|)YB8_t^WW6ca;6rh2(6sF+WgwC%rb5DN$RB?)j2&i$xXpi zXH<91Dwz;8FKv0soTXD@*19hVEcJDrymhOr!sL)mzWyOW976j8_W0~Otj(@`;%MZF z07c$2>YI-rW@Nm4^}HZEi}c~Me&>Z*v_(|+KXSSjEdDG&n311fNae_ty(exka&YjA z3b14-FdgnHb#0U7V94icWRT)}X6&|fc5Aw}g~uJWRtM%biI0UgiAk;v%sgIhj0-kh zc1hP(n4!^dprL6J+ky=&8(u%P2${xg#2}GysD*KoI+sXnLPBFRqx9EWgM|t!Ij4C= zs_n>1(muUHq|?e^qLB9WHL>g!0Swn9Z;EDi%b6A`9lXKl>+6tVt+!-b+&ZS;DoLw1 LBt|rC3S literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/ppt.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/ppt.gif new file mode 100644 index 0000000000000000000000000000000000000000..023431c16401f84d3be65bc112f9d0ac38a6aba1 GIT binary patch literal 254 zcmZ?wbhEHbRA5kGSj5KA0s;)jjvZrQVE7M2U;tz*{$ycfU|?g=0kVNA6&M(p4`=LR z`)6S1rm11^I`+Vd2SD zmu}o7y+v%V%zmD2V?;>*==MW7XXv~x5)aMfBoK?F zW6zSoF1YE1%;Xl!+`|~*F%!825>LA^kD=kxDLIWMmuhA@4aseU*nlRFhyRAJe17_T zednEgTH2cH8+u%Xi^xwCx~}JPxqLn^%Q8ZU<2Y8uilPXDpsK1M$f77FRLmRXFfhr&_Mo^w%1SiCjqEi$FfC3CdWW#Vx#+XI9hG0Y#wXle3m_taUP(G1Bk%%bi zd5%*7FENslF#v987>gJtA&5B&>WZQ=Fb5Pp9HGJyIv5N>H3vAAW!Z2z40t7sbU{*C zNskB`r|3|WSp{pFM$*GP~H>s_TyfBt%-F5T8;J#~8H?0~s+ zXXB9PW>r(KZ`8W`gfA8$e1fNO%=5#NJh;x~k4ES33@n~zf1OYA*v&hGHzSS4?YPRQ&w4x)AxOBAXi6+*mu{KIuGh-r|Wzv*e+FR&JZ$xH1zUYu>cG z&uzI9Yq2%M2+ZunHb+$N1&swYAuDxyBGP!IrSI*qb3{MTMZ?x0V6mWcE z|9I}gv+Zq5){pLIssew!b1CU`96NN@Lmgc;S&v>{nR6wN1qU|2T6&+L3hhaM(Mw%* z=Cbw&*_@SYooKank`p0e+U}nkcSN&;J5R;>2P@wHG7vNmO}g(4+wR?39xu;~%vQg< zR5uH^PL`HTjZgH3$5R)tj|9pq+DGQe#QhXwJ1IW#TFzKpt=1433zr-oN$pzWPW3N) z3vDY`$G2a5h9EB2ESek@@obZ&?AYo9?}a@b{_0IaO93CVWK6}Ix*b7F+;uhM-Q5?z=G__V3lY5wu~{Q`c_Bd p$!sXy?YxvMau4r&IQrbrt}oV%E%z;d_m?(Y)4DIetHV#c_%B&pUbg@M literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/swf.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/swf.gif new file mode 100644 index 0000000000000000000000000000000000000000..5df7de574966c8f4738c337d97c97b362cfb9f91 GIT binary patch literal 725 zcmZ?wbhEHbRA5kGxN5}U<>i%K-E;5x^Y7o^pSyOC!7ym=-o5X?f6va&j*5y}yLRol zbJrLYoz9&**D__!lqqwfidzf~4XbDFV}EmQU$yT;&^-7{zD+O2zova1E6 zTHe3^Uft3o5mY>7=~@QOpgC*zdL>sU7gulHdoH_rN_NlEDRY)aRZoe^Zn<~w`L%1; zdU|@^e}7+HUH$&~dj&K6yl zojL~V+xsHH@c`o|9UhyC1r82J zxwvJ|?KtsmX#fwSz>CD02Ob=1WztX6Yq-Gqe2S+w&#yg)7Bt*sVo!_W*x)34c}@Y7 zfW?X=#ttTpbtl%GzNUM0S(}W`jNJ=z7`bH9q-4uKzYW*nGST5k*x}Susnz8aaN);% zk-6GdPqd>OoiEPR_xjSi@ycd_dkEKgTed$ sRj~fxwYl+MVLG=`U+uM14J=|F5Athe7Cva=(YhfkFW{!(D!^b300g%yMgRZ+ literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/swt.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/swt.gif new file mode 100644 index 0000000000000000000000000000000000000000..7807c075c4082d561fd2f08c9a20ab4844d8cee4 GIT binary patch literal 724 zcmZ?wbhEHbRA5kGxN5}U<>i%K-E;5x^Y7o^pSyOC!7ym=-o5X?f6va&j*5y}yLRol zbJrLYoz9&**D__!lqqwfidzf~4XbDFV}EmQU$yT;&^-7{zD+O2zova1E6 zTHe3^Uft3o5mY>7=~@QOpgC*zdL>sU7gulHdoH_rN_NlEDRY)aRZoe^Zn<~w`L%1; zdU|@^e}7+HUH$&~dj6nnc&>9RAQ*ojz&Z49h@M%{gzUy7xRu}X=tXv8QUvk`Ss)JT|f=Hm=e z*-sPK9%x)~MqKsBv4C5Z9>La?bkD@4;205_cZ-x olY3FW;k4_-V{to`9yGAAE9cT`#-ccAhw4`jpjrZ$Po=+>rS<-e!jPxbB|+;eoCFoy*4?8no+b9O@c7 znu6TZTic2fJ10d?=r%vv9_HjDCz zuLzsz8*EthN5gskqy(RPrt4~5-RICX$;@Huv^eHaHuZ)ITCWCd#;pH0iBv~AT` zy{2TX>>jQNx6%cN_>V4GmXLeO{Gvrq>3P1>XKIxXvqqdd(YocrnJ3qzF1@(?>e;q6 V@7}Mula%u1>$flJKLt4%tN|w0c+CI+ literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/xls.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/xls.gif new file mode 100644 index 0000000000000000000000000000000000000000..afe724a3d06a51d2810f8d956f9a2042f4127e39 GIT binary patch literal 271 zcmV+q0r37uNk%w1VITk?0HOr|0E7U9goMV%#sB~S|NsC0|Nj6000000A^8LW000F5 zEC2ui03ZM$000BjSh^MdFg`|UAUNwy!l>ZIjhOQ>0g$e0%aVcMF>cMSLY`-rd^P}* zCI!Rz6e@y?mrRaCgd_3RX;pPt-(bsaDsRo0Mlj9@21Mm|c`cjG1E-q(&D!Bg(+7An)+;^79}G06U9=e5U{a literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/xml.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/xml.gif new file mode 100644 index 0000000000000000000000000000000000000000..4fae35662f0ff048d4004fdc74cda6b63f16d119 GIT binary patch literal 408 zcmZ?wbhEHbRA5kGI3mViIETS7`9A~09EN0urRTmg%=vGa%wTx#zu`GU28RFV-v2*# z?AW>g=g$5AZ}|T|Lkq*XbLR|`=d`r6eEY<3j9Dk`OoZE`nWr*xa<<-Z+HtMSBJn{^u;`V&6mSzrNEt?LH`~3Ax?=4JrY*0GX#-Qk=qQTsLv|qx~^^Qg0 iVuwC~AkkGZCpV>f)n+A~n&Y{-{p@Uu;&~j54AuZc3Y?7q literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/zip.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/32/zip.gif new file mode 100644 index 0000000000000000000000000000000000000000..7157f72ad82ea877fcb6995070a6563f56ef67d8 GIT binary patch literal 368 zcmZ?wbhEHbRA5kGI3mt)ZwdoL@|2!y|Nno#_WxKm!<2grhC%{EB};slLq*~Wvao7t(4YcThC6;%`Yr24Zi4PaOV6eOA}Gnc(I#ahItQPFz&i!!1#jo#hY7? xFH}7HYVuU?=dbU7{-(T977Tb`-^99F#>8mh!o%$X%5o`g8JrTL0dyds<4RV^aVB z|57BDbA&H|IUoo#=W(zoP=va&U;d8QcCBXbFE`S zIUx{AF)?dGF|DPoy|um8l$26hT61GsrId``*3Q<>#_!(N_xJC;lzX*=bN97#y`_w; zoRr4a-o4J&oRpmJ@Ar&zW5%telzVgk@2%FQQj}6cwR2kk-jp#pIT#oib8~zD|Nj60 z00000A^8LW002DzEC2ui01yBW000KCz@CstEEa{x;b0IOxF9c{E~y-RE*p%ErCXs53AutGm1iI;a&9 x77a8B0W|>v8K@@^5iJcNH3tSG6{sd9*aZa#2L%MDNFqA#5;_tRJN5NJ06RZNq>TUo literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/avi.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/avi.gif new file mode 100644 index 0000000000000000000000000000000000000000..6f3bac9bf1593da0934d7ce02064ef74e484c1a9 GIT binary patch literal 249 zcmZ?wbhEHb6krfwI3mMvZjPa$VRCZvIm6^RbLO1;{{8!$ImuhMZvFrNTynDExpT=; zQBh7#PUq$Tr48R-J9cgk!?|-n9>bhupf;f9IseZw{GY?n($aG5*f9nMhW}syWI%x8 zPZmZ71{nq&5Eo=818bRrdQwVemqvT;n`v8Ts6~~;GQZY}p1#>*LidNJlNo(daVY@{ zWwUaL(+k*J$tlM*YK{1NYI`ZnW)mW{>#=ysy0hLX0`cg&BbkJ4}^gUQzaPeB<)#Q2S7Oc~`%`->q#0Q%_#rF={k17wA&Fi)#cna}i9!sV4Aub8Vl3$Z literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/cs.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/cs.gif new file mode 100644 index 0000000000000000000000000000000000000000..4d927230b980dbbdca5b06f12a98449647ca0fe7 GIT binary patch literal 128 zcmZ?wbhEHb6krfwSj5V}(8AEt(sJzBF$M;P|6l-Q0DA+ z&boq$o(!ph*Rni6Ts&TSB!TY&dxW+s#|ou&Pgs`UaTDBbb9LQ}wC%4m<4%bCYbdc5 Z?pbo_Mu}eVr8OUpyyY@Z@L*!F1^}CaF8}}l literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/default.icon.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/default.icon.gif new file mode 100644 index 0000000000000000000000000000000000000000..6ce26a4dc516f5962623445396862c753a875900 GIT binary patch literal 113 zcmZ?wbhEHb6krfwSj56`?AWoEmKFvEhW}syWI%x8PZmZ71{MY#5ErDDf!WMMz)wYHuMVva8^OvzO GSOWls#w7~? literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/dll.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/dll.gif new file mode 100644 index 0000000000000000000000000000000000000000..48d445acd2feab875c2d42c246e9010814314bb6 GIT binary patch literal 132 zcmZ?wbhEHb6krfwSj5KA(!%inKf|$O$6A0a1|S;*fDFZ-EQ|~cYz#U;Hc+Ji0|T>X z#^yWU3Z{52m-ukf%k`k3yP%3-*W8u93=RcNt9)D@gcWkI9QhQriC6L4&!=I+p7|fF f&bcuq9o#ATcbQ|zt0ha__CHv$#zk+n5Q8-UbUQQ< literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/doc.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/doc.gif new file mode 100644 index 0000000000000000000000000000000000000000..6535b4c0e72aa2cded728e28ee6440c1fe0a954c GIT binary patch literal 140 zcmZ?wbhEHb6krfwSj5WE($aG5*f9o%{|rD320#W7DE?$&WME)r&;fBkY8jXVBe?FY z+rZ$Y&Fb8_(OO=7Vq=(Ufb*})xCcUxyE@a|Sq$%KqPl7^Ro&=#&h4hzE(^L jR*hU`(7bxhmuZnxV$QBxlGW+R@Sr5BCvfLoP6lfLw_`LY literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/exe.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/exe.gif new file mode 100644 index 0000000000000000000000000000000000000000..315817f5d93a2a6fa5db3ca5e1c9d9e72297c1b0 GIT binary patch literal 109 zcmZ?wbhEHb6krfwSj5V3?AWoEmKKKpAi%%?qJbn3DE?$&WME)r&;fBkY8jY~B6i*R zXJF>^RLSWASNXZw&O8U&G9N8irFy(4+h@r~EB~#sJ|Y3ajSDg!Grv<&><*gAz+epk D58Wo= literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/fla.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/fla.gif new file mode 100644 index 0000000000000000000000000000000000000000..8f91a98ecb196dbcf5424e266ca58d216cd4a9eb GIT binary patch literal 382 zcmZ?wbhEHb6krfwxT?XhR8hdo%PTuO`&>{EgJIPFI}I;|Dp zc%Pgc6&3aV`}^-fUeCQOdwP0~X-ZUASHFM${{R2~3=9kq63CzsDE?$&WMI%>&;gkP z@)HBwYzL7p7om#2#si)wL?(F!2%98Cm<2ZVZ~3Ch>UA|+?3QVy&oYC{!ISECotivn zi=MmpqCcH_Dg71<%DDkb)jrCNqP!hVYOOUI?7WH`68uu^LH$n3d{a32xdr%?``R=Z z6crRi1i6?MXU<-+T7iX|hf_g(S&gzHs}Re21x4km3ChAO(z2|q%0r28usf7#SE?8FWBAkXi<2r--O4 z|FS1KXsZVL9;`07c&+ei^1O2k*6G|{AtTej{=zM0yDLAt%B`L9e?;#s+CMY!M%Jo; V3vL<)Qnkyb>9`50G6*qP0|1+DE=>Rc literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/htm.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/htm.gif new file mode 100644 index 0000000000000000000000000000000000000000..0b5d6ba1fc35ab7dccc0f27ef14f2bdbefe75859 GIT binary patch literal 621 zcmd6k&ui0A0Dxb+VB4{+?YgxUTV^K{qg5LnvM_(lIJz`RQF6>pa?C||-g?<)1gmc# znuA~%2n(Jb2oms;!(;>zd@zI@a}ZpP&%@y1>FN9{{7&ETgKuNdUy&bHKm{BPf$bAQ zctp74_-+tm!XZvY7?`FD-7q4V=#n7LI(|kO*D!S=`qxAh%U-Hr9ul5XK60@Xu`r=B zBBGZmgli+L*e=OYPhmpijCBxUoJ%MbLzXcv!BBQQ+xAQo#TmCOWTHs45W)$B zkpBbxmvnv$IRJ*Bds27u1Qfn*4!1S;sax6}KQYjbQ3B6j7}Xo@=~BM;N(1VyYBVSI z8e>(xbhXt4Mx}Z?-_VC5xY?bZoxa#MW@hqN!goSp%D6mNTdCj8Pw4U5t#bL!;#_;O zeyAHlYkKhW=-%Y@`E^~83TFlv`p5l+YYX!m-)p~?m8p91_~pKu6ZFTu!$)iDJFV5T zZ$4EQ5B8T%6}v|Mhfpk^(}do$596)Zxh8s0**y3H8nw1;?w$YkcG+37K7V|Fe|HOj F)j#Az*75)V literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/html.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/html.gif new file mode 100644 index 0000000000000000000000000000000000000000..0b5d6ba1fc35ab7dccc0f27ef14f2bdbefe75859 GIT binary patch literal 621 zcmd6k&ui0A0Dxb+VB4{+?YgxUTV^K{qg5LnvM_(lIJz`RQF6>pa?C||-g?<)1gmc# znuA~%2n(Jb2oms;!(;>zd@zI@a}ZpP&%@y1>FN9{{7&ETgKuNdUy&bHKm{BPf$bAQ zctp74_-+tm!XZvY7?`FD-7q4V=#n7LI(|kO*D!S=`qxAh%U-Hr9ul5XK60@Xu`r=B zBBGZmgli+L*e=OYPhmpijCBxUoJ%MbLzXcv!BBQQ+xAQo#TmCOWTHs45W)$B zkpBbxmvnv$IRJ*Bds27u1Qfn*4!1S;sax6}KQYjbQ3B6j7}Xo@=~BM;N(1VyYBVSI z8e>(xbhXt4Mx}Z?-_VC5xY?bZoxa#MW@hqN!goSp%D6mNTdCj8Pw4U5t#bL!;#_;O zeyAHlYkKhW=-%Y@`E^~83TFlv`p5l+YYX!m-)p~?m8p91_~pKu6ZFTu!$)iDJFV5T zZ$4EQ5B8T%6}v|Mhfpk^(}do$596)Zxh8s0**y3H8nw1;?w$YkcG+37K7V|Fe|HOj F)j#Az*75)V literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/jpg.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/jpg.gif new file mode 100644 index 0000000000000000000000000000000000000000..634b386139ac697806757c8d34bed36b5a2e5b45 GIT binary patch literal 125 zcmZ?wbhEHb6krfwSj5WE($aG5*s=fr|F^U-00EEzq8Jzyf3h$#Ft9S{fH)wv49rdu zQCI$DPjt{$4fH)&U2ySQ;nn1M=N7Efxy>W1vu4h(L$B8CcA0nH;sGzmk%w`nkI!Gr Xww$>lL&HF-cG)x?H=$exAqHyz+f*-Z literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/js.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/js.gif new file mode 100644 index 0000000000000000000000000000000000000000..4ea17d452edaf63a5f599042879cc05a3b05905d GIT binary patch literal 139 zcmZ?wbhEHb6krfwSj524(!y};*s=frfs7Ug28RDY78of0WC7DUAQGgOfjPip*Bukp zV`_&dr*>@0-Etv>LB&I4!HI?a)6OrXSt1KqtHVsZE6pPt-9GvFF^A}XUv*^C r;ak22hG!S;yY$xUOU2HaM|C{I+Ek;sd6_hJPfqX2@(WjGV6X-NZuBx8 literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/mp3.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/mp3.gif new file mode 100644 index 0000000000000000000000000000000000000000..6f3bac9bf1593da0934d7ce02064ef74e484c1a9 GIT binary patch literal 249 zcmZ?wbhEHb6krfwI3mMvZjPa$VRCZvIm6^RbLO1;{{8!$ImuhMZvFrNTynDExpT=; zQBh7#PUq$Tr48R-J9cgk!?|-n9>bhupf;f9IseZw{GY?n($aG5*f9nMhW}syWI%x8 zPZmZ71{nq&5Eo=818bRrdQwVemqvT;n`v8Ts6~~;GQZY}p1#>*LidNJlNo(daVY@{ zWwUaL(+k*J$tlM*YK{1NYI`ZnW)mW{>#=ysy0hLX0`cgv>ev^SyhYS64r8X?YK12So`82>fRNfqVDv z{r?YPGARCJVPs&CWzYdhfb3*oO-@kHONmUIxgsy-^|qPQW|^Ek`f1r)oAdK_#q~cu zbtPl{l^0V5_T;S=Z~hQc)}ed!aA|{HGz;^B2|Yz@;*5(PawLd_EmCDzp}@k>p>l2} b%e-`vLRL<;1{wB3!FE?Ijs6J}6d9}meKBOp literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/ppt.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/ppt.gif new file mode 100644 index 0000000000000000000000000000000000000000..877a8c8679545e4ea31ea6d66c344cb1a69b9b60 GIT binary patch literal 139 zcmZ?wbhEHb6krfwSj5KA0s;)jjvZrQVE7M2U;tz*{$ycfU|?g=0kVNA1sE8Z12VYo zth>!zWU*s{&Jd<`>yWH_^+2I#AA{J%s7G|&p0BKw|IsgCw literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/rdp.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/rdp.gif new file mode 100644 index 0000000000000000000000000000000000000000..916cd7e639de75276e3fac7d4a4466479285fbc0 GIT binary patch literal 606 zcmchU&ubGw6vrpo{HP7Ji>awd!Ny-jsS1MH`U@LtlcrQ_s3zIwU|DauxyQX|x?q%1 zq|BkhKtPz|fCvMEEP~*e(;VkGD5!f}3&P@Qocc%jk8i|G!%@<`A|b55u$#WP!&Un9G3XLps}Wj7D9Eqf$#fJ8H5p*G7e=-si0JO zNL85WQFn?71c9mX?Aw@`|sb+UAvcE-BaB&M=_}Q+_`f-OSf)4 zb}qYTDT7yb%al3Su3fu#?|E`@wO3T}oV9xy6rIkUyY~J2djY3pLqo%$?CQP8u1N$H zzyJQ;%gbx&)?@dcKL={->FM!Gt_Fhl&)@(5|DS<@0YU;9lmo?|EQ|~c>I^y{qdwUe4Gl+*;-lwkB+sYUz^1v;|)#6j^vpu37T# zmUD%0Y=v2e3tNhqVwDfO5R;r7Q-i8ZOSQU^94jjq2ZyAL>I5eRE_r!5X$}Qpc9pr4 zSQql}D#)`c&1sz^&mzyuz#u2Ed6fdUDiZ^b6pNe!-zs$lh21Qw^6W*$K1?FwqAc7B ROoA@15eoGR5k8I#)&SOyb=v>{ literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/swt.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/swt.gif new file mode 100644 index 0000000000000000000000000000000000000000..314469da14a51a3079a95b10deff5e4af2f14dd3 GIT binary patch literal 388 zcmZ?wbhEHb6krfwxT?;;U>Fn?71c9mX?Aw@`|sb+UAvcE-BaB&M=_}Q+_`f-OSf)4 zb}qYTDT7yb%al3Su3fu#?|E`@wO3T}oV9xy6rIkUyY~J2djY3pLqo%$?CQP8u1N$H zzyJQ;%gbx&)?@dcKL={->FM!Gt_Fhl&)@(5|DS<@0YU;9lmo?|EQ|~c>I^y{qdwUe4Gl+*;-lwkB+sYUz^1v;|)#6j^vpu37T# zmUD%0Y=v2e3tNhqVwDfO5R;r7Q-i8ZOSQU^94jjq2ZyAL>I5eRE_r!5X$}Qpc9pr4 zSQql}D#)`c&1sz^&mzyuz#u2Ed6fdUDiZ^b6pNe!-zs$lh21Qw^6W*$K1?FwqAc7B ROoA@15eoGR5k8I#)&SOyb=v>{ literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/txt.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/txt.gif new file mode 100644 index 0000000000000000000000000000000000000000..1511ba3e9fa53d21b23d74e5430199f52107b8c6 GIT binary patch literal 122 zcmZ?wbhEHb6krfwSj586($aG5*f9nMhW}syWI%x8PZmZ71{MY#5ErDDf!W?edQV`N^25{1 dUq#HdJfRXbF>~kLGf7@*-Ks0MSTQnK0|4?|F*N`H literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/xls.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/xls.gif new file mode 100644 index 0000000000000000000000000000000000000000..f57715d6a0cf03d3d392fb78d1477fcb1756edc1 GIT binary patch literal 138 zcmZ?wbhEHb6krfwSj5V}(86%+*f9nm-O}BIae?UME_83{kohvOm*4@L8Aw=661Zc_WCg}SOWmuf-oWg literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/xml.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/xml.gif new file mode 100644 index 0000000000000000000000000000000000000000..455992877e103d01bd247e45d96e33412ae706d1 GIT binary patch literal 231 zcmZ?wbhEHb6krfwI3mEn(9&}3*fGQ8|AuoI4Cnke{QuwZ+HPD{sTJjBd9|(eHjSNmO^r^D{SzDo6d9}m>N8Dk literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/zip.gif b/js/tinymce/jscripts/tiny_mce/filemanager/images/icons/zip.gif new file mode 100644 index 0000000000000000000000000000000000000000..b1e24921e56f8b71282f953c690d152dd986f6ff GIT binary patch literal 235 zcmZ?wbhEHb6krfwI3mLE|M^yid-wjYW%$3>>;GEC|Np;dAN!x(^Z)< + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css b/js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css new file mode 100644 index 0000000..3fe369c --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css @@ -0,0 +1,5 @@ +input.radio {border:1px none #000; background:transparent; vertical-align:middle;} +.panel_wrapper div.current {height:80px;} +#width {width:50px; vertical-align:middle;} +#width2 {width:50px; vertical-align:middle;} +#size {width:100px;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js new file mode 100644 index 0000000..4d3b062 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js new file mode 100644 index 0000000..5a4b725 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js @@ -0,0 +1,57 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedHRPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvancedHr', function() { + ed.windowManager.open({ + file : url + '/rule.htm', + width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), + height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('advhr', { + title : 'advhr.advhr_desc', + cmd : 'mceAdvancedHr' + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('advhr', n.nodeName == 'HR'); + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'HR') + ed.selection.select(e); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced HR', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js b/js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js new file mode 100644 index 0000000..a60c35f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js @@ -0,0 +1,43 @@ +var AdvHRDialog = { + init : function(ed) { + var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; + + w = dom.getAttrib(n, 'width'); + f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); + f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; + f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); + selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); + }, + + update : function() { + var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; + + h = ' + + + {#advhr.advhr_desc} + + + + + + + +

    + + +
    +
    + + + + + + + + + + + + + +
    + + +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css b/js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css new file mode 100644 index 0000000..228530f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css @@ -0,0 +1,13 @@ +#src_list, #over_list, #out_list {width:280px;} +.mceActionPanel {margin-top:7px;} +.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} +.checkbox {border:0;} +.panel_wrapper div.current {height:305px;} +#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} +#align, #classlist {width:150px;} +#width, #height {vertical-align:middle; width:50px; text-align:center;} +#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} +#class_list {width:180px;} +input {width: 280px;} +#constrain, #onmousemovecheck {width:auto;} +#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js new file mode 100644 index 0000000..4c7a9c3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js new file mode 100644 index 0000000..351542f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js @@ -0,0 +1,50 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedImagePlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvImage', function() { + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + file : url + '/image.htm', + width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)), + height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('image', { + title : 'advimage.image_desc', + cmd : 'mceAdvImage' + }); + }, + + getInfo : function() { + return { + longname : 'Advanced image', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm b/js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm new file mode 100644 index 0000000..7af5a00 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm @@ -0,0 +1,232 @@ + + + + {#advimage_dlg.dialog_title} + + + + + + + + + +
    + + +
    +
    +
    + {#advimage_dlg.general} + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    +
    + +
    + {#advimage_dlg.preview} + +
    +
    + +
    +
    + {#advimage_dlg.tab_appearance} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + {#advimage_dlg.example_img} + Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam + nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum + edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam + erat volutpat. +
    +
    + x + px +
      + + + + +
    +
    +
    +
    + +
    +
    + {#advimage_dlg.swap_image} + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    + + + + +
     
    +
    + +
    + {#advimage_dlg.misc} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    + + + + +
     
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif b/js/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif new file mode 100644 index 0000000000000000000000000000000000000000..53bf6890b507741c10910c9e2217ad8247b98e8d GIT binary patch literal 1624 zcmV-e2B-N)Nk%w1VJ!eH0OkMy|NsB}{r&v>{Q3F$`1ttq^YifV@ayaA>FMd_=H}w! z;^5%m-rnBb-QC>W+}qpR+S=OL+1c3G*w@$B*4Eb4)YQ|{)zHw=&d$%x&CScp%gV~i z$;rvc$jHXV#>B+L!^6YE!otD9!N9=4zrVk|y}i7=yt})*y1Kf#xw*Hux3;#nwY9ah zw6wFcv$C?Xv9YnRu&}SMudc4Ht*x!BtgNf6tE#H1si~={sjjD|r>3T+rKP2$q@<&x zqobp!qN1Xqp`oFnrJ$goprE6lpP!zdp`MSWoSd7Ro12@UnwpxLnw^=MnV6WE zmzS58mX?*3mz9;3mX?*2l$4W`lai8@l9G~eg|M^H&l zLpBo?51@vfgB2q_TVh*dNP<;cR$Wg!vYsMHR!qvvOis>GNH`+ zJ3B|tqgANiBSy@x>Q#;x7+DuU7&rwlf#S04)VZvA$XoUy8Y&f7)SqP<}Lw@L# zA(@Cohl`6CZyedUu^BlmK|DG5$Kl2f8z@uCc)^k-3m7$G!njf7$;XhOW>^`rV#UFh zEN#eG;bP?tCs>{+)q)ceg9$aDAaTZ{MGK5rU8ty$qz8){MT#gHGX{#XEJHLonBXFa zj+#9GE&^pq!`qG`K5iiC!gq}sRY|1yD8?j++_^oR0g+)NNtZN`)08!0q=}AA4HhIo zFaa9NYu8%97=oos5f?O`lwre~4VfoIei+FyK|urxj@C(-q(sS(!$5uL3j&jg7&XY% zlr17;3GGL;2K8>CB87G97;W(2VZ((D+3Hz;L;bylfhf(kFNV8at)h;hdM z85WX(#*Hq@@BYePt3t_l{ zCL3|YVWydA0Fz{rTl65n00)c^)^-jJn1c zRVXtA6mkUMEDLU|v7{JK&_IJ2ciiCy7BOT1fdUBh8b=yrbYaCAchCU_7?H`b1`}4q zLB|_mI2!;7W4QCq6F1O+MW||6AwmKafUrReUA&QotxQZI8D$G)AuSVV@X<&A9v;~H zKnWjo&;bljq=29aCeV-t5GBYkL=Q}q(S~FLd2t39MyRmC%_GFHkPc7CfIt8P*emqV z0YK2j9A+kmW^!tn(ZmG+L=6DZR99W}8p9?Utr=#t@rE2=zxf3QQ(JBJ&<{Z2>8EUP zeX1B)2w_3gXV)D-0Tt+=#@cV-0f!PU#MglZ3m6b}0e08zK^x;9(u?Tga{%?&nNTXhcEuM_#J>yL>p*a zuZJ2pliCGSp!Ye8>YFq@)ZOW-uT~OrjFQK!)UyVGFt7ni'); + }, + + init : function(ed) { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + tinyMCEPopup.resizeToInnerSize(); + this.fillClassList('class_list'); + this.fillFileList('src_list', 'tinyMCEImageList'); + this.fillFileList('over_list', 'tinyMCEImageList'); + this.fillFileList('out_list', 'tinyMCEImageList'); + TinyMCE_EditableSelects.init(); + + if (n.nodeName == 'IMG') { + nl.src.value = dom.getAttrib(n, 'src'); + nl.width.value = dom.getAttrib(n, 'width'); + nl.height.value = dom.getAttrib(n, 'height'); + nl.alt.value = dom.getAttrib(n, 'alt'); + nl.title.value = dom.getAttrib(n, 'title'); + nl.vspace.value = this.getAttrib(n, 'vspace'); + nl.hspace.value = this.getAttrib(n, 'hspace'); + nl.border.value = this.getAttrib(n, 'border'); + selectByValue(f, 'align', this.getAttrib(n, 'align')); + selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); + nl.style.value = dom.getAttrib(n, 'style'); + nl.id.value = dom.getAttrib(n, 'id'); + nl.dir.value = dom.getAttrib(n, 'dir'); + nl.lang.value = dom.getAttrib(n, 'lang'); + nl.usemap.value = dom.getAttrib(n, 'usemap'); + nl.longdesc.value = dom.getAttrib(n, 'longdesc'); + nl.insert.value = ed.getLang('update'); + + if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover'))) + nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); + + if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout'))) + nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); + + if (ed.settings.inline_styles) { + // Move attribs to styles + if (dom.getAttrib(n, 'align')) + this.updateStyle('align'); + + if (dom.getAttrib(n, 'hspace')) + this.updateStyle('hspace'); + + if (dom.getAttrib(n, 'border')) + this.updateStyle('border'); + + if (dom.getAttrib(n, 'vspace')) + this.updateStyle('vspace'); + } + } + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '260px'; + + // Setup browse button + document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image'); + if (isVisible('overbrowser')) + document.getElementById('onmouseoversrc').style.width = '260px'; + + // Setup browse button + document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image'); + if (isVisible('outbrowser')) + document.getElementById('onmouseoutsrc').style.width = '260px'; + + // If option enabled default contrain proportions to checked + if (ed.getParam("advimage_constrain_proportions", true)) + f.constrain.checked = true; + + // Check swap image if valid data + if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value) + this.setSwapImage(true); + else + this.setSwapImage(false); + + this.changeAppearance(); + this.showPreviewImage(nl.src.value, 1); + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor, t = this, f = document.forms[0]; + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (tinyMCEPopup.getParam("accessibility_warnings", 1)) { + if (!f.alt.value) { + tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) { + if (s) + t.insertAndClose(); + }); + + return; + } + } + + t.insertAndClose(); + }, + + insertAndClose : function() { + var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + // Fixes crash in Safari + if (tinymce.isWebKit) + ed.getWin().focus(); + + if (!ed.settings.inline_styles) { + args = { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }; + } else { + // Remove deprecated values + args = { + vspace : '', + hspace : '', + border : '', + align : '' + }; + } + + tinymce.extend(args, { + src : nl.src.value, + width : nl.width.value, + height : nl.height.value, + alt : nl.alt.value, + title : nl.title.value, + 'class' : getSelectValue(f, 'class_list'), + style : nl.style.value, + id : nl.id.value, + dir : nl.dir.value, + lang : nl.lang.value, + usemap : nl.usemap.value, + longdesc : nl.longdesc.value + }); + + args.onmouseover = args.onmouseout = ''; + + if (f.onmousemovecheck.checked) { + if (nl.onmouseoversrc.value) + args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';"; + + if (nl.onmouseoutsrc.value) + args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';"; + } + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + setSwapImage : function(st) { + var f = document.forms[0]; + + f.onmousemovecheck.checked = st; + setBrowserDisabled('overbrowser', !st); + setBrowserDisabled('outbrowser', !st); + + if (f.over_list) + f.over_list.disabled = !st; + + if (f.out_list) + f.out_list.disabled = !st; + + f.onmouseoversrc.disabled = !st; + f.onmouseoutsrc.disabled = !st; + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options.length = 0; + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + lst.options.length = 0; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.elements.width.value = f.elements.height.value = ''; + }, + + updateImageData : function(img, st) { + var f = document.forms[0]; + + if (!st) { + f.elements.width.value = img.width; + f.elements.height.value = img.height; + } + + this.preloadImg = img; + }, + + changeAppearance : function() { + var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg'); + + if (img) { + if (ed.getParam('inline_styles')) { + ed.dom.setAttrib(img, 'style', f.style.value); + } else { + img.align = f.align.value; + img.border = f.border.value; + img.hspace = f.hspace.value; + img.vspace = f.vspace.value; + } + } + }, + + changeHeight : function() { + var f = document.forms[0], tp, t = this; + + if (!f.constrain.checked || !t.preloadImg) { + return; + } + + if (f.width.value == "" || f.height.value == "") + return; + + tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height; + f.height.value = tp.toFixed(0); + }, + + changeWidth : function() { + var f = document.forms[0], tp, t = this; + + if (!f.constrain.checked || !t.preloadImg) { + return; + } + + if (f.width.value == "" || f.height.value == "") + return; + + tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width; + f.width.value = tp.toFixed(0); + }, + + updateStyle : function(ty) { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value}); + + if (tinyMCEPopup.editor.settings.inline_styles) { + // Handle align + if (ty == 'align') { + dom.setStyle(img, 'float', ''); + dom.setStyle(img, 'vertical-align', ''); + + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') + dom.setStyle(img, 'float', v); + else + img.style.verticalAlign = v; + } + } + + // Handle border + if (ty == 'border') { + dom.setStyle(img, 'border', ''); + + v = f.border.value; + if (v || v == '0') { + if (v == '0') + img.style.border = '0'; + else + img.style.border = v + 'px solid black'; + } + } + + // Handle hspace + if (ty == 'hspace') { + dom.setStyle(img, 'marginLeft', ''); + dom.setStyle(img, 'marginRight', ''); + + v = f.hspace.value; + if (v) { + img.style.marginLeft = v + 'px'; + img.style.marginRight = v + 'px'; + } + } + + // Handle vspace + if (ty == 'vspace') { + dom.setStyle(img, 'marginTop', ''); + dom.setStyle(img, 'marginBottom', ''); + + v = f.vspace.value; + if (v) { + img.style.marginTop = v + 'px'; + img.style.marginBottom = v + 'px'; + } + } + + // Merge + dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img'); + } + }, + + changeMouseMove : function() { + }, + + showPreviewImage : function(u, st) { + if (!u) { + tinyMCEPopup.dom.setHTML('prev', ''); + return; + } + + if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) + this.resetImageData(); + + u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); + + if (!st) + tinyMCEPopup.dom.setHTML('prev', ''); + else + tinyMCEPopup.dom.setHTML('prev', ''); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js new file mode 100644 index 0000000..ef81f78 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js @@ -0,0 +1,43 @@ +tinyMCE.addI18n('en.advimage_dlg',{ +tab_general:"General", +tab_appearance:"Appearance", +tab_advanced:"Advanced", +general:"General", +title:"Title", +preview:"Preview", +constrain_proportions:"Constrain proportions", +langdir:"Language direction", +langcode:"Language code", +long_desc:"Long description link", +style:"Style", +classes:"Classes", +ltr:"Left to right", +rtl:"Right to left", +id:"Id", +map:"Image map", +swap_image:"Swap image", +alt_image:"Alternative image", +mouseover:"for mouse over", +mouseout:"for mouse out", +misc:"Miscellaneous", +example_img:"Appearance preview image", +missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", +dialog_title:"Insert/edit image", +src:"Image URL", +alt:"Image description", +list:"Image list", +border:"Border", +dimensions:"Dimensions", +vspace:"Vertical space", +hspace:"Horizontal space", +align:"Alignment", +align_baseline:"Baseline", +align_top:"Top", +align_middle:"Middle", +align_bottom:"Bottom", +align_texttop:"Text top", +align_textbottom:"Text bottom", +align_left:"Left", +align_right:"Right", +image_list:"Image list" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css b/js/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css new file mode 100644 index 0000000..66c6549 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css @@ -0,0 +1,8 @@ +.mceLinkList, .mceAnchorList, #targetlist {width:280px;} +.mceActionPanel {margin-top:7px;} +.panel_wrapper div.current {height:320px;} +#classlist, #title, #href {width:280px;} +#popupurl, #popupname {width:200px;} +#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} +#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} +#events_panel input {width:200px;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js new file mode 100644 index 0000000..983fe5a --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js new file mode 100644 index 0000000..32ea8f3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js @@ -0,0 +1,61 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { + init : function(ed, url) { + this.editor = ed; + + // Register commands + ed.addCommand('mceAdvLink', function() { + var se = ed.selection; + + // No selection and not in link + if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A')) + return; + + ed.windowManager.open({ + file : url + '/link.htm', + width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)), + height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('link', { + title : 'advlink.link_desc', + cmd : 'mceAdvLink' + }); + + ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink'); + + ed.onNodeChange.add(function(ed, cm, n, co) { + cm.setDisabled('link', co && n.nodeName != 'A'); + cm.setActive('link', n.nodeName == 'A' && !n.name); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced link', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js b/js/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js new file mode 100644 index 0000000..6fa37e8 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js @@ -0,0 +1,528 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +var templates = { + "window.open" : "window.open('${url}','${target}','${options}')" +}; + +function preinit() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function changeClass() { + var f = document.forms[0]; + + f.classes.value = getSelectValue(f, 'classlist'); +} + +function init() { + tinyMCEPopup.resizeToInnerSize(); + + var formObj = document.forms[0]; + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + var action = "insert"; + var html; + + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); + document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); + document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); + document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); + document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); + + // Link list + html = getLinkListHTML('linklisthref','href'); + if (html == "") + document.getElementById("linklisthrefrow").style.display = 'none'; + else + document.getElementById("linklisthrefcontainer").innerHTML = html; + + // Resize some elements + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '260px'; + + if (isVisible('popupurlbrowser')) + document.getElementById('popupurl').style.width = '180px'; + + elm = inst.dom.getParent(elm, "A"); + if (elm != null && elm.nodeName == "A") + action = "update"; + + formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true); + + setPopupControlsDisabled(true); + + if (action == "update") { + var href = inst.dom.getAttrib(elm, 'href'); + var onclick = inst.dom.getAttrib(elm, 'onclick'); + + // Setup form data + setFormValue('href', href); + setFormValue('title', inst.dom.getAttrib(elm, 'title')); + setFormValue('id', inst.dom.getAttrib(elm, 'id')); + setFormValue('style', inst.dom.getAttrib(elm, "style")); + setFormValue('rel', inst.dom.getAttrib(elm, 'rel')); + setFormValue('rev', inst.dom.getAttrib(elm, 'rev')); + setFormValue('charset', inst.dom.getAttrib(elm, 'charset')); + setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang')); + setFormValue('dir', inst.dom.getAttrib(elm, 'dir')); + setFormValue('lang', inst.dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('type', inst.dom.getAttrib(elm, 'type')); + setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup')); + setFormValue('target', inst.dom.getAttrib(elm, 'target')); + setFormValue('classes', inst.dom.getAttrib(elm, 'class')); + + // Parse onclick data + if (onclick != null && onclick.indexOf('window.open') != -1) + parseWindowOpen(onclick); + else + parseFunction(onclick); + + // Select by the values + selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir')); + selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel')); + selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev')); + selectByValue(formObj, 'linklisthref', href); + + if (href.charAt(0) == '#') + selectByValue(formObj, 'anchorlist', href); + + addClassesToList('classlist', 'advlink_styles'); + + selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true); + selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true); + } else + addClassesToList('classlist', 'advlink_styles'); +} + +function checkPrefix(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) + n.value = 'http://' + n.value; +} + +function setFormValue(name, value) { + document.forms[0].elements[name].value = value; +} + +function parseWindowOpen(onclick) { + var formObj = document.forms[0]; + + // Preprocess center code + if (onclick.indexOf('return false;') != -1) { + formObj.popupreturn.checked = true; + onclick = onclick.replace('return false;', ''); + } else + formObj.popupreturn.checked = false; + + var onClickData = parseLink(onclick); + + if (onClickData != null) { + formObj.ispopup.checked = true; + setPopupControlsDisabled(false); + + var onClickWindowOptions = parseOptions(onClickData['options']); + var url = onClickData['url']; + + formObj.popupname.value = onClickData['target']; + formObj.popupurl.value = url; + formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); + formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); + + formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); + formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); + + if (formObj.popupleft.value.indexOf('screen') != -1) + formObj.popupleft.value = "c"; + + if (formObj.popuptop.value.indexOf('screen') != -1) + formObj.popuptop.value = "c"; + + formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; + formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; + formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; + formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; + formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; + formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; + formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; + + buildOnClick(); + } +} + +function parseFunction(onclick) { + var formObj = document.forms[0]; + var onClickData = parseLink(onclick); + + // TODO: Add stuff here +} + +function getOption(opts, name) { + return typeof(opts[name]) == "undefined" ? "" : opts[name]; +} + +function setPopupControlsDisabled(state) { + var formObj = document.forms[0]; + + formObj.popupname.disabled = state; + formObj.popupurl.disabled = state; + formObj.popupwidth.disabled = state; + formObj.popupheight.disabled = state; + formObj.popupleft.disabled = state; + formObj.popuptop.disabled = state; + formObj.popuplocation.disabled = state; + formObj.popupscrollbars.disabled = state; + formObj.popupmenubar.disabled = state; + formObj.popupresizable.disabled = state; + formObj.popuptoolbar.disabled = state; + formObj.popupstatus.disabled = state; + formObj.popupreturn.disabled = state; + formObj.popupdependent.disabled = state; + + setBrowserDisabled('popupurlbrowser', state); +} + +function parseLink(link) { + link = link.replace(new RegExp(''', 'g'), "'"); + + var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); + + // Is function name a template function + var template = templates[fnName]; + if (template) { + // Build regexp + var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); + var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; + var replaceStr = ""; + for (var i=0; i'); + for (var i=0; i'; + html += ''; + + for (i=0; i' + name + ''; + } + + html += ''; + + return html; +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm, elementArray, i; + + elm = inst.selection.getNode(); + checkPrefix(document.forms[0].href); + + elm = inst.dom.getParent(elm, "A"); + + // Remove element if there is no href + if (!document.forms[0].href.value) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + i = inst.selection.getBookmark(); + inst.dom.remove(elm, 1); + inst.selection.moveToBookmark(i); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (elm == null) { + inst.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); + for (i=0; i' + tinyMCELinkList[i][0] + ''; + + html += ''; + + return html; + + // tinyMCE.debug('-- image list start --', html, '-- image list end --'); +} + +function getTargetListHTML(elm_id, target_form_element) { + var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';'); + var html = ''; + + html += ''; + + return html; +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js new file mode 100644 index 0000000..8ef9c79 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js @@ -0,0 +1,52 @@ +tinyMCE.addI18n('en.advlink_dlg',{ +title:"Insert/edit link", +url:"Link URL", +target:"Target", +titlefield:"Title", +is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +list:"Link list", +general_tab:"General", +popup_tab:"Popup", +events_tab:"Events", +advanced_tab:"Advanced", +general_props:"General properties", +popup_props:"Popup properties", +event_props:"Events", +advanced_props:"Advanced properties", +popup_opts:"Options", +anchor_names:"Anchors", +target_same:"Open in this window / frame", +target_parent:"Open in parent window / frame", +target_top:"Open in top frame (replaces all frames)", +target_blank:"Open in new window", +popup:"Javascript popup", +popup_url:"Popup URL", +popup_name:"Window name", +popup_return:"Insert 'return false'", +popup_scrollbars:"Show scrollbars", +popup_statusbar:"Show status bar", +popup_toolbar:"Show toolbars", +popup_menubar:"Show menu bar", +popup_location:"Show location bar", +popup_resizable:"Make window resizable", +popup_dependent:"Dependent (Mozilla/Firefox only)", +popup_size:"Size", +popup_position:"Position (X/Y)", +id:"Id", +style:"Style", +classes:"Classes", +target_name:"Target name", +langdir:"Language direction", +target_langcode:"Target language", +langcode:"Language code", +encoding:"Target character encoding", +mime:"Target MIME type", +rel:"Relationship page to target", +rev:"Relationship target to page", +tabindex:"Tabindex", +accesskey:"Accesskey", +ltr:"Left to right", +rtl:"Right to left", +link_list:"Link list" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm b/js/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm new file mode 100644 index 0000000..0b0e0bc --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm @@ -0,0 +1,333 @@ + + + + {#advlink_dlg.title} + + + + + + + + +
    + + +
    +
    +
    + {#advlink_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    + +
    +
    +
    + + + +
    +
    + {#advlink_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    + {#advlink_dlg.event_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js new file mode 100644 index 0000000..6e48540 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js @@ -0,0 +1 @@ +(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|]*>/gi, "").length > 0) { + // Show confirm dialog if the editor isn't empty + ed.windowManager.confirm( + PLUGIN_NAME + ".warning_message", + function(ok) { + if (ok) + self.restoreDraft(); + } + ); + } else + self.restoreDraft(); + } + }); + + // Enable/disable restoredraft button depending on if there is a draft stored or not + ed.onNodeChange.add(function() { + var controlManager = ed.controlManager; + + if (controlManager.get(RESTORE_DRAFT)) + controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft()); + }); + + ed.onInit.add(function() { + // Check if the user added the restore button, then setup auto storage logic + if (ed.controlManager.get(RESTORE_DRAFT)) { + // Setup storage engine + self.setupStorage(ed); + + // Auto save contents each interval time + setInterval(function() { + self.storeDraft(); + ed.nodeChanged(); + }, settings.autosave_interval); + } + }); + + /** + * This event gets fired when a draft is stored to local storage. + * + * @event onStoreDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onStoreDraft = new Dispatcher(self); + + /** + * This event gets fired when a draft is restored from local storage. + * + * @event onStoreDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onRestoreDraft = new Dispatcher(self); + + /** + * This event gets fired when a draft removed/expired. + * + * @event onRemoveDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onRemoveDraft = new Dispatcher(self); + + // Add ask before unload dialog only add one unload handler + if (!unloadHandlerAdded) { + window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler; + unloadHandlerAdded = TRUE; + } + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @method getInfo + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Auto save', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + /** + * Returns an expiration date UTC string. + * + * @method getExpDate + * @return {String} Expiration date UTC string. + */ + getExpDate : function() { + return new Date( + new Date().getTime() + this.editor.settings.autosave_retention + ).toUTCString(); + }, + + /** + * This method will setup the storage engine. If the browser has support for it. + * + * @method setupStorage + */ + setupStorage : function(ed) { + var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK"; + + self.key = PLUGIN_NAME + ed.id; + + // Loop though each storage engine type until we find one that works + tinymce.each([ + function() { + // Try HTML5 Local Storage + if (localStorage) { + localStorage.setItem(testKey, testVal); + + if (localStorage.getItem(testKey) === testVal) { + localStorage.removeItem(testKey); + + return localStorage; + } + } + }, + + function() { + // Try HTML5 Session Storage + if (sessionStorage) { + sessionStorage.setItem(testKey, testVal); + + if (sessionStorage.getItem(testKey) === testVal) { + sessionStorage.removeItem(testKey); + + return sessionStorage; + } + } + }, + + function() { + // Try IE userData + if (tinymce.isIE) { + ed.getElement().style.behavior = "url('#default#userData')"; + + // Fake localStorage on old IE + return { + autoExpires : TRUE, + + setItem : function(key, value) { + var userDataElement = ed.getElement(); + + userDataElement.setAttribute(key, value); + userDataElement.expires = self.getExpDate(); + userDataElement.save("TinyMCE"); + }, + + getItem : function(key) { + var userDataElement = ed.getElement(); + + userDataElement.load("TinyMCE"); + + return userDataElement.getAttribute(key); + }, + + removeItem : function(key) { + ed.getElement().removeAttribute(key); + } + }; + } + }, + ], function(setup) { + // Try executing each function to find a suitable storage engine + try { + self.storage = setup(); + + if (self.storage) + return false; + } catch (e) { + // Ignore + } + }); + }, + + /** + * This method will store the current contents in the the storage engine. + * + * @method storeDraft + */ + storeDraft : function() { + var self = this, storage = self.storage, editor = self.editor, expires, content; + + // Is the contents dirty + if (storage) { + // If there is no existing key and the contents hasn't been changed since + // it's original value then there is no point in saving a draft + if (!storage.getItem(self.key) && !editor.isDirty()) + return; + + // Store contents if the contents if longer than the minlength of characters + content = editor.getContent({draft: true}); + if (content.length > editor.settings.autosave_minlength) { + expires = self.getExpDate(); + + // Store expiration date if needed IE userData has auto expire built in + if (!self.storage.autoExpires) + self.storage.setItem(self.key + "_expires", expires); + + self.storage.setItem(self.key, content); + self.onStoreDraft.dispatch(self, { + expires : expires, + content : content + }); + } + } + }, + + /** + * This method will restore the contents from the storage engine back to the editor. + * + * @method restoreDraft + */ + restoreDraft : function() { + var self = this, storage = self.storage; + + if (storage) { + content = storage.getItem(self.key); + + if (content) { + self.editor.setContent(content); + self.onRestoreDraft.dispatch(self, { + content : content + }); + } + } + }, + + /** + * This method will return true/false if there is a local storage draft available. + * + * @method hasDraft + * @return {boolean} true/false state if there is a local draft. + */ + hasDraft : function() { + var self = this, storage = self.storage, expDate, exists; + + if (storage) { + // Does the item exist at all + exists = !!storage.getItem(self.key); + if (exists) { + // Storage needs autoexpire + if (!self.storage.autoExpires) { + expDate = new Date(storage.getItem(self.key + "_expires")); + + // Contents hasn't expired + if (new Date().getTime() < expDate.getTime()) + return TRUE; + + // Remove it if it has + self.removeDraft(); + } else + return TRUE; + } + } + + return false; + }, + + /** + * Removes the currently stored draft. + * + * @method removeDraft + */ + removeDraft : function() { + var self = this, storage = self.storage, key = self.key, content; + + if (storage) { + // Get current contents and remove the existing draft + content = storage.getItem(key); + storage.removeItem(key); + storage.removeItem(key + "_expires"); + + // Dispatch remove event if we had any contents + if (content) { + self.onRemoveDraft.dispatch(self, { + content : content + }); + } + } + }, + + "static" : { + // Internal unload handler will be called before the page is unloaded + _beforeUnloadHandler : function(e) { + var msg; + + tinymce.each(tinyMCE.editors, function(ed) { + // Store a draft for each editor instance + if (ed.plugins.autosave) + ed.plugins.autosave.storeDraft(); + + // Never ask in fullscreen mode + if (ed.getParam("fullscreen_is_enabled")) + return; + + // Setup a return message if the editor is dirty + if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload")) + msg = ed.getLang("autosave.unload_msg"); + }); + + return msg; + } + } + }); + + tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave); +})(tinymce); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js new file mode 100644 index 0000000..930fdff --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/
    /gi,"\n");b(//gi,"\n");b(/
    /gi,"\n");b(/

    /gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"
    ");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js new file mode 100644 index 0000000..3d27c46 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js @@ -0,0 +1,120 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.BBCodePlugin', { + init : function(ed, url) { + var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = t['_' + dialect + '_bbcode2html'](o.content); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t['_' + dialect + '_bbcode2html'](o.content); + + if (o.get) + o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + }, + + getInfo : function() { + return { + longname : 'BBCode Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + // HTML -> BBCode in PunBB dialect + _punbb_html2bbcode : function(s) { + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + + // example: to [b] + rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); + rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); + rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); + rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); + rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); + rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); + rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); + rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); + rep(/(.*?)<\/font>/gi,"$1"); + rep(//gi,"[img]$1[/img]"); + rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); + rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); + rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); + rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); + rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); + rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); + rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); + rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); + rep(/<\/(strong|b)>/gi,"[/b]"); + rep(/<(strong|b)>/gi,"[b]"); + rep(/<\/(em|i)>/gi,"[/i]"); + rep(/<(em|i)>/gi,"[i]"); + rep(/<\/u>/gi,"[/u]"); + rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); + rep(//gi,"[u]"); + rep(/]*>/gi,"[quote]"); + rep(/<\/blockquote>/gi,"[/quote]"); + rep(/
    /gi,"\n"); + rep(//gi,"\n"); + rep(/
    /gi,"\n"); + rep(/

    /gi,""); + rep(/<\/p>/gi,"\n"); + rep(/ /gi," "); + rep(/"/gi,"\""); + rep(/</gi,"<"); + rep(/>/gi,">"); + rep(/&/gi,"&"); + + return s; + }, + + // BBCode -> HTML from PunBB dialect + _punbb_bbcode2html : function(s) { + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + + // example: [b] to + rep(/\n/gi,"
    "); + rep(/\[b\]/gi,""); + rep(/\[\/b\]/gi,""); + rep(/\[i\]/gi,""); + rep(/\[\/i\]/gi,""); + rep(/\[u\]/gi,""); + rep(/\[\/u\]/gi,""); + rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); + rep(/\[url\](.*?)\[\/url\]/gi,"$1"); + rep(/\[img\](.*?)\[\/img\]/gi,""); + rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); + rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); + rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); + + return s; + } + }); + + // Register plugin + tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin.js new file mode 100644 index 0000000..02a1da8 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin.js @@ -0,0 +1 @@ +(function(){var DOM=tinymce.DOM,Event=tinymce.dom.Event,each=tinymce.each,is=tinymce.is;tinymce.create('tinymce.plugins.Compat2x',{getInfo:function(){return{longname:'Compat2x',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/compat2x',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};}});(function(){tinymce.extend(tinyMCE,{addToLang:function(p,l){each(l,function(v,k){tinyMCE.i18n[(tinyMCE.settings.language||'en')+'.'+(p?p+'_':'')+k]=v;});},getInstanceById:function(n){return this.get(n);}});})();(function(){var EditorManager=tinymce.EditorManager;tinyMCE.instances={};tinyMCE.plugins={};tinymce.PluginManager.onAdd.add(function(pm,n,p){tinyMCE.plugins[n]=p;});tinyMCE.majorVersion=tinymce.majorVersion;tinyMCE.minorVersion=tinymce.minorVersion;tinyMCE.releaseDate=tinymce.releaseDate;tinyMCE.baseURL=tinymce.baseURL;tinyMCE.isIE=tinyMCE.isMSIE=tinymce.isIE||tinymce.isOpera;tinyMCE.isMSIE5=tinymce.isIE;tinyMCE.isMSIE5_0=tinymce.isIE;tinyMCE.isMSIE7=tinymce.isIE;tinyMCE.isGecko=tinymce.isGecko;tinyMCE.isSafari=tinymce.isWebKit;tinyMCE.isOpera=tinymce.isOpera;tinyMCE.isMac=false;tinyMCE.isNS7=false;tinyMCE.isNS71=false;tinyMCE.compat=true;TinyMCE_Engine=tinyMCE;tinymce.extend(tinyMCE,{getParam:function(n,dv){return this.activeEditor.getParam(n,dv);},addEvent:function(e,na,f,sc){tinymce.dom.Event.add(e,na,f,sc||this);},getControlHTML:function(n){return EditorManager.activeEditor.controlManager.createControl(n);},loadCSS:function(u){tinymce.DOM.loadCSS(u);},importCSS:function(doc,u){if(doc==document)this.loadCSS(u);else new tinymce.dom.DOMUtils(doc).loadCSS(u);},log:function(){console.debug.apply(console,arguments);},getLang:function(n,dv){var v=EditorManager.activeEditor.getLang(n.replace(/^lang_/g,''),dv);if(/^[0-9\-.]+$/g.test(v))return parseInt(v);return v;},isInstance:function(o){return o!=null&&typeof(o)=="object"&&o.execCommand;},triggerNodeChange:function(){EditorManager.activeEditor.nodeChanged();},regexpReplace:function(in_str,reg_exp,replace_str,opts){var re;if(in_str==null)return in_str;if(typeof(opts)=="undefined")opts='g';re=new RegExp(reg_exp,opts);return in_str.replace(re,replace_str);},trim:function(s){return tinymce.trim(s);},xmlEncode:function(s){return tinymce.DOM.encode(s);},explode:function(s,d){var o=[];tinymce.each(s.split(d),function(v){if(v!='')o.push(v);});return o;},switchClass:function(id,cls){var b;if(/^mceButton/.test(cls)){b=EditorManager.activeEditor.controlManager.get(id);if(!b)return;switch(cls){case"mceButtonNormal":b.setDisabled(false);b.setActive(false);return;case"mceButtonDisabled":b.setDisabled(true);return;case"mceButtonSelected":b.setActive(true);b.setDisabled(false);return;}}},addCSSClass:function(e,n,b){return tinymce.DOM.addClass(e,n,b);},hasCSSClass:function(e,n){return tinymce.DOM.hasClass(e,n);},removeCSSClass:function(e,n){return tinymce.DOM.removeClass(e,n);},getCSSClasses:function(){var cl=EditorManager.activeEditor.dom.getClasses(),o=[];each(cl,function(c){o.push(c['class']);});return o;},setWindowArg:function(n,v){EditorManager.activeEditor.windowManager.params[n]=v;},getWindowArg:function(n,dv){var wm=EditorManager.activeEditor.windowManager,v;v=wm.getParam(n);if(v==='')return'';return v||wm.getFeature(n)||dv;},getParentNode:function(n,f){return this._getDOM().getParent(n,f);},selectElements:function(n,na,f){var i,a=[],nl,x;for(x=0,na=na.split(',');x + + + {#emotions_dlg.title} + + + + +

    +
    {#emotions_dlg.title}:

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {#emotions_dlg.cool}{#emotions_dlg.cry}{#emotions_dlg.embarassed}{#emotions_dlg.foot_in_mouth}
    {#emotions_dlg.frown}{#emotions_dlg.innocent}{#emotions_dlg.kiss}{#emotions_dlg.laughing}
    {#emotions_dlg.money_mouth}{#emotions_dlg.sealed}{#emotions_dlg.smile}{#emotions_dlg.surprised}
    {#emotions_dlg.tongue-out}{#emotions_dlg.undecided}{#emotions_dlg.wink}{#emotions_dlg.yell}
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif new file mode 100644 index 0000000000000000000000000000000000000000..ba90cc36fb0415d0273d1cd206bff63fd9c91fde GIT binary patch literal 354 zcmV-o0iFIwNk%w1VG;lm0Mr!#3ke00dJfFY%i+lrhK7V(RutUQJhPY;?(XfrsZKgL z7WLQ^zPO&zzav{)SL^9nBOw~z(=orMEH5uC-P_gr`uhCnASMa|$-iRw?m_(dUwU8) zq>Kx}s1_F$4FCWDA^8LW0018VEC2ui01^Na000Hw;3tYzX_jM3Qpv$_M?zI9i5=0S zX-{-uv=l3%&P0s%m9Ox_a(m_c|u z01g3U0`Wll5)poVdma=N8y<3f0Sf~hXmTC}2oxMW4FdxUj+z4<0}lrX2nP=qkDRIt z9Ge*(qzMrj3jrIOjvI{`5eWzt3`G_T8yChG8w(a19SkK12@M(+799Zr9n=~PzBCmA z5)BU-)YKUd4H5!D9|!^o9kWIe9SH(WDHRk92}DZ?3})2$P@$55g90f0N)ZA8JID5J Aw*UYD literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif new file mode 100644 index 0000000000000000000000000000000000000000..74d897a4f6d22e814e2b054e98b8a75fb464b4be GIT binary patch literal 329 zcmV-P0k-}}Nk%w1VG;lm0Mr-&E)xPSit@9T3%;vR+|V+?t0A(pllJjXrMl7n=_A_a za^B+Su$LjvyC3@TIQZNZa##w=!k(SO^P#bO*w(eU#;{U83XFCU_V)J5wrb+;g2vkN z#>U24qVoOvY5)KLA^8LW0018VEC2ui01^Na000HX;3tY$X_jM3QUfCh%s^o(nF++< zc?Th6v=oL>*by8K!mhvwelUXuuW&&U9iGO3hM@>Njw{l^#0q9mWpcefdI;O$;efnY zkd~@r-o$*74FCWI1%d((4+jDz0va0>69^fI6%`W{8w!gU1pyL>prH>E0R<%k6Aq%H z4ij+^9TEwM5P}eh2@)L<~6+>@EpxfA0YrcPNsSu literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif new file mode 100644 index 0000000000000000000000000000000000000000..963a96b8a7593b1d8bcbab073abe5ee4e539dbf6 GIT binary patch literal 331 zcmV-R0kr-{Nk%w1VG;lm0MrryDh>j~yq&6%75dW~z^P39(NxsGDE{UkxtkIEq(S-a zRKlwv+S=Lr?>hbYY~sQ?c3T&ZcN_Nh_EU3s(>Io6B&>WW`@bsw**)Ocy1bht z{*G6|uwwqUQ2+n{A^8LW0018VEC2ui01^Na000HZ;3tYwX_jM3YQ!c88=*-m*&&bO zILd=`w3KAC;8hxpif*w9ek6oqV-Z0L77fROK$BSR@5BAv-%C>6y>>#+D4e#&nz^qMDItlpp zTG728+|V&?R13PIEBW(C`uh6d*t-1sZ^XQv;oDD}iYLOV7uVO;{`xl4#4tJ{0;h@! z>)kfFn;iS@Hvj+tA^8LW0018VEC2ui01^Na000Hm;3tYuX_jM3Mo7199TGt*Nf;R= zNmOPKwA8_2Q6MTDP6eT`I1VESVj-zGIG(JdB3U44kcdI@;AAq{Gv^^O%%ltj2GdB) z>vIL;d*~=0a|w1Bf^!cF9R~+vb94;_0}TxWlnMrlj2MuVoSYAreF`3(0|pHS8VLgr zi3bP_qZ;q#>Sw62=mns-On=0wransPVevT^YK{Dy(0YY zH)vE6x0?;Wqb>gZas1^OT0si>`ugD5y87}*#H$s=yq(wA*8cf7{`y+(+9J7|9QfT7 z`ROHiU=Y&6FaQ7mA^8LW0018VEC2ui01^Na000Hi;3tYvX_jM3N`@u~nju9hSuh^r zIEcp-wA7(NL0~2d#RP+(G!CPPA>o*KJjv_CkucCA5=K?AfF#RG2V*8BU@jL304|4P z2;PGRF@bj$et;Jf2pR_mVsIA<85|n}kQ*Bq42Ovqj*yy>6P0=h3X&9Z01yyk~2N4w%7#RW^55W%`0vQ+-6(y_*2pqz~90*;x9}yM}%$UI(7t#$D mK_3Se1{4HKM+6iG7EmeH6$V631{L5n)#CyC0qx-*Apkoyg?w!Q literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif new file mode 100644 index 0000000000000000000000000000000000000000..334d49e0e60f2997c9ba24071764f95d9e08a5cc GIT binary patch literal 336 zcmV-W0k8f?Nk%w1VG;lm0MrryI4TI-%dP0m5~*+Y`T~ z7Rth){q{I_X%*S48uRZ|(b3V&wIKTX`u+WJzo<^$#wuY;3W|Cf{O29IkTAcaE&lpe z+P*^H)-tknA^-pYA^8LW0018VEC2ui01^Na000He;3tYwX_n)75QgVvNQ`6#5gcMm zEEG~blgXokptKAJgCU?%JT?yos!R6cPtcQWh2siHlNI2L}ifQhgX02^InZ2?-ktkqVRyZJY^Trk|lv zovp437?1~d46O)?2(1i+2NDYk8<+_Kil!K!3njA^!I#dL8x<729}*B65mC=m5gHH@ iDi9P3f*VjB3KS4HDb_qqRul{0DIT=Nk%w1VG;lm0Mrx!QauaC#>Vb6G=_5=^YB^9wrc376Sb5I-qJGf@9vZ# z5WlKU(!eVB+7tfnDXp0zyB`?BZ5IChalob*`uh6d*t+@dKGHcU+L|83yq*5~IoH?L zy`?Gp<{bX|SpWb4A^8LW0018VEC2ui01^Na000Hg;3tYyX_jM3R?Bl7&r(q;SsVx< zNd$5fv{ZsKA$SlL3&KN~a1tZRf*~1Ltkx9~2uL3&z-yb0WJDRY082|tP literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif new file mode 100644 index 0000000000000000000000000000000000000000..1606c119e75678c4031f384e0d50849906e8f533 GIT binary patch literal 344 zcmV-e0jK^)Nk%w1VG;lm0MruzQauf>s;1-69HWK?p_PpF=Pd8~Ygtcnp*fHAL z**;z>w3iC}`fmL6IkKB1N;3zEa}&zKpsu1;_V)HocR5-{J~BcYvE`YXhBnc@CfU=! za(Ec zG>66zv=rqr;2j)}gKqE$ekcSD?}0=WLB?AWp85)qALd+P=4)6X4oXy{bw2>K^d$ z@6ERvva+(4ib~41YUkTEn1&#?rzrOHT>1I=Y*h`+%*@WtPUPg|!@EEI_d5LgZ>^Og z-qyCjsu$J9F8}}lA^8LW0018VEC2ui01^Na000HT;3tYxX_jM37RWXX8&XUv=@{Oj zX@_Sxw3H&!kzgQ?2LvPOL=>Y5VxieY9+_+eqFEql6OKWXd3Ze8Ggf2Zln@U|mI9d9 zGm^(wVUTA5cYs-V1`2#+a})^z6chrF5`~8k5e6@pmkW`GeGw<069yTQaGnH)s0suV zR|pCd0ZtRCsjM9VB^L+~7X%f*zyuc%2p3=#ycf#L%McYo9|{Z&5D^#_78qL%3{WW( X7Xb)FP6z?UH6ODVz!ev-DIowmgll^P literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif new file mode 100644 index 0000000000000000000000000000000000000000..e6a9e60d5ddd1243fbbf2197b4dc6cd9c1b58b93 GIT binary patch literal 345 zcmV-f0jB;(Nk%w1VG;lm0MrlwCJF+^#>SR<4C>Dj%C>6W(lWoQPVevT^YB^Fy&h6M z4YZgH{O~qtR1(Ci8T;lQ`uh6d*t-7xar*K{#Jrulo-Wtd*44u?{`oh#n;gQXGXDEo z_}UVAU=FH^0ssI2A^8LW0018VEC2ui01^Na000Hn;3tYuX_jM3Mn>j&nGr!MNh}v4 zNyxPjwA7*EKx`%q#$Vl9SM>N9ReH-cn1&^4jYXf0KotqjT;UWC94U(4-NtX4#i!%9}pHA2?&dg3>XLr r8Wuqx2Nnhn1xrT-4h9xbDb^GQ8V(K`1{C5o)#U;I0p5-K5CQ-@9%ySnDDC*4*{OcpiwransPVevTQacIr@mkQp zCf(06s)_=>r7UYx48o@u`uh6d*t-7rH~ji<`P&oj;5Wp)o!8ga`SV6TA_BIW5#ZWV z{`*+__>9}pJ}3JDSl85wB_3Jn)Q o9|so(4+|I^92g4^1{Y8%(iR3pP6ig=HPPY$`~mLZA3^{CJDB=?L;wH) literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif new file mode 100644 index 0000000000000000000000000000000000000000..2075dc16058f1f17912167675ce5cfb9986fc71d GIT binary patch literal 328 zcmV-O0k{4~Nk%w1VG;lm0Mrx!CJF+^#>SU@3-{U*rx+Q^wrc$ABfqLn@9*x?z8(4X zSW-O=@){bmmI~g|GQXoP);cvj3|f1M8e@{G*!tYaiCEujj1NGxRN#6#tiCETo+{x{Hkzt z5k-kPvcD=V2nbmjCgL6k{uF&2nP-t0s;w<385Nx2oxDb z9T5Pp7qJl?3Kkh9oe2sCr5F$p7zPSlsUH*@54w*83=9Or4;w)r2pcU95(FL|1Th;< aDaRQH4;Tal7#Y$v#?=Au0pHUfApkpvZg^t= literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif new file mode 100644 index 0000000000000000000000000000000000000000..bef7e257303f8243c89787e7a7f9955dd1f112e2 GIT binary patch literal 337 zcmV-X0j~Z>Nk%w1VG;lm0MroxDi#99#>R?y8~4}{%C>6#>?OadPVevTr-=vi@LATn z4rERY-qJF+n+?CCE&B3D{{3Shh?>WT0o%`b%*Voqm`dL;(4F35y zc485^n;g!+Bme*aA^8LW0018VEC2ui01^Na000Hf;3tYvX_jM3N=AnuogqakNi<9X zK?&0kwA8^tNn{?C$|IAYI1ZzT!2>}iuMddFK#NEkRl!7%6brJAnUs;)XcnA}TNBSP zxQ9;SvEfwYeSaGd2^|LqU~(QF1qBxr3Ii7x84ZVt8wCTKoSYAqc?p`G2onnpk`IOl z1`HLGj}riN2p1K12N4z&8IBDc6tEWs859;JtRB6>lf+xO9}yT19toMv8wnl`7(pKg j7zPv!OGgY81{hE&(iR3pP6ig;HPPS!_yOwPA0Yrc)=Yf3 literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif new file mode 100644 index 0000000000000000000000000000000000000000..9faf1aff8f4b28e02f4f414975fe1859c43b6b54 GIT binary patch literal 351 zcmV-l0igazNk%w1VG;lm0MrryC=CL}#>Sn03F^-g-qAA3wransPV?|t@9*x%vmQ`7 z4E*pcw3rOOq%3t@4*K#({N^40{c-yG`rz2Q!KfI-yq*61HrBop*VoqW<}&{JS@_x# zwwfH#!YTdnIsgCwA^8LW0018VEC2ui01^Na000Ht;3tYwX_jM3P6j6koH0o%Sun&A zMF+tYv=pL2IcOdp&qH&dG!P?+ArV0)J)O=Yk}%LD6Go&#@MJn3he8=)%%lWOM*#pN zEDD9iq9J$@90v~;83`GC4i0+{2OJ0pVtacF5E}yn8<`pmkCBv_pqZEtoPY-l0}P>= z3WE6cr`19U7DgF9{F}at6R35*Q5~ x2OgBy9tRx_7(pKh7zPvsOGgA01{hE&-4zBzP6id}HMp@0Krnzkbss_i06S`>cdh^c literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif b/js/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif new file mode 100644 index 0000000000000000000000000000000000000000..648e6e879123fe49beebbc1f3635141864a79a9c GIT binary patch literal 336 zcmV-W0k8f?Nk%w1VG;lm0MrryG8O{K#>IbS7WCB_mWF$+hzY-{PWkp(?(Xf;zbH~P z3jOdj?W+^YwrakfE8fyG&5jTBz!3WS`fgM_;MltQ+c}4GO8)(E`S3`@yq&d~5!ct& z)v79NObo)O7XSbNA^8LW0018VEC2ui01^Na000He;3tYwX_jM3QifI(nn6h_*=Wyk zUB{y}v=qYOIUF#R3dZPhAVv~H;(|a2yN_5FH&J0|$eJ3kw4gj1Y?v5d#>LMV12^6BYy$1)ZKA zga!|m2?POz0R)f>4+aPl8KD{gz`+G_9vLMFQU?RU!8uyH9}*i52|cC+7S0YEK_3Vk i1|APfM-Ltb8&4_H83sg61{vHn(cc000qNZzApkp + + + {#example_dlg.title} + + + + + +
    +

    Here is a example dialog.

    +

    Selected text:

    +

    Custom arg:

    + +
    + + +
    +
    + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js new file mode 100644 index 0000000..ec1f81e --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js new file mode 100644 index 0000000..edc1e77 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin_src.js @@ -0,0 +1,84 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + // Load plugin specific language pack + tinymce.PluginManager.requireLangPack('example'); + + tinymce.create('tinymce.plugins.ExamplePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceExample', function() { + ed.windowManager.open({ + file : url + '/dialog.htm', + width : 320 + parseInt(ed.getLang('example.delta_width', 0)), + height : 120 + parseInt(ed.getLang('example.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, // Plugin absolute URL + some_custom_arg : 'custom arg' // Custom argument + }); + }); + + // Register example button + ed.addButton('example', { + title : 'example.desc', + cmd : 'mceExample', + image : url + '/img/example.gif' + }); + + // Add a node change handler, selects the button in the UI when a image is selected + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('example', n.nodeName == 'IMG'); + }); + }, + + /** + * Creates control instances based in the incomming name. This method is normally not + * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons + * but you sometimes need to create more complex controls like listboxes, split buttons etc then this + * method can be used to create those. + * + * @param {String} n Name of the control to create. + * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. + * @return {tinymce.ui.Control} New control instance or null if no control was created. + */ + createControl : function(n, cm) { + return null; + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Example plugin', + author : 'Some author', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', + version : "1.0" + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif b/js/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif new file mode 100644 index 0000000000000000000000000000000000000000..1ab5da4461113d2af579898528246fdbe52ecd00 GIT binary patch literal 87 zcmZ?wbhEHb6k!lyn83&Y1dNP~ia%L^OhyJB5FaGNz@*pGzw+SQ`#f{}FJ-?!v#V)e mtsGNfpJeCKSAiOz**>0`XR2{OVa>-G_df0vaY/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("\n'}h.head+=d.getParam("fullpage_default_doctype",'');h.head+="\n\n\n"+d.getParam("fullpage_default_title","Untitled document")+"\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="\n\n";h.foot="\n\n"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js new file mode 100644 index 0000000..f07bdaf --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js @@ -0,0 +1,153 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.FullPagePlugin', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceFullPageProperties', function() { + ed.windowManager.open({ + file : url + '/fullpage.htm', + width : 430 + parseInt(ed.getLang('fullpage.delta_width', 0)), + height : 495 + parseInt(ed.getLang('fullpage.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + head_html : t.head + }); + }); + + // Register buttons + ed.addButton('fullpage', {title : 'fullpage.desc', cmd : 'mceFullPageProperties'}); + + ed.onBeforeSetContent.add(t._setContent, t); + ed.onSetContent.add(t._setBodyAttribs, t); + ed.onGetContent.add(t._getContent, t); + }, + + getInfo : function() { + return { + longname : 'Fullpage', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private plugin internal methods + + _setBodyAttribs : function(ed, o) { + var bdattr, i, len, kv, k, v, t, attr = this.head.match(/body(.*?)>/i); + + if (attr && attr[1]) { + bdattr = attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g); + + if (bdattr) { + for(i = 0, len = bdattr.length; i < len; i++) { + kv = bdattr[i].split('='); + k = kv[0].replace(/\s/,''); + v = kv[1]; + + if (v) { + v = v.replace(/^\s+/,'').replace(/\s+$/,''); + t = v.match(/^["'](.*)["']$/); + + if (t) + v = t[1]; + } else + v = k; + + ed.dom.setAttrib(ed.getBody(), 'style', v); + } + } + } + }, + + _createSerializer : function() { + return new tinymce.dom.Serializer({ + dom : this.editor.dom, + apply_source_formatting : true + }); + }, + + _setContent : function(ed, o) { + var t = this, sp, ep, c = o.content, v, st = ''; + + // Ignore raw updated if we already have a head, this will fix issues with undo/redo keeping the head/foot separate + if (o.format == 'raw' && t.head) + return; + + if (o.source_view && ed.getParam('fullpage_hide_in_source_view')) + return; + + // Parse out head, body and footer + c = c.replace(/<(\/?)BODY/gi, '<$1body'); + sp = c.indexOf('', sp); + t.head = c.substring(0, sp + 1); + + ep = c.indexOf('\n'; + + t.head += ed.getParam('fullpage_default_doctype', ''); + t.head += '\n\n\n' + ed.getParam('fullpage_default_title', 'Untitled document') + '\n'; + + if (v = ed.getParam('fullpage_default_encoding')) + t.head += '\n'; + + if (v = ed.getParam('fullpage_default_font_family')) + st += 'font-family: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_font_size')) + st += 'font-size: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_text_color')) + st += 'color: ' + v + ';'; + + t.head += '\n\n'; + t.foot = '\n\n'; + } + }, + + _getContent : function(ed, o) { + var t = this; + + if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view')) + o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot); + } + }); + + // Register plugin + tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm b/js/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm new file mode 100644 index 0000000..d8e62fb --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm @@ -0,0 +1,571 @@ + + + + {#fullpage_dlg.title} + + + + + + + +
    + + +
    +
    +
    + {#fullpage_dlg.meta_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
     
     
     
     
     
      + +
    +
    + +
    + {#fullpage_dlg.langprops} + + + + + + + + + + + + + + + + + + + + + + +
    + +
      + +
     
    + +
     
    +
    +
    + +
    +
    + {#fullpage_dlg.appearance_textprops} + + + + + + + + + + + + + + + + +
    + +
    + +
    + + + + + +
     
    +
    +
    + +
    + {#fullpage_dlg.appearance_bgprops} + + + + + + + + + + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    + +
    + {#fullpage_dlg.appearance_marginprops} + + + + + + + + + + + + + + +
    +
    + +
    + {#fullpage_dlg.appearance_linkprops} + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
     
    +
    + + + + + +
     
    +
      
    +
    + +
    + {#fullpage_dlg.appearance_style} + + + + + + + + + + +
    + + + + +
     
    +
    +
    + +
    + + +
    + {#fullpage_dlg.head_elements} + +
    +
    +
    + + +
    +
    + + +
    +
    +
    + +
    +
    + +
    + {#fullpage_dlg.meta_element} + + + + + + + + + + + + + + +
    + + +
    + +
    + {#fullpage_dlg.title_element} + + + + + + +
    + + +
    + +
    + {#fullpage_dlg.script_element} + + + +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    + + + + +
     
    +
    + +
    + +
    +
    + + +
    + +
    + {#fullpage_dlg.style_element} + + + +
    + +
    +
    + + + + + + + + + +
    +
    + +
    + +
    +
    + + +
    + +
    + {#fullpage_dlg.base_element} + + + + + + + + + + +
    + + +
    + + + +
    + {#fullpage_dlg.comment_element} + + + + +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js b/js/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js new file mode 100644 index 0000000..7a80fcd --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js @@ -0,0 +1,471 @@ +/** + * fullpage.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var doc; + +var defaultDocTypes = + 'XHTML 1.0 Transitional=,' + + 'XHTML 1.0 Frameset=,' + + 'XHTML 1.0 Strict=,' + + 'XHTML 1.1=,' + + 'HTML 4.01 Transitional=,' + + 'HTML 4.01 Strict=,' + + 'HTML 4.01 Frameset='; + +var defaultEncodings = + 'Western european (iso-8859-1)=iso-8859-1,' + + 'Central European (iso-8859-2)=iso-8859-2,' + + 'Unicode (UTF-8)=utf-8,' + + 'Chinese traditional (Big5)=big5,' + + 'Cyrillic (iso-8859-5)=iso-8859-5,' + + 'Japanese (iso-2022-jp)=iso-2022-jp,' + + 'Greek (iso-8859-7)=iso-8859-7,' + + 'Korean (iso-2022-kr)=iso-2022-kr,' + + 'ASCII (us-ascii)=us-ascii'; + +var defaultMediaTypes = + 'all=all,' + + 'screen=screen,' + + 'print=print,' + + 'tty=tty,' + + 'tv=tv,' + + 'projection=projection,' + + 'handheld=handheld,' + + 'braille=braille,' + + 'aural=aural'; + +var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings'; +var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px'; + +function init() { + var f = document.forms['fullpage'], el = f.elements, e, i, p, doctypes, encodings, mediaTypes, fonts, ed = tinyMCEPopup.editor, dom = tinyMCEPopup.dom, style; + + // Setup doctype select box + doctypes = ed.getParam("fullpage_doctypes", defaultDocTypes).split(','); + for (i=0; i 1) + addSelectValue(f, 'doctypes', p[0], p[1]); + } + + // Setup fonts select box + fonts = ed.getParam("fullpage_fonts", defaultFontNames).split(';'); + for (i=0; i 1) + addSelectValue(f, 'fontface', p[0], p[1]); + } + + // Setup fontsize select box + fonts = ed.getParam("fullpage_fontsizes", defaultFontSizes).split(','); + for (i=0; i 1) { + addSelectValue(f, 'element_style_media', p[0], p[1]); + addSelectValue(f, 'element_link_media', p[0], p[1]); + } + } + + // Setup encodings select box + encodings = ed.getParam("fullpage_encodings", defaultEncodings).split(','); + for (i=0; i 1) { + addSelectValue(f, 'docencoding', p[0], p[1]); + addSelectValue(f, 'element_script_charset', p[0], p[1]); + addSelectValue(f, 'element_link_charset', p[0], p[1]); + } + } + + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color'); + //document.getElementById('hover_color_pickcontainer').innerHTML = getColorPickerHTML('hover_color_pick','hover_color'); + document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color'); + document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color'); + document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor'); + document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage'); + document.getElementById('link_href_pickcontainer').innerHTML = getBrowserHTML('link_href_browser','element_link_href','file','fullpage'); + document.getElementById('script_src_pickcontainer').innerHTML = getBrowserHTML('script_src_browser','element_script_src','file','fullpage'); + document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage'); + + // Resize some elements + if (isVisible('stylesheetbrowser')) + document.getElementById('stylesheet').style.width = '220px'; + + if (isVisible('link_href_browser')) + document.getElementById('element_link_href').style.width = '230px'; + + if (isVisible('bgimage_browser')) + document.getElementById('bgimage').style.width = '210px'; + + // Add iframe + dom.add(document.body, 'iframe', {id : 'documentIframe', src : 'javascript:""', style : {display : 'none'}}); + doc = dom.get('documentIframe').contentWindow.document; + h = tinyMCEPopup.getWindowArg('head_html'); + + // Preprocess the HTML disable scripts and urls + h = h.replace(/ + + + +
    + +
    + + + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js new file mode 100644 index 0000000..e9cba10 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js new file mode 100644 index 0000000..61edf1e --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js @@ -0,0 +1,54 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.IESpell', { + init : function(ed, url) { + var t = this, sp; + + if (!tinymce.isIE) + return; + + t.editor = ed; + + // Register commands + ed.addCommand('mceIESpell', function() { + try { + sp = new ActiveXObject("ieSpell.ieSpellExtension"); + sp.CheckDocumentNode(ed.getDoc().documentElement); + } catch (e) { + if (e.number == -2146827859) { + ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) { + if (s) + window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); + }); + } else + ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number); + } + }); + + // Register buttons + ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'}); + }, + + getInfo : function() { + return { + longname : 'IESpell (IE Only)', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js new file mode 100644 index 0000000..07ea477 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js @@ -0,0 +1 @@ +(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(r,j){var y=this,i,k="",q=y.editor,g=0,s=0,h,m,n,o,l,v,x;r=r||{};j=j||{};if(!r.inline){return y.parent(r,j)}if(!r.type){y.bookmark=q.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();r.width=parseInt(r.width||320);r.height=parseInt(r.height||240)+(tinymce.isIE?8:0);r.min_width=parseInt(r.min_width||150);r.min_height=parseInt(r.min_height||100);r.max_width=parseInt(r.max_width||2000);r.max_height=parseInt(r.max_height||2000);r.left=r.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(r.width/2)));r.top=r.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(r.height/2)));r.movable=r.resizable=true;j.mce_width=r.width;j.mce_height=r.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=r.auto_focus;y.features=r;y.params=j;y.onOpen.dispatch(y,r,j);if(r.type){k+=" mceModal";if(r.type){k+=" mce"+r.type.substring(0,1).toUpperCase()+r.type.substring(1)}r.resizable=false}if(r.statusbar){k+=" mceStatusbar"}if(r.resizable){k+=" mceResizable"}if(r.minimizable){k+=" mceMinimizable"}if(r.maximizable){k+=" mceMaximizable"}if(r.movable){k+=" mceMovable"}y._addAll(d.doc.body,["div",{id:i,"class":q.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},r.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!r.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;s+=d.get(i+"_top").clientHeight;s+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:r.top,left:r.left,width:r.width+g,height:r.height+s});x=r.url||r.file;if(x){if(tinymce.relaxedDomain){x+=(x.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}x=tinymce._addVer(x)}if(!r.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:r.width,height:r.height});d.setAttrib(i+"_ifr","src",x)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(r.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",r.content.replace("\n","
    "))}n=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=y.windows[i];y.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return y._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return y._startDrag(i,t,u.className.substring(13))}}}}}});o=a.add(i,"click",function(f){var p=f.target;y.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":y.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":r.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});v=y.windows[i]={id:i,mousedown_func:n,click_func:o,element:new b(i,{blocker:1,container:q.getContainer()}),iframeElement:new b(i+"_ifr"),features:r,deltaWidth:g,deltaHeight:s};v.iframeElement.on("focus",function(){y.focus(i)});if(y.count==0&&y.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(y.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:y.zIndex-1}});d.show("mceModalBlocker")}else{d.setStyle("mceModalBlocker","z-index",y.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}y.focus(i);y._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}y.count++;return v},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;gf){i=m;f=m.zIndex}});if(i){h.focus(i.id)}}},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js new file mode 100644 index 0000000..10ce4d9 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js @@ -0,0 +1,635 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is; + + tinymce.create('tinymce.plugins.InlinePopups', { + init : function(ed, url) { + // Replace window manager + ed.onBeforeRenderUI.add(function() { + ed.windowManager = new tinymce.InlineWindowManager(ed); + DOM.loadCSS(url + '/skins/' + (ed.settings.inlinepopups_skin || 'clearlooks2') + "/window.css"); + }); + }, + + getInfo : function() { + return { + longname : 'InlinePopups', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager', { + InlineWindowManager : function(ed) { + var t = this; + + t.parent(ed); + t.zIndex = 300000; + t.count = 0; + t.windows = {}; + }, + + open : function(f, p) { + var t = this, id, opt = '', ed = t.editor, dw = 0, dh = 0, vp, po, mdf, clf, we, w, u; + + f = f || {}; + p = p || {}; + + // Run native windows + if (!f.inline) + return t.parent(f, p); + + // Only store selection if the type is a normal window + if (!f.type) + t.bookmark = ed.selection.getBookmark(1); + + id = DOM.uniqueId(); + vp = DOM.getViewPort(); + f.width = parseInt(f.width || 320); + f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0); + f.min_width = parseInt(f.min_width || 150); + f.min_height = parseInt(f.min_height || 100); + f.max_width = parseInt(f.max_width || 2000); + f.max_height = parseInt(f.max_height || 2000); + f.left = f.left || Math.round(Math.max(vp.x, vp.x + (vp.w / 2.0) - (f.width / 2.0))); + f.top = f.top || Math.round(Math.max(vp.y, vp.y + (vp.h / 2.0) - (f.height / 2.0))); + f.movable = f.resizable = true; + p.mce_width = f.width; + p.mce_height = f.height; + p.mce_inline = true; + p.mce_window_id = id; + p.mce_auto_focus = f.auto_focus; + + // Transpose +// po = DOM.getPos(ed.getContainer()); +// f.left -= po.x; +// f.top -= po.y; + + t.features = f; + t.params = p; + t.onOpen.dispatch(t, f, p); + + if (f.type) { + opt += ' mceModal'; + + if (f.type) + opt += ' mce' + f.type.substring(0, 1).toUpperCase() + f.type.substring(1); + + f.resizable = false; + } + + if (f.statusbar) + opt += ' mceStatusbar'; + + if (f.resizable) + opt += ' mceResizable'; + + if (f.minimizable) + opt += ' mceMinimizable'; + + if (f.maximizable) + opt += ' mceMaximizable'; + + if (f.movable) + opt += ' mceMovable'; + + // Create DOM objects + t._addAll(DOM.doc.body, + ['div', {id : id, 'class' : ed.settings.inlinepopups_skin || 'clearlooks2', style : 'width:100px;height:100px'}, + ['div', {id : id + '_wrapper', 'class' : 'mceWrapper' + opt}, + ['div', {id : id + '_top', 'class' : 'mceTop'}, + ['div', {'class' : 'mceLeft'}], + ['div', {'class' : 'mceCenter'}], + ['div', {'class' : 'mceRight'}], + ['span', {id : id + '_title'}, f.title || ''] + ], + + ['div', {id : id + '_middle', 'class' : 'mceMiddle'}, + ['div', {id : id + '_left', 'class' : 'mceLeft'}], + ['span', {id : id + '_content'}], + ['div', {id : id + '_right', 'class' : 'mceRight'}] + ], + + ['div', {id : id + '_bottom', 'class' : 'mceBottom'}, + ['div', {'class' : 'mceLeft'}], + ['div', {'class' : 'mceCenter'}], + ['div', {'class' : 'mceRight'}], + ['span', {id : id + '_status'}, 'Content'] + ], + + ['a', {'class' : 'mceMove', tabindex : '-1', href : 'javascript:;'}], + ['a', {'class' : 'mceMin', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceMax', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceMed', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceClose', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {id : id + '_resize_n', 'class' : 'mceResize mceResizeN', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_s', 'class' : 'mceResize mceResizeS', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_w', 'class' : 'mceResize mceResizeW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_e', 'class' : 'mceResize mceResizeE', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_nw', 'class' : 'mceResize mceResizeNW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_ne', 'class' : 'mceResize mceResizeNE', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_sw', 'class' : 'mceResize mceResizeSW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_se', 'class' : 'mceResize mceResizeSE', tabindex : '-1', href : 'javascript:;'}] + ] + ] + ); + + DOM.setStyles(id, {top : -10000, left : -10000}); + + // Fix gecko rendering bug, where the editors iframe messed with window contents + if (tinymce.isGecko) + DOM.setStyle(id, 'overflow', 'auto'); + + // Measure borders + if (!f.type) { + dw += DOM.get(id + '_left').clientWidth; + dw += DOM.get(id + '_right').clientWidth; + dh += DOM.get(id + '_top').clientHeight; + dh += DOM.get(id + '_bottom').clientHeight; + } + + // Resize window + DOM.setStyles(id, {top : f.top, left : f.left, width : f.width + dw, height : f.height + dh}); + + u = f.url || f.file; + if (u) { + if (tinymce.relaxedDomain) + u += (u.indexOf('?') == -1 ? '?' : '&') + 'mce_rdomain=' + tinymce.relaxedDomain; + + u = tinymce._addVer(u); + } + + if (!f.type) { + DOM.add(id + '_content', 'iframe', {id : id + '_ifr', src : 'javascript:""', frameBorder : 0, style : 'border:0;width:10px;height:10px'}); + DOM.setStyles(id + '_ifr', {width : f.width, height : f.height}); + DOM.setAttrib(id + '_ifr', 'src', u); + } else { + DOM.add(id + '_wrapper', 'a', {id : id + '_ok', 'class' : 'mceButton mceOk', href : 'javascript:;', onmousedown : 'return false;'}, 'Ok'); + + if (f.type == 'confirm') + DOM.add(id + '_wrapper', 'a', {'class' : 'mceButton mceCancel', href : 'javascript:;', onmousedown : 'return false;'}, 'Cancel'); + + DOM.add(id + '_middle', 'div', {'class' : 'mceIcon'}); + DOM.setHTML(id + '_content', f.content.replace('\n', '
    ')); + } + + // Register events + mdf = Event.add(id, 'mousedown', function(e) { + var n = e.target, w, vp; + + w = t.windows[id]; + t.focus(id); + + if (n.nodeName == 'A' || n.nodeName == 'a') { + if (n.className == 'mceMax') { + w.oldPos = w.element.getXY(); + w.oldSize = w.element.getSize(); + + vp = DOM.getViewPort(); + + // Reduce viewport size to avoid scrollbars + vp.w -= 2; + vp.h -= 2; + + w.element.moveTo(vp.x, vp.y); + w.element.resizeTo(vp.w, vp.h); + DOM.setStyles(id + '_ifr', {width : vp.w - w.deltaWidth, height : vp.h - w.deltaHeight}); + DOM.addClass(id + '_wrapper', 'mceMaximized'); + } else if (n.className == 'mceMed') { + // Reset to old size + w.element.moveTo(w.oldPos.x, w.oldPos.y); + w.element.resizeTo(w.oldSize.w, w.oldSize.h); + w.iframeElement.resizeTo(w.oldSize.w - w.deltaWidth, w.oldSize.h - w.deltaHeight); + + DOM.removeClass(id + '_wrapper', 'mceMaximized'); + } else if (n.className == 'mceMove') + return t._startDrag(id, e, n.className); + else if (DOM.hasClass(n, 'mceResize')) + return t._startDrag(id, e, n.className.substring(13)); + } + }); + + clf = Event.add(id, 'click', function(e) { + var n = e.target; + + t.focus(id); + + if (n.nodeName == 'A' || n.nodeName == 'a') { + switch (n.className) { + case 'mceClose': + t.close(null, id); + return Event.cancel(e); + + case 'mceButton mceOk': + case 'mceButton mceCancel': + f.button_func(n.className == 'mceButton mceOk'); + return Event.cancel(e); + } + } + }); + + // Add window + w = t.windows[id] = { + id : id, + mousedown_func : mdf, + click_func : clf, + element : new Element(id, {blocker : 1, container : ed.getContainer()}), + iframeElement : new Element(id + '_ifr'), + features : f, + deltaWidth : dw, + deltaHeight : dh + }; + + w.iframeElement.on('focus', function() { + t.focus(id); + }); + + // Setup blocker + if (t.count == 0 && t.editor.getParam('dialog_type', 'modal') == 'modal') { + DOM.add(DOM.doc.body, 'div', { + id : 'mceModalBlocker', + 'class' : (t.editor.settings.inlinepopups_skin || 'clearlooks2') + '_modalBlocker', + style : {zIndex : t.zIndex - 1} + }); + + DOM.show('mceModalBlocker'); // Reduces flicker in IE + } else + DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1); + + if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel)) + DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2}); + + t.focus(id); + t._fixIELayout(id, 1); + + // Focus ok button + if (DOM.get(id + '_ok')) + DOM.get(id + '_ok').focus(); + + t.count++; + + return w; + }, + + focus : function(id) { + var t = this, w; + + if (w = t.windows[id]) { + w.zIndex = this.zIndex++; + w.element.setStyle('zIndex', w.zIndex); + w.element.update(); + + id = id + '_wrapper'; + DOM.removeClass(t.lastId, 'mceFocus'); + DOM.addClass(id, 'mceFocus'); + t.lastId = id; + } + }, + + _addAll : function(te, ne) { + var i, n, t = this, dom = tinymce.DOM; + + if (is(ne, 'string')) + te.appendChild(dom.doc.createTextNode(ne)); + else if (ne.length) { + te = te.appendChild(dom.create(ne[0], ne[1])); + + for (i=2; i ix) { + fw = w; + ix = w.zIndex; + } + }); + + if (fw) + t.focus(fw.id); + } + }, + + setTitle : function(w, ti) { + var e; + + w = this._findId(w); + + if (e = DOM.get(w + '_title')) + e.innerHTML = DOM.encode(ti); + }, + + alert : function(txt, cb, s) { + var t = this, w; + + w = t.open({ + title : t, + type : 'alert', + button_func : function(s) { + if (cb) + cb.call(s || t, s); + + t.close(null, w.id); + }, + content : DOM.encode(t.editor.getLang(txt, txt)), + inline : 1, + width : 400, + height : 130 + }); + }, + + confirm : function(txt, cb, s) { + var t = this, w; + + w = t.open({ + title : t, + type : 'confirm', + button_func : function(s) { + if (cb) + cb.call(s || t, s); + + t.close(null, w.id); + }, + content : DOM.encode(t.editor.getLang(txt, txt)), + inline : 1, + width : 400, + height : 130 + }); + }, + + // Internal functions + + _findId : function(w) { + var t = this; + + if (typeof(w) == 'string') + return w; + + each(t.windows, function(wo) { + var ifr = DOM.get(wo.id + '_ifr'); + + if (ifr && w == ifr.contentWindow) { + w = wo.id; + return false; + } + }); + + return w; + }, + + _fixIELayout : function(id, s) { + var w, img; + + if (!tinymce.isIE6) + return; + + // Fixes the bug where hover flickers and does odd things in IE6 + each(['n','s','w','e','nw','ne','sw','se'], function(v) { + var e = DOM.get(id + '_resize_' + v); + + DOM.setStyles(e, { + width : s ? e.clientWidth : '', + height : s ? e.clientHeight : '', + cursor : DOM.getStyle(e, 'cursor', 1) + }); + + DOM.setStyle(id + "_bottom", 'bottom', '-1px'); + + e = 0; + }); + + // Fixes graphics glitch + if (w = this.windows[id]) { + // Fixes rendering bug after resize + w.element.hide(); + w.element.show(); + + // Forced a repaint of the window + //DOM.get(id).style.filter = ''; + + // IE has a bug where images used in CSS won't get loaded + // sometimes when the cache in the browser is disabled + // This fix tries to solve it by loading the images using the image object + each(DOM.select('div,a', id), function(e, i) { + if (e.currentStyle.backgroundImage != 'none') { + img = new Image(); + img.src = e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/, '$1'); + } + }); + + DOM.get(id).style.filter = ''; + } + } + }); + + // Register plugin + tinymce.PluginManager.add('inlinepopups', tinymce.plugins.InlinePopups); +})(); + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif new file mode 100644 index 0000000000000000000000000000000000000000..94abd08763fffdaa0dd5c5afb470a97294f2b94d GIT binary patch literal 818 zcmV-21I_$LNk%w1VITk?0OkMyy?1uhZf>Is3*B5?sT&&Hqoc$;Jkrt6&k+&QHa5gV zL)l77I5;@fLqpYMWV+*+oUyj*ia`4%)P|vrSClaB!?EE7K$--(_XZ zOH0lO2-#9n!;Fik78a-!6wR}-yS%#378ch%J=j4(x@2V5*3{b0&C|=t(mFcQDJi8A z60bTsucxKY8XD3{O5bW~+gDfHP*AZbD54S)*gHGL#>A(co5`c08yg$Yzr7_TCCA9d zs-U0MFfhzxW4%d9s-K?K($LSkxy-Sz(7?Xdn3%wSe#oDmxL#e?qN1My0^C(q&nzt3 zjEvWFbJcly)5*uu)6w93eACp@*{!X#QBc56PRYv1%goBm&CA4*kj9vnyFxN00960|JK*lA^8LV00000EC2ui z03ZM$000O7fPaF6goTEOh>41ejE#5-A-Y zDMkRMg$FSdD>XGe76Lo4g8*}CUeivLI}B6rYIE)9Vh306CXDUKb=Dfx`}wT=u<6# zD$n)U&_b6YEgl901IUC4zyf`27&(S$$E;fb{Wx)wm4^u-0H zv*CdXLINn%=tH`+>C>qDxJcmTfS@*Z45S!AI|Ya#EOHOnP2`2|1;88Ju#tey5e=^) w9O1*fx%21Hn;(HtX3!cMK%gku&b_<$??7lEkM$&p`Sa-0r)T3DnWI1eJD_KQDgXcg literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif new file mode 100644 index 0000000000000000000000000000000000000000..e671094cb0eb210b756117f992cf5ca2caa698fd GIT binary patch literal 280 zcmZ?wbhEHb3}BFB*v!Ci>hy`^ZOqepYsb$*CnUiMCojPaU!rn5M;0h0LDv*_&)DBrWN@OfznH1FT4{BUps!wTd|YdJ0002^_xJYp^u)%)d3$)z&B_1&{{R30 z000000000000000A^8LW000^QEC2ui0CWH_000I5phk>jX`ZJhqHH^=Zk(=iEn-2g z?|i>wBOI?nEEih2q)UH?AHyg7~@-@+VH6!(;c_ zxnl@0-@$+5z5y6S@uA0c2rFuI7V_gjj3zt(raakjrMZ$WvB8W9atTdoP;NHMsS_E` zo&bQ*s1XAOQ5i;$x=5;&g^B@Cqe`7hmFm-~ShGUCs0c-^w)`cdp#12=eOP%eQY|sD1+r)(d#BVZMbAD~4*IvE#>(BS&T|xw7TPlrL+3 zoO$zRs18Dl9!)zw58wX%{rd5@fPehOCg6KeHK5@Cf($n3po0lM*gyda7AK*C5k5#^gBwbip@gwr zxFA#zlxU)fn3pyG@#n&{$-F`k&?i#Os}T#YskFu{;S5}9I=NKOD% zl13IcK>xnz`3B3WgWQ!)wLkXuHnZ0c5HvW}0r6=_Zpm`ce)8x0(|!A=bwNAx@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T^KPTcxVj-0|X>-(j+l5M`Wq2O|PlKt>1?^svPY_j#uua~0?Tgn$1%K*EI2i?jm zAoXC1c4Wxs^ZEJtUB4qT{UQ1HY%Uh+pQ*t&D_y59>e1Hjx9TtBow%m&!&jTd_f1dxIfK5J>hhd07SSo@U1ANej1zBgs@J)fS$HxTwj{ShgdWQ_Y8V1_h@vv!qzRzyB@+ z)6#Z?iW=a9&+kg`Kr%f7CfA71iK;1=LJ}Gy$VX4NJcj@#Eg2?3moI4LKhG1RIoI;k zR(9^*MkqfeXOWI?@z07&C`6+;+5U$r@?g~7SE`^9EI4NyQM);aP&a^Qu#OXmrWw+; zlBPWv*b`t#;?w$Wfug|f{7_}xnb%jXB(rC~MUS#+NW!T2av4Ypxp0F2N_qva>Vv^VISDi|>EX(%41 z@Cm688>Uf+QlLkXaIO#&z;q&UJDY-1!mg;(MFDCGS{6p8a!wVF{_rmktj70is)Xxc~qF literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif new file mode 100644 index 0000000000000000000000000000000000000000..c2a2ad454db194e428a7b9da40f62d5376a17428 GIT binary patch literal 769 zcmb7?=`WiB0LI^D)(HC`v6*aD4AW#LGRb0Oi$tH~CP=nb%N%8n zy02ceuewTUUDeW|RaMp*TlLV6R$o=rQOY{@AME+?`}QQiCwU%4Jq)?`{5B8=ECT1T z+wH!7{zji$)-UA>D9({)xO1SJGLHK54Mat(}s4_unMiKjB85EHng*~!Ddt+?(c5uHG4ZI zsc>jP#5Y6w6Wj5!Y=0^oK*&D+R;Yh@ze z7vfi;qFW{owiOfGqcB@XkwUZ0j?Km4{qjE- z6c!Z|O1!?5l~+^}tE#*^aCo0?lZ$rLKBwT;dI+nLO(UEMvb-ad9elEWPw8Xg(t zx$y<#6T+{PQ@$ecjAT|iC%dxnP5yoH$I`OLFU5*drPiz>bidcu^@a^2v}rP3-`?4^ z?Cl>M-Z(n8ot*x$0~Z|;ku35!-qAHSQN*GM3tW8AN#VWJNrHQD+6qXfO_zB^6eFVU zOjzupAb0*`W8} zQVeE5Djt<a0+Owme6r2OGio7DoTWqkhGKj0`0*1-*<$#uL5YH*kC8Z>wpCvYO~asp;G r-~A;>$wp)vkltB=c_?k6Zw*FUgrbAm;sB08O9+}m=}H3OFd*zN8L+JA literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif new file mode 100644 index 0000000000000000000000000000000000000000..43a735f22c81d6d7d99c1ba9f034f38bfdd1a92b GIT binary patch literal 92 zcmZ?wbhEHb&D4o4FLHO9PR)B literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css new file mode 100644 index 0000000..5e6fd7d --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css @@ -0,0 +1,90 @@ +/* Clearlooks 2 */ + +/* Reset */ +.clearlooks2, .clearlooks2 div, .clearlooks2 span, .clearlooks2 a {vertical-align:baseline; text-align:left; position:absolute; border:0; padding:0; margin:0; background:transparent; font-family:Arial,Verdana; font-size:11px; color:#000; text-decoration:none; font-weight:normal; width:auto; height:auto; overflow:hidden; display:block} + +/* General */ +.clearlooks2 {position:absolute; direction:ltr} +.clearlooks2 .mceWrapper {position:static} +.mceEventBlocker {position:fixed; left:0; top:0; background:url(img/horizontal.gif) no-repeat 0 -75px; width:100%; height:100%} +.clearlooks2 .mcePlaceHolder {border:1px solid #000; background:#888; top:0; left:0; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50)} +.clearlooks2_modalBlocker {position:fixed; left:0; top:0; width:100%; height:100%; background:#FFF; opacity:0.6; -ms-filter:'alpha(opacity=60)'; filter:alpha(opacity=60); display:none} + +/* Top */ +.clearlooks2 .mceTop, .clearlooks2 .mceTop div {top:0; width:100%; height:23px} +.clearlooks2 .mceTop .mceLeft {width:6px; background:url(img/corners.gif)} +.clearlooks2 .mceTop .mceCenter {right:6px; width:100%; height:23px; background:url(img/horizontal.gif) 12px 0; clip:rect(auto auto auto 12px)} +.clearlooks2 .mceTop .mceRight {right:0; width:6px; height:23px; background:url(img/corners.gif) -12px 0} +.clearlooks2 .mceTop span {width:100%; text-align:center; vertical-align:middle; line-height:23px; font-weight:bold} +.clearlooks2 .mceFocus .mceTop .mceLeft {background:url(img/corners.gif) -6px 0} +.clearlooks2 .mceFocus .mceTop .mceCenter {background:url(img/horizontal.gif) 0 -23px} +.clearlooks2 .mceFocus .mceTop .mceRight {background:url(img/corners.gif) -18px 0} +.clearlooks2 .mceFocus .mceTop span {color:#FFF} + +/* Middle */ +.clearlooks2 .mceMiddle, .clearlooks2 .mceMiddle div {top:0} +.clearlooks2 .mceMiddle {width:100%; height:100%; clip:rect(23px auto auto auto)} +.clearlooks2 .mceMiddle .mceLeft {left:0; width:5px; height:100%; background:url(img/vertical.gif) -5px 0} +.clearlooks2 .mceMiddle span {top:23px; left:5px; width:100%; height:100%; background:#FFF} +.clearlooks2 .mceMiddle .mceRight {right:0; width:5px; height:100%; background:url(img/vertical.gif)} + +/* Bottom */ +.clearlooks2 .mceBottom, .clearlooks2 .mceBottom div {height:6px} +.clearlooks2 .mceBottom {left:0; bottom:0; width:100%} +.clearlooks2 .mceBottom div {top:0} +.clearlooks2 .mceBottom .mceLeft {left:0; width:5px; background:url(img/corners.gif) -34px -6px} +.clearlooks2 .mceBottom .mceCenter {left:5px; width:100%; background:url(img/horizontal.gif) 0 -46px} +.clearlooks2 .mceBottom .mceRight {right:0; width:5px; background: url(img/corners.gif) -34px 0} +.clearlooks2 .mceBottom span {display:none} +.clearlooks2 .mceStatusbar .mceBottom, .clearlooks2 .mceStatusbar .mceBottom div {height:23px} +.clearlooks2 .mceStatusbar .mceBottom .mceLeft {background:url(img/corners.gif) -29px 0} +.clearlooks2 .mceStatusbar .mceBottom .mceCenter {background:url(img/horizontal.gif) 0 -52px} +.clearlooks2 .mceStatusbar .mceBottom .mceRight {background:url(img/corners.gif) -24px 0} +.clearlooks2 .mceStatusbar .mceBottom span {display:block; left:7px; font-family:Arial, Verdana; font-size:11px; line-height:23px} + +/* Actions */ +.clearlooks2 a {width:29px; height:16px; top:3px;} +.clearlooks2 .mceClose {right:6px; background:url(img/buttons.gif) -87px 0} +.clearlooks2 .mceMin {display:none; right:68px; background:url(img/buttons.gif) 0 0} +.clearlooks2 .mceMed {display:none; right:37px; background:url(img/buttons.gif) -29px 0} +.clearlooks2 .mceMax {display:none; right:37px; background:url(img/buttons.gif) -58px 0} +.clearlooks2 .mceMove {display:none;width:100%;cursor:move;background:url(img/corners.gif) no-repeat -100px -100px} +.clearlooks2 .mceMovable .mceMove {display:block} +.clearlooks2 .mceFocus .mceClose {right:6px; background:url(img/buttons.gif) -87px -16px} +.clearlooks2 .mceFocus .mceMin {right:68px; background:url(img/buttons.gif) 0 -16px} +.clearlooks2 .mceFocus .mceMed {right:37px; background:url(img/buttons.gif) -29px -16px} +.clearlooks2 .mceFocus .mceMax {right:37px; background:url(img/buttons.gif) -58px -16px} +.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px} +.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px} +.clearlooks2 .mceFocus .mceMin:hover {right:68px; background:url(img/buttons.gif) 0 -32px} +.clearlooks2 .mceFocus .mceMed:hover {right:37px; background:url(img/buttons.gif) -29px -32px} +.clearlooks2 .mceFocus .mceMax:hover {right:37px; background:url(img/buttons.gif) -58px -32px} + +/* Resize */ +.clearlooks2 .mceResize {top:auto; left:auto; display:none; width:5px; height:5px; background:url(img/horizontal.gif) no-repeat 0 -75px} +.clearlooks2 .mceResizable .mceResize {display:block} +.clearlooks2 .mceResizable .mceMin, .clearlooks2 .mceMax {display:none} +.clearlooks2 .mceMinimizable .mceMin {display:block} +.clearlooks2 .mceMaximizable .mceMax {display:block} +.clearlooks2 .mceMaximized .mceMed {display:block} +.clearlooks2 .mceMaximized .mceMax {display:none} +.clearlooks2 a.mceResizeN {top:0; left:0; width:100%; cursor:n-resize} +.clearlooks2 a.mceResizeNW {top:0; left:0; cursor:nw-resize} +.clearlooks2 a.mceResizeNE {top:0; right:0; cursor:ne-resize} +.clearlooks2 a.mceResizeW {top:0; left:0; height:100%; cursor:w-resize;} +.clearlooks2 a.mceResizeE {top:0; right:0; height:100%; cursor:e-resize} +.clearlooks2 a.mceResizeS {bottom:0; left:0; width:100%; cursor:s-resize} +.clearlooks2 a.mceResizeSW {bottom:0; left:0; cursor:sw-resize} +.clearlooks2 a.mceResizeSE {bottom:0; right:0; cursor:se-resize} + +/* Alert/Confirm */ +.clearlooks2 .mceButton {font-weight:bold; bottom:10px; width:80px; height:30px; background:url(img/button.gif); line-height:30px; vertical-align:middle; text-align:center; outline:0} +.clearlooks2 .mceMiddle .mceIcon {left:15px; top:35px; width:32px; height:32px} +.clearlooks2 .mceAlert .mceMiddle span, .clearlooks2 .mceConfirm .mceMiddle span {background:transparent;left:60px; top:35px; width:320px; height:50px; font-weight:bold; overflow:auto; white-space:normal} +.clearlooks2 a:hover {font-weight:bold;} +.clearlooks2 .mceAlert .mceMiddle, .clearlooks2 .mceConfirm .mceMiddle {background:#D6D7D5} +.clearlooks2 .mceAlert .mceOk {left:50%; top:auto; margin-left: -40px} +.clearlooks2 .mceAlert .mceIcon {background:url(img/alert.gif)} +.clearlooks2 .mceConfirm .mceOk {left:50%; top:auto; margin-left: -90px} +.clearlooks2 .mceConfirm .mceCancel {left:50%; top:auto} +.clearlooks2 .mceConfirm .mceIcon {background:url(img/confirm.gif)} \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm new file mode 100644 index 0000000..c98fe41 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm @@ -0,0 +1,387 @@ + + + +Template for dialogs + + + + +
    +
    +
    +
    +
    +
    +
    + Blured +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Focused +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Statusbar +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Statusbar, Resizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Resizable, Maximizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Blurred, Maximizable, Statusbar, Resizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Maximized, Maximizable, Minimizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Blured +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Alert +
    + +
    +
    + + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + +
    +
    +
    + +
    +
    +
    +
    +
    + + + Ok + +
    +
    + +
    +
    +
    +
    +
    +
    + Confirm +
    + +
    +
    + + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + +
    +
    +
    + +
    +
    +
    +
    +
    + + + Ok + Cancel + +
    +
    +
    + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js new file mode 100644 index 0000000..938ce6b --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.InsertDateTime",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertDate",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_dateFormat",a.getLang("insertdatetime.date_fmt")));a.execCommand("mceInsertContent",false,d)});a.addCommand("mceInsertTime",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_timeFormat",a.getLang("insertdatetime.time_fmt")));a.execCommand("mceInsertContent",false,d)});a.addButton("insertdate",{title:"insertdatetime.insertdate_desc",cmd:"mceInsertDate"});a.addButton("inserttime",{title:"insertdatetime.inserttime_desc",cmd:"mceInsertTime"})},getInfo:function(){return{longname:"Insert date/time",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getDateTime:function(e,a){var c=this.editor;function b(g,d){g=""+g;if(g.length-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;fg[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js new file mode 100644 index 0000000..701de1a --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js @@ -0,0 +1,212 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Layer', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceInsertLayer', t._insertLayer, t); + + ed.addCommand('mceMoveForward', function() { + t._move(1); + }); + + ed.addCommand('mceMoveBackward', function() { + t._move(-1); + }); + + ed.addCommand('mceMakeAbsolute', function() { + t._toggleAbsolute(); + }); + + // Register buttons + ed.addButton('moveforward', {title : 'layer.forward_desc', cmd : 'mceMoveForward'}); + ed.addButton('movebackward', {title : 'layer.backward_desc', cmd : 'mceMoveBackward'}); + ed.addButton('absolute', {title : 'layer.absolute_desc', cmd : 'mceMakeAbsolute'}); + ed.addButton('insertlayer', {title : 'layer.insertlayer_desc', cmd : 'mceInsertLayer'}); + + ed.onInit.add(function() { + if (tinymce.isIE) + ed.getDoc().execCommand('2D-Position', false, true); + }); + + ed.onNodeChange.add(t._nodeChange, t); + ed.onVisualAid.add(t._visualAid, t); + }, + + getInfo : function() { + return { + longname : 'Layer', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var le, p; + + le = this._getParentLayer(n); + p = ed.dom.getParent(n, 'DIV,P,IMG'); + + if (!p) { + cm.setDisabled('absolute', 1); + cm.setDisabled('moveforward', 1); + cm.setDisabled('movebackward', 1); + } else { + cm.setDisabled('absolute', 0); + cm.setDisabled('moveforward', !le); + cm.setDisabled('movebackward', !le); + cm.setActive('absolute', le && le.style.position.toLowerCase() == "absolute"); + } + }, + + // Private methods + + _visualAid : function(ed, e, s) { + var dom = ed.dom; + + tinymce.each(dom.select('div,p', e), function(e) { + if (/^(absolute|relative|static)$/i.test(e.style.position)) { + if (s) + dom.addClass(e, 'mceItemVisualAid'); + else + dom.removeClass(e, 'mceItemVisualAid'); + } + }); + }, + + _move : function(d) { + var ed = this.editor, i, z = [], le = this._getParentLayer(ed.selection.getNode()), ci = -1, fi = -1, nl; + + nl = []; + tinymce.walk(ed.getBody(), function(n) { + if (n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position)) + nl.push(n); + }, 'childNodes'); + + // Find z-indexes + for (i=0; i -1) { + nl[ci].style.zIndex = z[fi]; + nl[fi].style.zIndex = z[ci]; + } else { + if (z[ci] > 0) + nl[ci].style.zIndex = z[ci] - 1; + } + } else { + // Move forward + + // Try find a higher one + for (i=0; i z[ci]) { + fi = i; + break; + } + } + + if (fi > -1) { + nl[ci].style.zIndex = z[fi]; + nl[fi].style.zIndex = z[ci]; + } else + nl[ci].style.zIndex = z[ci] + 1; + } + + ed.execCommand('mceRepaint'); + }, + + _getParentLayer : function(n) { + return this.editor.dom.getParent(n, function(n) { + return n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position); + }); + }, + + _insertLayer : function() { + var ed = this.editor, p = ed.dom.getPos(ed.dom.getParent(ed.selection.getNode(), '*')); + + ed.dom.add(ed.getBody(), 'div', { + style : { + position : 'absolute', + left : p.x, + top : (p.y > 20 ? p.y : 20), + width : 100, + height : 100 + }, + 'class' : 'mceItemVisualAid' + }, ed.selection.getContent() || ed.getLang('layer.content')); + }, + + _toggleAbsolute : function() { + var ed = this.editor, le = this._getParentLayer(ed.selection.getNode()); + + if (!le) + le = ed.dom.getParent(ed.selection.getNode(), 'DIV,P,IMG'); + + if (le) { + if (le.style.position.toLowerCase() == "absolute") { + ed.dom.setStyles(le, { + position : '', + left : '', + top : '', + width : '', + height : '' + }); + + ed.dom.removeClass(le, 'mceItemVisualAid'); + } else { + if (le.style.left == "") + le.style.left = 20 + 'px'; + + if (le.style.top == "") + le.style.top = 20 + 'px'; + + if (le.style.width == "") + le.style.width = le.width ? (le.width + 'px') : '100px'; + + if (le.style.height == "") + le.style.height = le.height ? (le.height + 'px') : '100px'; + + le.style.position = "absolute"; + ed.addVisual(ed.getBody()); + } + + ed.execCommand('mceRepaint'); + ed.nodeChanged(); + } + } + }); + + // Register plugin + tinymce.PluginManager.add('layer', tinymce.plugins.Layer); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/css/content.css b/js/tinymce/jscripts/tiny_mce/plugins/media/css/content.css new file mode 100644 index 0000000..7739381 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/media/css/content.css @@ -0,0 +1,6 @@ +.mceItemFlash, .mceItemShockWave, .mceItemQuickTime, .mceItemWindowsMedia, .mceItemRealMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc;} +.mceItemShockWave {background-image: url(../img/shockwave.gif);} +.mceItemFlash {background-image:url(../img/flash.gif);} +.mceItemQuickTime {background-image:url(../img/quicktime.gif);} +.mceItemWindowsMedia {background-image:url(../img/windowsmedia.gif);} +.mceItemRealMedia {background-image:url(../img/realmedia.gif);} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/css/media.css b/js/tinymce/jscripts/tiny_mce/plugins/media/css/media.css new file mode 100644 index 0000000..7b2253b --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/media/css/media.css @@ -0,0 +1,16 @@ +#id, #name, #hspace, #vspace, #class_name, #align { width: 100px } +#hspace, #vspace { width: 50px } +#flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px } +#flash_base, #flash_flashvars { width: 240px } +#width, #height { width: 40px } +#src, #media_type { width: 250px } +#class { width: 120px } +#prev { margin: 0; border: 1px solid black; width: 380px; height: 230px; overflow: auto } +.panel_wrapper div.current { height: 390px; overflow: auto } +#flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { display: none } +.mceAddSelectValue { background-color: #DDDDDD } +#qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, #qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, #qt_volume { width: 70px } +#wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, #wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, #wmp_volume { width: 70px } +#rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px } +#shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, #shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { width: 90px } +#qt_qtsrc { width: 200px } diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js new file mode 100644 index 0000000..4bbe367 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var e=this;e.editor=b;e.url=c;function f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("param[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open({file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("media",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._objectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")}if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name=="img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||100));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mceItem/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf-96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemWindowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa0055595a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;case"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/]+>/g,function(j){var i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j=''; + } + + return im; + }); + } + }); + }, + + getInfo : function() { + return { + longname : 'Media', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + _objectsToSpans : function(ed, o) { + var t = this, h = o.content; + + h = h.replace(/]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi, function(a, b, c) { + var o = t._parse(c); + + return '' + }); + + h = h.replace(/]*)>/gi, ''); + h = h.replace(/]*)\/?>/gi, ''); + h = h.replace(/]*)>/gi, ''); + h = h.replace(/<\/(object)([^>]*)>/gi, ''); + h = h.replace(/<\/embed>/gi, ''); + h = h.replace(/]*)>/gi, function(a, b) {return ''}); + h = h.replace(/\/ class=\"mceItemParam\"><\/span>/gi, 'class="mceItemParam">'); + + o.content = h; + }, + + _buildObj : function(o, n) { + var ob, ed = this.editor, dom = ed.dom, p = this._parse(n.title), stc; + + stc = ed.getParam('media_strict', true) && o.type == 'application/x-shockwave-flash'; + + p.width = o.width = dom.getAttrib(n, 'width') || 100; + p.height = o.height = dom.getAttrib(n, 'height') || 100; + + if (p.src) + p.src = ed.convertURL(p.src, 'src', n); + + if (stc) { + ob = dom.create('span', { + id : p.id, + _mce_name : 'object', + type : 'application/x-shockwave-flash', + data : p.src, + style : dom.getAttrib(n, 'style'), + width : o.width, + height : o.height + }); + } else { + ob = dom.create('span', { + id : p.id, + _mce_name : 'object', + classid : "clsid:" + o.classid, + style : dom.getAttrib(n, 'style'), + codebase : o.codebase, + width : o.width, + height : o.height + }); + } + + each (p, function(v, k) { + if (!/^(width|height|codebase|classid|id|_cx|_cy)$/.test(k)) { + // Use url instead of src in IE for Windows media + if (o.type == 'application/x-mplayer2' && k == 'src' && !p.url) + k = 'url'; + + if (v) + dom.add(ob, 'span', {_mce_name : 'param', name : k, '_mce_value' : v}); + } + }); + + if (!stc) + dom.add(ob, 'span', tinymce.extend({_mce_name : 'embed', type : o.type, style : dom.getAttrib(n, 'style')}, p)); + + return ob; + }, + + _spansToImgs : function(p) { + var t = this, dom = t.editor.dom, im, ci; + + each(dom.select('span', p), function(n) { + // Convert object into image + if (dom.getAttrib(n, 'class') == 'mceItemObject') { + ci = dom.getAttrib(n, "classid").toLowerCase().replace(/\s+/g, ''); + + switch (ci) { + case 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000': + dom.replace(t._createImg('mceItemFlash', n), n); + break; + + case 'clsid:166b1bca-3f9c-11cf-8075-444553540000': + dom.replace(t._createImg('mceItemShockWave', n), n); + break; + + case 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6': + case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95': + case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a': + dom.replace(t._createImg('mceItemWindowsMedia', n), n); + break; + + case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b': + dom.replace(t._createImg('mceItemQuickTime', n), n); + break; + + case 'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa': + dom.replace(t._createImg('mceItemRealMedia', n), n); + break; + + default: + dom.replace(t._createImg('mceItemFlash', n), n); + } + + return; + } + + // Convert embed into image + if (dom.getAttrib(n, 'class') == 'mceItemEmbed') { + switch (dom.getAttrib(n, 'type')) { + case 'application/x-shockwave-flash': + dom.replace(t._createImg('mceItemFlash', n), n); + break; + + case 'application/x-director': + dom.replace(t._createImg('mceItemShockWave', n), n); + break; + + case 'application/x-mplayer2': + dom.replace(t._createImg('mceItemWindowsMedia', n), n); + break; + + case 'video/quicktime': + dom.replace(t._createImg('mceItemQuickTime', n), n); + break; + + case 'audio/x-pn-realaudio-plugin': + dom.replace(t._createImg('mceItemRealMedia', n), n); + break; + + default: + dom.replace(t._createImg('mceItemFlash', n), n); + } + } + }); + }, + + _createImg : function(cl, n) { + var im, dom = this.editor.dom, pa = {}, ti = '', args; + + args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality', 'data']; + + // Create image + im = dom.create('img', { + src : this.url + '/img/trans.gif', + width : dom.getAttrib(n, 'width') || 100, + height : dom.getAttrib(n, 'height') || 100, + style : dom.getAttrib(n, 'style'), + 'class' : cl + }); + + // Setup base parameters + each(args, function(na) { + var v = dom.getAttrib(n, na); + + if (v) + pa[na] = v; + }); + + // Add optional parameters + each(dom.select('span', n), function(n) { + if (dom.hasClass(n, 'mceItemParam')) + pa[dom.getAttrib(n, 'name')] = dom.getAttrib(n, '_mce_value'); + }); + + // Use src not movie + if (pa.movie) { + pa.src = pa.movie; + delete pa.movie; + } + + // No src try data + if (!pa.src) { + pa.src = pa.data; + delete pa.data; + } + + // Merge with embed args + n = dom.select('.mceItemEmbed', n)[0]; + if (n) { + each(args, function(na) { + var v = dom.getAttrib(n, na); + + if (v && !pa[na]) + pa[na] = v; + }); + } + + delete pa.width; + delete pa.height; + + im.title = this._serialize(pa); + + return im; + }, + + _parse : function(s) { + return tinymce.util.JSON.parse('{' + s + '}'); + }, + + _serialize : function(o) { + return tinymce.util.JSON.serialize(o).replace(/[{}]/g, ''); + } + }); + + // Register plugin + tinymce.PluginManager.add('media', tinymce.plugins.MediaPlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/img/flash.gif b/js/tinymce/jscripts/tiny_mce/plugins/media/img/flash.gif new file mode 100644 index 0000000000000000000000000000000000000000..cb192e6ceda8d19ad8e7d08dd1cfde0aa72ead2a GIT binary patch literal 241 zcmVOzlLa+Za}7>m0&NpCfJ0FQc3~F7DE)S%o1)Qi1n@vxX46qnD4hRS-NE*Pw!4UvE=#^N( literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf b/js/tinymce/jscripts/tiny_mce/plugins/media/img/flv_player.swf new file mode 100644 index 0000000000000000000000000000000000000000..0b1589bfa3d6ff2cf87c34430163b8290ab1dc75 GIT binary patch literal 36 scmZ<`59TOz?5x5BpSF3gnAA85#BYT>1RZHFR|V0PedD7XSbN literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/img/quicktime.gif b/js/tinymce/jscripts/tiny_mce/plugins/media/img/quicktime.gif new file mode 100644 index 0000000000000000000000000000000000000000..3b0499145b16138249f653a1a3f2c80230fb292c GIT binary patch literal 303 zcmV+~0nq+ONk%w1VGsZi0K^{vH>m7Qv+~s9^fsC5ZpZP=*zu3F=Jxpf8k_5u%JNv6 z=md-84VLU4w)kSE=yI&-yw>b=v+SqE?+kq47pC+YrR?bJ^yu>Zyvpn;hTp*6^mM!O zu+8$^=JX7bb<~J01ZTA{q@86#&8&6~H`Ss{{?p%K!-p%L6P2TpFYz90?pD06UU# BbnE~C literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/img/realmedia.gif b/js/tinymce/jscripts/tiny_mce/plugins/media/img/realmedia.gif new file mode 100644 index 0000000000000000000000000000000000000000..fdfe0b9ac05869ae845fdd828eaad97cc0c69dbc GIT binary patch literal 439 zcmV;o0Z9HwNk%w1VI=?(0K^{vQcz8xz}f&njBB06v9GQ`Jv%NdDHCI&z`wqZw$(Lw zuFTBL!Pe#<92tv>h)9OE1Xh}vnVEHSaeb-GByg#tqM_B*)YRkdSdqTuipLaF8n=^^LJP4|1^gGRdo_Rl+a*grZQ1hw@Zo1ikN$oB{QbRq&z?QIckdq1aE3;Fq_(WV>Kc7gjQtQh+9OrtFhn-)LUqD<|MOIl_!(Ed#pPRE;S)g;ew3>pd zn`Wa(lc2DGa)peFw3f88dp-|`@*)AXj;@(8hwDr|7Sxsp;&YxjN*Y{PBB!TIU|!b7Zgv0OaG5)&Kwi literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/img/trans.gif b/js/tinymce/jscripts/tiny_mce/plugins/media/img/trans.gif new file mode 100644 index 0000000000000000000000000000000000000000..388486517fa8da13ebd150e8f65d5096c3e10c3a GIT binary patch literal 43 ncmZ?wbhEHbWMp7un7{x9ia%KxMSyG_5FaGNz{KRj$Y2csb)f_x literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/img/windowsmedia.gif b/js/tinymce/jscripts/tiny_mce/plugins/media/img/windowsmedia.gif new file mode 100644 index 0000000000000000000000000000000000000000..ab50f2d887a0843b116ef598e5a005e5601d18d0 GIT binary patch literal 415 zcmV;Q0bu?|Nk%w1VGjTg0M$PL`E^qkEu+z?1&N?x_*pRg{rx~kg!#|I<>uyug^O^t z0hZGrt*x!>$1C!zn`W5@`ts6_uMW)2%<0NUEKIo?SIPPE=}U0}7Z(?JcX!y=*;bF< zCWz-=h7+2ao9)(dOHM;+X=xs9)%!~xc&ICMZdRYdUQ2$^@9y(6X3NCIz{cM7f^Z=Q z1_tQ95kgl8b%R%OiYTIo7LSdE^@}A^8LW002J#EC2ui01p5U000KOz@O0K01zUifeIyT9%!RzMDgehG|mwLz+Eh; z7Z~iE zrX?OfJ^>XeDJK)xJuWOB3_l1N0Ra>g4Gk^=ED0V6LI?>4;Q|6OB{LplLMRLg8U5-E J?0y6R06W6!pgRBn literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js b/js/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js new file mode 100644 index 0000000..6fe25de --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js @@ -0,0 +1,73 @@ +/** + * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. + */ + +function writeFlash(p) { + writeEmbed( + 'D27CDB6E-AE6D-11cf-96B8-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'application/x-shockwave-flash', + p + ); +} + +function writeShockWave(p) { + writeEmbed( + '166B1BCA-3F9C-11CF-8075-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0', + 'application/x-director', + p + ); +} + +function writeQuickTime(p) { + writeEmbed( + '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', + 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0', + 'video/quicktime', + p + ); +} + +function writeRealMedia(p) { + writeEmbed( + 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'audio/x-pn-realaudio-plugin', + p + ); +} + +function writeWindowsMedia(p) { + p.url = p.src; + writeEmbed( + '6BF52A52-394A-11D3-B153-00C04F79FAA6', + 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701', + 'application/x-mplayer2', + p + ); +} + +function writeEmbed(cls, cb, mt, p) { + var h = '', n; + + h += ''; + + h += ''); + +function init() { + var pl = "", f, val; + var type = "flash", fe, i; + + ed = tinyMCEPopup.editor; + + tinyMCEPopup.resizeToInnerSize(); + f = document.forms[0] + + fe = ed.selection.getNode(); + if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) { + pl = fe.title; + + switch (ed.dom.getAttrib(fe, 'class')) { + case 'mceItemFlash': + type = 'flash'; + break; + + case 'mceItemFlashVideo': + type = 'flv'; + break; + + case 'mceItemShockWave': + type = 'shockwave'; + break; + + case 'mceItemWindowsMedia': + type = 'wmp'; + break; + + case 'mceItemQuickTime': + type = 'qt'; + break; + + case 'mceItemRealMedia': + type = 'rmp'; + break; + } + + document.forms[0].insert.value = ed.getLang('update', 'Insert', true); + } + + document.getElementById('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media'); + document.getElementById('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','qt_qtsrc','media','media'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + + var html = getMediaListHTML('medialist','src','media','media'); + if (html == "") + document.getElementById("linklistrow").style.display = 'none'; + else + document.getElementById("linklistcontainer").innerHTML = html; + + // Resize some elements + if (isVisible('filebrowser')) + document.getElementById('src').style.width = '230px'; + + // Setup form + if (pl != "") { + pl = tinyMCEPopup.editor.plugins.media._parse(pl); + + switch (type) { + case "flash": + setBool(pl, 'flash', 'play'); + setBool(pl, 'flash', 'loop'); + setBool(pl, 'flash', 'menu'); + setBool(pl, 'flash', 'swliveconnect'); + setStr(pl, 'flash', 'quality'); + setStr(pl, 'flash', 'scale'); + setStr(pl, 'flash', 'salign'); + setStr(pl, 'flash', 'wmode'); + setStr(pl, 'flash', 'base'); + setStr(pl, 'flash', 'flashvars'); + break; + + case "qt": + setBool(pl, 'qt', 'loop'); + setBool(pl, 'qt', 'autoplay'); + setBool(pl, 'qt', 'cache'); + setBool(pl, 'qt', 'controller'); + setBool(pl, 'qt', 'correction'); + setBool(pl, 'qt', 'enablejavascript'); + setBool(pl, 'qt', 'kioskmode'); + setBool(pl, 'qt', 'autohref'); + setBool(pl, 'qt', 'playeveryframe'); + setBool(pl, 'qt', 'tarsetcache'); + setStr(pl, 'qt', 'scale'); + setStr(pl, 'qt', 'starttime'); + setStr(pl, 'qt', 'endtime'); + setStr(pl, 'qt', 'tarset'); + setStr(pl, 'qt', 'qtsrcchokespeed'); + setStr(pl, 'qt', 'volume'); + setStr(pl, 'qt', 'qtsrc'); + break; + + case "shockwave": + setBool(pl, 'shockwave', 'sound'); + setBool(pl, 'shockwave', 'progress'); + setBool(pl, 'shockwave', 'autostart'); + setBool(pl, 'shockwave', 'swliveconnect'); + setStr(pl, 'shockwave', 'swvolume'); + setStr(pl, 'shockwave', 'swstretchstyle'); + setStr(pl, 'shockwave', 'swstretchhalign'); + setStr(pl, 'shockwave', 'swstretchvalign'); + break; + + case "wmp": + setBool(pl, 'wmp', 'autostart'); + setBool(pl, 'wmp', 'enabled'); + setBool(pl, 'wmp', 'enablecontextmenu'); + setBool(pl, 'wmp', 'fullscreen'); + setBool(pl, 'wmp', 'invokeurls'); + setBool(pl, 'wmp', 'mute'); + setBool(pl, 'wmp', 'stretchtofit'); + setBool(pl, 'wmp', 'windowlessvideo'); + setStr(pl, 'wmp', 'balance'); + setStr(pl, 'wmp', 'baseurl'); + setStr(pl, 'wmp', 'captioningid'); + setStr(pl, 'wmp', 'currentmarker'); + setStr(pl, 'wmp', 'currentposition'); + setStr(pl, 'wmp', 'defaultframe'); + setStr(pl, 'wmp', 'playcount'); + setStr(pl, 'wmp', 'rate'); + setStr(pl, 'wmp', 'uimode'); + setStr(pl, 'wmp', 'volume'); + break; + + case "rmp": + setBool(pl, 'rmp', 'autostart'); + setBool(pl, 'rmp', 'loop'); + setBool(pl, 'rmp', 'autogotourl'); + setBool(pl, 'rmp', 'center'); + setBool(pl, 'rmp', 'imagestatus'); + setBool(pl, 'rmp', 'maintainaspect'); + setBool(pl, 'rmp', 'nojava'); + setBool(pl, 'rmp', 'prefetch'); + setBool(pl, 'rmp', 'shuffle'); + setStr(pl, 'rmp', 'console'); + setStr(pl, 'rmp', 'controls'); + setStr(pl, 'rmp', 'numloop'); + setStr(pl, 'rmp', 'scriptcallbacks'); + break; + } + + setStr(pl, null, 'src'); + setStr(pl, null, 'id'); + setStr(pl, null, 'name'); + setStr(pl, null, 'vspace'); + setStr(pl, null, 'hspace'); + setStr(pl, null, 'bgcolor'); + setStr(pl, null, 'align'); + setStr(pl, null, 'width'); + setStr(pl, null, 'height'); + + if ((val = ed.dom.getAttrib(fe, "width")) != "") + pl.width = f.width.value = val; + + if ((val = ed.dom.getAttrib(fe, "height")) != "") + pl.height = f.height.value = val; + + oldWidth = pl.width ? parseInt(pl.width) : 0; + oldHeight = pl.height ? parseInt(pl.height) : 0; + } else + oldWidth = oldHeight = 0; + + selectByValue(f, 'media_type', type); + changedType(type); + updateColor('bgcolor_pick', 'bgcolor'); + + TinyMCE_EditableSelects.init(); + generatePreview(); +} + +function insertMedia() { + var fe, f = document.forms[0], h; + + tinyMCEPopup.restoreSelection(); + + if (!AutoValidator.validate(f)) { + tinyMCEPopup.alert(ed.getLang('invalid_data')); + return false; + } + + f.width.value = f.width.value == "" ? 100 : f.width.value; + f.height.value = f.height.value == "" ? 100 : f.height.value; + + fe = ed.selection.getNode(); + if (fe != null && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) { + switch (f.media_type.options[f.media_type.selectedIndex].value) { + case "flash": + fe.className = "mceItemFlash"; + break; + + case "flv": + fe.className = "mceItemFlashVideo"; + break; + + case "shockwave": + fe.className = "mceItemShockWave"; + break; + + case "qt": + fe.className = "mceItemQuickTime"; + break; + + case "wmp": + fe.className = "mceItemWindowsMedia"; + break; + + case "rmp": + fe.className = "mceItemRealMedia"; + break; + } + + if (fe.width != f.width.value || fe.height != f.height.value) + ed.execCommand('mceRepaint'); + + fe.title = serializeParameters(); + fe.width = f.width.value; + fe.height = f.height.value; + fe.style.width = f.width.value + (f.width.value.indexOf('%') == -1 ? 'px' : ''); + fe.style.height = f.height.value + (f.height.value.indexOf('%') == -1 ? 'px' : ''); + fe.align = f.align.options[f.align.selectedIndex].value; + } else { + h = ' 0) { + var html = ""; + + html += ''; + + return html; + } + + return ""; +} + +function getType(v) { + var fo, i, c, el, x, f = document.forms[0]; + + fo = ed.getParam("media_types", "flash=swf;flv=flv;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;shockwave=dcr;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm,ra,ram").split(';'); + + // YouTube + if (v.match(/watch\?v=(.+)(.*)/)) { + f.width.value = '425'; + f.height.value = '350'; + f.src.value = 'http://www.youtube.com/v/' + v.match(/v=(.*)(.*)/)[0].split('=')[1]; + return 'flash'; + } + + // Google video + if (v.indexOf('http://video.google.com/videoplay?docid=') == 0) { + f.width.value = '425'; + f.height.value = '326'; + f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + v.substring('http://video.google.com/videoplay?docid='.length) + '&hl=en'; + return 'flash'; + } + + for (i=0; i 0 ? s.substring(0, s.length - 1) : s; + + return s; +} + +function setBool(pl, p, n) { + if (typeof(pl[n]) == "undefined") + return; + + document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false'; +} + +function setStr(pl, p, n) { + var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n]; + + if (typeof(pl[n]) == "undefined") + return; + + if (e.type == "text") + e.value = pl[n]; + else + selectByValue(f, (p != null ? p + "_" : '') + n, pl[n]); +} + +function getBool(p, n, d, tv, fv) { + var v = document.forms[0].elements[p + "_" + n].checked; + + tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'"; + fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'"; + + return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',"); +} + +function getStr(p, n, d) { + var e = document.forms[0].elements[(p != null ? p + "_" : "") + n]; + var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value; + + if (n == 'src') + v = tinyMCEPopup.editor.convertURL(v, 'src', null); + + return ((n == d || v == '') ? '' : n + ":'" + jsEncode(v) + "',"); +} + +function getInt(p, n, d) { + var e = document.forms[0].elements[(p != null ? p + "_" : "") + n]; + var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value; + + return ((n == d || v == '') ? '' : n + ":" + v.replace(/[^0-9]+/g, '') + ","); +} + +function jsEncode(s) { + s = s.replace(new RegExp('\\\\', 'g'), '\\\\'); + s = s.replace(new RegExp('"', 'g'), '\\"'); + s = s.replace(new RegExp("'", 'g'), "\\'"); + + return s; +} + +function generatePreview(c) { + var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, type, codebase, wp, hp, nw, nh; + + p.innerHTML = ''; + + nw = parseInt(f.width.value); + nh = parseInt(f.height.value); + + if (f.width.value != "" && f.height.value != "") { + if (f.constrain.checked) { + if (c == 'width' && oldWidth != 0) { + wp = nw / oldWidth; + nh = Math.round(wp * nh); + f.height.value = nh; + } else if (c == 'height' && oldHeight != 0) { + hp = nh / oldHeight; + nw = Math.round(hp * nw); + f.width.value = nw; + } + } + } + + if (f.width.value != "") + oldWidth = nw; + + if (f.height.value != "") + oldHeight = nh; + + // After constrain + pl = serializeParameters(); + + switch (f.media_type.options[f.media_type.selectedIndex].value) { + case "flash": + cls = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'; + codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'; + type = 'application/x-shockwave-flash'; + break; + + case "shockwave": + cls = 'clsid:166B1BCA-3F9C-11CF-8075-444553540000'; + codebase = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0'; + type = 'application/x-director'; + break; + + case "qt": + cls = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'; + codebase = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0'; + type = 'video/quicktime'; + break; + + case "wmp": + cls = ed.getParam('media_wmp6_compatible') ? 'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6'; + codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; + type = 'application/x-mplayer2'; + break; + + case "rmp": + cls = 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'; + codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; + type = 'audio/x-pn-realaudio-plugin'; + break; + } + + if (pl == '') { + p.innerHTML = ''; + return; + } + + pl = tinyMCEPopup.editor.plugins.media._parse(pl); + + if (!pl.src) { + p.innerHTML = ''; + return; + } + + pl.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(pl.src); + pl.width = !pl.width ? 100 : pl.width; + pl.height = !pl.height ? 100 : pl.height; + pl.id = !pl.id ? 'obj' : pl.id; + pl.name = !pl.name ? 'eobj' : pl.name; + pl.align = !pl.align ? '' : pl.align; + + // Avoid annoying warning about insecure items + if (!tinymce.isIE || document.location.protocol != 'https:') { + h += ''; + + for (n in pl) { + h += ''; + + // Add extra url parameter if it's an absolute URL + if (n == 'src' && pl[n].indexOf('://') != -1) + h += ''; + } + } + + h += ' + + + {#media_dlg.title} + + + + + + + + + +
    + + +
    +
    +
    + {#media_dlg.general} + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + +
     
    +
    + + + + + + +
    x   
    +
    +
    + +
    + {#media_dlg.preview} + +
    +
    + +
    +
    + {#media_dlg.advanced} + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + +
     
    +
    +
    + +
    + {#media_dlg.flash_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + + + + + + + +
    +
    + +
    + {#media_dlg.flv_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + {#media_dlg.qt_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +  
    + + + + + +
     
    +
    +
    + +
    + {#media_dlg.wmp_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + {#media_dlg.rmp_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +   +
    +
    + +
    + {#media_dlg.shockwave_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js new file mode 100644 index 0000000..eb40a6a --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?' ':" ")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(tinymce.isIE&&f.keyCode==9){d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");tinymce.dom.Event.cancel(f)}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js new file mode 100644 index 0000000..e4fc5a3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js @@ -0,0 +1,53 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Nonbreaking', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceNonBreaking', function() { + ed.execCommand('mceInsertContent', false, (ed.plugins.visualchars && ed.plugins.visualchars.state) ? ' ' : ' '); + }); + + // Register buttons + ed.addButton('nonbreaking', {title : 'nonbreaking.nonbreaking_desc', cmd : 'mceNonBreaking'}); + + if (ed.getParam('nonbreaking_force_tab')) { + ed.onKeyDown.add(function(ed, e) { + if (tinymce.isIE && e.keyCode == 9) { + ed.execCommand('mceNonBreaking'); + ed.execCommand('mceNonBreaking'); + ed.execCommand('mceNonBreaking'); + tinymce.dom.Event.cancel(e); + } + }); + } + }, + + getInfo : function() { + return { + longname : 'Nonbreaking space', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + + // Private methods + }); + + // Register plugin + tinymce.PluginManager.add('nonbreaking', tinymce.plugins.Nonbreaking); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js new file mode 100644 index 0000000..9945cd8 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(h,g,k){var j,i;j=h.dom.getParent(h.selection.getStart(),function(l){return h.dom.hasClass(l,b)});i=h.dom.getParent(h.selection.getEnd(),function(l){return h.dom.hasClass(l,b)});if(j||i){f._setDisabled(1);return false}else{f._setDisabled(0)}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js new file mode 100644 index 0000000..54a7b36 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js @@ -0,0 +1,90 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var Event = tinymce.dom.Event; + + tinymce.create('tinymce.plugins.NonEditablePlugin', { + init : function(ed, url) { + var t = this, editClass, nonEditClass; + + t.editor = ed; + editClass = ed.getParam("noneditable_editable_class", "mceEditable"); + nonEditClass = ed.getParam("noneditable_noneditable_class", "mceNonEditable"); + + ed.onNodeChange.addToTop(function(ed, cm, n) { + var sc, ec; + + // Block if start or end is inside a non editable element + sc = ed.dom.getParent(ed.selection.getStart(), function(n) { + return ed.dom.hasClass(n, nonEditClass); + }); + + ec = ed.dom.getParent(ed.selection.getEnd(), function(n) { + return ed.dom.hasClass(n, nonEditClass); + }); + + // Block or unblock + if (sc || ec) { + t._setDisabled(1); + return false; + } else + t._setDisabled(0); + }); + }, + + getInfo : function() { + return { + longname : 'Non editable elements', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + _block : function(ed, e) { + var k = e.keyCode; + + // Don't block arrow keys, pg up/down, and F1-F12 + if ((k > 32 && k < 41) || (k > 111 && k < 124)) + return; + + return Event.cancel(e); + }, + + _setDisabled : function(s) { + var t = this, ed = t.editor; + + tinymce.each(ed.controlManager.controls, function(c) { + c.setDisabled(s); + }); + + if (s !== t.disabled) { + if (s) { + ed.onKeyDown.addToTop(t._block); + ed.onKeyPress.addToTop(t._block); + ed.onKeyUp.addToTop(t._block); + ed.onPaste.addToTop(t._block); + } else { + ed.onKeyDown.remove(t._block); + ed.onKeyPress.remove(t._block); + ed.onKeyUp.remove(t._block); + ed.onPaste.remove(t._block); + } + + t.disabled = s; + } + } + }); + + // Register plugin + tinymce.PluginManager.add('noneditable', tinymce.plugins.NonEditablePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/css/content.css b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/css/content.css new file mode 100644 index 0000000..c949d58 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/css/content.css @@ -0,0 +1 @@ +.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../img/pagebreak.gif) no-repeat center top;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js new file mode 100644 index 0000000..a212f69 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='',a="mcePageBreak",c=b.getParam("pagebreak_separator",""),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.settings.content_css!==false){b.dom.loadCSS(d+"/css/content.css")}if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js new file mode 100644 index 0000000..905a743 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js @@ -0,0 +1,77 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.PageBreakPlugin', { + init : function(ed, url) { + var pb = '', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', ''), pbRE; + + pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g'); + + // Register commands + ed.addCommand('mcePageBreak', function() { + ed.execCommand('mceInsertContent', 0, pb); + }); + + // Register buttons + ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls}); + + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + "/css/content.css"); + + if (ed.theme.onResolveName) { + ed.theme.onResolveName.add(function(th, o) { + if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls)) + o.name = 'pagebreak'; + }); + } + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls)) + ed.selection.select(e); + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('pagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls)); + }); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = o.content.replace(pbRE, pb); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.get) + o.content = o.content.replace(/]+>/g, function(im) { + if (im.indexOf('class="mcePageBreak') !== -1) + im = sep; + + return im; + }); + }); + }, + + getInfo : function() { + return { + longname : 'PageBreak', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('pagebreak', tinymce.plugins.PageBreakPlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif new file mode 100644 index 0000000000000000000000000000000000000000..acdf4085f3068c4c0a1d6855f4b80dae8bac3068 GIT binary patch literal 325 zcmV-L0lNN2Nk%w1VPpUd0J9GO`>v<{=;ru;boX6P{`2zsmyZ3>&HK5t_;hIbi-G;z z+4`cI{KdfcXj}GCLjV8&A^8LW000jFEC2ui0Av6R000E?@X1N5y*TU5yZ>M)j$|1M z4Ouvb$pHu>IW8BZq|n;U0s@T!VM5~w1_+1X!EiVl!&PITYdjT!ffYfpt{jAfv%qvh zA63WUHSlr7LkeyaV4(pM0f50(II?RD4RtMg4-E+tFhdAy5{3c=0}3Bg9Y8`B2To20 zR%SO62L%9}0H+dzoKB$+2TOwzUrwi{XiBM^4V#>63q3!LsU3u93zH8CdwqY%62;1g z0g8ze$k93lWExp`CUe|K4qOWk17ZeJ0|5pDP6+}};{>bI@lOWj=kf}r2sHp7w9-Ie XK%9UG6W(*AX-vY05F<*&5CH%?Gwy&_ literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/trans.gif b/js/tinymce/jscripts/tiny_mce/plugins/pagebreak/img/trans.gif new file mode 100644 index 0000000000000000000000000000000000000000..388486517fa8da13ebd150e8f65d5096c3e10c3a GIT binary patch literal 43 ncmZ?wbhEHbWMp7un7{x9ia%KxMSyG_5FaGNz{KRj$Y2csb)f_x literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/blank.htm b/js/tinymce/jscripts/tiny_mce/plugins/paste/blank.htm new file mode 100644 index 0000000..f841206 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/blank.htm @@ -0,0 +1,22 @@ + + +blank_page + + + + + + + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/css/blank.css b/js/tinymce/jscripts/tiny_mce/plugins/paste/css/blank.css new file mode 100644 index 0000000..f1ab113 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/css/blank.css @@ -0,0 +1,14 @@ +html, body {height:98%} +body { +background-color: #FFFFFF; +font-family: Verdana, Arial, Helvetica, sans-serif; +font-size: 10px; +scrollbar-3dlight-color: #F0F0EE; +scrollbar-arrow-color: #676662; +scrollbar-base-color: #F0F0EE; +scrollbar-darkshadow-color: #DDDDDD; +scrollbar-face-color: #E0E0DD; +scrollbar-highlight-color: #F0F0EE; +scrollbar-shadow-color: #F0F0EE; +scrollbar-track-color: #F5F5F5; +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/css/pasteword.css b/js/tinymce/jscripts/tiny_mce/plugins/paste/css/pasteword.css new file mode 100644 index 0000000..77685fd --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/css/pasteword.css @@ -0,0 +1,3 @@ +.sourceIframe { + border: 1px solid #808080; +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js new file mode 100644 index 0000000..3785ab2 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js @@ -0,0 +1 @@ +(function(){var c=tinymce.each,d=null,a={paste_auto_cleanup_on_paste:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_convert_headers_to_strong:false,paste_dialog_width:"450",paste_dialog_height:"400",paste_text_use_dialog:false,paste_text_sticky:false,paste_text_notifyalways:false,paste_text_linebreaktype:"p",paste_text_replacements:[[/\u2026/g,"..."],[/[\x93\x94\u201c\u201d]/g,'"'],[/[\x60\x91\x92\u2018\u2019]/g,"'"]]};function b(e,f){return e.getParam(f,a[f])}tinymce.create("tinymce.plugins.PastePlugin",{init:function(e,f){var g=this;g.editor=e;g.url=f;g.onPreProcess=new tinymce.util.Dispatcher(g);g.onPostProcess=new tinymce.util.Dispatcher(g);g.onPreProcess.add(g._preProcess);g.onPostProcess.add(g._postProcess);g.onPreProcess.add(function(j,k){e.execCallback("paste_preprocess",j,k)});g.onPostProcess.add(function(j,k){e.execCallback("paste_postprocess",j,k)});e.pasteAsPlainText=false;function i(l,j){var k=e.dom;g.onPreProcess.dispatch(g,l);l.node=k.create("div",0,l.content);g.onPostProcess.dispatch(g,l);l.content=e.serializer.serialize(l.node,{getInner:1});if((!j)&&(e.pasteAsPlainText)){g._insertPlainText(e,k,l.content);if(!b(e,"paste_text_sticky")){e.pasteAsPlainText=false;e.controlManager.setActive("pastetext",false)}}else{if(/<(p|h[1-6]|ul|ol)/.test(l.content)){g._insertBlockContent(e,k,l.content)}else{g._insert(l.content)}}}e.addCommand("mceInsertClipboardContent",function(j,k){i(k,true)});if(!b(e,"paste_text_use_dialog")){e.addCommand("mcePasteText",function(k,j){var l=tinymce.util.Cookie;e.pasteAsPlainText=!e.pasteAsPlainText;e.controlManager.setActive("pastetext",e.pasteAsPlainText);if((e.pasteAsPlainText)&&(!l.get("tinymcePasteText"))){if(b(e,"paste_text_sticky")){e.windowManager.alert(e.translate("paste.plaintext_mode_sticky"))}else{e.windowManager.alert(e.translate("paste.plaintext_mode_sticky"))}if(!b(e,"paste_text_notifyalways")){l.set("tinymcePasteText","1",new Date(new Date().getFullYear()+1,12,31))}}})}e.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});e.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"});function h(s){var m,q,k,l=e.selection,p=e.dom,r=e.getBody(),j;if(e.pasteAsPlainText&&(s.clipboardData||p.doc.dataTransfer)){s.preventDefault();i({content:(s.clipboardData||p.doc.dataTransfer).getData("Text")},true);return}if(p.get("_mcePaste")){return}m=p.add(r,"div",{id:"_mcePaste","class":"mcePaste"},'\uFEFF
    ');if(r!=e.getDoc().body){j=p.getPos(e.selection.getStart(),r).y}else{j=r.scrollTop}p.setStyles(m,{position:"absolute",left:-10000,top:j,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){k=p.doc.body.createTextRange();k.moveToElementText(m);k.execCommand("Paste");p.remove(m);if(m.innerHTML==="\uFEFF"){e.execCommand("mcePasteWord");s.preventDefault();return}i({content:m.innerHTML});return tinymce.dom.Event.cancel(s)}else{function o(n){n.preventDefault()}p.bind(e.getDoc(),"mousedown",o);p.bind(e.getDoc(),"keydown",o);q=e.selection.getRng();m=m.firstChild;k=e.getDoc().createRange();k.setStart(m,0);k.setEnd(m,1);l.setRng(k);window.setTimeout(function(){var t="",n=p.select("div.mcePaste");c(n,function(v){var u=v.firstChild;if(u&&u.nodeName=="DIV"&&u.style.marginTop&&u.style.backgroundColor){p.remove(u,1)}c(p.select("div.mcePaste",v),function(w){p.remove(w,1)});c(p.select("span.Apple-style-span",v),function(w){p.remove(w,1)});c(p.select("br[_mce_bogus]",v),function(w){p.remove(w)});t+=v.innerHTML});c(n,function(u){p.remove(u)});if(q){l.setRng(q)}i({content:t});p.unbind(e.getDoc(),"mousedown",o);p.unbind(e.getDoc(),"keydown",o)},0)}}if(b(e,"paste_auto_cleanup_on_paste")){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){e.onKeyDown.add(function(j,k){if(((tinymce.isMac?k.metaKey:k.ctrlKey)&&k.keyCode==86)||(k.shiftKey&&k.keyCode==45)){h(k)}})}else{e.onPaste.addToTop(function(j,k){return h(k)})}}if(b(e,"paste_block_drop")){e.onInit.add(function(){e.dom.bind(e.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(j){j.preventDefault();j.stopPropagation();return false})})}g._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(i,f){var l=this.editor,k=f.content,q=tinymce.grep,p=tinymce.explode,g=tinymce.trim,m,j;function e(h){c(h,function(o){if(o.constructor==RegExp){k=k.replace(o,"")}else{k=k.replace(o[0],o[1])}})}if(/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(k)||f.wordContent){f.wordContent=true;e([/^\s*( )+/gi,/( |]*>)+\s*$/gi]);if(b(l,"paste_convert_headers_to_strong")){k=k.replace(/

    ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"

    $1

    ")}if(b(l,"paste_convert_middot_lists")){e([[//gi,"$&__MCE_ITEM__"],[/(]+(?:mso-list:|:\s*symbol)[^>]+>)/gi,"$1__MCE_ITEM__"]])}e([//gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,"\u00a0"]]);do{m=k.length;k=k.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi,"$1")}while(m!=k.length);if(b(l,"paste_retain_style_properties").replace(/^none$/i,"").length==0){k=k.replace(/<\/?span[^>]*>/gi,"")}else{e([[/([\s\u00a0]*)<\/span>/gi,function(o,h){return(h.length>0)?h.replace(/./," ").slice(Math.floor(h.length/2)).split("").join("\u00a0"):""}],[/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,function(u,h,t){var v=[],o=0,r=p(g(t).replace(/"/gi,"'"),";");c(r,function(s){var w,y,z=p(s,":");function x(A){return A+((A!=="0")&&(/\d$/.test(A)))?"px":""}if(z.length==2){w=z[0].toLowerCase();y=z[1].toLowerCase();switch(w){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":v[o++]=w.replace(/^mso-|-alt$/g,"")+":"+x(y);return;case"horiz-align":v[o++]="text-align:"+y;return;case"vert-align":v[o++]="vertical-align:"+y;return;case"font-color":case"mso-foreground":v[o++]="color:"+y;return;case"mso-background":case"mso-highlight":v[o++]="background:"+y;return;case"mso-default-height":v[o++]="min-height:"+x(y);return;case"mso-default-width":v[o++]="min-width:"+x(y);return;case"mso-padding-between-alt":v[o++]="border-collapse:separate;border-spacing:"+x(y);return;case"text-line-through":if((y=="single")||(y=="double")){v[o++]="text-decoration:line-through"}return;case"mso-zero-height":if(y=="yes"){v[o++]="display:none"}return}if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(w)){return}v[o++]=w+":"+z[1]}});if(o>0){return h+' style="'+v.join(";")+'"'}else{return h}}]])}}if(b(l,"paste_convert_headers_to_strong")){e([[/]*>/gi,"

    "],[/<\/h[1-6][^>]*>/gi,"

    "]])}j=b(l,"paste_strip_class_attributes");if(j!=="none"){function n(r,o){if(j==="all"){return""}var h=q(p(o.replace(/^(["'])(.*)\1$/,"$2")," "),function(s){return(/^(?!mso)/i.test(s))});return h.length?' class="'+h.join(" ")+'"':""}k=k.replace(/ class="([^"]+)"/gi,n);k=k.replace(/ class=(\w+)/gi,n)}if(b(l,"paste_remove_spans")){k=k.replace(/<\/?span[^>]*>/gi,"")}f.content=k},_postProcess:function(h,j){var g=this,f=g.editor,i=f.dom,e;if(j.wordContent){c(i.select("a",j.node),function(k){if(!k.href||k.href.indexOf("#_Toc")!=-1){i.remove(k,1)}});if(b(f,"paste_convert_middot_lists")){g._convertLists(h,j)}e=b(f,"paste_retain_style_properties");if((tinymce.is(e,"string"))&&(e!=="all")&&(e!=="*")){e=tinymce.explode(e.replace(/^none$/i,""));c(i.select("*",j.node),function(n){var o={},l=0,m,p,k;if(e){for(m=0;m0){i.setStyles(n,o)}else{if(n.nodeName=="SPAN"&&!n.className){i.remove(n,true)}}})}}if(b(f,"paste_remove_styles")||(b(f,"paste_remove_styles_if_webkit")&&tinymce.isWebKit)){c(i.select("*[style]",j.node),function(k){k.removeAttribute("style");k.removeAttribute("_mce_style")})}else{if(tinymce.isWebKit){c(i.select("*",j.node),function(k){k.removeAttribute("_mce_style")})}}},_convertLists:function(h,f){var j=h.editor.dom,i,m,e=-1,g,n=[],l,k;c(j.select("p",f.node),function(u){var r,v="",t,s,o,q;for(r=u.firstChild;r&&r.nodeType==3;r=r.nextSibling){v+=r.nodeValue}v=u.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/ /g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(v)){t="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(v)){t="ol"}if(t){g=parseFloat(u.style.marginLeft||0);if(g>e){n.push(g)}if(!i||t!=l){i=j.create(t);j.insertAfter(i,u)}else{if(g>e){i=m.appendChild(j.create(t))}else{if(g]*>/gi,"");if(t=="ul"&&/^[\u2022\u00b7\u00a7\u00d8o]/.test(p)){j.remove(w)}else{if(/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(p)){j.remove(w)}}});s=u.innerHTML;if(t=="ul"){s=u.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/,"")}else{s=u.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.( |\u00a0)+\s*/,"")}m=i.appendChild(j.create("li",0,s));j.remove(u);e=g;l=t}else{i=e=0}});k=f.node.innerHTML;if(k.indexOf("__MCE_ITEM__")!=-1){f.node.innerHTML=k.replace(/__MCE_ITEM__/g,"")}},_insertBlockContent:function(l,h,m){var f,j,g=l.selection,q,n,e,o,i,k="mce_marker";function p(t){var s;if(tinymce.isIE){s=l.getDoc().body.createTextRange();s.moveToElementText(t);s.collapse(false);s.select()}else{g.select(t,1);g.collapse(false)}}this._insert('',1);j=h.get(k);f=h.getParent(j,"p,h1,h2,h3,h4,h5,h6,ul,ol,th,td");if(f&&!/TD|TH/.test(f.nodeName)){j=h.split(f,j);c(h.create("div",0,m).childNodes,function(r){q=j.parentNode.insertBefore(r.cloneNode(true),j)});p(q)}else{h.setOuterHTML(j,m);g.select(l.getBody(),1);g.collapse(0)}while(n=h.get(k)){h.remove(n)}n=g.getStart();e=h.getViewPort(l.getWin());o=l.dom.getPos(n).y;i=n.clientHeight;if(oe.y+e.h){l.getDoc().body.scrollTop=o0)){if(!d){d=("34,quot,38,amp,39,apos,60,lt,62,gt,"+j.serializer.settings.entities).split(",")}if(/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(v)){q([/[\n\r]+/g])}else{q([/\r+/g])}q([[/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi,"\n\n"],[/]*>|<\/tr>/gi,"\n"],[/<\/t[dh]>\s*]*>/gi,"\t"],/<[a-z!\/?][^>]*>/gi,[/ /gi," "],[/&(#\d+|[a-z0-9]{1,10});/gi,function(i,h){if(h.charAt(0)==="#"){return String.fromCharCode(h.slice(1))}else{return((i=y(d,h))>0)?String.fromCharCode(d[i-1]):" "}}],[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi,"$1"],[/\n{3,}/g,"\n\n"],/^\s+|\s+$/g]);v=x.encode(v);if(!s.isCollapsed()){z.execCommand("Delete",false,null)}if(m(o,"array")||(m(o,"array"))){q(o)}else{if(m(o,"string")){q(new RegExp(o,"gi"))}}if(g=="none"){q([[/\n+/g," "]])}else{if(g=="br"){q([[/\n/g,"
    "]])}else{q([/^\s+|\s+$/g,[/\n\n/g,"

    "],[/\n/g,"
    "]])}}if((l=v.indexOf("

    "))!=-1){k=v.lastIndexOf("

    ");r=s.getNode();e=[];do{if(r.nodeType==1){if(r.nodeName=="TD"||r.nodeName=="BODY"){break}e[e.length]=r}}while(r=r.parentNode);if(e.length>0){p=v.substring(0,l);f="";for(t=0,u=e.length;t";f+="<"+e[e.length-t-1].nodeName.toLowerCase()+">"}if(l==k){v=p+f+v.substring(l+7)}else{v=p+v.substring(l+4,k+4)+f+v.substring(k+7)}}}j.execCommand("mceInsertRawHTML",false,v+' ');window.setTimeout(function(){var h=x.get("_plain_text_marker"),B,i,A,w;s.select(h,false);z.execCommand("Delete",false,null);h=null;B=s.getStart();i=x.getViewPort(n);A=x.getPos(B).y;w=B.clientHeight;if((Ai.y+i.h)){z.body.scrollTop=A

    ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi, "

    $1

    "); + } + + if (getParam(ed, "paste_convert_middot_lists")) { + process([ + [//gi, '$&__MCE_ITEM__'], // Convert supportLists to a list item marker + [/(]+(?:mso-list:|:\s*symbol)[^>]+>)/gi, '$1__MCE_ITEM__'] // Convert mso-list and symbol spans to item markers + ]); + } + + process([ + // Word comments like conditional comments etc + //gi, + + // Remove comments, scripts (e.g., msoShowComment), XML tag, VML content, MS Office namespaced tags, and a few other tags + /<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi, + + // Convert into for line-though + [/<(\/?)s>/gi, "<$1strike>"], + + // Replace nsbp entites to char since it's easier to handle + [/ /gi, "\u00a0"] + ]); + + // Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag. + // If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot. + do { + len = h.length; + h = h.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi, "$1"); + } while (len != h.length); + + // Remove all spans if no styles is to be retained + if (getParam(ed, "paste_retain_style_properties").replace(/^none$/i, "").length == 0) { + h = h.replace(/<\/?span[^>]*>/gi, ""); + } else { + // We're keeping styles, so at least clean them up. + // CSS Reference: http://msdn.microsoft.com/en-us/library/aa155477.aspx + + process([ + // Convert ___ to string of alternating breaking/non-breaking spaces of same length + [/([\s\u00a0]*)<\/span>/gi, + function(str, spaces) { + return (spaces.length > 0)? spaces.replace(/./, " ").slice(Math.floor(spaces.length/2)).split("").join("\u00a0") : ""; + } + ], + + // Examine all styles: delete junk, transform some, and keep the rest + [/(<[a-z][^>]*)\sstyle="([^"]*)"/gi, + function(str, tag, style) { + var n = [], + i = 0, + s = explode(trim(style).replace(/"/gi, "'"), ";"); + + // Examine each style definition within the tag's style attribute + each(s, function(v) { + var name, value, + parts = explode(v, ":"); + + function ensureUnits(v) { + return v + ((v !== "0") && (/\d$/.test(v)))? "px" : ""; + } + + if (parts.length == 2) { + name = parts[0].toLowerCase(); + value = parts[1].toLowerCase(); + + // Translate certain MS Office styles into their CSS equivalents + switch (name) { + case "mso-padding-alt": + case "mso-padding-top-alt": + case "mso-padding-right-alt": + case "mso-padding-bottom-alt": + case "mso-padding-left-alt": + case "mso-margin-alt": + case "mso-margin-top-alt": + case "mso-margin-right-alt": + case "mso-margin-bottom-alt": + case "mso-margin-left-alt": + case "mso-table-layout-alt": + case "mso-height": + case "mso-width": + case "mso-vertical-align-alt": + n[i++] = name.replace(/^mso-|-alt$/g, "") + ":" + ensureUnits(value); + return; + + case "horiz-align": + n[i++] = "text-align:" + value; + return; + + case "vert-align": + n[i++] = "vertical-align:" + value; + return; + + case "font-color": + case "mso-foreground": + n[i++] = "color:" + value; + return; + + case "mso-background": + case "mso-highlight": + n[i++] = "background:" + value; + return; + + case "mso-default-height": + n[i++] = "min-height:" + ensureUnits(value); + return; + + case "mso-default-width": + n[i++] = "min-width:" + ensureUnits(value); + return; + + case "mso-padding-between-alt": + n[i++] = "border-collapse:separate;border-spacing:" + ensureUnits(value); + return; + + case "text-line-through": + if ((value == "single") || (value == "double")) { + n[i++] = "text-decoration:line-through"; + } + return; + + case "mso-zero-height": + if (value == "yes") { + n[i++] = "display:none"; + } + return; + } + + // Eliminate all MS Office style definitions that have no CSS equivalent by examining the first characters in the name + if (/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(name)) { + return; + } + + // If it reached this point, it must be a valid CSS style + n[i++] = name + ":" + parts[1]; // Lower-case name, but keep value case + } + }); + + // If style attribute contained any valid styles the re-write it; otherwise delete style attribute. + if (i > 0) { + return tag + ' style="' + n.join(';') + '"'; + } else { + return tag; + } + } + ] + ]); + } + } + + // Replace headers with + if (getParam(ed, "paste_convert_headers_to_strong")) { + process([ + [/]*>/gi, "

    "], + [/<\/h[1-6][^>]*>/gi, "

    "] + ]); + } + + // Class attribute options are: leave all as-is ("none"), remove all ("all"), or remove only those starting with mso ("mso"). + // Note:- paste_strip_class_attributes: "none", verify_css_classes: true is also a good variation. + stripClass = getParam(ed, "paste_strip_class_attributes"); + + if (stripClass !== "none") { + function removeClasses(match, g1) { + if (stripClass === "all") + return ''; + + var cls = grep(explode(g1.replace(/^(["'])(.*)\1$/, "$2"), " "), + function(v) { + return (/^(?!mso)/i.test(v)); + } + ); + + return cls.length ? ' class="' + cls.join(" ") + '"' : ''; + }; + + h = h.replace(/ class="([^"]+)"/gi, removeClasses); + h = h.replace(/ class=(\w+)/gi, removeClasses); + } + + // Remove spans option + if (getParam(ed, "paste_remove_spans")) { + h = h.replace(/<\/?span[^>]*>/gi, ""); + } + + //console.log('After preprocess:' + h); + + o.content = h; + }, + + /** + * Various post process items. + */ + _postProcess : function(pl, o) { + var t = this, ed = t.editor, dom = ed.dom, styleProps; + + if (o.wordContent) { + // Remove named anchors or TOC links + each(dom.select('a', o.node), function(a) { + if (!a.href || a.href.indexOf('#_Toc') != -1) + dom.remove(a, 1); + }); + + if (getParam(ed, "paste_convert_middot_lists")) { + t._convertLists(pl, o); + } + + // Process styles + styleProps = getParam(ed, "paste_retain_style_properties"); // retained properties + + // Process only if a string was specified and not equal to "all" or "*" + if ((tinymce.is(styleProps, "string")) && (styleProps !== "all") && (styleProps !== "*")) { + styleProps = tinymce.explode(styleProps.replace(/^none$/i, "")); + + // Retains some style properties + each(dom.select('*', o.node), function(el) { + var newStyle = {}, npc = 0, i, sp, sv; + + // Store a subset of the existing styles + if (styleProps) { + for (i = 0; i < styleProps.length; i++) { + sp = styleProps[i]; + sv = dom.getStyle(el, sp); + + if (sv) { + newStyle[sp] = sv; + npc++; + } + } + } + + // Remove all of the existing styles + dom.setAttrib(el, 'style', ''); + + if (styleProps && npc > 0) + dom.setStyles(el, newStyle); // Add back the stored subset of styles + else // Remove empty span tags that do not have class attributes + if (el.nodeName == 'SPAN' && !el.className) + dom.remove(el, true); + }); + } + } + + // Remove all style information or only specifically on WebKit to avoid the style bug on that browser + if (getParam(ed, "paste_remove_styles") || (getParam(ed, "paste_remove_styles_if_webkit") && tinymce.isWebKit)) { + each(dom.select('*[style]', o.node), function(el) { + el.removeAttribute('style'); + el.removeAttribute('_mce_style'); + }); + } else { + if (tinymce.isWebKit) { + // We need to compress the styles on WebKit since if you paste it will become + // Removing the mce_style that contains the real value will force the Serializer engine to compress the styles + each(dom.select('*', o.node), function(el) { + el.removeAttribute('_mce_style'); + }); + } + } + }, + + /** + * Converts the most common bullet and number formats in Office into a real semantic UL/LI list. + */ + _convertLists : function(pl, o) { + var dom = pl.editor.dom, listElm, li, lastMargin = -1, margin, levels = [], lastType, html; + + // Convert middot lists into real semantic lists + each(dom.select('p', o.node), function(p) { + var sib, val = '', type, html, idx, parents; + + // Get text node value at beginning of paragraph + for (sib = p.firstChild; sib && sib.nodeType == 3; sib = sib.nextSibling) + val += sib.nodeValue; + + val = p.innerHTML.replace(/<\/?\w+[^>]*>/gi, '').replace(/ /g, '\u00a0'); + + // Detect unordered lists look for bullets + if (/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(val)) + type = 'ul'; + + // Detect ordered lists 1., a. or ixv. + if (/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(val)) + type = 'ol'; + + // Check if node value matches the list pattern: o   + if (type) { + margin = parseFloat(p.style.marginLeft || 0); + + if (margin > lastMargin) + levels.push(margin); + + if (!listElm || type != lastType) { + listElm = dom.create(type); + dom.insertAfter(listElm, p); + } else { + // Nested list element + if (margin > lastMargin) { + listElm = li.appendChild(dom.create(type)); + } else if (margin < lastMargin) { + // Find parent level based on margin value + idx = tinymce.inArray(levels, margin); + parents = dom.getParents(listElm.parentNode, type); + listElm = parents[parents.length - 1 - idx] || listElm; + } + } + + // Remove middot or number spans if they exists + each(dom.select('span', p), function(span) { + var html = span.innerHTML.replace(/<\/?\w+[^>]*>/gi, ''); + + // Remove span with the middot or the number + if (type == 'ul' && /^[\u2022\u00b7\u00a7\u00d8o]/.test(html)) + dom.remove(span); + else if (/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(html)) + dom.remove(span); + }); + + html = p.innerHTML; + + // Remove middot/list items + if (type == 'ul') + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/, ''); + else + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^\s*\w+\.( |\u00a0)+\s*/, ''); + + // Create li and add paragraph data into the new li + li = listElm.appendChild(dom.create('li', 0, html)); + dom.remove(p); + + lastMargin = margin; + lastType = type; + } else + listElm = lastMargin = 0; // End list element + }); + + // Remove any left over makers + html = o.node.innerHTML; + if (html.indexOf('__MCE_ITEM__') != -1) + o.node.innerHTML = html.replace(/__MCE_ITEM__/g, ''); + }, + + /** + * This method will split the current block parent and insert the contents inside the split position. + * This logic can be improved so text nodes at the start/end remain in the start/end block elements + */ + _insertBlockContent : function(ed, dom, content) { + var parentBlock, marker, sel = ed.selection, last, elm, vp, y, elmHeight, markerId = 'mce_marker'; + + function select(n) { + var r; + + if (tinymce.isIE) { + r = ed.getDoc().body.createTextRange(); + r.moveToElementText(n); + r.collapse(false); + r.select(); + } else { + sel.select(n, 1); + sel.collapse(false); + } + } + + // Insert a marker for the caret position + this._insert('', 1); + marker = dom.get(markerId); + parentBlock = dom.getParent(marker, 'p,h1,h2,h3,h4,h5,h6,ul,ol,th,td'); + + // If it's a parent block but not a table cell + if (parentBlock && !/TD|TH/.test(parentBlock.nodeName)) { + // Split parent block + marker = dom.split(parentBlock, marker); + + // Insert nodes before the marker + each(dom.create('div', 0, content).childNodes, function(n) { + last = marker.parentNode.insertBefore(n.cloneNode(true), marker); + }); + + // Move caret after marker + select(last); + } else { + dom.setOuterHTML(marker, content); + sel.select(ed.getBody(), 1); + sel.collapse(0); + } + + // Remove marker if it's left + while (elm = dom.get(markerId)) + dom.remove(elm); + + // Get element, position and height + elm = sel.getStart(); + vp = dom.getViewPort(ed.getWin()); + y = ed.dom.getPos(elm).y; + elmHeight = elm.clientHeight; + + // Is element within viewport if not then scroll it into view + if (y < vp.y || y + elmHeight > vp.y + vp.h) + ed.getDoc().body.scrollTop = y < vp.y ? y : y - vp.h + 25; + }, + + /** + * Inserts the specified contents at the caret position. + */ + _insert : function(h, skip_undo) { + var ed = this.editor, r = ed.selection.getRng(); + + // First delete the contents seems to work better on WebKit when the selection spans multiple list items or multiple table cells. + if (!ed.selection.isCollapsed() && r.startContainer != r.endContainer) + ed.getDoc().execCommand('Delete', false, null); + + // It's better to use the insertHTML method on Gecko since it will combine paragraphs correctly before inserting the contents + ed.execCommand(tinymce.isGecko ? 'insertHTML' : 'mceInsertContent', false, h, {skip_undo : skip_undo}); + }, + + /** + * Instead of the old plain text method which tried to re-create a paste operation, the + * new approach adds a plain text mode toggle switch that changes the behavior of paste. + * This function is passed the same input that the regular paste plugin produces. + * It performs additional scrubbing and produces (and inserts) the plain text. + * This approach leverages all of the great existing functionality in the paste + * plugin, and requires minimal changes to add the new functionality. + * Speednet - June 2009 + */ + _insertPlainText : function(ed, dom, h) { + var i, len, pos, rpos, node, breakElms, before, after, + w = ed.getWin(), + d = ed.getDoc(), + sel = ed.selection, + is = tinymce.is, + inArray = tinymce.inArray, + linebr = getParam(ed, "paste_text_linebreaktype"), + rl = getParam(ed, "paste_text_replacements"); + + function process(items) { + each(items, function(v) { + if (v.constructor == RegExp) + h = h.replace(v, ""); + else + h = h.replace(v[0], v[1]); + }); + }; + + if ((typeof(h) === "string") && (h.length > 0)) { + if (!entities) + entities = ("34,quot,38,amp,39,apos,60,lt,62,gt," + ed.serializer.settings.entities).split(","); + + // If HTML content with line-breaking tags, then remove all cr/lf chars because only tags will break a line + if (/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(h)) { + process([ + /[\n\r]+/g + ]); + } else { + // Otherwise just get rid of carriage returns (only need linefeeds) + process([ + /\r+/g + ]); + } + + process([ + [/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi, "\n\n"], // Block tags get a blank line after them + [/]*>|<\/tr>/gi, "\n"], // Single linebreak for
    tags and table rows + [/<\/t[dh]>\s*]*>/gi, "\t"], // Table cells get tabs betweem them + /<[a-z!\/?][^>]*>/gi, // Delete all remaining tags + [/ /gi, " "], // Convert non-break spaces to regular spaces (remember, *plain text*) + [ + // HTML entity + /&(#\d+|[a-z0-9]{1,10});/gi, + + // Replace with actual character + function(e, s) { + if (s.charAt(0) === "#") { + return String.fromCharCode(s.slice(1)); + } + else { + return ((e = inArray(entities, s)) > 0)? String.fromCharCode(entities[e-1]) : " "; + } + } + ], + [/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"], // Cool little RegExp deletes whitespace around linebreak chars. + [/\n{3,}/g, "\n\n"], // Max. 2 consecutive linebreaks + /^\s+|\s+$/g // Trim the front & back + ]); + + h = dom.encode(h); + + // Delete any highlighted text before pasting + if (!sel.isCollapsed()) { + d.execCommand("Delete", false, null); + } + + // Perform default or custom replacements + if (is(rl, "array") || (is(rl, "array"))) { + process(rl); + } + else if (is(rl, "string")) { + process(new RegExp(rl, "gi")); + } + + // Treat paragraphs as specified in the config + if (linebr == "none") { + process([ + [/\n+/g, " "] + ]); + } + else if (linebr == "br") { + process([ + [/\n/g, "
    "] + ]); + } + else { + process([ + /^\s+|\s+$/g, + [/\n\n/g, "

    "], + [/\n/g, "
    "] + ]); + } + + // This next piece of code handles the situation where we're pasting more than one paragraph of plain + // text, and we are pasting the content into the middle of a block node in the editor. The block + // node gets split at the selection point into "Para A" and "Para B" (for the purposes of explaining). + // The first paragraph of the pasted text is appended to "Para A", and the last paragraph of the + // pasted text is prepended to "Para B". Any other paragraphs of pasted text are placed between + // "Para A" and "Para B". This code solves a host of problems with the original plain text plugin and + // now handles styles correctly. (Pasting plain text into a styled paragraph is supposed to make the + // plain text take the same style as the existing paragraph.) + if ((pos = h.indexOf("

    ")) != -1) { + rpos = h.lastIndexOf("

    "); + node = sel.getNode(); + breakElms = []; // Get list of elements to break + + do { + if (node.nodeType == 1) { + // Don't break tables and break at body + if (node.nodeName == "TD" || node.nodeName == "BODY") { + break; + } + + breakElms[breakElms.length] = node; + } + } while (node = node.parentNode); + + // Are we in the middle of a block node? + if (breakElms.length > 0) { + before = h.substring(0, pos); + after = ""; + + for (i=0, len=breakElms.length; i"; + after += "<" + breakElms[breakElms.length-i-1].nodeName.toLowerCase() + ">"; + } + + if (pos == rpos) { + h = before + after + h.substring(pos+7); + } + else { + h = before + h.substring(pos+4, rpos+4) + after + h.substring(rpos+7); + } + } + } + + // Insert content at the caret, plus add a marker for repositioning the caret + ed.execCommand("mceInsertRawHTML", false, h + ' '); + + // Reposition the caret to the marker, which was placed immediately after the inserted content. + // Needs to be done asynchronously (in window.setTimeout) or else it doesn't work in all browsers. + // The second part of the code scrolls the content up if the caret is positioned off-screen. + // This is only necessary for WebKit browsers, but it doesn't hurt to use for all. + window.setTimeout(function() { + var marker = dom.get('_plain_text_marker'), + elm, vp, y, elmHeight; + + sel.select(marker, false); + d.execCommand("Delete", false, null); + marker = null; + + // Get element, position and height + elm = sel.getStart(); + vp = dom.getViewPort(w); + y = dom.getPos(elm).y; + elmHeight = elm.clientHeight; + + // Is element within viewport if not then scroll it into view + if ((y < vp.y) || (y + elmHeight > vp.y + vp.h)) { + d.body.scrollTop = y < vp.y ? y : y - vp.h + 25; + } + }, 0); + } + }, + + /** + * This method will open the old style paste dialogs. Some users might want the old behavior but still use the new cleanup engine. + */ + _legacySupport : function() { + var t = this, ed = t.editor; + + // Register command(s) for backwards compatibility + ed.addCommand("mcePasteWord", function() { + ed.windowManager.open({ + file: t.url + "/pasteword.htm", + width: parseInt(getParam(ed, "paste_dialog_width")), + height: parseInt(getParam(ed, "paste_dialog_height")), + inline: 1 + }); + }); + + if (getParam(ed, "paste_text_use_dialog")) { + ed.addCommand("mcePasteText", function() { + ed.windowManager.open({ + file : t.url + "/pastetext.htm", + width: parseInt(getParam(ed, "paste_dialog_width")), + height: parseInt(getParam(ed, "paste_dialog_height")), + inline : 1 + }); + }); + } + + // Register button for backwards compatibility + ed.addButton("pasteword", {title : "paste.paste_word_desc", cmd : "mcePasteWord"}); + } + }); + + // Register plugin + tinymce.PluginManager.add("paste", tinymce.plugins.PastePlugin); +})(); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js b/js/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js new file mode 100644 index 0000000..81b1d6a --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js @@ -0,0 +1,36 @@ +tinyMCEPopup.requireLangPack(); + +var PasteTextDialog = { + init : function() { + this.resize(); + }, + + insert : function() { + var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines; + + // Convert linebreaks into paragraphs + if (document.getElementById('linebreaks').checked) { + lines = h.split(/\r?\n/); + if (lines.length > 1) { + h = ''; + tinymce.each(lines, function(row) { + h += '

    ' + row + '

    '; + }); + } + } + + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h}); + tinyMCEPopup.close(); + }, + + resize : function() { + var vp = tinyMCEPopup.dom.getViewPort(window), el; + + el = document.getElementById('content'); + + el.style.width = (vp.w - 20) + 'px'; + el.style.height = (vp.h - 90) + 'px'; + } +}; + +tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js b/js/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js new file mode 100644 index 0000000..959bf39 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js @@ -0,0 +1,51 @@ +tinyMCEPopup.requireLangPack(); + +var PasteWordDialog = { + init : function() { + var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = ''; + + // Create iframe + el.innerHTML = ''; + ifr = document.getElementById('iframe'); + doc = ifr.contentWindow.document; + + // Force absolute CSS urls + css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")]; + css = css.concat(tinymce.explode(ed.settings.content_css) || []); + tinymce.each(css, function(u) { + cssHTML += ''; + }); + + // Write content into iframe + doc.open(); + doc.write('' + cssHTML + ''); + doc.close(); + + doc.designMode = 'on'; + this.resize(); + + window.setTimeout(function() { + ifr.contentWindow.focus(); + }, 10); + }, + + insert : function() { + var h = document.getElementById('iframe').contentWindow.document.body.innerHTML; + + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true}); + tinyMCEPopup.close(); + }, + + resize : function() { + var vp = tinyMCEPopup.dom.getViewPort(window), el; + + el = document.getElementById('iframe'); + + if (el) { + el.style.width = (vp.w - 20) + 'px'; + el.style.height = (vp.h - 90) + 'px'; + } + } +}; + +tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js new file mode 100644 index 0000000..823eb16 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js @@ -0,0 +1,5 @@ +tinyMCE.addI18n('en.paste_dlg',{ +text_title:"Use CTRL+V on your keyboard to paste the text into the window.", +text_linebreaks:"Keep linebreaks", +word_title:"Use CTRL+V on your keyboard to paste the text into the window." +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm b/js/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm new file mode 100644 index 0000000..8ccfbb9 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm @@ -0,0 +1,27 @@ + + + {#paste.paste_text_desc} + + + + +
    +
    {#paste.paste_text_desc}
    + +
    + +
    + +
    + +
    {#paste_dlg.text_title}
    + + + +
    + + +
    +
    + + \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm b/js/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm new file mode 100644 index 0000000..7731f39 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm @@ -0,0 +1,21 @@ + + + {#paste.paste_word_desc} + + + + +
    +
    {#paste.paste_word_desc}
    + +
    {#paste_dlg.word_title}
    + +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js new file mode 100644 index 0000000..507909c --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Preview",{init:function(a,b){var d=this,c=tinymce.explode(a.settings.content_css);d.editor=a;tinymce.each(c,function(f,e){c[e]=a.documentBaseURI.toAbsolute(f)});a.addCommand("mcePreview",function(){a.windowManager.open({file:a.getParam("plugin_preview_pageurl",b+"/preview.html"),width:parseInt(a.getParam("plugin_preview_width","550")),height:parseInt(a.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:c?c.join(","):a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css"),inline:a.getParam("plugin_preview_inline",1)},{base:a.documentBaseURI.getURI()})});a.addButton("preview",{title:"preview.preview_desc",cmd:"mcePreview"})},getInfo:function(){return{longname:"Preview",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("preview",tinymce.plugins.Preview)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js new file mode 100644 index 0000000..80f00f0 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js @@ -0,0 +1,53 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Preview', { + init : function(ed, url) { + var t = this, css = tinymce.explode(ed.settings.content_css); + + t.editor = ed; + + // Force absolute CSS urls + tinymce.each(css, function(u, k) { + css[k] = ed.documentBaseURI.toAbsolute(u); + }); + + ed.addCommand('mcePreview', function() { + ed.windowManager.open({ + file : ed.getParam("plugin_preview_pageurl", url + "/preview.html"), + width : parseInt(ed.getParam("plugin_preview_width", "550")), + height : parseInt(ed.getParam("plugin_preview_height", "600")), + resizable : "yes", + scrollbars : "yes", + popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"), + inline : ed.getParam("plugin_preview_inline", 1) + }, { + base : ed.documentBaseURI.getURI() + }); + }); + + ed.addButton('preview', {title : 'preview.preview_desc', cmd : 'mcePreview'}); + }, + + getInfo : function() { + return { + longname : 'Preview', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('preview', tinymce.plugins.Preview); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/preview/example.html b/js/tinymce/jscripts/tiny_mce/plugins/preview/example.html new file mode 100644 index 0000000..4820222 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/preview/example.html @@ -0,0 +1,28 @@ + + + + + +Example of a custom preview page + + + +Editor contents:
    +
    + +
    + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js b/js/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js new file mode 100644 index 0000000..6fe25de --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js @@ -0,0 +1,73 @@ +/** + * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. + */ + +function writeFlash(p) { + writeEmbed( + 'D27CDB6E-AE6D-11cf-96B8-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'application/x-shockwave-flash', + p + ); +} + +function writeShockWave(p) { + writeEmbed( + '166B1BCA-3F9C-11CF-8075-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0', + 'application/x-director', + p + ); +} + +function writeQuickTime(p) { + writeEmbed( + '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', + 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0', + 'video/quicktime', + p + ); +} + +function writeRealMedia(p) { + writeEmbed( + 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'audio/x-pn-realaudio-plugin', + p + ); +} + +function writeWindowsMedia(p) { + p.url = p.src; + writeEmbed( + '6BF52A52-394A-11D3-B153-00C04F79FAA6', + 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701', + 'application/x-mplayer2', + p + ); +} + +function writeEmbed(cls, cb, mt, p) { + var h = '', n; + + h += ''; + + h += ' \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin.js new file mode 100644 index 0000000..f722c2f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin.js @@ -0,0 +1 @@ +(function(){var Event=tinymce.dom.Event,grep=tinymce.grep,each=tinymce.each,inArray=tinymce.inArray,isOldWebKit=tinymce.isOldWebKit;tinymce.create('tinymce.plugins.Safari',{init:function(ed){var t=this,dom;if(!tinymce.isWebKit)return;t.editor=ed;t.webKitFontSizes=['x-small','small','medium','large','x-large','xx-large','-webkit-xxx-large'];t.namedFontSizes=['xx-small','x-small','small','medium','large','x-large','xx-large'];ed.onPaste.add(function(ed,e){function removeStyles(e){e=e.target;if(e.nodeType==1){e.style.cssText='';each(ed.dom.select('*',e),function(e){e.style.cssText='';});}};Event.add(ed.getDoc(),'DOMNodeInserted',removeStyles);window.setTimeout(function(){Event.remove(ed.getDoc(),'DOMNodeInserted',removeStyles);},0);});ed.onKeyUp.add(function(ed,e){var h,b;if(e.keyCode==46||e.keyCode==8){b=ed.getBody();h=b.innerHTML;if(b.childNodes.length==1&&!/<(img|hr)/.test(h)&&tinymce.trim(h.replace(/<[^>]+>/g,'')).length==0)ed.setContent('',{format:'raw'});}});ed.addCommand('FormatBlock',function(u,v){var dom=ed.dom,e=dom.getParent(ed.selection.getNode(),dom.isBlock);if(e)dom.replace(dom.create(v),e,1);else ed.getDoc().execCommand("FormatBlock",false,v);});ed.addCommand('mceInsertContent',function(u,v){ed.getDoc().execCommand("InsertText",false,'mce_marker');ed.getBody().innerHTML=ed.getBody().innerHTML.replace(/mce_marker/g,v+'XX');ed.selection.select(ed.dom.get('_mce_tmp'));ed.getDoc().execCommand("Delete",false,' ');});ed.onKeyPress.add(function(ed,e){if(e.keyCode==13&&(e.shiftKey||ed.settings.force_br_newlines&&ed.selection.getNode().nodeName!='LI')){t._insertBR(ed);Event.cancel(e);}});ed.addQueryValueHandler('FontSize',function(u,v){var e,v;if((e=ed.dom.getParent(ed.selection.getStart(),'span'))&&(v=e.style.fontSize))return tinymce.inArray(t.namedFontSizes,v)+1;if((e=ed.dom.getParent(ed.selection.getEnd(),'span'))&&(v=e.style.fontSize))return tinymce.inArray(t.namedFontSizes,v)+1;return ed.getDoc().queryCommandValue('FontSize');});ed.addQueryValueHandler('FontName',function(u,v){var e,v;if((e=ed.dom.getParent(ed.selection.getStart(),'span'))&&(v=e.style.fontFamily))return v.replace(/, /g,',');if((e=ed.dom.getParent(ed.selection.getEnd(),'span'))&&(v=e.style.fontFamily))return v.replace(/, /g,',');return ed.getDoc().queryCommandValue('FontName');});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName=='IMG'){t.selElm=e;ed.selection.select(e);}else t.selElm=null;});ed.onInit.add(function(){t._fixWebKitSpans();if(isOldWebKit)t._patchSafari2x(ed);});ed.onSetContent.add(function(){dom=ed.dom;each(['strong','b','em','u','strike','sub','sup','a'],function(v){each(grep(dom.select(v)).reverse(),function(n){var nn=n.nodeName.toLowerCase(),st;if(nn=='a'){if(n.name)dom.replace(dom.create('img',{mce_name:'a',name:n.name,'class':'mceItemAnchor'}),n);return;}switch(nn){case'b':case'strong':if(nn=='b')nn='strong';st='font-weight: bold;';break;case'em':st='font-style: italic;';break;case'u':st='text-decoration: underline;';break;case'sub':st='vertical-align: sub;';break;case'sup':st='vertical-align: super;';break;case'strike':st='text-decoration: line-through;';break;}dom.replace(dom.create('span',{mce_name:nn,style:st,'class':'Apple-style-span'}),n,1);});});});ed.onPreProcess.add(function(ed,o){dom=ed.dom;each(grep(o.node.getElementsByTagName('span')).reverse(),function(n){var v,bg;if(o.get){if(dom.hasClass(n,'Apple-style-span')){bg=n.style.backgroundColor;switch(dom.getAttrib(n,'mce_name')){case'font':if(!ed.settings.convert_fonts_to_spans)dom.setAttrib(n,'style','');break;case'strong':case'em':case'sub':case'sup':dom.setAttrib(n,'style','');break;case'strike':case'u':if(!ed.settings.inline_styles)dom.setAttrib(n,'style','');else dom.setAttrib(n,'mce_name','');break;default:if(!ed.settings.inline_styles)dom.setAttrib(n,'style','');}if(bg)n.style.backgroundColor=bg;}}if(dom.hasClass(n,'mceItemRemoved'))dom.remove(n,1);});});ed.onPostProcess.add(function(ed,o){o.content=o.content.replace(/
    <\/(h[1-6]|div|p|address|pre)>/g,'');o.content=o.content.replace(/ id=\"undefined\"/g,'');});},getInfo:function(){return{longname:'Safari compatibility',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/safari',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_fixWebKitSpans:function(){var t=this,ed=t.editor;if(!isOldWebKit){Event.add(ed.getDoc(),'DOMNodeInserted',function(e){e=e.target;if(e&&e.nodeType==1)t._fixAppleSpan(e);});}else{ed.onExecCommand.add(function(){each(ed.dom.select('span'),function(n){t._fixAppleSpan(n);});ed.nodeChanged();});}},_fixAppleSpan:function(e){var ed=this.editor,dom=ed.dom,fz=this.webKitFontSizes,fzn=this.namedFontSizes,s=ed.settings,st,p;if(dom.getAttrib(e,'mce_fixed'))return;if(e.nodeName=='SPAN'&&e.className=='Apple-style-span'){st=e.style;if(!s.convert_fonts_to_spans){if(st.fontSize){dom.setAttrib(e,'mce_name','font');dom.setAttrib(e,'size',inArray(fz,st.fontSize)+1);}if(st.fontFamily){dom.setAttrib(e,'mce_name','font');dom.setAttrib(e,'face',st.fontFamily);}if(st.color){dom.setAttrib(e,'mce_name','font');dom.setAttrib(e,'color',dom.toHex(st.color));}if(st.backgroundColor){dom.setAttrib(e,'mce_name','font');dom.setStyle(e,'background-color',st.backgroundColor);}}else{if(st.fontSize)dom.setStyle(e,'fontSize',fzn[inArray(fz,st.fontSize)]);}if(st.fontWeight=='bold')dom.setAttrib(e,'mce_name','strong');if(st.fontStyle=='italic')dom.setAttrib(e,'mce_name','em');if(st.textDecoration=='underline')dom.setAttrib(e,'mce_name','u');if(st.textDecoration=='line-through')dom.setAttrib(e,'mce_name','strike');if(st.verticalAlign=='super')dom.setAttrib(e,'mce_name','sup');if(st.verticalAlign=='sub')dom.setAttrib(e,'mce_name','sub');dom.setAttrib(e,'mce_fixed','1');}},_patchSafari2x:function(ed){var t=this,setContent,getNode,dom=ed.dom,lr;if(ed.windowManager.onBeforeOpen){ed.windowManager.onBeforeOpen.add(function(){r=ed.selection.getRng();});}ed.selection.select=function(n){this.getSel().setBaseAndExtent(n,0,n,1);};getNode=ed.selection.getNode;ed.selection.getNode=function(){return t.selElm||getNode.call(this);};ed.selection.getRng=function(){var t=this,s=t.getSel(),d=ed.getDoc(),r,rb,ra,di;if(s.anchorNode){r=d.createRange();try{rb=d.createRange();rb.setStart(s.anchorNode,s.anchorOffset);rb.collapse(1);ra=d.createRange();ra.setStart(s.focusNode,s.focusOffset);ra.collapse(1);di=rb.compareBoundaryPoints(rb.START_TO_END,ra)<0;r.setStart(di?s.anchorNode:s.focusNode,di?s.anchorOffset:s.focusOffset);r.setEnd(di?s.focusNode:s.anchorNode,di?s.focusOffset:s.anchorOffset);lr=r;}catch(ex){}}return r||lr;};setContent=ed.selection.setContent;ed.selection.setContent=function(h,s){var r=this.getRng(),b;try{setContent.call(this,h,s);}catch(ex){b=dom.create('body');b.innerHTML=h;each(b.childNodes,function(n){r.insertNode(n.cloneNode(true));});}};},_insertBR:function(ed){var dom=ed.dom,s=ed.selection,r=s.getRng(),br;r.insertNode(br=dom.create('br'));r.setStartAfter(br);r.setEndAfter(br);s.setRng(r);if(s.getSel().focusNode==br.previousSibling){s.select(dom.insertAfter(dom.doc.createTextNode('\u00a0'),br));s.collapse(1);}ed.getWin().scrollTo(0,dom.getPos(s.getRng().startContainer).y);}});tinymce.PluginManager.add('safari',tinymce.plugins.Safari);})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin_src.js new file mode 100644 index 0000000..36eb9a9 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/safari/editor_plugin_src.js @@ -0,0 +1,460 @@ +/** + * $Id: editor_plugin_src.js,v 1.1.1.1 2008/07/03 15:11:00 aebersol Exp $ + * + * @author Moxiecode + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function() { + var Event = tinymce.dom.Event, grep = tinymce.grep, each = tinymce.each, inArray = tinymce.inArray, isOldWebKit = tinymce.isOldWebKit; + + tinymce.create('tinymce.plugins.Safari', { + init : function(ed) { + var t = this, dom; + + // Ignore on non webkit + if (!tinymce.isWebKit) + return; + + t.editor = ed; + t.webKitFontSizes = ['x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', '-webkit-xxx-large']; + t.namedFontSizes = ['xx-small', 'x-small','small','medium','large','x-large', 'xx-large']; + + // Safari will crash if the build in createlink command is used +/* ed.addCommand('CreateLink', function(u, v) { + ed.execCommand("mceInsertContent", false, '' + ed.selection.getContent() + ''); + });*/ + + ed.onPaste.add(function(ed, e) { + function removeStyles(e) { + e = e.target; + + if (e.nodeType == 1) { + e.style.cssText = ''; + + each(ed.dom.select('*', e), function(e) { + e.style.cssText = ''; + }); + } + }; + + Event.add(ed.getDoc(), 'DOMNodeInserted', removeStyles); + + window.setTimeout(function() { + Event.remove(ed.getDoc(), 'DOMNodeInserted', removeStyles); + }, 0); + }); + + ed.onKeyUp.add(function(ed, e) { + var h, b; + + // If backspace or delete key + if (e.keyCode == 46 || e.keyCode == 8) { + b = ed.getBody(); + h = b.innerHTML; + + // If there is no text content or images or hr elements then remove everything + if (b.childNodes.length == 1 && !/<(img|hr)/.test(h) && tinymce.trim(h.replace(/<[^>]+>/g, '')).length == 0) + ed.setContent('', {format : 'raw'}); + } + }); + + // Workaround for FormatBlock bug, http://bugs.webkit.org/show_bug.cgi?id=16004 + ed.addCommand('FormatBlock', function(u, v) { + var dom = ed.dom, e = dom.getParent(ed.selection.getNode(), dom.isBlock); + + if (e) + dom.replace(dom.create(v), e, 1); + else + ed.getDoc().execCommand("FormatBlock", false, v); + }); + + // Workaround for InsertHTML bug, http://bugs.webkit.org/show_bug.cgi?id=16382 + ed.addCommand('mceInsertContent', function(u, v) { + ed.getDoc().execCommand("InsertText", false, 'mce_marker'); + ed.getBody().innerHTML = ed.getBody().innerHTML.replace(/mce_marker/g, v + 'XX'); + ed.selection.select(ed.dom.get('_mce_tmp')); + ed.getDoc().execCommand("Delete", false, ' '); + }); + + // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973 + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && (e.shiftKey || ed.settings.force_br_newlines && ed.selection.getNode().nodeName != 'LI')) { + t._insertBR(ed); + Event.cancel(e); + } + }); + + // Safari returns incorrect values + ed.addQueryValueHandler('FontSize', function(u, v) { + var e, v; + + // Check for the real font size at the start of selection + if ((e = ed.dom.getParent(ed.selection.getStart(), 'span')) && (v = e.style.fontSize)) + return tinymce.inArray(t.namedFontSizes, v) + 1; + + // Check for the real font size at the end of selection + if ((e = ed.dom.getParent(ed.selection.getEnd(), 'span')) && (v = e.style.fontSize)) + return tinymce.inArray(t.namedFontSizes, v) + 1; + + // Return default value it's better than nothing right! + return ed.getDoc().queryCommandValue('FontSize'); + }); + + // Safari returns incorrect values + ed.addQueryValueHandler('FontName', function(u, v) { + var e, v; + + // Check for the real font name at the start of selection + if ((e = ed.dom.getParent(ed.selection.getStart(), 'span')) && (v = e.style.fontFamily)) + return v.replace(/, /g, ','); + + // Check for the real font name at the end of selection + if ((e = ed.dom.getParent(ed.selection.getEnd(), 'span')) && (v = e.style.fontFamily)) + return v.replace(/, /g, ','); + + // Return default value it's better than nothing right! + return ed.getDoc().queryCommandValue('FontName'); + }); + + // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250 + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName == 'IMG') { + t.selElm = e; + ed.selection.select(e); + } else + t.selElm = null; + }); + +/* ed.onBeforeExecCommand.add(function(ed, c, b) { + var r = t.bookmarkRng; + + // Restore selection + if (r) { + ed.selection.setRng(r); + t.bookmarkRng = null; + //console.debug('restore', r.startContainer, r.startOffset, r.endContainer, r.endOffset); + } + });*/ + + ed.onInit.add(function() { + t._fixWebKitSpans(); + +/* ed.windowManager.onOpen.add(function() { + var r = ed.selection.getRng(); + + // Store selection if valid + if (r.startContainer != ed.getDoc()) { + t.bookmarkRng = r.cloneRange(); + //console.debug('store', r.startContainer, r.startOffset, r.endContainer, r.endOffset); + } + }); + + ed.windowManager.onClose.add(function() { + t.bookmarkRng = null; + });*/ + + if (isOldWebKit) + t._patchSafari2x(ed); + }); + + ed.onSetContent.add(function() { + dom = ed.dom; + + // Convert strong,b,em,u,strike to spans + each(['strong','b','em','u','strike','sub','sup','a'], function(v) { + each(grep(dom.select(v)).reverse(), function(n) { + var nn = n.nodeName.toLowerCase(), st; + + // Convert anchors into images + if (nn == 'a') { + if (n.name) + dom.replace(dom.create('img', {mce_name : 'a', name : n.name, 'class' : 'mceItemAnchor'}), n); + + return; + } + + switch (nn) { + case 'b': + case 'strong': + if (nn == 'b') + nn = 'strong'; + + st = 'font-weight: bold;'; + break; + + case 'em': + st = 'font-style: italic;'; + break; + + case 'u': + st = 'text-decoration: underline;'; + break; + + case 'sub': + st = 'vertical-align: sub;'; + break; + + case 'sup': + st = 'vertical-align: super;'; + break; + + case 'strike': + st = 'text-decoration: line-through;'; + break; + } + + dom.replace(dom.create('span', {mce_name : nn, style : st, 'class' : 'Apple-style-span'}), n, 1); + }); + }); + }); + + ed.onPreProcess.add(function(ed, o) { + dom = ed.dom; + + each(grep(o.node.getElementsByTagName('span')).reverse(), function(n) { + var v, bg; + + if (o.get) { + if (dom.hasClass(n, 'Apple-style-span')) { + bg = n.style.backgroundColor; + + switch (dom.getAttrib(n, 'mce_name')) { + case 'font': + if (!ed.settings.convert_fonts_to_spans) + dom.setAttrib(n, 'style', ''); + break; + + case 'strong': + case 'em': + case 'sub': + case 'sup': + dom.setAttrib(n, 'style', ''); + break; + + case 'strike': + case 'u': + if (!ed.settings.inline_styles) + dom.setAttrib(n, 'style', ''); + else + dom.setAttrib(n, 'mce_name', ''); + + break; + + default: + if (!ed.settings.inline_styles) + dom.setAttrib(n, 'style', ''); + } + + + if (bg) + n.style.backgroundColor = bg; + } + } + + if (dom.hasClass(n, 'mceItemRemoved')) + dom.remove(n, 1); + }); + }); + + ed.onPostProcess.add(function(ed, o) { + // Safari adds BR at end of all block elements + o.content = o.content.replace(/
    <\/(h[1-6]|div|p|address|pre)>/g, ''); + + // Safari adds id="undefined" to HR elements + o.content = o.content.replace(/ id=\"undefined\"/g, ''); + }); + }, + + getInfo : function() { + return { + longname : 'Safari compatibility', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/safari', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Internal methods + + _fixWebKitSpans : function() { + var t = this, ed = t.editor; + + if (!isOldWebKit) { + // Use mutator events on new WebKit + Event.add(ed.getDoc(), 'DOMNodeInserted', function(e) { + e = e.target; + + if (e && e.nodeType == 1) + t._fixAppleSpan(e); + }); + } else { + // Do post command processing in old WebKit since the browser crashes on Mutator events :( + ed.onExecCommand.add(function() { + each(ed.dom.select('span'), function(n) { + t._fixAppleSpan(n); + }); + + ed.nodeChanged(); + }); + } + }, + + _fixAppleSpan : function(e) { + var ed = this.editor, dom = ed.dom, fz = this.webKitFontSizes, fzn = this.namedFontSizes, s = ed.settings, st, p; + + if (dom.getAttrib(e, 'mce_fixed')) + return; + + // Handle Apple style spans + if (e.nodeName == 'SPAN' && e.className == 'Apple-style-span') { + st = e.style; + + if (!s.convert_fonts_to_spans) { + if (st.fontSize) { + dom.setAttrib(e, 'mce_name', 'font'); + dom.setAttrib(e, 'size', inArray(fz, st.fontSize) + 1); + } + + if (st.fontFamily) { + dom.setAttrib(e, 'mce_name', 'font'); + dom.setAttrib(e, 'face', st.fontFamily); + } + + if (st.color) { + dom.setAttrib(e, 'mce_name', 'font'); + dom.setAttrib(e, 'color', dom.toHex(st.color)); + } + + if (st.backgroundColor) { + dom.setAttrib(e, 'mce_name', 'font'); + dom.setStyle(e, 'background-color', st.backgroundColor); + } + } else { + if (st.fontSize) + dom.setStyle(e, 'fontSize', fzn[inArray(fz, st.fontSize)]); + } + + if (st.fontWeight == 'bold') + dom.setAttrib(e, 'mce_name', 'strong'); + + if (st.fontStyle == 'italic') + dom.setAttrib(e, 'mce_name', 'em'); + + if (st.textDecoration == 'underline') + dom.setAttrib(e, 'mce_name', 'u'); + + if (st.textDecoration == 'line-through') + dom.setAttrib(e, 'mce_name', 'strike'); + + if (st.verticalAlign == 'super') + dom.setAttrib(e, 'mce_name', 'sup'); + + if (st.verticalAlign == 'sub') + dom.setAttrib(e, 'mce_name', 'sub'); + + dom.setAttrib(e, 'mce_fixed', '1'); + } + }, + + _patchSafari2x : function(ed) { + var t = this, setContent, getNode, dom = ed.dom, lr; + + // Inline dialogs + if (ed.windowManager.onBeforeOpen) { + ed.windowManager.onBeforeOpen.add(function() { + r = ed.selection.getRng(); + }); + } + + // Fake select on 2.x + ed.selection.select = function(n) { + this.getSel().setBaseAndExtent(n, 0, n, 1); + }; + + getNode = ed.selection.getNode; + ed.selection.getNode = function() { + return t.selElm || getNode.call(this); + }; + + // Fake range on Safari 2.x + ed.selection.getRng = function() { + var t = this, s = t.getSel(), d = ed.getDoc(), r, rb, ra, di; + + // Fake range on Safari 2.x + if (s.anchorNode) { + r = d.createRange(); + + try { + // Setup before range + rb = d.createRange(); + rb.setStart(s.anchorNode, s.anchorOffset); + rb.collapse(1); + + // Setup after range + ra = d.createRange(); + ra.setStart(s.focusNode, s.focusOffset); + ra.collapse(1); + + // Setup start/end points by comparing locations + di = rb.compareBoundaryPoints(rb.START_TO_END, ra) < 0; + r.setStart(di ? s.anchorNode : s.focusNode, di ? s.anchorOffset : s.focusOffset); + r.setEnd(di ? s.focusNode : s.anchorNode, di ? s.focusOffset : s.anchorOffset); + + lr = r; + } catch (ex) { + // Sometimes fails, at least we tried to do it by the book. I hope Safari 2.x will go disappear soooon!!! + } + } + + return r || lr; + }; + + // Fix setContent so it works + setContent = ed.selection.setContent; + ed.selection.setContent = function(h, s) { + var r = this.getRng(), b; + + try { + setContent.call(this, h, s); + } catch (ex) { + // Workaround for Safari 2.x + b = dom.create('body'); + b.innerHTML = h; + + each(b.childNodes, function(n) { + r.insertNode(n.cloneNode(true)); + }); + } + }; + }, + + _insertBR : function(ed) { + var dom = ed.dom, s = ed.selection, r = s.getRng(), br; + + // Insert BR element + r.insertNode(br = dom.create('br')); + + // Place caret after BR + r.setStartAfter(br); + r.setEndAfter(br); + s.setRng(r); + + // Could not place caret after BR then insert an nbsp entity and move the caret + if (s.getSel().focusNode == br.previousSibling) { + s.select(dom.insertAfter(dom.doc.createTextNode('\u00a0'), br)); + s.collapse(1); + } + + // Scroll to new position, scrollIntoView can't be used due to bug: http://bugs.webkit.org/show_bug.cgi?id=16117 + ed.getWin().scrollTo(0, dom.getPos(s.getRng().startContainer).y); + } + }); + + // Register plugin + tinymce.PluginManager.add('safari', tinymce.plugins.Safari); +})(); + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js new file mode 100644 index 0000000..8e93996 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Save",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceSave",c._save,c);a.addCommand("mceCancel",c._cancel,c);a.addButton("save",{title:"save.save_desc",cmd:"mceSave"});a.addButton("cancel",{title:"save.cancel_desc",cmd:"mceCancel"});a.onNodeChange.add(c._nodeChange,c);a.addShortcut("ctrl+s",a.getLang("save.save_desc"),"mceSave")},getInfo:function(){return{longname:"Save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,c){var b=this.editor;if(b.getParam("save_enablewhendirty")){a.setDisabled("save",!b.isDirty());a.setDisabled("cancel",!b.isDirty())}},_save:function(){var c=this.editor,a,e,d,b;a=tinymce.DOM.get(c.id).form||tinymce.DOM.getParent(c.id,"form");if(c.getParam("save_enablewhendirty")&&!c.isDirty()){return}tinyMCE.triggerSave();if(e=c.getParam("save_onsavecallback")){if(c.execCallback("save_onsavecallback",c)){c.startContent=tinymce.trim(c.getContent({format:"raw"}));c.nodeChanged()}return}if(a){c.isNotDirty=true;if(a.onsubmit==null||a.onsubmit()!=false){a.submit()}c.nodeChanged()}else{c.windowManager.alert("Error: No form element found.")}},_cancel:function(){var a=this.editor,c,b=tinymce.trim(a.startContent);if(c=a.getParam("save_oncancelcallback")){a.execCallback("save_oncancelcallback",a);return}a.setContent(b);a.undoManager.clear();a.nodeChanged()}});tinymce.PluginManager.add("save",tinymce.plugins.Save)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js new file mode 100644 index 0000000..5ab6491 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin_src.js @@ -0,0 +1,101 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Save', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceSave', t._save, t); + ed.addCommand('mceCancel', t._cancel, t); + + // Register buttons + ed.addButton('save', {title : 'save.save_desc', cmd : 'mceSave'}); + ed.addButton('cancel', {title : 'save.cancel_desc', cmd : 'mceCancel'}); + + ed.onNodeChange.add(t._nodeChange, t); + ed.addShortcut('ctrl+s', ed.getLang('save.save_desc'), 'mceSave'); + }, + + getInfo : function() { + return { + longname : 'Save', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var ed = this.editor; + + if (ed.getParam('save_enablewhendirty')) { + cm.setDisabled('save', !ed.isDirty()); + cm.setDisabled('cancel', !ed.isDirty()); + } + }, + + // Private methods + + _save : function() { + var ed = this.editor, formObj, os, i, elementId; + + formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form'); + + if (ed.getParam("save_enablewhendirty") && !ed.isDirty()) + return; + + tinyMCE.triggerSave(); + + // Use callback instead + if (os = ed.getParam("save_onsavecallback")) { + if (ed.execCallback('save_onsavecallback', ed)) { + ed.startContent = tinymce.trim(ed.getContent({format : 'raw'})); + ed.nodeChanged(); + } + + return; + } + + if (formObj) { + ed.isNotDirty = true; + + if (formObj.onsubmit == null || formObj.onsubmit() != false) + formObj.submit(); + + ed.nodeChanged(); + } else + ed.windowManager.alert("Error: No form element found."); + }, + + _cancel : function() { + var ed = this.editor, os, h = tinymce.trim(ed.startContent); + + // Use callback instead + if (os = ed.getParam("save_oncancelcallback")) { + ed.execCallback('save_oncancelcallback', ed); + return; + } + + ed.setContent(h); + ed.undoManager.clear(); + ed.nodeChanged(); + } + }); + + // Register plugin + tinymce.PluginManager.add('save', tinymce.plugins.Save); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css new file mode 100644 index 0000000..3e2eaf3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css @@ -0,0 +1,6 @@ +.panel_wrapper {height:85px;} +.panel_wrapper div.current {height:85px;} + +/* IE */ +* html .panel_wrapper {height:100px;} +* html .panel_wrapper div.current {height:100px;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js new file mode 100644 index 0000000..cd9c985 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:170+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js new file mode 100644 index 0000000..e9b3ee8 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js @@ -0,0 +1,57 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.SearchReplacePlugin', { + init : function(ed, url) { + function open(m) { + ed.windowManager.open({ + file : url + '/searchreplace.htm', + width : 420 + parseInt(ed.getLang('searchreplace.delta_width', 0)), + height : 170 + parseInt(ed.getLang('searchreplace.delta_height', 0)), + inline : 1, + auto_focus : 0 + }, { + mode : m, + search_string : ed.selection.getContent({format : 'text'}), + plugin_url : url + }); + }; + + // Register commands + ed.addCommand('mceSearch', function() { + open('search'); + }); + + ed.addCommand('mceReplace', function() { + open('replace'); + }); + + // Register buttons + ed.addButton('search', {title : 'searchreplace.search_desc', cmd : 'mceSearch'}); + ed.addButton('replace', {title : 'searchreplace.replace_desc', cmd : 'mceReplace'}); + + ed.addShortcut('ctrl+f', 'searchreplace.search_desc', 'mceSearch'); + }, + + getInfo : function() { + return { + longname : 'Search/Replace', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('searchreplace', tinymce.plugins.SearchReplacePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js new file mode 100644 index 0000000..4cc0f40 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js @@ -0,0 +1,130 @@ +tinyMCEPopup.requireLangPack(); + +var SearchReplaceDialog = { + init : function(ed) { + var f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode"); + + this.switchMode(m); + + f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string"); + + // Focus input field + f[m + '_panel_searchstring'].focus(); + }, + + switchMode : function(m) { + var f, lm = this.lastMode; + + if (lm != m) { + f = document.forms[0]; + + if (lm) { + f[m + '_panel_searchstring'].value = f[lm + '_panel_searchstring'].value; + f[m + '_panel_backwardsu'].checked = f[lm + '_panel_backwardsu'].checked; + f[m + '_panel_backwardsd'].checked = f[lm + '_panel_backwardsd'].checked; + f[m + '_panel_casesensitivebox'].checked = f[lm + '_panel_casesensitivebox'].checked; + } + + mcTabs.displayTab(m + '_tab', m + '_panel'); + document.getElementById("replaceBtn").style.display = (m == "replace") ? "inline" : "none"; + document.getElementById("replaceAllBtn").style.display = (m == "replace") ? "inline" : "none"; + this.lastMode = m; + } + }, + + searchNext : function(a) { + var ed = tinyMCEPopup.editor, se = ed.selection, r = se.getRng(), f, m = this.lastMode, s, b, fl = 0, w = ed.getWin(), wm = ed.windowManager, fo = 0; + + // Get input + f = document.forms[0]; + s = f[m + '_panel_searchstring'].value; + b = f[m + '_panel_backwardsu'].checked; + ca = f[m + '_panel_casesensitivebox'].checked; + rs = f['replace_panel_replacestring'].value; + + if (s == '') + return; + + function fix() { + // Correct Firefox graphics glitches + r = se.getRng().cloneRange(); + ed.getDoc().execCommand('SelectAll', false, null); + se.setRng(r); + }; + + function replace() { + if (tinymce.isIE) + ed.selection.getRng().duplicate().pasteHTML(rs); // Needs to be duplicated due to selection bug in IE + else + ed.getDoc().execCommand('InsertHTML', false, rs); + }; + + // IE flags + if (ca) + fl = fl | 4; + + switch (a) { + case 'all': + // Move caret to beginning of text + ed.execCommand('SelectAll'); + ed.selection.collapse(true); + + if (tinymce.isIE) { + while (r.findText(s, b ? -1 : 1, fl)) { + r.scrollIntoView(); + r.select(); + replace(); + fo = 1; + + if (b) { + r.moveEnd("character", -(rs.length)); // Otherwise will loop forever + } + } + + tinyMCEPopup.storeSelection(); + } else { + while (w.find(s, ca, b, false, false, false, false)) { + replace(); + fo = 1; + } + } + + if (fo) + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.allreplaced')); + else + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + + return; + + case 'current': + if (!ed.selection.isCollapsed()) + replace(); + + break; + } + + se.collapse(b); + r = se.getRng(); + + // Whats the point + if (!s) + return; + + if (tinymce.isIE) { + if (r.findText(s, b ? -1 : 1, fl)) { + r.scrollIntoView(); + r.select(); + } else + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + + tinyMCEPopup.storeSelection(); + } else { + if (!w.find(s, ca, b, false, false, false, false)) + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + else + fix(); + } + } +}; + +tinyMCEPopup.onInit.add(SearchReplaceDialog.init, SearchReplaceDialog); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js new file mode 100644 index 0000000..3dd3453 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js @@ -0,0 +1,16 @@ +tinyMCE.addI18n('en.searchreplace_dlg',{ +searchnext_desc:"Find again", +notfound:"The search has been completed. The search string could not be found.", +search_title:"Find", +replace_title:"Find/Replace", +allreplaced:"All occurrences of the search string were replaced.", +findwhat:"Find what", +replacewith:"Replace with", +direction:"Direction", +up:"Up", +down:"Down", +mcase:"Match case", +findnext:"Find next", +replace:"Replace", +replaceall:"Replace all" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm new file mode 100644 index 0000000..243a4bc --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm @@ -0,0 +1,99 @@ + + + + {#searchreplace_dlg.replace_title} + + + + + + + +
    + + +
    +
    + + + + + + + + + + + +
    + + + + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + +
    + + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css new file mode 100644 index 0000000..656ce1e --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css @@ -0,0 +1 @@ +.mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js new file mode 100644 index 0000000..a9ec3b9 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam("spellchecker_rpc_url","{backend}");if(g.rpcUrl=="{backend}"){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand("mceSpellCheck",function(){if(g.rpcUrl=="{backend}"){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam("spellchecker_report_no_misspellings",true)){e.windowManager.alert("spellchecker.no_mpell")}}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+"/css/content.css")}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){if(f.rpcUrl=="{backend}"){if(f.hasSupport){g=d.createButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f})}return g}g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c');for(d=0;d$1$2');q=q.replace(g,'$1$2');j.replace(j.create("span",{"class":"mceItemHidden"},q),r)}}});l.moveToBookmark(m)},_showMenu:function(h,j){var i=this,h=i.editor,d=i._menu,l,k=h.dom,g=k.getViewPort(h.getWin()),f=j.target;j=0;if(!d){l=b.getPos(h.getContentAreaContainer());d=h.controlManager.createDropMenu("spellcheckermenu",{offset_x:l.x,offset_y:l.y,"class":"mceNoIcons"});i._menu=d}if(k.hasClass(f,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);i._sendRPC("getSuggestions",[i.selectedLang,k.decode(f.innerHTML)],function(m){var e;d.removeAll();if(m.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(m,function(n){d.add({title:n,onclick:function(){k.replace(h.getDoc().createTextNode(n),f);i._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}e=i.editor.getParam("spellchecker_enable_ignore_rpc","");d.add({title:"spellchecker.ignore_word",onclick:function(){var n=f.innerHTML;k.remove(f,1);i._checkDone();if(e){h.setProgressState(1);i._sendRPC("ignoreWord",[i.selectedLang,n],function(o){h.setProgressState(0)})}}});d.add({title:"spellchecker.ignore_words",onclick:function(){var n=f.innerHTML;i._removeWords(k.decode(n));i._checkDone();if(e){h.setProgressState(1);i._sendRPC("ignoreWords",[i.selectedLang,n],function(o){h.setProgressState(0)})}}});if(i.editor.getParam("spellchecker_enable_learn_rpc")){d.add({title:"spellchecker.learn_word",onclick:function(){var n=f.innerHTML;k.remove(f,1);i._checkDone();h.setProgressState(1);i._sendRPC("learnWord",[i.selectedLang,n],function(o){h.setProgressState(0)})}})}d.update()});h.selection.select(f);l=k.getPos(f);d.showMenu(l.x,l.y+f.offsetHeight-g.y);return tinymce.dom.Event.cancel(j)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||("Error response: "+h.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js new file mode 100644 index 0000000..bd501d3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js @@ -0,0 +1,417 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var JSONRequest = tinymce.util.JSONRequest, each = tinymce.each, DOM = tinymce.DOM; + + tinymce.create('tinymce.plugins.SpellcheckerPlugin', { + getInfo : function() { + return { + longname : 'Spellchecker', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + init : function(ed, url) { + var t = this, cm; + + t.url = url; + t.editor = ed; + t.rpcUrl = ed.getParam("spellchecker_rpc_url", "{backend}"); + + if (t.rpcUrl == '{backend}') { + // Sniff if the browser supports native spellchecking (Don't know of a better way) + if (tinymce.isIE) + return; + + t.hasSupport = true; + + // Disable the context menu when spellchecking is active + ed.onContextMenu.addToTop(function(ed, e) { + if (t.active) + return false; + }); + } + + // Register commands + ed.addCommand('mceSpellCheck', function() { + if (t.rpcUrl == '{backend}') { + // Enable/disable native spellchecker + t.editor.getBody().spellcheck = t.active = !t.active; + return; + } + + if (!t.active) { + ed.setProgressState(1); + t._sendRPC('checkWords', [t.selectedLang, t._getWords()], function(r) { + if (r.length > 0) { + t.active = 1; + t._markWords(r); + ed.setProgressState(0); + ed.nodeChanged(); + } else { + ed.setProgressState(0); + + if (ed.getParam('spellchecker_report_no_misspellings', true)) + ed.windowManager.alert('spellchecker.no_mpell'); + } + }); + } else + t._done(); + }); + + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + '/css/content.css'); + }); + + ed.onClick.add(t._showMenu, t); + ed.onContextMenu.add(t._showMenu, t); + ed.onBeforeGetContent.add(function() { + if (t.active) + t._removeWords(); + }); + + ed.onNodeChange.add(function(ed, cm) { + cm.setActive('spellchecker', t.active); + }); + + ed.onSetContent.add(function() { + t._done(); + }); + + ed.onBeforeGetContent.add(function() { + t._done(); + }); + + ed.onBeforeExecCommand.add(function(ed, cmd) { + if (cmd == 'mceFullScreen') + t._done(); + }); + + // Find selected language + t.languages = {}; + each(ed.getParam('spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', 'hash'), function(v, k) { + if (k.indexOf('+') === 0) { + k = k.substring(1); + t.selectedLang = v; + } + + t.languages[k] = v; + }); + }, + + createControl : function(n, cm) { + var t = this, c, ed = t.editor; + + if (n == 'spellchecker') { + // Use basic button if we use the native spellchecker + if (t.rpcUrl == '{backend}') { + // Create simple toggle button if we have native support + if (t.hasSupport) + c = cm.createButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t}); + + return c; + } + + c = cm.createSplitButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t}); + + c.onRenderMenu.add(function(c, m) { + m.add({title : 'spellchecker.langs', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + each(t.languages, function(v, k) { + var o = {icon : 1}, mi; + + o.onclick = function() { + mi.setSelected(1); + t.selectedItem.setSelected(0); + t.selectedItem = mi; + t.selectedLang = v; + }; + + o.title = k; + mi = m.add(o); + mi.setSelected(v == t.selectedLang); + + if (v == t.selectedLang) + t.selectedItem = mi; + }) + }); + + return c; + } + }, + + // Internal functions + + _walk : function(n, f) { + var d = this.editor.getDoc(), w; + + if (d.createTreeWalker) { + w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false); + + while ((n = w.nextNode()) != null) + f.call(this, n); + } else + tinymce.walk(n, f, 'childNodes'); + }, + + _getSeparators : function() { + var re = '', i, str = this.editor.getParam('spellchecker_word_separator_chars', '\\s!"#$%&()*+,-./:;<=>?@[\]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c'); + + // Build word separator regexp + for (i=0; i$1$2'); + v = v.replace(r3, '$1$2'); + + dom.replace(dom.create('span', {'class' : 'mceItemHidden'}, v), n); + } + } + }); + + se.moveToBookmark(b); + }, + + _showMenu : function(ed, e) { + var t = this, ed = t.editor, m = t._menu, p1, dom = ed.dom, vp = dom.getViewPort(ed.getWin()), wordSpan = e.target; + + e = 0; // Fixes IE memory leak + + if (!m) { + p1 = DOM.getPos(ed.getContentAreaContainer()); + //p2 = DOM.getPos(ed.getContainer()); + + m = ed.controlManager.createDropMenu('spellcheckermenu', { + offset_x : p1.x, + offset_y : p1.y, + 'class' : 'mceNoIcons' + }); + + t._menu = m; + } + + if (dom.hasClass(wordSpan, 'mceItemHiddenSpellWord')) { + m.removeAll(); + m.add({title : 'spellchecker.wait', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + t._sendRPC('getSuggestions', [t.selectedLang, dom.decode(wordSpan.innerHTML)], function(r) { + var ignoreRpc; + + m.removeAll(); + + if (r.length > 0) { + m.add({title : 'spellchecker.sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + each(r, function(v) { + m.add({title : v, onclick : function() { + dom.replace(ed.getDoc().createTextNode(v), wordSpan); + t._checkDone(); + }}); + }); + + m.addSeparator(); + } else + m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + ignoreRpc = t.editor.getParam("spellchecker_enable_ignore_rpc", ''); + m.add({ + title : 'spellchecker.ignore_word', + onclick : function() { + var word = wordSpan.innerHTML; + + dom.remove(wordSpan, 1); + t._checkDone(); + + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + } + }); + + m.add({ + title : 'spellchecker.ignore_words', + onclick : function() { + var word = wordSpan.innerHTML; + + t._removeWords(dom.decode(word)); + t._checkDone(); + + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + } + }); + + + if (t.editor.getParam("spellchecker_enable_learn_rpc")) { + m.add({ + title : 'spellchecker.learn_word', + onclick : function() { + var word = wordSpan.innerHTML; + + dom.remove(wordSpan, 1); + t._checkDone(); + + ed.setProgressState(1); + t._sendRPC('learnWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + }); + } + + m.update(); + }); + + ed.selection.select(wordSpan); + p1 = dom.getPos(wordSpan); + m.showMenu(p1.x, p1.y + wordSpan.offsetHeight - vp.y); + + return tinymce.dom.Event.cancel(e); + } else + m.hideMenu(); + }, + + _checkDone : function() { + var t = this, ed = t.editor, dom = ed.dom, o; + + each(dom.select('span'), function(n) { + if (n && dom.hasClass(n, 'mceItemHiddenSpellWord')) { + o = true; + return false; + } + }); + + if (!o) + t._done(); + }, + + _done : function() { + var t = this, la = t.active; + + if (t.active) { + t.active = 0; + t._removeWords(); + + if (t._menu) + t._menu.hideMenu(); + + if (la) + t.editor.nodeChanged(); + } + }, + + _sendRPC : function(m, p, cb) { + var t = this; + + JSONRequest.sendRPC({ + url : t.rpcUrl, + method : m, + params : p, + success : cb, + error : function(e, x) { + t.editor.setProgressState(0); + t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText)); + } + }); + } + }); + + // Register plugin + tinymce.PluginManager.add('spellchecker', tinymce.plugins.SpellcheckerPlugin); +})(); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif b/js/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif new file mode 100644 index 0000000000000000000000000000000000000000..7d0a4dbca03cc13177a359a5f175dda819fdf464 GIT binary patch literal 46 ycmZ?wbhEHbWMN=tXkcXcqowu#|9{1wEQ|~cj0`#qKmd|qU}ANVOOs?}um%7FLkRf* literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/plugins/style/css/props.css b/js/tinymce/jscripts/tiny_mce/plugins/style/css/props.css new file mode 100644 index 0000000..5550b09 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/style/css/props.css @@ -0,0 +1,13 @@ +#text_font {width:250px;} +#text_size {width:70px;} +.mceAddSelectValue {background:#DDD;} +select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left {width:70px;} +#box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex {width:70px;} +#positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left {width:70px;} +#positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left {width:70px;} +.panel_wrapper div.current {padding-top:10px;height:230px;} +.delim {border-left:1px solid gray;} +.tdelim {border-bottom:1px solid gray;} +#block_display {width:145px;} +#list_type {width:115px;} +.disabled {background:#EEE;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js new file mode 100644 index 0000000..cab2153 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.StylePlugin",{init:function(a,b){a.addCommand("mceStyleProps",function(){a.windowManager.open({file:b+"/props.htm",width:480+parseInt(a.getLang("style.delta_width",0)),height:320+parseInt(a.getLang("style.delta_height",0)),inline:1},{plugin_url:b,style_text:a.selection.getNode().style.cssText})});a.addCommand("mceSetElementStyle",function(d,c){if(e=a.selection.getNode()){a.dom.setAttrib(e,"style",c);a.execCommand("mceRepaint")}});a.onNodeChange.add(function(d,c,f){c.setDisabled("styleprops",f.nodeName==="BODY")});a.addButton("styleprops",{title:"style.desc",cmd:"mceStyleProps"})},getInfo:function(){return{longname:"Style",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("style",tinymce.plugins.StylePlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js new file mode 100644 index 0000000..c09d5e8 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js @@ -0,0 +1,55 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.StylePlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceStyleProps', function() { + ed.windowManager.open({ + file : url + '/props.htm', + width : 480 + parseInt(ed.getLang('style.delta_width', 0)), + height : 320 + parseInt(ed.getLang('style.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + style_text : ed.selection.getNode().style.cssText + }); + }); + + ed.addCommand('mceSetElementStyle', function(ui, v) { + if (e = ed.selection.getNode()) { + ed.dom.setAttrib(e, 'style', v); + ed.execCommand('mceRepaint'); + } + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setDisabled('styleprops', n.nodeName === 'BODY'); + }); + + // Register buttons + ed.addButton('styleprops', {title : 'style.desc', cmd : 'mceStyleProps'}); + }, + + getInfo : function() { + return { + longname : 'Style', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('style', tinymce.plugins.StylePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/style/js/props.js b/js/tinymce/jscripts/tiny_mce/plugins/style/js/props.js new file mode 100644 index 0000000..1e73806 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/style/js/props.js @@ -0,0 +1,641 @@ +tinyMCEPopup.requireLangPack(); + +var defaultFonts = "" + + "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" + + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + + "Courier New, Courier, mono=Courier New, Courier, mono;" + + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + + "Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" + + "Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" + + "Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif"; + +var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger"; +var defaultMeasurement = "+pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%"; +var defaultSpacingMeasurement = "pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;+ems=em;exs=ex;%"; +var defaultIndentMeasurement = "pixels=px;+points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%"; +var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900"; +var defaultTextStyle = "normal;italic;oblique"; +var defaultVariant = "normal;small-caps"; +var defaultLineHeight = "normal"; +var defaultAttachment = "fixed;scroll"; +var defaultRepeat = "no-repeat;repeat;repeat-x;repeat-y"; +var defaultPosH = "left;center;right"; +var defaultPosV = "top;center;bottom"; +var defaultVAlign = "baseline;sub;super;top;text-top;middle;bottom;text-bottom"; +var defaultDisplay = "inline;block;list-item;run-in;compact;marker;table;inline-table;table-row-group;table-header-group;table-footer-group;table-row;table-column-group;table-column;table-cell;table-caption;none"; +var defaultBorderStyle = "none;solid;dashed;dotted;double;groove;ridge;inset;outset"; +var defaultBorderWidth = "thin;medium;thick"; +var defaultListType = "disc;circle;square;decimal;lower-roman;upper-roman;lower-alpha;upper-alpha;none"; + +function init() { + var ce = document.getElementById('container'), h; + + ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); + + h = getBrowserHTML('background_image_browser','background_image','image','advimage'); + document.getElementById("background_image_browser").innerHTML = h; + + document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); + document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color'); + document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top'); + document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right'); + document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom'); + document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left'); + + fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true); + fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true); + fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true); + fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true); + fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true); + fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true); + fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true); + fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true); + fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true); + + fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true); + fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true); + + fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true); + fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true); + fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true); + fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true); + fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true); + fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true); + fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true); + fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true); + fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true); + + fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true); + fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true); + fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true); + + fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true); + + fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true); + fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true); + + fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true); + fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true); + + fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true); + + fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true); + + TinyMCE_EditableSelects.init(); + setupFormData(); + showDisabledControls(); +} + +function setupFormData() { + var ce = document.getElementById('container'), f = document.forms[0], s, b, i; + + // Setup text fields + + selectByValue(f, 'text_font', ce.style.fontFamily, true, true); + selectByValue(f, 'text_size', getNum(ce.style.fontSize), true, true); + selectByValue(f, 'text_size_measurement', getMeasurement(ce.style.fontSize)); + selectByValue(f, 'text_weight', ce.style.fontWeight, true, true); + selectByValue(f, 'text_style', ce.style.fontStyle, true, true); + selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true); + selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight)); + selectByValue(f, 'text_case', ce.style.textTransform, true, true); + selectByValue(f, 'text_variant', ce.style.fontVariant, true, true); + f.text_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.color); + updateColor('text_color_pick', 'text_color'); + f.text_underline.checked = inStr(ce.style.textDecoration, 'underline'); + f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); + f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); + f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); + + // Setup background fields + + f.background_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.backgroundColor); + updateColor('background_color_pick', 'background_color'); + f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true); + selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true); + selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true); + selectByValue(f, 'background_hpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 0))); + selectByValue(f, 'background_vpos', getNum(getVal(ce.style.backgroundPosition, 1)), true, true); + selectByValue(f, 'background_vpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 1))); + + // Setup block fields + + selectByValue(f, 'block_wordspacing', getNum(ce.style.wordSpacing), true, true); + selectByValue(f, 'block_wordspacing_measurement', getMeasurement(ce.style.wordSpacing)); + selectByValue(f, 'block_letterspacing', getNum(ce.style.letterSpacing), true, true); + selectByValue(f, 'block_letterspacing_measurement', getMeasurement(ce.style.letterSpacing)); + selectByValue(f, 'block_vertical_alignment', ce.style.verticalAlign, true, true); + selectByValue(f, 'block_text_align', ce.style.textAlign, true, true); + f.block_text_indent.value = getNum(ce.style.textIndent); + selectByValue(f, 'block_text_indent_measurement', getMeasurement(ce.style.textIndent)); + selectByValue(f, 'block_whitespace', ce.style.whiteSpace, true, true); + selectByValue(f, 'block_display', ce.style.display, true, true); + + // Setup box fields + + f.box_width.value = getNum(ce.style.width); + selectByValue(f, 'box_width_measurement', getMeasurement(ce.style.width)); + + f.box_height.value = getNum(ce.style.height); + selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height)); + + if (tinymce.isGecko) + selectByValue(f, 'box_float', ce.style.cssFloat, true, true); + else + selectByValue(f, 'box_float', ce.style.styleFloat, true, true); + + selectByValue(f, 'box_clear', ce.style.clear, true, true); + + setupBox(f, ce, 'box_padding', 'padding', ''); + setupBox(f, ce, 'box_margin', 'margin', ''); + + // Setup border fields + + setupBox(f, ce, 'border_style', 'border', 'Style'); + setupBox(f, ce, 'border_width', 'border', 'Width'); + setupBox(f, ce, 'border_color', 'border', 'Color'); + + updateColor('border_color_top_pick', 'border_color_top'); + updateColor('border_color_right_pick', 'border_color_right'); + updateColor('border_color_bottom_pick', 'border_color_bottom'); + updateColor('border_color_left_pick', 'border_color_left'); + + f.elements.border_color_top.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_top.value); + f.elements.border_color_right.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_right.value); + f.elements.border_color_bottom.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_bottom.value); + f.elements.border_color_left.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_left.value); + + // Setup list fields + + selectByValue(f, 'list_type', ce.style.listStyleType, true, true); + selectByValue(f, 'list_position', ce.style.listStylePosition, true, true); + f.list_bullet_image.value = ce.style.listStyleImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + + // Setup box fields + + selectByValue(f, 'positioning_type', ce.style.position, true, true); + selectByValue(f, 'positioning_visibility', ce.style.visibility, true, true); + selectByValue(f, 'positioning_overflow', ce.style.overflow, true, true); + f.positioning_zindex.value = ce.style.zIndex ? ce.style.zIndex : ""; + + f.positioning_width.value = getNum(ce.style.width); + selectByValue(f, 'positioning_width_measurement', getMeasurement(ce.style.width)); + + f.positioning_height.value = getNum(ce.style.height); + selectByValue(f, 'positioning_height_measurement', getMeasurement(ce.style.height)); + + setupBox(f, ce, 'positioning_placement', '', '', ['top', 'right', 'bottom', 'left']); + + s = ce.style.clip.replace(new RegExp("rect\\('?([^']*)'?\\)", 'gi'), "$1"); + s = s.replace(/,/g, ' '); + + if (!hasEqualValues([getVal(s, 0), getVal(s, 1), getVal(s, 2), getVal(s, 3)])) { + f.positioning_clip_top.value = getNum(getVal(s, 0)); + selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); + f.positioning_clip_right.value = getNum(getVal(s, 1)); + selectByValue(f, 'positioning_clip_right_measurement', getMeasurement(getVal(s, 1))); + f.positioning_clip_bottom.value = getNum(getVal(s, 2)); + selectByValue(f, 'positioning_clip_bottom_measurement', getMeasurement(getVal(s, 2))); + f.positioning_clip_left.value = getNum(getVal(s, 3)); + selectByValue(f, 'positioning_clip_left_measurement', getMeasurement(getVal(s, 3))); + } else { + f.positioning_clip_top.value = getNum(getVal(s, 0)); + selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); + f.positioning_clip_right.value = f.positioning_clip_bottom.value = f.positioning_clip_left.value; + } + +// setupBox(f, ce, '', 'border', 'Color'); +} + +function getMeasurement(s) { + return s.replace(/^([0-9.]+)(.*)$/, "$2"); +} + +function getNum(s) { + if (new RegExp('^(?:[0-9.]+)(?:[a-z%]+)$', 'gi').test(s)) + return s.replace(/[^0-9.]/g, ''); + + return s; +} + +function inStr(s, n) { + return new RegExp(n, 'gi').test(s); +} + +function getVal(s, i) { + var a = s.split(' '); + + if (a.length > 1) + return a[i]; + + return ""; +} + +function setValue(f, n, v) { + if (f.elements[n].type == "text") + f.elements[n].value = v; + else + selectByValue(f, n, v, true, true); +} + +function setupBox(f, ce, fp, pr, sf, b) { + if (typeof(b) == "undefined") + b = ['Top', 'Right', 'Bottom', 'Left']; + + if (isSame(ce, pr, sf, b)) { + f.elements[fp + "_same"].checked = true; + + setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); + f.elements[fp + "_top"].disabled = false; + + f.elements[fp + "_right"].value = ""; + f.elements[fp + "_right"].disabled = true; + f.elements[fp + "_bottom"].value = ""; + f.elements[fp + "_bottom"].disabled = true; + f.elements[fp + "_left"].value = ""; + f.elements[fp + "_left"].disabled = true; + + if (f.elements[fp + "_top_measurement"]) { + selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); + f.elements[fp + "_left_measurement"].disabled = true; + f.elements[fp + "_bottom_measurement"].disabled = true; + f.elements[fp + "_right_measurement"].disabled = true; + } + } else { + f.elements[fp + "_same"].checked = false; + + setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); + f.elements[fp + "_top"].disabled = false; + + setValue(f, fp + "_right", getNum(ce.style[pr + b[1] + sf])); + f.elements[fp + "_right"].disabled = false; + + setValue(f, fp + "_bottom", getNum(ce.style[pr + b[2] + sf])); + f.elements[fp + "_bottom"].disabled = false; + + setValue(f, fp + "_left", getNum(ce.style[pr + b[3] + sf])); + f.elements[fp + "_left"].disabled = false; + + if (f.elements[fp + "_top_measurement"]) { + selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); + selectByValue(f, fp + '_right_measurement', getMeasurement(ce.style[pr + b[1] + sf])); + selectByValue(f, fp + '_bottom_measurement', getMeasurement(ce.style[pr + b[2] + sf])); + selectByValue(f, fp + '_left_measurement', getMeasurement(ce.style[pr + b[3] + sf])); + f.elements[fp + "_left_measurement"].disabled = false; + f.elements[fp + "_bottom_measurement"].disabled = false; + f.elements[fp + "_right_measurement"].disabled = false; + } + } +} + +function isSame(e, pr, sf, b) { + var a = [], i, x; + + if (typeof(b) == "undefined") + b = ['Top', 'Right', 'Bottom', 'Left']; + + if (typeof(sf) == "undefined" || sf == null) + sf = ""; + + a[0] = e.style[pr + b[0] + sf]; + a[1] = e.style[pr + b[1] + sf]; + a[2] = e.style[pr + b[2] + sf]; + a[3] = e.style[pr + b[3] + sf]; + + for (i=0; i 0 ? s.substring(1) : s; + + if (f.text_none.checked) + s = "none"; + + ce.style.textDecoration = s; + + // Build background styles + + ce.style.backgroundColor = f.background_color.value; + ce.style.backgroundImage = f.background_image.value != "" ? "url(" + f.background_image.value + ")" : ""; + ce.style.backgroundRepeat = f.background_repeat.value; + ce.style.backgroundAttachment = f.background_attachment.value; + + if (f.background_hpos.value != "") { + s = ""; + s += f.background_hpos.value + (isNum(f.background_hpos.value) ? f.background_hpos_measurement.value : "") + " "; + s += f.background_vpos.value + (isNum(f.background_vpos.value) ? f.background_vpos_measurement.value : ""); + ce.style.backgroundPosition = s; + } + + // Build block styles + + ce.style.wordSpacing = f.block_wordspacing.value + (isNum(f.block_wordspacing.value) ? f.block_wordspacing_measurement.value : ""); + ce.style.letterSpacing = f.block_letterspacing.value + (isNum(f.block_letterspacing.value) ? f.block_letterspacing_measurement.value : ""); + ce.style.verticalAlign = f.block_vertical_alignment.value; + ce.style.textAlign = f.block_text_align.value; + ce.style.textIndent = f.block_text_indent.value + (isNum(f.block_text_indent.value) ? f.block_text_indent_measurement.value : ""); + ce.style.whiteSpace = f.block_whitespace.value; + ce.style.display = f.block_display.value; + + // Build box styles + + ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : ""); + ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : ""); + ce.style.styleFloat = f.box_float.value; + + if (tinymce.isGecko) + ce.style.cssFloat = f.box_float.value; + + ce.style.clear = f.box_clear.value; + + if (!f.box_padding_same.checked) { + ce.style.paddingTop = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); + ce.style.paddingRight = f.box_padding_right.value + (isNum(f.box_padding_right.value) ? f.box_padding_right_measurement.value : ""); + ce.style.paddingBottom = f.box_padding_bottom.value + (isNum(f.box_padding_bottom.value) ? f.box_padding_bottom_measurement.value : ""); + ce.style.paddingLeft = f.box_padding_left.value + (isNum(f.box_padding_left.value) ? f.box_padding_left_measurement.value : ""); + } else + ce.style.padding = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); + + if (!f.box_margin_same.checked) { + ce.style.marginTop = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); + ce.style.marginRight = f.box_margin_right.value + (isNum(f.box_margin_right.value) ? f.box_margin_right_measurement.value : ""); + ce.style.marginBottom = f.box_margin_bottom.value + (isNum(f.box_margin_bottom.value) ? f.box_margin_bottom_measurement.value : ""); + ce.style.marginLeft = f.box_margin_left.value + (isNum(f.box_margin_left.value) ? f.box_margin_left_measurement.value : ""); + } else + ce.style.margin = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); + + // Build border styles + + if (!f.border_style_same.checked) { + ce.style.borderTopStyle = f.border_style_top.value; + ce.style.borderRightStyle = f.border_style_right.value; + ce.style.borderBottomStyle = f.border_style_bottom.value; + ce.style.borderLeftStyle = f.border_style_left.value; + } else + ce.style.borderStyle = f.border_style_top.value; + + if (!f.border_width_same.checked) { + ce.style.borderTopWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); + ce.style.borderRightWidth = f.border_width_right.value + (isNum(f.border_width_right.value) ? f.border_width_right_measurement.value : ""); + ce.style.borderBottomWidth = f.border_width_bottom.value + (isNum(f.border_width_bottom.value) ? f.border_width_bottom_measurement.value : ""); + ce.style.borderLeftWidth = f.border_width_left.value + (isNum(f.border_width_left.value) ? f.border_width_left_measurement.value : ""); + } else + ce.style.borderWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); + + if (!f.border_color_same.checked) { + ce.style.borderTopColor = f.border_color_top.value; + ce.style.borderRightColor = f.border_color_right.value; + ce.style.borderBottomColor = f.border_color_bottom.value; + ce.style.borderLeftColor = f.border_color_left.value; + } else + ce.style.borderColor = f.border_color_top.value; + + // Build list styles + + ce.style.listStyleType = f.list_type.value; + ce.style.listStylePosition = f.list_position.value; + ce.style.listStyleImage = f.list_bullet_image.value != "" ? "url(" + f.list_bullet_image.value + ")" : ""; + + // Build positioning styles + + ce.style.position = f.positioning_type.value; + ce.style.visibility = f.positioning_visibility.value; + + if (ce.style.width == "") + ce.style.width = f.positioning_width.value + (isNum(f.positioning_width.value) ? f.positioning_width_measurement.value : ""); + + if (ce.style.height == "") + ce.style.height = f.positioning_height.value + (isNum(f.positioning_height.value) ? f.positioning_height_measurement.value : ""); + + ce.style.zIndex = f.positioning_zindex.value; + ce.style.overflow = f.positioning_overflow.value; + + if (!f.positioning_placement_same.checked) { + ce.style.top = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); + ce.style.right = f.positioning_placement_right.value + (isNum(f.positioning_placement_right.value) ? f.positioning_placement_right_measurement.value : ""); + ce.style.bottom = f.positioning_placement_bottom.value + (isNum(f.positioning_placement_bottom.value) ? f.positioning_placement_bottom_measurement.value : ""); + ce.style.left = f.positioning_placement_left.value + (isNum(f.positioning_placement_left.value) ? f.positioning_placement_left_measurement.value : ""); + } else { + s = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); + ce.style.top = s; + ce.style.right = s; + ce.style.bottom = s; + ce.style.left = s; + } + + if (!f.positioning_clip_same.checked) { + s = "rect("; + s += (isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_right.value) ? f.positioning_clip_right.value + f.positioning_clip_right_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_bottom.value) ? f.positioning_clip_bottom.value + f.positioning_clip_bottom_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_left.value) ? f.positioning_clip_left.value + f.positioning_clip_left_measurement.value : "auto"); + s += ")"; + + if (s != "rect(auto auto auto auto)") + ce.style.clip = s; + } else { + s = "rect("; + t = isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto"; + s += t + " "; + s += t + " "; + s += t + " "; + s += t + ")"; + + if (s != "rect(auto auto auto auto)") + ce.style.clip = s; + } + + ce.style.cssText = ce.style.cssText; +} + +function isNum(s) { + return new RegExp('[0-9]+', 'g').test(s); +} + +function showDisabledControls() { + var f = document.forms, i, a; + + for (i=0; i 1) { + addSelectValue(f, s, p[0], p[1]); + + if (se) + selectByValue(f, s, p[1]); + } else { + addSelectValue(f, s, p[0], p[0]); + + if (se) + selectByValue(f, s, p[0]); + } + } +} + +function toggleSame(ce, pre) { + var el = document.forms[0].elements, i; + + if (ce.checked) { + el[pre + "_top"].disabled = false; + el[pre + "_right"].disabled = true; + el[pre + "_bottom"].disabled = true; + el[pre + "_left"].disabled = true; + + if (el[pre + "_top_measurement"]) { + el[pre + "_top_measurement"].disabled = false; + el[pre + "_right_measurement"].disabled = true; + el[pre + "_bottom_measurement"].disabled = true; + el[pre + "_left_measurement"].disabled = true; + } + } else { + el[pre + "_top"].disabled = false; + el[pre + "_right"].disabled = false; + el[pre + "_bottom"].disabled = false; + el[pre + "_left"].disabled = false; + + if (el[pre + "_top_measurement"]) { + el[pre + "_top_measurement"].disabled = false; + el[pre + "_right_measurement"].disabled = false; + el[pre + "_bottom_measurement"].disabled = false; + el[pre + "_left_measurement"].disabled = false; + } + } + + showDisabledControls(); +} + +function synch(fr, to) { + var f = document.forms[0]; + + f.elements[to].value = f.elements[fr].value; + + if (f.elements[fr + "_measurement"]) + selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value); +} + +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js new file mode 100644 index 0000000..d9d7762 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('en.style_dlg',{ +title:"Edit CSS Style", +apply:"Apply", +text_tab:"Text", +background_tab:"Background", +block_tab:"Block", +box_tab:"Box", +border_tab:"Border", +list_tab:"List", +positioning_tab:"Positioning", +text_props:"Text", +text_font:"Font", +text_size:"Size", +text_weight:"Weight", +text_style:"Style", +text_variant:"Variant", +text_lineheight:"Line height", +text_case:"Case", +text_color:"Color", +text_decoration:"Decoration", +text_overline:"overline", +text_underline:"underline", +text_striketrough:"strikethrough", +text_blink:"blink", +text_none:"none", +background_color:"Background color", +background_image:"Background image", +background_repeat:"Repeat", +background_attachment:"Attachment", +background_hpos:"Horizontal position", +background_vpos:"Vertical position", +block_wordspacing:"Word spacing", +block_letterspacing:"Letter spacing", +block_vertical_alignment:"Vertical alignment", +block_text_align:"Text align", +block_text_indent:"Text indent", +block_whitespace:"Whitespace", +block_display:"Display", +box_width:"Width", +box_height:"Height", +box_float:"Float", +box_clear:"Clear", +padding:"Padding", +same:"Same for all", +top:"Top", +right:"Right", +bottom:"Bottom", +left:"Left", +margin:"Margin", +style:"Style", +width:"Width", +height:"Height", +color:"Color", +list_type:"Type", +bullet_image:"Bullet image", +position:"Position", +positioning_type:"Type", +visibility:"Visibility", +zindex:"Z-index", +overflow:"Overflow", +placement:"Placement", +clip:"Clip" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/style/props.htm b/js/tinymce/jscripts/tiny_mce/plugins/style/props.htm new file mode 100644 index 0000000..549ed04 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/style/props.htm @@ -0,0 +1,723 @@ + + + + {#style_dlg.title} + + + + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + +
     
    +
    + +
    + + + +
    + + + + + + +
    + +  
    +
    + +
    + + + + + +
     
    +
    {#style_dlg.text_decoration} + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
     
    +
    + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    + +
    + + + + + + + + + + + + + + +
    + + + + + + +
     
    +
       
    + + + + + + +
     
    +
       
    +
    +
    + {#style_dlg.padding} + + + + + + + + + + + + + + + + + + + + + + +
     
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    +
    + +
    +
    + {#style_dlg.margin} + + + + + + + + + + + + + + + + + + + + + + +
     
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      {#style_dlg.style} {#style_dlg.width} {#style_dlg.color}
          
    {#style_dlg.top}   + + + + + + +
     
    +
      + + + + + +
     
    +
    {#style_dlg.right}   + + + + + + +
     
    +
      + + + + + +
     
    +
    {#style_dlg.bottom}   + + + + + + +
     
    +
      + + + + + +
     
    +
    {#style_dlg.left}   + + + + + + +
     
    +
      + + + + + +
     
    +
    +
    + +
    + + + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
       
    + + + + + + +
     
    +
       
    + + + + + + +
     
    +
       
    + +
    +
    + {#style_dlg.placement} + + + + + + + + + + + + + + + + + + + + + + +
     
    {#style_dlg.top} + + + + + + +
     
    +
    {#style_dlg.right} + + + + + + +
     
    +
    {#style_dlg.bottom} + + + + + + +
     
    +
    {#style_dlg.left} + + + + + + +
     
    +
    +
    +
    + +
    +
    + {#style_dlg.clip} + + + + + + + + + + + + + + + + + + + + + + +
     
    {#style_dlg.top} + + + + + + +
     
    +
    {#style_dlg.right} + + + + + + +
     
    +
    {#style_dlg.bottom} + + + + + + +
     
    +
    {#style_dlg.left} + + + + + + +
     
    +
    +
    +
    +
    +
    +
    + +
    + + + +
    +
    + +
    +
    +
    + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/cell.htm b/js/tinymce/jscripts/tiny_mce/plugins/table/cell.htm new file mode 100644 index 0000000..af7e003 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/cell.htm @@ -0,0 +1,178 @@ + + + + {#table_dlg.cell_title} + + + + + + + + +
    + + +
    +
    +
    + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + +
    +
    +
    + +
    +
    + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    +
    +
    + +
    +
    + +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css b/js/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css new file mode 100644 index 0000000..a47cc1a --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css @@ -0,0 +1,17 @@ +/* CSS file for cell dialog in the table plugin */ + +.panel_wrapper div.current { + height: 200px; +} + +.advfield { + width: 200px; +} + +#action { + margin-bottom: 3px; +} + +#class { + width: 150px; +} \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/css/row.css b/js/tinymce/jscripts/tiny_mce/plugins/table/css/row.css new file mode 100644 index 0000000..0e397db --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/css/row.css @@ -0,0 +1,25 @@ +/* CSS file for row dialog in the table plugin */ + +.panel_wrapper div.current { + height: 200px; +} + +.advfield { + width: 200px; +} + +#action { + margin-bottom: 3px; +} + +#rowtype,#align,#valign,#class,#height { + width: 150px; +} + +#height { + width: 50px; +} + +.col2 { + padding-left: 20px; +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/css/table.css b/js/tinymce/jscripts/tiny_mce/plugins/table/css/table.css new file mode 100644 index 0000000..8f10783 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/css/table.css @@ -0,0 +1,13 @@ +/* CSS file for table dialog in the table plugin */ + +.panel_wrapper div.current { + height: 245px; +} + +.advfield { + width: 200px; +} + +#class { + width: 150px; +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js new file mode 100644 index 0000000..266d7d5 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js @@ -0,0 +1 @@ +(function(b){var c=b.each;function a(F,E,I){var e,J,B,n;r();n=E.getParent(I.getStart(),"th,td");if(n){J=D(n);B=G();n=v(J.x,J.y)}function w(L,K){L=L.cloneNode(K);L.removeAttribute("id");return L}function r(){var K=0;e=[];c(["thead","tbody","tfoot"],function(L){var M=E.select(L+" tr",F);c(M,function(N,O){O+=K;c(E.select("td,th",N),function(U,P){var Q,R,S,T;if(e[O]){while(e[O][P]){P++}}S=g(U,"rowspan");T=g(U,"colspan");for(R=O;R'}return false}},"childNodes");K=w(K,false);K.rowSpan=K.colSpan=1;if(L){K.appendChild(L)}else{if(!b.isIE){K.innerHTML='
    '}}return K}function p(){var K=E.createRng();c(E.select("tr",F),function(L){if(L.cells.length==0){E.remove(L)}});if(E.select("tr",F).length==0){K.setStartAfter(F);K.setEndAfter(F);I.setRng(K);E.remove(F);return}c(E.select("thead,tbody,tfoot",F),function(L){if(L.rows.length==0){E.remove(L)}});r();row=e[Math.min(e.length-1,J.y)];if(row){I.select(row[Math.min(row.length-1,J.x)].elm,true);I.collapse(true)}}function s(Q,O,S,P){var N,L,K,M,R;N=e[O][Q].elm.parentNode;for(K=1;K<=S;K++){N=E.getNext(N,"tr");if(N){for(L=Q;L>=0;L--){R=e[O+K][L].elm;if(R.parentNode==N){for(M=1;M<=P;M++){E.insertAfter(d(R),R)}break}}if(L==-1){for(M=1;M<=P;M++){N.insertBefore(d(N.cells[0]),N.cells[0])}}}}}function A(){c(e,function(K,L){c(K,function(N,M){var Q,P,R,O;if(h(N)){N=N.elm;Q=g(N,"colspan");P=g(N,"rowspan");if(Q>1||P>1){N.colSpan=N.rowSpan=1;for(O=0;O1){P.rowSpan=rowSpan+1;continue}}else{if(K>0&&e[K-1][O]){S=e[K-1][O].elm;rowSpan=g(S,"rowspan");if(rowSpan>1){S.rowSpan=rowSpan+1;continue}}}L=d(P);L.colSpan=P.colSpan;R.appendChild(L);M=P}}if(R.hasChildNodes()){if(!N){E.insertAfter(R,Q)}else{Q.parentNode.insertBefore(R,Q)}}}function f(L){var M,K;c(e,function(N,O){c(N,function(Q,P){if(h(Q)){M=P;if(L){return false}}});if(L){return !M}});c(e,function(Q,R){var N=Q[M].elm,O,P;if(N!=K){P=g(N,"colspan");O=g(N,"rowspan");if(P==1){if(!L){E.insertAfter(d(N),N);s(M,R,O-1,P)}else{N.parentNode.insertBefore(d(N),N);s(M,R,O-1,P)}}else{N.colSpan++}K=N}})}function m(){var K=[];c(e,function(L,M){c(L,function(O,N){if(h(O)&&b.inArray(K,N)===-1){c(e,function(R){var P=R[N].elm,Q;Q=g(P,"colspan");if(Q>1){P.colSpan=Q-1}else{E.remove(P)}});K.push(N)}})});p()}function l(){var L;function K(O){var N,P,M;N=E.getNext(O,"tr");c(O.cells,function(Q){var R=g(Q,"rowspan");if(R>1){Q.rowSpan=R-1;P=D(Q);s(P.x,P.y,1,1)}});P=D(O.cells[0]);c(e[P.y],function(Q){var R;Q=Q.elm;if(Q!=M){R=g(Q,"rowspan");if(R<=1){E.remove(Q)}else{Q.rowSpan=R-1}M=Q}})}L=j();c(L.reverse(),function(M){K(M)});p()}function C(){var K=j();E.remove(K);p();return K}function H(){var K=j();c(K,function(M,L){K[L]=w(M,true)});return K}function z(M,L){var N=j(),K=N[L?0:N.length-1],O=K.cells.length;c(e,function(Q){var P;O=0;c(Q,function(S,R){if(S.real){O+=S.colspan}if(S.elm.parentNode==K){P=1}});if(P){return false}});if(!L){M.reverse()}c(M,function(R){var Q=R.cells.length,P;for(i=0;iL){L=P}if(O>K){K=O}if(Q.real){S=Q.colspan-1;R=Q.rowspan-1;if(S){if(P+S>L){L=P+S}}if(R){if(O+R>K){K=O+R}}}}})});return{x:L,y:K}}function t(Q){var N,M,S,R,L,K,O,P;B=D(Q);if(J&&B){N=Math.min(J.x,B.x);M=Math.min(J.y,B.y);S=Math.max(J.x,B.x);R=Math.max(J.y,B.y);L=S;K=R;for(y=M;y<=K;y++){Q=e[y][N];if(!Q.real){if(N-(Q.colspan-1)L){L=x+O}}if(P){if(y+P>K){K=y+P}}}}}E.removeClass(E.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=M;y<=K;y++){for(x=N;x<=L;x++){E.addClass(e[y][x].elm,"mceSelected")}}}}b.extend(this,{deleteTable:q,split:A,merge:o,insertRow:k,insertCol:f,deleteCols:m,deleteRows:l,cutRows:C,copyRows:H,pasteRows:z,getPos:D,setStartCell:u,setEndCell:t})}b.create("tinymce.plugins.TablePlugin",{init:function(e,f){var d,j;function h(m){var l=e.selection,k=e.dom.getParent(m||l.getNode(),"table");if(k){return new a(k,e.dom,l)}}function g(){e.getBody().style.webkitUserSelect="";e.dom.removeClass(e.dom.select("td.mceSelected,th.mceSelected"),"mceSelected")}c([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(k){e.addButton(k[0],{title:k[1],cmd:k[2],ui:k[3]})});if(!b.isIE){e.onClick.add(function(k,l){l=l.target;if(l.nodeName==="TABLE"){k.selection.select(l)}})}e.onNodeChange.add(function(l,k,o){var m;o=l.selection.getStart();m=l.dom.getParent(o,"td,th,caption");k.setActive("table",o.nodeName==="TABLE"||!!m);if(m&&m.nodeName==="CAPTION"){m=0}k.setDisabled("delete_table",!m);k.setDisabled("delete_col",!m);k.setDisabled("delete_table",!m);k.setDisabled("delete_row",!m);k.setDisabled("col_after",!m);k.setDisabled("col_before",!m);k.setDisabled("row_after",!m);k.setDisabled("row_before",!m);k.setDisabled("row_props",!m);k.setDisabled("cell_props",!m);k.setDisabled("split_cells",!m);k.setDisabled("merge_cells",!m)});e.onInit.add(function(l){var k,o,p=l.dom,m;d=l.windowManager;l.onMouseDown.add(function(q,r){if(r.button!=2){g();o=p.getParent(r.target,"td,th");k=p.getParent(o,"table")}});p.bind(l.getDoc(),"mouseover",function(t){var r,q,s=t.target;if(o&&(m||s!=o)&&(s.nodeName=="TD"||s.nodeName=="TH")){q=p.getParent(s,"table");if(q==k){if(!m){m=h(q);m.setStartCell(o);l.getBody().style.webkitUserSelect="none"}m.setEndCell(s)}r=l.selection.getSel();if(r.removeAllRanges){r.removeAllRanges()}else{r.empty()}t.preventDefault()}});l.onMouseUp.add(function(z,A){var r,t=z.selection,B,C=t.getSel(),q,u,s,w;if(o){if(m){z.getBody().style.webkitUserSelect=""}function v(D,F){var E=new b.dom.TreeWalker(D,D);do{if(D.nodeType==3&&b.trim(D.nodeValue).length!=0){if(F){r.setStart(D,0)}else{r.setEnd(D,D.nodeValue.length)}return}if(D.nodeName=="BR"){if(F){r.setStartBefore(D)}else{r.setEndBefore(D)}return}}while(D=(F?E.next():E.prev()))}B=p.select("td.mceSelected,th.mceSelected");if(B.length>0){r=p.createRng();u=B[0];w=B[B.length-1];v(u,1);q=new b.dom.TreeWalker(u,p.getParent(B[0],"table"));do{if(u.nodeName=="TD"||u.nodeName=="TH"){if(!p.hasClass(u,"mceSelected")){break}s=u}}while(u=q.next());v(s);t.setRng(r)}z.nodeChanged();o=m=k=null}});l.onKeyUp.add(function(q,r){g()});if(l&&l.plugins.contextmenu){l.plugins.contextmenu.onContextMenu.add(function(s,q,u){var v,t=l.selection,r=t.getNode()||l.getBody();if(l.dom.getParent(u,"td")||l.dom.getParent(u,"th")||l.dom.select("td.mceSelected,th.mceSelected").length){q.removeAll();if(r.nodeName=="A"&&!l.dom.getAttrib(r,"name")){q.add({title:"advanced.link_desc",icon:"link",cmd:l.plugins.advlink?"mceAdvLink":"mceLink",ui:true});q.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});q.addSeparator()}if(r.nodeName=="IMG"&&r.className.indexOf("mceItem")==-1){q.add({title:"advanced.image_desc",icon:"image",cmd:l.plugins.advimage?"mceAdvImage":"mceImage",ui:true});q.addSeparator()}q.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});q.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});q.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});q.addSeparator();v=q.addMenu({title:"table.cell"});v.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});v.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});v.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});v=q.addMenu({title:"table.row"});v.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});v.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});v.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});v.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});v.addSeparator();v.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});v.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});v.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!j);v.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!j);v=q.addMenu({title:"table.col"});v.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});v.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});v.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{q.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(!b.isIE){function n(){var q;for(q=l.getBody().lastChild;q&&q.nodeType==3&&!q.nodeValue.length;q=q.previousSibling){}if(q&&q.nodeName=="TABLE"){l.dom.add(l.getBody(),"p",null,'
    ')}}if(b.isGecko){l.onKeyDown.add(function(r,t){var q,s,u=r.dom;if(t.keyCode==37||t.keyCode==38){q=r.selection.getRng();s=u.getParent(q.startContainer,"table");if(s&&r.getBody().firstChild==s){if(isAtStart(q,s)){q=u.createRng();q.setStartBefore(s);q.setEndBefore(s);r.selection.setRng(q);t.preventDefault()}}}})}l.onKeyUp.add(n);l.onSetContent.add(n);l.onVisualAid.add(n);l.onPreProcess.add(function(q,s){var r=s.node.lastChild;if(r&&r.childNodes.length==1&&r.firstChild.nodeName=="BR"){q.dom.remove(r)}});n()}});c({mceTableSplitCells:function(k){k.split()},mceTableMergeCells:function(l){var m,n,k;k=e.dom.getParent(e.selection.getNode(),"th,td");if(k){m=k.rowSpan;n=k.colSpan}if(!e.dom.select("td.mceSelected,th.mceSelected").length){d.open({url:f+"/merge_cells.htm",width:240+parseInt(e.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(e.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:m,cols:n,onaction:function(o){l.merge(k,o.cols,o.rows)},plugin_url:f})}else{l.merge()}},mceTableInsertRowBefore:function(k){k.insertRow(true)},mceTableInsertRowAfter:function(k){k.insertRow()},mceTableInsertColBefore:function(k){k.insertCol(true)},mceTableInsertColAfter:function(k){k.insertCol()},mceTableDeleteCol:function(k){k.deleteCols()},mceTableDeleteRow:function(k){k.deleteRows()},mceTableCutRow:function(k){j=k.cutRows()},mceTableCopyRow:function(k){j=k.copyRows()},mceTablePasteRowBefore:function(k){k.pasteRows(j,true)},mceTablePasteRowAfter:function(k){k.pasteRows(j)},mceTableDelete:function(k){k.deleteTable()}},function(l,k){e.addCommand(k,function(){var m=h();if(m){l(m);e.execCommand("mceRepaint");g()}})});c({mceInsertTable:function(k){d.open({url:f+"/table.htm",width:400+parseInt(e.getLang("table.table_delta_width",0)),height:320+parseInt(e.getLang("table.table_delta_height",0)),inline:1},{plugin_url:f,action:k?k.action:0})},mceTableRowProps:function(){d.open({url:f+"/row.htm",width:400+parseInt(e.getLang("table.rowprops_delta_width",0)),height:295+parseInt(e.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:f})},mceTableCellProps:function(){d.open({url:f+"/cell.htm",width:400+parseInt(e.getLang("table.cellprops_delta_width",0)),height:295+parseInt(e.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:f})}},function(l,k){e.addCommand(k,function(m,n){l(n)})})}});b.PluginManager.add("table",b.plugins.TablePlugin)})(tinymce); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js new file mode 100644 index 0000000..0195e96 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js @@ -0,0 +1,1125 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function(tinymce) { + var each = tinymce.each; + + /** + * Table Grid class. + */ + function TableGrid(table, dom, selection) { + var grid, startPos, endPos, selectedCell; + + buildGrid(); + selectedCell = dom.getParent(selection.getStart(), 'th,td'); + if (selectedCell) { + startPos = getPos(selectedCell); + endPos = findEndPos(); + selectedCell = getCell(startPos.x, startPos.y); + } + + function cloneNode(node, children) { + node = node.cloneNode(children); + node.removeAttribute('id'); + + return node; + } + + function buildGrid() { + var startY = 0; + + grid = []; + + each(['thead', 'tbody', 'tfoot'], function(part) { + var rows = dom.select(part + ' tr', table); + + each(rows, function(tr, y) { + y += startY; + + each(dom.select('td,th', tr), function(td, x) { + var x2, y2, rowspan, colspan; + + // Skip over existing cells produced by rowspan + if (grid[y]) { + while (grid[y][x]) + x++; + } + + // Get col/rowspan from cell + rowspan = getSpanVal(td, 'rowspan'); + colspan = getSpanVal(td, 'colspan'); + + // Fill out rowspan/colspan right and down + for (y2 = y; y2 < y + rowspan; y2++) { + if (!grid[y2]) + grid[y2] = []; + + for (x2 = x; x2 < x + colspan; x2++) { + grid[y2][x2] = { + part : part, + real : y2 == y && x2 == x, + elm : td, + rowspan : rowspan, + colspan : colspan + }; + } + } + }); + }); + + startY += rows.length; + }); + }; + + function getCell(x, y) { + var row; + + row = grid[y]; + if (row) + return row[x]; + }; + + function getSpanVal(td, name) { + return parseInt(td.getAttribute(name) || 1); + }; + + function isCellSelected(cell) { + return dom.hasClass(cell.elm, 'mceSelected') || cell == selectedCell; + }; + + function getSelectedRows() { + var rows = []; + + each(table.rows, function(row) { + each(row.cells, function(cell) { + if (dom.hasClass(cell, 'mceSelected') || cell == selectedCell.elm) { + rows.push(row); + return false; + } + }); + }); + + return rows; + }; + + function deleteTable() { + var rng = dom.createRng(); + + rng.setStartAfter(table); + rng.setEndAfter(table); + + selection.setRng(rng); + + dom.remove(table); + }; + + function cloneCell(cell) { + var formatNode; + + // Clone formats + tinymce.walk(cell, function(node) { + var curNode; + + if (node.nodeType == 3) { + each(dom.getParents(node.parentNode, null, cell).reverse(), function(node) { + node = cloneNode(node, false); + + if (!formatNode) + formatNode = curNode = node; + else if (curNode) + curNode.appendChild(node); + + curNode = node; + }); + + // Add something to the inner node + if (curNode) + curNode.innerHTML = tinymce.isIE ? ' ' : '
    '; + + return false; + } + }, 'childNodes'); + + cell = cloneNode(cell, false); + cell.rowSpan = cell.colSpan = 1; + + if (formatNode) { + cell.appendChild(formatNode); + } else { + if (!tinymce.isIE) + cell.innerHTML = '
    '; + } + + return cell; + }; + + function cleanup() { + var rng = dom.createRng(); + + // Empty rows + each(dom.select('tr', table), function(tr) { + if (tr.cells.length == 0) + dom.remove(tr); + }); + + // Empty table + if (dom.select('tr', table).length == 0) { + rng.setStartAfter(table); + rng.setEndAfter(table); + selection.setRng(rng); + dom.remove(table); + return; + } + + // Empty header/body/footer + each(dom.select('thead,tbody,tfoot', table), function(part) { + if (part.rows.length == 0) + dom.remove(part); + }); + + // Restore selection to start position if it still exists + buildGrid(); + + // Restore the selection to the closest table position + row = grid[Math.min(grid.length - 1, startPos.y)]; + if (row) { + selection.select(row[Math.min(row.length - 1, startPos.x)].elm, true); + selection.collapse(true); + } + }; + + function fillLeftDown(x, y, rows, cols) { + var tr, x2, r, c, cell; + + tr = grid[y][x].elm.parentNode; + for (r = 1; r <= rows; r++) { + tr = dom.getNext(tr, 'tr'); + + if (tr) { + // Loop left to find real cell + for (x2 = x; x2 >= 0; x2--) { + cell = grid[y + r][x2].elm; + + if (cell.parentNode == tr) { + // Append clones after + for (c = 1; c <= cols; c++) + dom.insertAfter(cloneCell(cell), cell); + + break; + } + } + + if (x2 == -1) { + // Insert nodes before first cell + for (c = 1; c <= cols; c++) + tr.insertBefore(cloneCell(tr.cells[0]), tr.cells[0]); + } + } + } + }; + + function split() { + each(grid, function(row, y) { + each(row, function(cell, x) { + var colSpan, rowSpan, newCell, i; + + if (isCellSelected(cell)) { + cell = cell.elm; + colSpan = getSpanVal(cell, 'colspan'); + rowSpan = getSpanVal(cell, 'rowspan'); + + if (colSpan > 1 || rowSpan > 1) { + cell.colSpan = cell.rowSpan = 1; + + // Insert cells right + for (i = 0; i < colSpan - 1; i++) + dom.insertAfter(cloneCell(cell), cell); + + fillLeftDown(x, y, rowSpan - 1, colSpan); + } + } + }); + }); + }; + + function merge(cell, cols, rows) { + var startX, startY, endX, endY, x, y, startCell, endCell, cell, children; + + // Use specified cell and cols/rows + if (cell) { + pos = getPos(cell); + startX = pos.x; + startY = pos.y; + endX = startX + (cols - 1); + endY = startY + (rows - 1); + } else { + // Use selection + startX = startPos.x; + startY = startPos.y; + endX = endPos.x; + endY = endPos.y; + } + + // Find start/end cells + startCell = getCell(startX, startY); + endCell = getCell(endX, endY); + + // Check if the cells exists and if they are of the same part for example tbody = tbody + if (startCell && endCell && startCell.part == endCell.part) { + // Split and rebuild grid + split(); + buildGrid(); + + // Set row/col span to start cell + startCell = getCell(startX, startY).elm; + startCell.colSpan = (endX - startX) + 1; + startCell.rowSpan = (endY - startY) + 1; + + // Remove other cells and add it's contents to the start cell + for (y = startY; y <= endY; y++) { + for (x = startX; x <= endX; x++) { + cell = grid[y][x].elm; + + if (cell != startCell) { + // Move children to startCell + children = tinymce.grep(cell.childNodes); + each(children, function(node, i) { + // Jump over last BR element + if (node.nodeName != 'BR' || i != children.length - 1) + startCell.appendChild(node); + }); + + // Remove cell + dom.remove(cell); + } + } + } + + // Remove empty rows etc and restore caret location + cleanup(); + } + }; + + function insertRow(before) { + var posY, cell, lastCell, x, rowElm, newRow, newCell, otherCell; + + // Find first/last row + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell)) { + cell = cell.elm; + rowElm = cell.parentNode; + newRow = cloneNode(rowElm, false); + posY = y; + + if (before) + return false; + } + }); + + if (before) + return !posY; + }); + + for (x = 0; x < grid[0].length; x++) { + cell = grid[posY][x].elm; + + if (cell != lastCell) { + if (!before) { + rowSpan = getSpanVal(cell, 'rowspan'); + if (rowSpan > 1) { + cell.rowSpan = rowSpan + 1; + continue; + } + } else { + // Check if cell above can be expanded + if (posY > 0 && grid[posY - 1][x]) { + otherCell = grid[posY - 1][x].elm; + rowSpan = getSpanVal(otherCell, 'rowspan'); + if (rowSpan > 1) { + otherCell.rowSpan = rowSpan + 1; + continue; + } + } + } + + // Insert new cell into new row + newCell = cloneCell(cell) + newCell.colSpan = cell.colSpan; + newRow.appendChild(newCell); + + lastCell = cell; + } + } + + if (newRow.hasChildNodes()) { + if (!before) + dom.insertAfter(newRow, rowElm); + else + rowElm.parentNode.insertBefore(newRow, rowElm); + } + }; + + function insertCol(before) { + var posX, lastCell; + + // Find first/last column + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell)) { + posX = x; + + if (before) + return false; + } + }); + + if (before) + return !posX; + }); + + each(grid, function(row, y) { + var cell = row[posX].elm, rowSpan, colSpan; + + if (cell != lastCell) { + colSpan = getSpanVal(cell, 'colspan'); + rowSpan = getSpanVal(cell, 'rowspan'); + + if (colSpan == 1) { + if (!before) { + dom.insertAfter(cloneCell(cell), cell); + fillLeftDown(posX, y, rowSpan - 1, colSpan); + } else { + cell.parentNode.insertBefore(cloneCell(cell), cell); + fillLeftDown(posX, y, rowSpan - 1, colSpan); + } + } else + cell.colSpan++; + + lastCell = cell; + } + }); + }; + + function deleteCols() { + var cols = []; + + // Get selected column indexes + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell) && tinymce.inArray(cols, x) === -1) { + each(grid, function(row) { + var cell = row[x].elm, colSpan; + + colSpan = getSpanVal(cell, 'colspan'); + + if (colSpan > 1) + cell.colSpan = colSpan - 1; + else + dom.remove(cell); + }); + + cols.push(x); + } + }); + }); + + cleanup(); + }; + + function deleteRows() { + var rows; + + function deleteRow(tr) { + var nextTr, pos, lastCell; + + nextTr = dom.getNext(tr, 'tr'); + + // Move down row spanned cells + each(tr.cells, function(cell) { + var rowSpan = getSpanVal(cell, 'rowspan'); + + if (rowSpan > 1) { + cell.rowSpan = rowSpan - 1; + pos = getPos(cell); + fillLeftDown(pos.x, pos.y, 1, 1); + } + }); + + // Delete cells + pos = getPos(tr.cells[0]); + each(grid[pos.y], function(cell) { + var rowSpan; + + cell = cell.elm; + + if (cell != lastCell) { + rowSpan = getSpanVal(cell, 'rowspan'); + + if (rowSpan <= 1) + dom.remove(cell); + else + cell.rowSpan = rowSpan - 1; + + lastCell = cell; + } + }); + }; + + // Get selected rows and move selection out of scope + rows = getSelectedRows(); + + // Delete all selected rows + each(rows.reverse(), function(tr) { + deleteRow(tr); + }); + + cleanup(); + }; + + function cutRows() { + var rows = getSelectedRows(); + + dom.remove(rows); + cleanup(); + + return rows; + }; + + function copyRows() { + var rows = getSelectedRows(); + + each(rows, function(row, i) { + rows[i] = cloneNode(row, true); + }); + + return rows; + }; + + function pasteRows(rows, before) { + var selectedRows = getSelectedRows(), + targetRow = selectedRows[before ? 0 : selectedRows.length - 1], + targetCellCount = targetRow.cells.length; + + // Calc target cell count + each(grid, function(row) { + var match; + + targetCellCount = 0; + each(row, function(cell, x) { + if (cell.real) + targetCellCount += cell.colspan; + + if (cell.elm.parentNode == targetRow) + match = 1; + }); + + if (match) + return false; + }); + + if (!before) + rows.reverse(); + + each(rows, function(row) { + var cellCount = row.cells.length, cell; + + // Remove col/rowspans + for (i = 0; i < cellCount; i++) { + cell = row.cells[i]; + cell.colSpan = cell.rowSpan = 1; + } + + // Needs more cells + for (i = cellCount; i < targetCellCount; i++) + row.appendChild(cloneCell(row.cells[cellCount - 1])); + + // Needs less cells + for (i = targetCellCount; i < cellCount; i++) + dom.remove(row.cells[i]); + + // Add before/after + if (before) + targetRow.parentNode.insertBefore(row, targetRow); + else + dom.insertAfter(row, targetRow); + }); + }; + + function getPos(target) { + var pos; + + each(grid, function(row, y) { + each(row, function(cell, x) { + if (cell.elm == target) { + pos = {x : x, y : y}; + return false; + } + }); + + return !pos; + }); + + return pos; + }; + + function setStartCell(cell) { + startPos = getPos(cell); + }; + + function findEndPos() { + var pos, maxX, maxY; + + maxX = maxY = 0; + + each(grid, function(row, y) { + each(row, function(cell, x) { + var colSpan, rowSpan; + + if (isCellSelected(cell)) { + cell = grid[y][x]; + + if (x > maxX) + maxX = x; + + if (y > maxY) + maxY = y; + + if (cell.real) { + colSpan = cell.colspan - 1; + rowSpan = cell.rowspan - 1; + + if (colSpan) { + if (x + colSpan > maxX) + maxX = x + colSpan; + } + + if (rowSpan) { + if (y + rowSpan > maxY) + maxY = y + rowSpan; + } + } + } + }); + }); + + return {x : maxX, y : maxY}; + }; + + function setEndCell(cell) { + var startX, startY, endX, endY, maxX, maxY, colSpan, rowSpan; + + endPos = getPos(cell); + + if (startPos && endPos) { + // Get start/end positions + startX = Math.min(startPos.x, endPos.x); + startY = Math.min(startPos.y, endPos.y); + endX = Math.max(startPos.x, endPos.x); + endY = Math.max(startPos.y, endPos.y); + + // Expand end positon to include spans + maxX = endX; + maxY = endY; + + // Expand startX + for (y = startY; y <= maxY; y++) { + cell = grid[y][startX]; + + if (!cell.real) { + if (startX - (cell.colspan - 1) < startX) + startX -= cell.colspan - 1; + } + } + + // Expand startY + for (x = startX; x <= maxX; x++) { + cell = grid[startY][x]; + + if (!cell.real) { + if (startY - (cell.rowspan - 1) < startY) + startY -= cell.rowspan - 1; + } + } + + // Find max X, Y + for (y = startY; y <= endY; y++) { + for (x = startX; x <= endX; x++) { + cell = grid[y][x]; + + if (cell.real) { + colSpan = cell.colspan - 1; + rowSpan = cell.rowspan - 1; + + if (colSpan) { + if (x + colSpan > maxX) + maxX = x + colSpan; + } + + if (rowSpan) { + if (y + rowSpan > maxY) + maxY = y + rowSpan; + } + } + } + } + + // Remove current selection + dom.removeClass(dom.select('td.mceSelected,th.mceSelected'), 'mceSelected'); + + // Add new selection + for (y = startY; y <= maxY; y++) { + for (x = startX; x <= maxX; x++) + dom.addClass(grid[y][x].elm, 'mceSelected'); + } + } + }; + + // Expose to public + tinymce.extend(this, { + deleteTable : deleteTable, + split : split, + merge : merge, + insertRow : insertRow, + insertCol : insertCol, + deleteCols : deleteCols, + deleteRows : deleteRows, + cutRows : cutRows, + copyRows : copyRows, + pasteRows : pasteRows, + getPos : getPos, + setStartCell : setStartCell, + setEndCell : setEndCell + }); + }; + + tinymce.create('tinymce.plugins.TablePlugin', { + init : function(ed, url) { + var winMan, clipboardRows; + + function createTableGrid(node) { + var selection = ed.selection, tblElm = ed.dom.getParent(node || selection.getNode(), 'table'); + + if (tblElm) + return new TableGrid(tblElm, ed.dom, selection); + }; + + function cleanup() { + // Restore selection possibilities + ed.getBody().style.webkitUserSelect = ''; + ed.dom.removeClass(ed.dom.select('td.mceSelected,th.mceSelected'), 'mceSelected'); + }; + + // Register buttons + each([ + ['table', 'table.desc', 'mceInsertTable', true], + ['delete_table', 'table.del', 'mceTableDelete'], + ['delete_col', 'table.delete_col_desc', 'mceTableDeleteCol'], + ['delete_row', 'table.delete_row_desc', 'mceTableDeleteRow'], + ['col_after', 'table.col_after_desc', 'mceTableInsertColAfter'], + ['col_before', 'table.col_before_desc', 'mceTableInsertColBefore'], + ['row_after', 'table.row_after_desc', 'mceTableInsertRowAfter'], + ['row_before', 'table.row_before_desc', 'mceTableInsertRowBefore'], + ['row_props', 'table.row_desc', 'mceTableRowProps', true], + ['cell_props', 'table.cell_desc', 'mceTableCellProps', true], + ['split_cells', 'table.split_cells_desc', 'mceTableSplitCells', true], + ['merge_cells', 'table.merge_cells_desc', 'mceTableMergeCells', true] + ], function(c) { + ed.addButton(c[0], {title : c[1], cmd : c[2], ui : c[3]}); + }); + + // Select whole table is a table border is clicked + if (!tinymce.isIE) { + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'TABLE') + ed.selection.select(e); + }); + } + + // Handle node change updates + ed.onNodeChange.add(function(ed, cm, n) { + var p; + + n = ed.selection.getStart(); + p = ed.dom.getParent(n, 'td,th,caption'); + cm.setActive('table', n.nodeName === 'TABLE' || !!p); + + // Disable table tools if we are in caption + if (p && p.nodeName === 'CAPTION') + p = 0; + + cm.setDisabled('delete_table', !p); + cm.setDisabled('delete_col', !p); + cm.setDisabled('delete_table', !p); + cm.setDisabled('delete_row', !p); + cm.setDisabled('col_after', !p); + cm.setDisabled('col_before', !p); + cm.setDisabled('row_after', !p); + cm.setDisabled('row_before', !p); + cm.setDisabled('row_props', !p); + cm.setDisabled('cell_props', !p); + cm.setDisabled('split_cells', !p); + cm.setDisabled('merge_cells', !p); + }); + + ed.onInit.add(function(ed) { + var startTable, startCell, dom = ed.dom, tableGrid; + + winMan = ed.windowManager; + + // Add cell selection logic + ed.onMouseDown.add(function(ed, e) { + if (e.button != 2) { + cleanup(); + + startCell = dom.getParent(e.target, 'td,th'); + startTable = dom.getParent(startCell, 'table'); + } + }); + + dom.bind(ed.getDoc(), 'mouseover', function(e) { + var sel, table, target = e.target; + + if (startCell && (tableGrid || target != startCell) && (target.nodeName == 'TD' || target.nodeName == 'TH')) { + table = dom.getParent(target, 'table'); + if (table == startTable) { + if (!tableGrid) { + tableGrid = createTableGrid(table); + tableGrid.setStartCell(startCell); + + ed.getBody().style.webkitUserSelect = 'none'; + } + + tableGrid.setEndCell(target); + } + + // Remove current selection + sel = ed.selection.getSel(); + + if (sel.removeAllRanges) + sel.removeAllRanges(); + else + sel.empty(); + + e.preventDefault(); + } + }); + + ed.onMouseUp.add(function(ed, e) { + var rng, sel = ed.selection, selectedCells, nativeSel = sel.getSel(), walker, node, lastNode, endNode; + + // Move selection to startCell + if (startCell) { + if (tableGrid) + ed.getBody().style.webkitUserSelect = ''; + + function setPoint(node, start) { + var walker = new tinymce.dom.TreeWalker(node, node); + + do { + // Text node + if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length != 0) { + if (start) + rng.setStart(node, 0); + else + rng.setEnd(node, node.nodeValue.length); + + return; + } + + // BR element + if (node.nodeName == 'BR') { + if (start) + rng.setStartBefore(node); + else + rng.setEndBefore(node); + + return; + } + } while (node = (start ? walker.next() : walker.prev())); + }; + + // Try to expand text selection as much as we can only Gecko supports cell selection + selectedCells = dom.select('td.mceSelected,th.mceSelected'); + if (selectedCells.length > 0) { + rng = dom.createRng(); + node = selectedCells[0]; + endNode = selectedCells[selectedCells.length - 1]; + + setPoint(node, 1); + walker = new tinymce.dom.TreeWalker(node, dom.getParent(selectedCells[0], 'table')); + + do { + if (node.nodeName == 'TD' || node.nodeName == 'TH') { + if (!dom.hasClass(node, 'mceSelected')) + break; + + lastNode = node; + } + } while (node = walker.next()); + + setPoint(lastNode); + + sel.setRng(rng); + } + + ed.nodeChanged(); + startCell = tableGrid = startTable = null; + } + }); + + ed.onKeyUp.add(function(ed, e) { + cleanup(); + }); + + // Add context menu + if (ed && ed.plugins.contextmenu) { + ed.plugins.contextmenu.onContextMenu.add(function(th, m, e) { + var sm, se = ed.selection, el = se.getNode() || ed.getBody(); + + if (ed.dom.getParent(e, 'td') || ed.dom.getParent(e, 'th') || ed.dom.select('td.mceSelected,th.mceSelected').length) { + m.removeAll(); + + if (el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) { + m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); + m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); + m.addSeparator(); + } + + if (el.nodeName == 'IMG' && el.className.indexOf('mceItem') == -1) { + m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); + m.addSeparator(); + } + + m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable', value : {action : 'insert'}}); + m.add({title : 'table.props_desc', icon : 'table_props', cmd : 'mceInsertTable'}); + m.add({title : 'table.del', icon : 'delete_table', cmd : 'mceTableDelete'}); + m.addSeparator(); + + // Cell menu + sm = m.addMenu({title : 'table.cell'}); + sm.add({title : 'table.cell_desc', icon : 'cell_props', cmd : 'mceTableCellProps'}); + sm.add({title : 'table.split_cells_desc', icon : 'split_cells', cmd : 'mceTableSplitCells'}); + sm.add({title : 'table.merge_cells_desc', icon : 'merge_cells', cmd : 'mceTableMergeCells'}); + + // Row menu + sm = m.addMenu({title : 'table.row'}); + sm.add({title : 'table.row_desc', icon : 'row_props', cmd : 'mceTableRowProps'}); + sm.add({title : 'table.row_before_desc', icon : 'row_before', cmd : 'mceTableInsertRowBefore'}); + sm.add({title : 'table.row_after_desc', icon : 'row_after', cmd : 'mceTableInsertRowAfter'}); + sm.add({title : 'table.delete_row_desc', icon : 'delete_row', cmd : 'mceTableDeleteRow'}); + sm.addSeparator(); + sm.add({title : 'table.cut_row_desc', icon : 'cut', cmd : 'mceTableCutRow'}); + sm.add({title : 'table.copy_row_desc', icon : 'copy', cmd : 'mceTableCopyRow'}); + sm.add({title : 'table.paste_row_before_desc', icon : 'paste', cmd : 'mceTablePasteRowBefore'}).setDisabled(!clipboardRows); + sm.add({title : 'table.paste_row_after_desc', icon : 'paste', cmd : 'mceTablePasteRowAfter'}).setDisabled(!clipboardRows); + + // Column menu + sm = m.addMenu({title : 'table.col'}); + sm.add({title : 'table.col_before_desc', icon : 'col_before', cmd : 'mceTableInsertColBefore'}); + sm.add({title : 'table.col_after_desc', icon : 'col_after', cmd : 'mceTableInsertColAfter'}); + sm.add({title : 'table.delete_col_desc', icon : 'delete_col', cmd : 'mceTableDeleteCol'}); + } else + m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable'}); + }); + } + + // Fixes an issue on Gecko where it's impossible to place the caret behind a table + // This fix will force a paragraph element after the table but only when the forced_root_block setting is enabled + if (!tinymce.isIE) { + function fixTableCaretPos() { + var last; + + // Skip empty text nodes form the end + for (last = ed.getBody().lastChild; last && last.nodeType == 3 && !last.nodeValue.length; last = last.previousSibling) ; + + if (last && last.nodeName == 'TABLE') + ed.dom.add(ed.getBody(), 'p', null, '
    '); + }; + + // Fixes an bug where it's impossible to place the caret before a table in Gecko + // this fix solves it by detecting when the caret is at the beginning of such a table + // and then manually moves the caret infront of the table + if (tinymce.isGecko) { + ed.onKeyDown.add(function(ed, e) { + var rng, table, dom = ed.dom; + + // On gecko it's not possible to place the caret before a table + if (e.keyCode == 37 || e.keyCode == 38) { + rng = ed.selection.getRng(); + table = dom.getParent(rng.startContainer, 'table'); + + if (table && ed.getBody().firstChild == table) { + if (isAtStart(rng, table)) { + rng = dom.createRng(); + + rng.setStartBefore(table); + rng.setEndBefore(table); + + ed.selection.setRng(rng); + + e.preventDefault(); + } + } + } + }); + } + + ed.onKeyUp.add(fixTableCaretPos); + ed.onSetContent.add(fixTableCaretPos); + ed.onVisualAid.add(fixTableCaretPos); + + ed.onPreProcess.add(function(ed, o) { + var last = o.node.lastChild; + + if (last && last.childNodes.length == 1 && last.firstChild.nodeName == 'BR') + ed.dom.remove(last); + }); + + fixTableCaretPos(); + } + }); + + // Register action commands + each({ + mceTableSplitCells : function(grid) { + grid.split(); + }, + + mceTableMergeCells : function(grid) { + var rowSpan, colSpan, cell; + + cell = ed.dom.getParent(ed.selection.getNode(), 'th,td'); + if (cell) { + rowSpan = cell.rowSpan; + colSpan = cell.colSpan; + } + + if (!ed.dom.select('td.mceSelected,th.mceSelected').length) { + winMan.open({ + url : url + '/merge_cells.htm', + width : 240 + parseInt(ed.getLang('table.merge_cells_delta_width', 0)), + height : 110 + parseInt(ed.getLang('table.merge_cells_delta_height', 0)), + inline : 1 + }, { + rows : rowSpan, + cols : colSpan, + onaction : function(data) { + grid.merge(cell, data.cols, data.rows); + }, + plugin_url : url + }); + } else + grid.merge(); + }, + + mceTableInsertRowBefore : function(grid) { + grid.insertRow(true); + }, + + mceTableInsertRowAfter : function(grid) { + grid.insertRow(); + }, + + mceTableInsertColBefore : function(grid) { + grid.insertCol(true); + }, + + mceTableInsertColAfter : function(grid) { + grid.insertCol(); + }, + + mceTableDeleteCol : function(grid) { + grid.deleteCols(); + }, + + mceTableDeleteRow : function(grid) { + grid.deleteRows(); + }, + + mceTableCutRow : function(grid) { + clipboardRows = grid.cutRows(); + }, + + mceTableCopyRow : function(grid) { + clipboardRows = grid.copyRows(); + }, + + mceTablePasteRowBefore : function(grid) { + grid.pasteRows(clipboardRows, true); + }, + + mceTablePasteRowAfter : function(grid) { + grid.pasteRows(clipboardRows); + }, + + mceTableDelete : function(grid) { + grid.deleteTable(); + } + }, function(func, name) { + ed.addCommand(name, function() { + var grid = createTableGrid(); + + if (grid) { + func(grid); + ed.execCommand('mceRepaint'); + cleanup(); + } + }); + }); + + // Register dialog commands + each({ + mceInsertTable : function(val) { + winMan.open({ + url : url + '/table.htm', + width : 400 + parseInt(ed.getLang('table.table_delta_width', 0)), + height : 320 + parseInt(ed.getLang('table.table_delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + action : val ? val.action : 0 + }); + }, + + mceTableRowProps : function() { + winMan.open({ + url : url + '/row.htm', + width : 400 + parseInt(ed.getLang('table.rowprops_delta_width', 0)), + height : 295 + parseInt(ed.getLang('table.rowprops_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }, + + mceTableCellProps : function() { + winMan.open({ + url : url + '/cell.htm', + width : 400 + parseInt(ed.getLang('table.cellprops_delta_width', 0)), + height : 295 + parseInt(ed.getLang('table.cellprops_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + } + }, function(func, name) { + ed.addCommand(name, function(ui, val) { + func(val); + }); + }); + } + }); + + // Register plugin + tinymce.PluginManager.add('table', tinymce.plugins.TablePlugin); +})(tinymce); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js b/js/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js new file mode 100644 index 0000000..fae7e6f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js @@ -0,0 +1,286 @@ +tinyMCEPopup.requireLangPack(); + +var ed; + +function init() { + ed = tinyMCEPopup.editor; + tinyMCEPopup.resizeToInnerSize(); + + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor') + + var inst = ed; + var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th"); + var formObj = document.forms[0]; + var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style")); + + // Get table cell data + var celltype = tdElm.nodeName.toLowerCase(); + var align = ed.dom.getAttrib(tdElm, 'align'); + var valign = ed.dom.getAttrib(tdElm, 'valign'); + var width = trimSize(getStyle(tdElm, 'width', 'width')); + var height = trimSize(getStyle(tdElm, 'height', 'height')); + var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor')); + var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor')); + var className = ed.dom.getAttrib(tdElm, 'class'); + var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + var id = ed.dom.getAttrib(tdElm, 'id'); + var lang = ed.dom.getAttrib(tdElm, 'lang'); + var dir = ed.dom.getAttrib(tdElm, 'dir'); + var scope = ed.dom.getAttrib(tdElm, 'scope'); + + // Setup form + addClassesToList('class', 'table_cell_styles'); + TinyMCE_EditableSelects.init(); + + if (!ed.dom.hasClass(tdElm, 'mceSelected')) { + formObj.bordercolor.value = bordercolor; + formObj.bgcolor.value = bgcolor; + formObj.backgroundimage.value = backgroundimage; + formObj.width.value = width; + formObj.height.value = height; + formObj.id.value = id; + formObj.lang.value = lang; + formObj.style.value = ed.dom.serializeStyle(st); + selectByValue(formObj, 'align', align); + selectByValue(formObj, 'valign', valign); + selectByValue(formObj, 'class', className, true, true); + selectByValue(formObj, 'celltype', celltype); + selectByValue(formObj, 'dir', dir); + selectByValue(formObj, 'scope', scope); + + // Resize some elements + if (isVisible('backgroundimagebrowser')) + document.getElementById('backgroundimage').style.width = '180px'; + + updateColor('bordercolor_pick', 'bordercolor'); + updateColor('bgcolor_pick', 'bgcolor'); + } else + tinyMCEPopup.dom.hide('action'); +} + +function updateAction() { + var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0]; + + tinyMCEPopup.restoreSelection(); + el = ed.selection.getStart(); + tdElm = ed.dom.getParent(el, "td,th"); + trElm = ed.dom.getParent(el, "tr"); + tableElm = ed.dom.getParent(el, "table"); + + // Cell is selected + if (ed.dom.hasClass(tdElm, 'mceSelected')) { + // Update all selected sells + tinymce.each(ed.dom.select('td.mceSelected,th.mceSelected'), function(td) { + updateCell(td); + }); + + ed.addVisual(); + ed.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + return; + } + + ed.execCommand('mceBeginUndoLevel'); + + switch (getSelectValue(formObj, 'action')) { + case "cell": + var celltype = getSelectValue(formObj, 'celltype'); + var scope = getSelectValue(formObj, 'scope'); + + function doUpdate(s) { + if (s) { + updateCell(tdElm); + + ed.addVisual(); + ed.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + } + }; + + if (ed.getParam("accessibility_warnings", 1)) { + if (celltype == "th" && scope == "") + tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate); + else + doUpdate(1); + + return; + } + + updateCell(tdElm); + break; + + case "row": + var cell = trElm.firstChild; + + if (cell.nodeName != "TD" && cell.nodeName != "TH") + cell = nextCell(cell); + + do { + cell = updateCell(cell, true); + } while ((cell = nextCell(cell)) != null); + + break; + + case "all": + var rows = tableElm.getElementsByTagName("tr"); + + for (var i=0; i 0) { + tinymce.each(tableElm.rows, function(tr) { + var i; + + for (i = 0; i < tr.cells.length; i++) { + if (dom.hasClass(tr.cells[i], 'mceSelected')) { + updateRow(tr, true); + return; + } + } + }); + + inst.addVisual(); + inst.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + return; + } + + inst.execCommand('mceBeginUndoLevel'); + + switch (action) { + case "row": + updateRow(trElm); + break; + + case "all": + var rows = tableElm.getElementsByTagName("tr"); + + for (var i=0; i colLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit)); + return false; + } else if (rowLimit && rows > rowLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit)); + return false; + } else if (cellLimit && cols * rows > cellLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit)); + return false; + } + + // Update table + if (action == "update") { + inst.execCommand('mceBeginUndoLevel'); + + dom.setAttrib(elm, 'cellPadding', cellpadding, true); + dom.setAttrib(elm, 'cellSpacing', cellspacing, true); + dom.setAttrib(elm, 'border', border); + dom.setAttrib(elm, 'align', align); + dom.setAttrib(elm, 'frame', frame); + dom.setAttrib(elm, 'rules', rules); + dom.setAttrib(elm, 'class', className); + dom.setAttrib(elm, 'style', style); + dom.setAttrib(elm, 'id', id); + dom.setAttrib(elm, 'summary', summary); + dom.setAttrib(elm, 'dir', dir); + dom.setAttrib(elm, 'lang', lang); + + capEl = inst.dom.select('caption', elm)[0]; + + if (capEl && !caption) + capEl.parentNode.removeChild(capEl); + + if (!capEl && caption) { + capEl = elm.ownerDocument.createElement('caption'); + + if (!tinymce.isIE) + capEl.innerHTML = '
    '; + + elm.insertBefore(capEl, elm.firstChild); + } + + if (width && inst.settings.inline_styles) { + dom.setStyle(elm, 'width', width); + dom.setAttrib(elm, 'width', ''); + } else { + dom.setAttrib(elm, 'width', width, true); + dom.setStyle(elm, 'width', ''); + } + + // Remove these since they are not valid XHTML + dom.setAttrib(elm, 'borderColor', ''); + dom.setAttrib(elm, 'bgColor', ''); + dom.setAttrib(elm, 'background', ''); + + if (height && inst.settings.inline_styles) { + dom.setStyle(elm, 'height', height); + dom.setAttrib(elm, 'height', ''); + } else { + dom.setAttrib(elm, 'height', height, true); + dom.setStyle(elm, 'height', ''); + } + + if (background != '') + elm.style.backgroundImage = "url('" + background + "')"; + else + elm.style.backgroundImage = ''; + +/* if (tinyMCEPopup.getParam("inline_styles")) { + if (width != '') + elm.style.width = getCSSSize(width); + }*/ + + if (bordercolor != "") { + elm.style.borderColor = bordercolor; + elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle; + elm.style.borderWidth = border == "" ? "1px" : border; + } else + elm.style.borderColor = ''; + + elm.style.backgroundColor = bgcolor; + elm.style.height = getCSSSize(height); + + inst.addVisual(); + + // Fix for stange MSIE align bug + //elm.outerHTML = elm.outerHTML; + + inst.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + + // Repaint if dimensions changed + if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight) + inst.execCommand('mceRepaint'); + + tinyMCEPopup.close(); + return true; + } + + // Create new table + html += ''); + + tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) { + if (patt) + patt += ','; + + patt += n + ' ._mce_marker'; + }); + + tinymce.each(inst.dom.select(patt), function(n) { + inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n); + }); + + dom.setOuterHTML(dom.select('br._mce_marker')[0], html); + } else + inst.execCommand('mceInsertContent', false, html); + + tinymce.each(dom.select('table[_mce_new]'), function(node) { + var td = dom.select('td', node); + + inst.selection.select(td[0], true); + inst.selection.collapse(); + + dom.setAttrib(node, '_mce_new', ''); + }); + + inst.addVisual(); + inst.execCommand('mceEndUndoLevel'); + + tinyMCEPopup.close(); +} + +function makeAttrib(attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib]; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value == "") + return ""; + + // XML encode it + value = value.replace(/&/g, '&'); + value = value.replace(/\"/g, '"'); + value = value.replace(//g, '>'); + + return ' ' + attrib + '="' + value + '"'; +} + +function init() { + tinyMCEPopup.resizeToInnerSize(); + + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + + var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', ''); + var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = ""; + var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules, frame; + var inst = tinyMCEPopup.editor, dom = inst.dom; + var formObj = document.forms[0]; + var elm = dom.getParent(inst.selection.getNode(), "table"); + + action = tinyMCEPopup.getWindowArg('action'); + + if (!action) + action = elm ? "update" : "insert"; + + if (elm && action != "insert") { + var rowsAr = elm.rows; + var cols = 0; + for (var i=0; i cols) + cols = rowsAr[i].cells.length; + + cols = cols; + rows = rowsAr.length; + + st = dom.parseStyle(dom.getAttrib(elm, "style")); + border = trimSize(getStyle(elm, 'border', 'borderWidth')); + cellpadding = dom.getAttrib(elm, 'cellpadding', ""); + cellspacing = dom.getAttrib(elm, 'cellspacing', ""); + width = trimSize(getStyle(elm, 'width', 'width')); + height = trimSize(getStyle(elm, 'height', 'height')); + bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor')); + bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor')); + align = dom.getAttrib(elm, 'align', align); + frame = dom.getAttrib(elm, 'frame'); + rules = dom.getAttrib(elm, 'rules'); + className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, '')); + id = dom.getAttrib(elm, 'id'); + summary = dom.getAttrib(elm, 'summary'); + style = dom.serializeStyle(st); + dir = dom.getAttrib(elm, 'dir'); + lang = dom.getAttrib(elm, 'lang'); + background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + formObj.caption.checked = elm.getElementsByTagName('caption').length > 0; + + orgTableWidth = width; + orgTableHeight = height; + + action = "update"; + formObj.insert.value = inst.getLang('update'); + } + + addClassesToList('class', "table_styles"); + TinyMCE_EditableSelects.init(); + + // Update form + selectByValue(formObj, 'align', align); + selectByValue(formObj, 'tframe', frame); + selectByValue(formObj, 'rules', rules); + selectByValue(formObj, 'class', className, true, true); + formObj.cols.value = cols; + formObj.rows.value = rows; + formObj.border.value = border; + formObj.cellpadding.value = cellpadding; + formObj.cellspacing.value = cellspacing; + formObj.width.value = width; + formObj.height.value = height; + formObj.bordercolor.value = bordercolor; + formObj.bgcolor.value = bgcolor; + formObj.id.value = id; + formObj.summary.value = summary; + formObj.style.value = style; + formObj.dir.value = dir; + formObj.lang.value = lang; + formObj.backgroundimage.value = background; + + updateColor('bordercolor_pick', 'bordercolor'); + updateColor('bgcolor_pick', 'bgcolor'); + + // Resize some elements + if (isVisible('backgroundimagebrowser')) + document.getElementById('backgroundimage').style.width = '180px'; + + // Disable some fields in update mode + if (action == "update") { + formObj.cols.disabled = true; + formObj.rows.disabled = true; + } +} + +function changedSize() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + +/* var width = formObj.width.value; + if (width != "") + st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : ""; + else + st['width'] = "";*/ + + var height = formObj.height.value; + if (height != "") + st['height'] = getCSSSize(height); + else + st['height'] = ""; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedBackgroundImage() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + st['background-image'] = "url('" + formObj.backgroundimage.value + "')"; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedBorder() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + // Update border width if the element has a color + if (formObj.border.value != "" && formObj.bordercolor.value != "") + st['border-width'] = formObj.border.value + "px"; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedColor() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + st['background-color'] = formObj.bgcolor.value; + + if (formObj.bordercolor.value != "") { + st['border-color'] = formObj.bordercolor.value; + + // Add border-width if it's missing + if (!st['border-width']) + st['border-width'] = formObj.border.value == "" ? "1px" : formObj.border.value + "px"; + } + + formObj.style.value = dom.serializeStyle(st); +} + +function changedStyle() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + if (st['background-image']) + formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + else + formObj.backgroundimage.value = ''; + + if (st['width']) + formObj.width.value = trimSize(st['width']); + + if (st['height']) + formObj.height.value = trimSize(st['height']); + + if (st['background-color']) { + formObj.bgcolor.value = st['background-color']; + updateColor('bgcolor_pick','bgcolor'); + } + + if (st['border-color']) { + formObj.bordercolor.value = st['border-color']; + updateColor('bordercolor_pick','bordercolor'); + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js new file mode 100644 index 0000000..a33c987 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js @@ -0,0 +1,74 @@ +tinyMCE.addI18n('en.table_dlg',{ +general_tab:"General", +advanced_tab:"Advanced", +general_props:"General properties", +advanced_props:"Advanced properties", +rowtype:"Row in table part", +title:"Insert/Modify table", +width:"Width", +height:"Height", +cols:"Cols", +rows:"Rows", +cellspacing:"Cellspacing", +cellpadding:"Cellpadding", +border:"Border", +align:"Alignment", +align_default:"Default", +align_left:"Left", +align_right:"Right", +align_middle:"Center", +row_title:"Table row properties", +cell_title:"Table cell properties", +cell_type:"Cell type", +valign:"Vertical alignment", +align_top:"Top", +align_bottom:"Bottom", +bordercolor:"Border color", +bgcolor:"Background color", +merge_cells_title:"Merge table cells", +id:"Id", +style:"Style", +langdir:"Language direction", +langcode:"Language code", +mime:"Target MIME type", +ltr:"Left to right", +rtl:"Right to left", +bgimage:"Background image", +summary:"Summary", +td:"Data", +th:"Header", +cell_cell:"Update current cell", +cell_row:"Update all cells in row", +cell_all:"Update all cells in table", +row_row:"Update current row", +row_odd:"Update odd rows in table", +row_even:"Update even rows in table", +row_all:"Update all rows in table", +thead:"Table Head", +tbody:"Table Body", +tfoot:"Table Foot", +scope:"Scope", +rowgroup:"Row Group", +colgroup:"Col Group", +col_limit:"You've exceeded the maximum number of columns of {$cols}.", +row_limit:"You've exceeded the maximum number of rows of {$rows}.", +cell_limit:"You've exceeded the maximum number of cells of {$cells}.", +missing_scope:"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.", +caption:"Table caption", +frame:"Frame", +frame_none:"none", +frame_groups:"groups", +frame_rows:"rows", +frame_cols:"cols", +frame_all:"all", +rules:"Rules", +rules_void:"void", +rules_above:"above", +rules_below:"below", +rules_hsides:"hsides", +rules_lhs:"lhs", +rules_rhs:"rhs", +rules_vsides:"vsides", +rules_box:"box", +rules_border:"border" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm b/js/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm new file mode 100644 index 0000000..b1a8d9b --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm @@ -0,0 +1,32 @@ + + + + {#table_dlg.merge_cells_title} + + + + + + +
    +
    + {#table_dlg.merge_cells_title} + + + + + + + + + +
    {#table_dlg.cols}:
    {#table_dlg.rows}:
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/row.htm b/js/tinymce/jscripts/tiny_mce/plugins/table/row.htm new file mode 100644 index 0000000..33fc9cc --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/row.htm @@ -0,0 +1,155 @@ + + + + {#table_dlg.row_title} + + + + + + + + +
    + + +
    +
    +
    + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    + +
    +
    +
    + +
    +
    + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    +
    +
    + +
    +
    + +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/table/table.htm b/js/tinymce/jscripts/tiny_mce/plugins/table/table.htm new file mode 100644 index 0000000..122b04a --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/table/table.htm @@ -0,0 +1,187 @@ + + + + {#table_dlg.title} + + + + + + + + + +
    + + +
    +
    +
    + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + +
     
    +
    + +
    + +
    + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/template/blank.htm b/js/tinymce/jscripts/tiny_mce/plugins/template/blank.htm new file mode 100644 index 0000000..538a3b1 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/template/blank.htm @@ -0,0 +1,12 @@ + + + blank_page + + + + + + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/template/css/template.css b/js/tinymce/jscripts/tiny_mce/plugins/template/css/template.css new file mode 100644 index 0000000..0a03f2e --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/template/css/template.css @@ -0,0 +1,23 @@ +#frmbody { + padding: 10px; + background-color: #FFF; + border: 1px solid #CCC; +} + +.frmRow { + margin-bottom: 10px; +} + +#templatesrc { + border: none; + width: 320px; + height: 240px; +} + +.title { + padding-bottom: 5px; +} + +.mceActionPanel { + padding-top: 5px; +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js new file mode 100644 index 0000000..ebe3c27 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.TemplatePlugin",{init:function(b,c){var d=this;d.editor=b;b.addCommand("mceTemplate",function(e){b.windowManager.open({file:c+"/template.htm",width:b.getParam("template_popup_width",750),height:b.getParam("template_popup_height",600),inline:1},{plugin_url:c})});b.addCommand("mceInsertTemplate",d._insertTemplate,d);b.addButton("template",{title:"template.desc",cmd:"mceTemplate"});b.onPreProcess.add(function(e,g){var f=e.dom;a(f.select("div",g.node),function(h){if(f.hasClass(h,"mceTmpl")){a(f.select("*",h),function(i){if(f.hasClass(i,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){i.innerHTML=d._getDateTime(new Date(),e.getParam("template_mdate_format",e.getLang("template.mdate_format")))}});d._replaceVals(h)}})})},getInfo:function(){return{longname:"Template plugin",author:"Moxiecode Systems AB",authorurl:"http://www.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_insertTemplate:function(i,j){var k=this,g=k.editor,f,c,d=g.dom,b=g.selection.getContent();f=j.content;a(k.editor.getParam("template_replace_values"),function(l,h){if(typeof(l)!="function"){f=f.replace(new RegExp("\\{\\$"+h+"\\}","g"),l)}});c=d.create("div",null,f);n=d.select(".mceTmpl",c);if(n&&n.length>0){c=d.create("div",null);c.appendChild(n[0].cloneNode(true))}function e(l,h){return new RegExp("\\b"+h+"\\b","g").test(l.className)}a(d.select("*",c),function(h){if(e(h,g.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_cdate_format",g.getLang("template.cdate_format")))}if(e(h,g.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_mdate_format",g.getLang("template.mdate_format")))}if(e(h,g.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){h.innerHTML=b}});k._replaceVals(c);g.execCommand("mceInsertContent",false,c.innerHTML);g.addVisual()},_replaceVals:function(c){var d=this.editor.dom,b=this.editor.getParam("template_replace_values");a(d.select("*",c),function(f){a(b,function(g,e){if(d.hasClass(f,e)){if(typeof(b[e])=="function"){b[e](f)}}})})},_getDateTime:function(e,b){if(!b){return""}function c(g,d){var f;g=""+g;if(g.length 0) { + el = dom.create('div', null); + el.appendChild(n[0].cloneNode(true)); + } + + function hasClass(n, c) { + return new RegExp('\\b' + c + '\\b', 'g').test(n.className); + }; + + each(dom.select('*', el), function(n) { + // Replace cdate + if (hasClass(n, ed.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|'))) + n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_cdate_format", ed.getLang("template.cdate_format"))); + + // Replace mdate + if (hasClass(n, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) + n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format"))); + + // Replace selection + if (hasClass(n, ed.getParam('template_selected_content_classes', 'selcontent').replace(/\s+/g, '|'))) + n.innerHTML = sel; + }); + + t._replaceVals(el); + + ed.execCommand('mceInsertContent', false, el.innerHTML); + ed.addVisual(); + }, + + _replaceVals : function(e) { + var dom = this.editor.dom, vl = this.editor.getParam('template_replace_values'); + + each(dom.select('*', e), function(e) { + each(vl, function(v, k) { + if (dom.hasClass(e, k)) { + if (typeof(vl[k]) == 'function') + vl[k](e); + } + }); + }); + }, + + _getDateTime : function(d, fmt) { + if (!fmt) + return ""; + + function addZeros(value, len) { + var i; + + value = "" + value; + + if (value.length < len) { + for (i=0; i<(len-value.length); i++) + value = "0" + value; + } + + return value; + } + + fmt = fmt.replace("%D", "%m/%d/%y"); + fmt = fmt.replace("%r", "%I:%M:%S %p"); + fmt = fmt.replace("%Y", "" + d.getFullYear()); + fmt = fmt.replace("%y", "" + d.getYear()); + fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2)); + fmt = fmt.replace("%d", addZeros(d.getDate(), 2)); + fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2)); + fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2)); + fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2)); + fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1)); + fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM")); + fmt = fmt.replace("%B", "" + this.editor.getLang("template_months_long").split(',')[d.getMonth()]); + fmt = fmt.replace("%b", "" + this.editor.getLang("template_months_short").split(',')[d.getMonth()]); + fmt = fmt.replace("%A", "" + this.editor.getLang("template_day_long").split(',')[d.getDay()]); + fmt = fmt.replace("%a", "" + this.editor.getLang("template_day_short").split(',')[d.getDay()]); + fmt = fmt.replace("%%", "%"); + + return fmt; + } + }); + + // Register plugin + tinymce.PluginManager.add('template', tinymce.plugins.TemplatePlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/template/js/template.js b/js/tinymce/jscripts/tiny_mce/plugins/template/js/template.js new file mode 100644 index 0000000..7eab2eb --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/template/js/template.js @@ -0,0 +1,106 @@ +tinyMCEPopup.requireLangPack(); + +var TemplateDialog = { + preInit : function() { + var url = tinyMCEPopup.getParam("template_external_list_url"); + + if (url != null) + document.write(''); + }, + + init : function() { + var ed = tinyMCEPopup.editor, tsrc, sel, x, u; + + tsrc = ed.getParam("template_templates", false); + sel = document.getElementById('tpath'); + + // Setup external template list + if (!tsrc && typeof(tinyMCETemplateList) != 'undefined') { + for (x=0, tsrc = []; x'); + }); + }, + + selectTemplate : function(u, ti) { + var d = window.frames['templatesrc'].document, x, tsrc = this.tsrc; + + if (!u) + return; + + d.body.innerHTML = this.templateHTML = this.getFileContents(u); + + for (x=0; x + + {#template_dlg.title} + + + + + +
    +
    +
    {#template_dlg.desc}
    +
    + +
    +
    +
    +
    + {#template_dlg.preview} + +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js new file mode 100644 index 0000000..94719f9 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state&&e.format!="raw"&&!e.draft){c.state=true;c._toggleVisualChars(false)}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(m){var p=this,k=p.editor,a,g,j,n=k.getDoc(),o=k.getBody(),l,q=k.selection,e,c,f;p.state=!p.state;k.controlManager.setActive("visualchars",p.state);if(m){f=q.getBookmark()}if(p.state){a=[];tinymce.walk(o,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(g=0;g$1');c=k.dom.create("div",null,l);while(node=c.lastChild){k.dom.insertAfter(node,a[g])}k.dom.remove(a[g])}}else{a=k.dom.select("span.mceItemNbsp",o);for(g=a.length-1;g>=0;g--){k.dom.remove(a[g],1)}}q.moveToBookmark(f)}});tinymce.PluginManager.add("visualchars",tinymce.plugins.VisualChars)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js new file mode 100644 index 0000000..33b687f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin_src.js @@ -0,0 +1,83 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.VisualChars', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceVisualChars', t._toggleVisualChars, t); + + // Register buttons + ed.addButton('visualchars', {title : 'visualchars.desc', cmd : 'mceVisualChars'}); + + ed.onBeforeGetContent.add(function(ed, o) { + if (t.state && o.format != 'raw' && !o.draft) { + t.state = true; + t._toggleVisualChars(false); + } + }); + }, + + getInfo : function() { + return { + longname : 'Visual characters', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _toggleVisualChars : function(bookmark) { + var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo, div, bm; + + t.state = !t.state; + ed.controlManager.setActive('visualchars', t.state); + + if (bookmark) + bm = s.getBookmark(); + + if (t.state) { + nl = []; + tinymce.walk(b, function(n) { + if (n.nodeType == 3 && n.nodeValue && n.nodeValue.indexOf('\u00a0') != -1) + nl.push(n); + }, 'childNodes'); + + for (i = 0; i < nl.length; i++) { + nv = nl[i].nodeValue; + nv = nv.replace(/(\u00a0)/g, '$1'); + + div = ed.dom.create('div', null, nv); + while (node = div.lastChild) + ed.dom.insertAfter(node, nl[i]); + + ed.dom.remove(nl[i]); + } + } else { + nl = ed.dom.select('span.mceItemNbsp', b); + + for (i = nl.length - 1; i >= 0; i--) + ed.dom.remove(nl[i], 1); + } + + s.moveToBookmark(bm); + } + }); + + // Register plugin + tinymce.PluginManager.add('visualchars', tinymce.plugins.VisualChars); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm new file mode 100644 index 0000000..0282fff --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_abbr_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm new file mode 100644 index 0000000..e0ed031 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_acronym_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm new file mode 100644 index 0000000..fc5ba97 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm @@ -0,0 +1,148 @@ + + + + {#xhtmlxtras_dlg.attribs_title} + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.attribute_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.attribute_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm new file mode 100644 index 0000000..b23becc --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_cite_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css new file mode 100644 index 0000000..85b1b37 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css @@ -0,0 +1,11 @@ +.panel_wrapper div.current { + height: 290px; +} + +#id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { + width: 200px; +} + +#events_panel input { + width: 200px; +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css new file mode 100644 index 0000000..034b985 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css @@ -0,0 +1,9 @@ +input.field, select.field {width:200px;} +input.picker {width:179px; margin-left: 5px;} +input.disabled {border-color:#F2F2F2;} +img.picker {vertical-align:text-bottom; cursor:pointer;} +h1 {padding: 0 0 5px 0;} +.panel_wrapper div.current {height:160px;} +#xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;} +a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;} +#datetime {width:180px;} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm new file mode 100644 index 0000000..bc80944 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm @@ -0,0 +1,161 @@ + + + + {#xhtmlxtras_dlg.title_del_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
    : + + + + + +
    +
    :
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js new file mode 100644 index 0000000..a9393ad --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(a,b){a.addCommand("mceCite",function(){a.windowManager.open({file:b+"/cite.htm",width:350+parseInt(a.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAcronym",function(){a.windowManager.open({file:b+"/acronym.htm",width:350+parseInt(a.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:b})});a.addCommand("mceAbbr",function(){a.windowManager.open({file:b+"/abbr.htm",width:350+parseInt(a.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:b})});a.addCommand("mceDel",function(){a.windowManager.open({file:b+"/del.htm",width:340+parseInt(a.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(a.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:b})});a.addCommand("mceIns",function(){a.windowManager.open({file:b+"/ins.htm",width:340+parseInt(a.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(a.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:b})});a.addCommand("mceAttributes",function(){a.windowManager.open({file:b+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:b})});a.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});a.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});a.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});a.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});a.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});a.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});a.onNodeChange.add(function(d,c,f,e){f=d.dom.getParent(f,"CITE,ACRONYM,ABBR,DEL,INS");c.setDisabled("cite",e);c.setDisabled("acronym",e);c.setDisabled("abbr",e);c.setDisabled("del",e);c.setDisabled("ins",e);c.setDisabled("attribs",f&&f.nodeName=="BODY");c.setActive("cite",0);c.setActive("acronym",0);c.setActive("abbr",0);c.setActive("del",0);c.setActive("ins",0);if(f){do{c.setDisabled(f.nodeName.toLowerCase(),0);c.setActive(f.nodeName.toLowerCase(),1)}while(f=f.parentNode)}});a.onPreInit.add(function(){a.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js new file mode 100644 index 0000000..1f3f770 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js @@ -0,0 +1,132 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceCite', function() { + ed.windowManager.open({ + file : url + '/cite.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.cite_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.cite_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAcronym', function() { + ed.windowManager.open({ + file : url + '/acronym.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAbbr', function() { + ed.windowManager.open({ + file : url + '/abbr.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceDel', function() { + ed.windowManager.open({ + file : url + '/del.htm', + width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), + height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceIns', function() { + ed.windowManager.open({ + file : url + '/ins.htm', + width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), + height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAttributes', function() { + ed.windowManager.open({ + file : url + '/attributes.htm', + width : 380, + height : 370, + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('cite', {title : 'xhtmlxtras.cite_desc', cmd : 'mceCite'}); + ed.addButton('acronym', {title : 'xhtmlxtras.acronym_desc', cmd : 'mceAcronym'}); + ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'}); + ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'}); + ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'}); + ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'}); + + ed.onNodeChange.add(function(ed, cm, n, co) { + n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS'); + + cm.setDisabled('cite', co); + cm.setDisabled('acronym', co); + cm.setDisabled('abbr', co); + cm.setDisabled('del', co); + cm.setDisabled('ins', co); + cm.setDisabled('attribs', n && n.nodeName == 'BODY'); + cm.setActive('cite', 0); + cm.setActive('acronym', 0); + cm.setActive('abbr', 0); + cm.setActive('del', 0); + cm.setActive('ins', 0); + + // Activate all + if (n) { + do { + cm.setDisabled(n.nodeName.toLowerCase(), 0); + cm.setActive(n.nodeName.toLowerCase(), 1); + } while (n = n.parentNode); + } + }); + + ed.onPreInit.add(function() { + // Fixed IE issue where it can't handle these elements correctly + ed.dom.create('abbr'); + }); + }, + + getInfo : function() { + return { + longname : 'XHTML Xtras Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('xhtmlxtras', tinymce.plugins.XHTMLXtrasPlugin); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm new file mode 100644 index 0000000..9448d67 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm @@ -0,0 +1,161 @@ + + + + {#xhtmlxtras_dlg.title_ins_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
    : + + + + + +
    +
    :
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js new file mode 100644 index 0000000..1790e83 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js @@ -0,0 +1,28 @@ +/** + * abbr.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('abbr'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAbbr() { + SXE.insertElement('abbr'); + tinyMCEPopup.close(); +} + +function removeAbbr() { + SXE.removeElement('abbr'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js new file mode 100644 index 0000000..93b8d25 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js @@ -0,0 +1,28 @@ +/** + * acronym.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('acronym'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAcronym() { + SXE.insertElement('acronym'); + tinyMCEPopup.close(); +} + +function removeAcronym() { + SXE.removeElement('acronym'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js new file mode 100644 index 0000000..c7e0e7f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js @@ -0,0 +1,126 @@ +/** + * attributes.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + tinyMCEPopup.resizeToInnerSize(); + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + var elm = inst.selection.getNode(); + var f = document.forms[0]; + var onclick = dom.getAttrib(elm, 'onclick'); + + setFormValue('title', dom.getAttrib(elm, 'title')); + setFormValue('id', dom.getAttrib(elm, 'id')); + setFormValue('style', dom.getAttrib(elm, "style")); + setFormValue('dir', dom.getAttrib(elm, 'dir')); + setFormValue('lang', dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('onfocus', dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup')); + className = dom.getAttrib(elm, 'class'); + + addClassesToList('classlist', 'advlink_styles'); + selectByValue(f, 'classlist', className, true); + + TinyMCE_EditableSelects.init(); +} + +function setFormValue(name, value) { + if(value && document.forms[0].elements[name]){ + document.forms[0].elements[name].value = value; + } +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + setAllAttribs(elm); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); +} + +function setAttrib(elm, attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib.toLowerCase()]; + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value != "") { + dom.setAttrib(elm, attrib.toLowerCase(), value); + + if (attrib == "style") + attrib = "style.cssText"; + + if (attrib.substring(0, 2) == 'on') + value = 'return true;' + value; + + if (attrib == "class") + attrib = "className"; + + elm[attrib]=value; + } else + elm.removeAttribute(attrib); +} + +function setAllAttribs(elm) { + var f = document.forms[0]; + + setAttrib(elm, 'title'); + setAttrib(elm, 'id'); + setAttrib(elm, 'style'); + setAttrib(elm, 'class', getSelectValue(f, 'classlist')); + setAttrib(elm, 'dir'); + setAttrib(elm, 'lang'); + setAttrib(elm, 'tabindex'); + setAttrib(elm, 'accesskey'); + setAttrib(elm, 'onfocus'); + setAttrib(elm, 'onblur'); + setAttrib(elm, 'onclick'); + setAttrib(elm, 'ondblclick'); + setAttrib(elm, 'onmousedown'); + setAttrib(elm, 'onmouseup'); + setAttrib(elm, 'onmouseover'); + setAttrib(elm, 'onmousemove'); + setAttrib(elm, 'onmouseout'); + setAttrib(elm, 'onkeypress'); + setAttrib(elm, 'onkeydown'); + setAttrib(elm, 'onkeyup'); + + // Refresh in old MSIE +// if (tinyMCE.isMSIE5) +// elm.outerHTML = elm.outerHTML; +} + +function insertAttribute() { + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); +tinyMCEPopup.requireLangPack(); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js new file mode 100644 index 0000000..b73ef47 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js @@ -0,0 +1,28 @@ +/** + * cite.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('cite'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertCite() { + SXE.insertElement('cite'); + tinyMCEPopup.close(); +} + +function removeCite() { + SXE.removeElement('cite'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js new file mode 100644 index 0000000..d5dd8e4 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js @@ -0,0 +1,63 @@ +/** + * del.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('del'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertDel() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL'); + + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('del'); + var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';}); + for (var i=0; i 0) { + tagName = element_name; + + insertInlineElement(element_name); + var elementArray = tinymce.grep(SXE.inst.dom.select(element_name)); + for (var i=0; i -1) ? true : false; +} + +SXE.removeClass = function(elm,cl) { + if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) { + return true; + } + var classNames = elm.className.split(" "); + var newClassNames = ""; + for (var x = 0, cnl = classNames.length; x < cnl; x++) { + if (classNames[x] != cl) { + newClassNames += (classNames[x] + " "); + } + } + elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end +} + +SXE.addClass = function(elm,cl) { + if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl; + return true; +} + +function insertInlineElement(en) { + var ed = tinyMCEPopup.editor, dom = ed.dom; + + ed.getDoc().execCommand('FontName', false, 'mceinline'); + tinymce.each(dom.select('span,font'), function(n) { + if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') + dom.replace(dom.create(en, {_mce_new : 1}), n, 1); + }); +} diff --git a/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js new file mode 100644 index 0000000..8d29d53 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js @@ -0,0 +1,62 @@ +/** + * ins.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('ins'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertIns() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS'); + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('INS'); + var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';}); + for (var i=0; i + + + {#advanced_dlg.about_title} + + + + + + + +
    +
    +

    {#advanced_dlg.about_title}

    +

    Version: ()

    +

    TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL + by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

    +

    Copyright © 2003-2008, Moxiecode Systems AB, All rights reserved.

    +

    For more information about this software visit the TinyMCE website.

    + +
    + Got Moxie? + Hosted By Sourceforge + Also on freshmeat +
    +
    + +
    +
    +

    {#advanced_dlg.about_loaded}

    + +
    +
    + +

     

    +
    +
    + +
    +
    +
    +
    + +
    + +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm b/js/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm new file mode 100644 index 0000000..9c70f9b --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/anchor.htm @@ -0,0 +1,26 @@ + + + + {#advanced_dlg.anchor_title} + + + + +
    + + + + + + + + +
    {#advanced_dlg.anchor_title}
    {#advanced_dlg.anchor_name}:
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm b/js/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm new file mode 100644 index 0000000..c36c237 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm @@ -0,0 +1,52 @@ + + + + {#advanced_dlg.charmap_title} + + + + + + + + + + + + + + + +
    {#advanced_dlg.charmap_title}
    + + + + + + + + + +
     
     
    +
    + + + + + + + + + + + + + + + + +
    HTML-Code
     
     
    NUM-Code
     
    +
    + + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm b/js/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm new file mode 100644 index 0000000..148550f --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm @@ -0,0 +1,73 @@ + + + + {#advanced_dlg.colorpicker_title} + + + + + +
    + + +
    +
    +
    + {#advanced_dlg.colorpicker_picker_title} +
    + + +
    + +
    + +
    +
    +
    +
    + +
    +
    + {#advanced_dlg.colorpicker_palette_title} +
    + +
    + +
    +
    +
    + +
    +
    + {#advanced_dlg.colorpicker_named_title} +
    + +
    + +
    + +
    + {#advanced_dlg.colorpicker_name} +
    +
    +
    +
    + +
    + + +
    + +
    + +
    +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js new file mode 100644 index 0000000..f2cc46c --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js @@ -0,0 +1 @@ +(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l)}if(j.settings.content_css!==false){j.dom.loadCSS(j.baseURI.toAbsolute("themes/advanced/skins/"+j.settings.skin+"/content.css"))}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();i.undoManager.add();p=i.formatter.matchAll(n);if(!o||p[0]==o){i.formatter.remove(p[0])}else{i.formatter.apply(o)}i.undoManager.add();i.nodeChanged();return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){var m=k.items[k.selectedIndex];if(!l&&m){i.execCommand("FontName",false,m.value);return}i.execCommand("FontName",false,l);k.select(function(n){return l==n});return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){var o=n.items[n.selectedIndex];if(!i&&o){o=o.value;if(o["class"]){k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}return}if(i["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:i["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,i.fontSize)}n.select(function(p){return i==p});return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",cmd:"FormatBlock"});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;m=j=d.create("span",{id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=d.stdMode?u.getElementsByTagName("tr"):u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},""),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_tbl");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,l){var j=this.editor,k=this.settings,m=d.get(j.id+"_tbl"),n=d.get(j.id+"_ifr");i=Math.max(k.theme_advanced_resizing_min_width||100,i);l=Math.max(k.theme_advanced_resizing_min_height||100,l);i=Math.min(k.theme_advanced_resizing_max_width||65535,i);l=Math.min(k.theme_advanced_resizing_max_height||65535,l);d.setStyle(m,"height","");d.setStyle(n,"height",l);if(k.theme_advanced_resize_horizontal){d.setStyle(m,"width","");d.setStyle(n,"width",i);if(i"))}q.push(d.createHTML("a",{href:"#",accesskey:"q",title:r.getLang("advanced.toolbar_focus")},""));for(p=1;(y=A["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(A["theme_advanced_buttons"+p+"_add"]){y+=","+A["theme_advanced_buttons"+p+"_add"]}if(A["theme_advanced_buttons"+p+"_add_before"]){y=A["theme_advanced_buttons"+p+"_add_before"]+","+y}z._addControls(y,m);q.push(m.renderHTML());k.deltaHeight-=A.theme_advanced_row_height}q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},""));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row"},w.theme_advanced_path?p.translate("advanced.path")+": ":" ");d.add(k,"a",{href:"#",accesskey:"x"});if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);if(w.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+p.id+"_size",{cw:n,ch:E})}}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_nodeChanged:function(r,z,l,x,j){var C=this,i,y=0,B,u,D=C.settings,A,k,w,m,q;e.each(C.stateControls,function(n){z.setActive(n,r.queryCommandState(C.controls[n][1]))});function o(p){var s,n=j.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s= 1 && v <= 7) { + k = v + ' (' + t.sizes[v - 1] + 'pt)'; + cl = s.font_size_classes[v - 1]; + v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt'); + } + + if (/^\s*\./.test(v)) + cl = v.replace(/\./g, ''); + + o[k] = cl ? {'class' : cl} : {fontSize : v}; + }); + + s.theme_advanced_font_sizes = o; + } + + if ((v = s.theme_advanced_path_location) && v != 'none') + s.theme_advanced_statusbar_location = s.theme_advanced_path_location; + + if (s.theme_advanced_statusbar_location == 'none') + s.theme_advanced_statusbar_location = 0; + + // Init editor + ed.onInit.add(function() { + if (!ed.settings.readonly) + ed.onNodeChange.add(t._nodeChanged, t); + + if (ed.settings.content_css !== false) + ed.dom.loadCSS(ed.baseURI.toAbsolute("themes/advanced/skins/" + ed.settings.skin + "/content.css")); + }); + + ed.onSetProgressState.add(function(ed, b, ti) { + var co, id = ed.id, tb; + + if (b) { + t.progressTimer = setTimeout(function() { + co = ed.getContainer(); + co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild); + tb = DOM.get(ed.id + '_tbl'); + + DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}}); + DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}}); + }, ti || 0); + } else { + DOM.remove(id + '_blocker'); + DOM.remove(id + '_progress'); + clearTimeout(t.progressTimer); + } + }); + + DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css"); + + if (s.skin_variant) + DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css"); + }, + + createControl : function(n, cf) { + var cd, c; + + if (c = cf.createControl(n)) + return c; + + switch (n) { + case "styleselect": + return this._createStyleSelect(); + + case "formatselect": + return this._createBlockFormats(); + + case "fontselect": + return this._createFontSelect(); + + case "fontsizeselect": + return this._createFontSizeSelect(); + + case "forecolor": + return this._createForeColorMenu(); + + case "backcolor": + return this._createBackColorMenu(); + } + + if ((cd = this.controls[n])) + return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]}); + }, + + execCommand : function(cmd, ui, val) { + var f = this['_' + cmd]; + + if (f) { + f.call(this, ui, val); + return true; + } + + return false; + }, + + _importClasses : function(e) { + var ed = this.editor, ctrl = ed.controlManager.get('styleselect'); + + if (ctrl.getLength() == 0) { + each(ed.dom.getClasses(), function(o, idx) { + var name = 'style_' + idx; + + ed.formatter.register(name, { + inline : 'span', + attributes : {'class' : o['class']}, + selector : '*' + }); + + ctrl.add(o['class'], name); + }); + } + }, + + _createStyleSelect : function(n) { + var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl; + + // Setup style select box + ctrl = ctrlMan.createListBox('styleselect', { + title : 'advanced.style_select', + onselect : function(name) { + var matches, formatNames = []; + + each(ctrl.items, function(item) { + formatNames.push(item.value); + }); + + ed.focus(); + ed.undoManager.add(); + + // Toggle off the current format + matches = ed.formatter.matchAll(formatNames); + if (!name || matches[0] == name) + ed.formatter.remove(matches[0]); + else + ed.formatter.apply(name); + + ed.undoManager.add(); + ed.nodeChanged(); + + return false; // No auto select + } + }); + + // Handle specified format + ed.onInit.add(function() { + var counter = 0, formats = ed.getParam('style_formats'); + + if (formats) { + each(formats, function(fmt) { + var name, keys = 0; + + each(fmt, function() {keys++;}); + + if (keys > 1) { + name = fmt.name = fmt.name || 'style_' + (counter++); + ed.formatter.register(name, fmt); + ctrl.add(fmt.title, name); + } else + ctrl.add(fmt.title); + }); + } else { + each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) { + var name; + + if (val) { + name = 'style_' + (counter++); + + ed.formatter.register(name, { + inline : 'span', + classes : val, + selector : '*' + }); + + ctrl.add(t.editor.translate(key), name); + } + }); + } + }); + + // Auto import classes if the ctrl box is empty + if (ctrl.getLength() == 0) { + ctrl.onPostRender.add(function(ed, n) { + if (!ctrl.NativeListBox) { + Event.add(n.id + '_text', 'focus', t._importClasses, t); + Event.add(n.id + '_text', 'mousedown', t._importClasses, t); + Event.add(n.id + '_open', 'focus', t._importClasses, t); + Event.add(n.id + '_open', 'mousedown', t._importClasses, t); + } else + Event.add(n.id, 'focus', t._importClasses, t); + }); + } + + return ctrl; + }, + + _createFontSelect : function() { + var c, t = this, ed = t.editor; + + c = ed.controlManager.createListBox('fontselect', { + title : 'advanced.fontdefault', + onselect : function(v) { + var cur = c.items[c.selectedIndex]; + + if (!v && cur) { + ed.execCommand('FontName', false, cur.value); + return; + } + + ed.execCommand('FontName', false, v); + + // Fake selection, execCommand will fire a nodeChange and update the selection + c.select(function(sv) { + return v == sv; + }); + + return false; // No auto select + } + }); + + if (c) { + each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) { + c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''}); + }); + } + + return c; + }, + + _createFontSizeSelect : function() { + var t = this, ed = t.editor, c, i = 0, cl = []; + + c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) { + var cur = c.items[c.selectedIndex]; + + if (!v && cur) { + cur = cur.value; + + if (cur['class']) { + ed.formatter.toggle('fontsize_class', {value : cur['class']}); + ed.undoManager.add(); + ed.nodeChanged(); + } else { + ed.execCommand('FontSize', false, cur.fontSize); + } + + return; + } + + if (v['class']) { + ed.focus(); + ed.undoManager.add(); + ed.formatter.toggle('fontsize_class', {value : v['class']}); + ed.undoManager.add(); + ed.nodeChanged(); + } else + ed.execCommand('FontSize', false, v.fontSize); + + // Fake selection, execCommand will fire a nodeChange and update the selection + c.select(function(sv) { + return v == sv; + }); + + return false; // No auto select + }}); + + if (c) { + each(t.settings.theme_advanced_font_sizes, function(v, k) { + var fz = v.fontSize; + + if (fz >= 1 && fz <= 7) + fz = t.sizes[parseInt(fz) - 1] + 'pt'; + + c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))}); + }); + } + + return c; + }, + + _createBlockFormats : function() { + var c, fmts = { + p : 'advanced.paragraph', + address : 'advanced.address', + pre : 'advanced.pre', + h1 : 'advanced.h1', + h2 : 'advanced.h2', + h3 : 'advanced.h3', + h4 : 'advanced.h4', + h5 : 'advanced.h5', + h6 : 'advanced.h6', + div : 'advanced.div', + blockquote : 'advanced.blockquote', + code : 'advanced.code', + dt : 'advanced.dt', + dd : 'advanced.dd', + samp : 'advanced.samp' + }, t = this; + + c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', cmd : 'FormatBlock'}); + if (c) { + each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) { + c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v}); + }); + } + + return c; + }, + + _createForeColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_text_colors) + o.colors = v; + + if (s.theme_advanced_default_foreground_color) + o.default_color = s.theme_advanced_default_foreground_color; + + o.title = 'advanced.forecolor_desc'; + o.cmd = 'ForeColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('forecolor', o); + + return c; + }, + + _createBackColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_background_colors) + o.colors = v; + + if (s.theme_advanced_default_background_color) + o.default_color = s.theme_advanced_default_background_color; + + o.title = 'advanced.backcolor_desc'; + o.cmd = 'HiliteColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('backcolor', o); + + return c; + }, + + renderUI : function(o) { + var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl; + + n = p = DOM.create('span', {id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '')}); + + if (!DOM.boxModel) + n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'}); + + n = sc = DOM.add(n, 'table', {id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0}); + n = tb = DOM.add(n, 'tbody'); + + switch ((s.theme_advanced_layout_manager || '').toLowerCase()) { + case "rowlayout": + ic = t._rowLayout(s, tb, o); + break; + + case "customlayout": + ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p); + break; + + default: + ic = t._simpleLayout(s, tb, o, p); + } + + n = o.targetNode; + + // Add classes to first and last TRs + nl = DOM.stdMode ? sc.getElementsByTagName('tr') : sc.rows; // Quick fix for IE 8 + DOM.addClass(nl[0], 'mceFirst'); + DOM.addClass(nl[nl.length - 1], 'mceLast'); + + // Add classes to first and last TDs + each(DOM.select('tr', tb), function(n) { + DOM.addClass(n.firstChild, 'mceFirst'); + DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast'); + }); + + if (DOM.get(s.theme_advanced_toolbar_container)) + DOM.get(s.theme_advanced_toolbar_container).appendChild(p); + else + DOM.insertAfter(p, n); + + Event.add(ed.id + '_path_row', 'click', function(e) { + e = e.target; + + if (e.nodeName == 'A') { + t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1')); + + return Event.cancel(e); + } + }); +/* + if (DOM.get(ed.id + '_path_row')) { + Event.add(ed.id + '_tbl', 'mouseover', function(e) { + var re; + + e = e.target; + + if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) { + re = DOM.get(ed.id + '_path_row'); + t.lastPath = re.innerHTML; + DOM.setHTML(re, e.parentNode.title); + } + }); + + Event.add(ed.id + '_tbl', 'mouseout', function(e) { + if (t.lastPath) { + DOM.setHTML(ed.id + '_path_row', t.lastPath); + t.lastPath = 0; + } + }); + } +*/ + + if (!ed.getParam('accessibility_focus')) + Event.add(DOM.add(p, 'a', {href : '#'}, ''), 'focus', function() {tinyMCE.get(ed.id).focus();}); + + if (s.theme_advanced_toolbar_location == 'external') + o.deltaHeight = 0; + + t.deltaHeight = o.deltaHeight; + o.targetNode = null; + + return { + iframeContainer : ic, + editorContainer : ed.id + '_parent', + sizeContainer : sc, + deltaHeight : o.deltaHeight + }; + }, + + getInfo : function() { + return { + longname : 'Advanced theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + }, + + resizeBy : function(dw, dh) { + var e = DOM.get(this.editor.id + '_tbl'); + + this.resizeTo(e.clientWidth + dw, e.clientHeight + dh); + }, + + resizeTo : function(w, h) { + var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr'); + + // Boundery fix box + w = Math.max(s.theme_advanced_resizing_min_width || 100, w); + h = Math.max(s.theme_advanced_resizing_min_height || 100, h); + w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w); + h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h); + + // Resize iframe and container + DOM.setStyle(e, 'height', ''); + DOM.setStyle(ifr, 'height', h); + + if (s.theme_advanced_resize_horizontal) { + DOM.setStyle(e, 'width', ''); + DOM.setStyle(ifr, 'width', w); + + // Make sure that the size is never smaller than the over all ui + if (w < e.clientWidth) + DOM.setStyle(ifr, 'width', e.clientWidth); + } + }, + + destroy : function() { + var id = this.editor.id; + + Event.clear(id + '_resize'); + Event.clear(id + '_path_row'); + Event.clear(id + '_external_close'); + }, + + // Internal functions + + _simpleLayout : function(s, tb, o, p) { + var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c; + + if (s.readonly) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + return ic; + } + + // Create toolbar container at top + if (lo == 'top') + t._addToolbars(tb, o); + + // Create external toolbar + if (lo == 'external') { + n = c = DOM.create('div', {style : 'position:relative'}); + n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'}); + DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'}); + n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0}); + etb = DOM.add(n, 'tbody'); + + if (p.firstChild.className == 'mceOldBoxModel') + p.firstChild.appendChild(c); + else + p.insertBefore(c, p.firstChild); + + t._addToolbars(etb, o); + + ed.onMouseUp.add(function() { + var e = DOM.get(ed.id + '_external'); + DOM.show(e); + + DOM.hide(lastExtID); + + var f = Event.add(ed.id + '_external_close', 'click', function() { + DOM.hide(ed.id + '_external'); + Event.remove(ed.id + '_external_close', 'click', f); + }); + + DOM.show(e); + DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1); + + // Fixes IE rendering bug + DOM.hide(e); + DOM.show(e); + e.style.filter = ''; + + lastExtID = ed.id + '_external'; + + e = null; + }); + } + + if (sl == 'top') + t._addStatusBar(tb, o); + + // Create iframe container + if (!s.theme_advanced_toolbar_container) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + } + + // Create toolbar container at bottom + if (lo == 'bottom') + t._addToolbars(tb, o); + + if (sl == 'bottom') + t._addStatusBar(tb, o); + + return ic; + }, + + _rowLayout : function(s, tb, o) { + var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a; + + dc = s.theme_advanced_containers_default_class || ''; + da = s.theme_advanced_containers_default_align || 'center'; + + each(explode(s.theme_advanced_containers || ''), function(c, i) { + var v = s['theme_advanced_container_' + c] || ''; + + switch (v.toLowerCase()) { + case 'mceeditor': + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + break; + + case 'mceelementpath': + t._addStatusBar(tb, o); + break; + + default: + a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(tb, 'tr'), 'td', { + 'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da + }); + + to = cf.createToolbar("toolbar" + i); + t._addControls(v, to); + DOM.setHTML(n, to.renderHTML()); + o.deltaHeight -= s.theme_advanced_row_height; + } + }); + + return ic; + }, + + _addControls : function(v, tb) { + var t = this, s = t.settings, di, cf = t.editor.controlManager; + + if (s.theme_advanced_disable && !t._disabled) { + di = {}; + + each(explode(s.theme_advanced_disable), function(v) { + di[v] = 1; + }); + + t._disabled = di; + } else + di = t._disabled; + + each(explode(v), function(n) { + var c; + + if (di && di[n]) + return; + + // Compatiblity with 2.x + if (n == 'tablecontrols') { + each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) { + n = t.createControl(n, cf); + + if (n) + tb.add(n); + }); + + return; + } + + c = t.createControl(n, cf); + + if (c) + tb.add(c); + }); + }, + + _addToolbars : function(c, o) { + var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a; + + a = s.theme_advanced_toolbar_align.toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar ' + a}); + + if (!ed.getParam('accessibility_focus')) + h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '')); + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '')); + + // Create toolbar and add the controls + for (i=1; (v = s['theme_advanced_buttons' + i]); i++) { + tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i}); + + if (s['theme_advanced_buttons' + i + '_add']) + v += ',' + s['theme_advanced_buttons' + i + '_add']; + + if (s['theme_advanced_buttons' + i + '_add_before']) + v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v; + + t._addControls(v, tb); + + //n.appendChild(n = tb.render()); + h.push(tb.renderHTML()); + + o.deltaHeight -= s.theme_advanced_row_height; + } + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '')); + DOM.setHTML(n, h.join('')); + }, + + _addStatusBar : function(tb, o) { + var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td; + + n = DOM.add(tb, 'tr'); + n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'}); + n = DOM.add(n, 'div', {id : ed.id + '_path_row'}, s.theme_advanced_path ? ed.translate('advanced.path') + ': ' : ' '); + DOM.add(n, 'a', {href : '#', accesskey : 'x'}); + + if (s.theme_advanced_resizing) { + DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize'}); + + if (s.theme_advanced_resizing_use_cookie) { + ed.onPostRender.add(function() { + var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl'); + + if (!o) + return; + + t.resizeTo(o.cw, o.ch); + }); + } + + ed.onPostRender.add(function() { + Event.add(ed.id + '_resize', 'mousedown', function(e) { + var mouseMoveHandler1, mouseMoveHandler2, + mouseUpHandler1, mouseUpHandler2, + startX, startY, startWidth, startHeight, width, height, ifrElm; + + function resizeOnMove(e) { + width = startWidth + (e.screenX - startX); + height = startHeight + (e.screenY - startY); + + t.resizeTo(width, height); + }; + + function endResize(e) { + // Stop listening + Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1); + Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2); + Event.remove(DOM.doc, 'mouseup', mouseUpHandler1); + Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2); + + // Store away the size + if (s.theme_advanced_resizing_use_cookie) { + Cookie.setHash("TinyMCE_" + ed.id + "_size", { + cw : width, + ch : height + }); + } + }; + + e.preventDefault(); + + // Get the current rect size + startX = e.screenX; + startY = e.screenY; + ifrElm = DOM.get(t.editor.id + '_ifr'); + startWidth = width = ifrElm.clientWidth; + startHeight = height = ifrElm.clientHeight; + + // Register envent handlers + mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove); + mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove); + mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize); + mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize); + }); + }); + } + + o.deltaHeight -= 21; + n = tb = null; + }, + + _nodeChanged : function(ed, cm, n, co, ob) { + var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, formatNames, matches; + + tinymce.each(t.stateControls, function(c) { + cm.setActive(c, ed.queryCommandState(t.controls[c][1])); + }); + + function getParent(name) { + var i, parents = ob.parents, func = name; + + if (typeof(name) == 'string') { + func = function(node) { + return node.nodeName == name; + }; + } + + for (i = 0; i < parents.length; i++) { + if (func(parents[i])) + return parents[i]; + } + }; + + cm.setActive('visualaid', ed.hasVisual); + cm.setDisabled('undo', !ed.undoManager.hasUndo() && !ed.typing); + cm.setDisabled('redo', !ed.undoManager.hasRedo()); + cm.setDisabled('outdent', !ed.queryCommandState('Outdent')); + + p = getParent('A'); + if (c = cm.get('link')) { + if (!p || !p.name) { + c.setDisabled(!p && co); + c.setActive(!!p); + } + } + + if (c = cm.get('unlink')) { + c.setDisabled(!p && co); + c.setActive(!!p && !p.name); + } + + if (c = cm.get('anchor')) { + c.setActive(!!p && p.name); + } + + p = getParent('IMG'); + if (c = cm.get('image')) + c.setActive(!!p && n.className.indexOf('mceItem') == -1); + + if (c = cm.get('styleselect')) { + t._importClasses(); + + formatNames = []; + each(c.items, function(item) { + formatNames.push(item.value); + }); + + matches = ed.formatter.matchAll(formatNames); + c.select(matches[0]); + } + + if (c = cm.get('formatselect')) { + p = getParent(DOM.isBlock); + + if (p) + c.select(p.nodeName.toLowerCase()); + } + + // Find out current fontSize, fontFamily and fontClass + getParent(function(n) { + if (n.nodeName === 'SPAN') { + if (!cl && n.className) + cl = n.className; + + if (!fz && n.style.fontSize) + fz = n.style.fontSize; + + if (!fn && n.style.fontFamily) + fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase(); + } + + return false; + }); + + if (c = cm.get('fontselect')) { + c.select(function(v) { + return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn; + }); + } + + // Select font size + if (c = cm.get('fontsizeselect')) { + // Use computed style + if (s.theme_advanced_runtime_fontsize && !fz && !cl) + fz = ed.dom.getStyle(n, 'fontSize', true); + + c.select(function(v) { + if (v.fontSize && v.fontSize === fz) + return true; + + if (v['class'] && v['class'] === cl) + return true; + }); + } + + if (s.theme_advanced_path && s.theme_advanced_statusbar_location) { + p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'}); + DOM.setHTML(p, ''); + + getParent(function(n) { + var na = n.nodeName.toLowerCase(), u, pi, ti = ''; + + /*if (n.getAttribute('_mce_bogus')) + return; +*/ + // Ignore non element and hidden elements + if (n.nodeType != 1 || n.nodeName === 'BR' || (DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))) + return; + + // Fake name + if (v = DOM.getAttrib(n, 'mce_name')) + na = v; + + // Handle prefix + if (tinymce.isIE && n.scopeName !== 'HTML') + na = n.scopeName + ':' + na; + + // Remove internal prefix + na = na.replace(/mce\:/g, ''); + + // Handle node name + switch (na) { + case 'b': + na = 'strong'; + break; + + case 'i': + na = 'em'; + break; + + case 'img': + if (v = DOM.getAttrib(n, 'src')) + ti += 'src: ' + v + ' '; + + break; + + case 'a': + if (v = DOM.getAttrib(n, 'name')) { + ti += 'name: ' + v + ' '; + na += '#' + v; + } + + if (v = DOM.getAttrib(n, 'href')) + ti += 'href: ' + v + ' '; + + break; + + case 'font': + if (v = DOM.getAttrib(n, 'face')) + ti += 'font: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'size')) + ti += 'size: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'color')) + ti += 'color: ' + v + ' '; + + break; + + case 'span': + if (v = DOM.getAttrib(n, 'style')) + ti += 'style: ' + v + ' '; + + break; + } + + if (v = DOM.getAttrib(n, 'id')) + ti += 'id: ' + v + ' '; + + if (v = n.className) { + v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '') + + if (v) { + ti += 'class: ' + v + ' '; + + if (DOM.isBlock(n) || na == 'img' || na == 'span') + na += '.' + v; + } + } + + na = na.replace(/(html:)/g, ''); + na = {name : na, node : n, title : ti}; + t.onResolveName.dispatch(t, na); + ti = na.title; + na = na.name; + + //u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');"; + pi = DOM.create('a', {'href' : "javascript:;", onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na); + + if (p.hasChildNodes()) { + p.insertBefore(DOM.doc.createTextNode(' \u00bb '), p.firstChild); + p.insertBefore(pi, p.firstChild); + } else + p.appendChild(pi); + }, ed.getBody()); + } + }, + + // Commands gets called by execCommand + + _sel : function(v) { + this.editor.execCommand('mceSelectNodeDepth', false, v); + }, + + _mceInsertAnchor : function(ui, v) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/anchor.htm', + width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)), + height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceCharMap : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/charmap.htm', + width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceHelp : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/about.htm', + width : 480, + height : 380, + inline : true + }, { + theme_url : this.url + }); + }, + + _mceColorPicker : function(u, v) { + var ed = this.editor; + + v = v || {}; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/color_picker.htm', + width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)), + close_previous : false, + inline : true + }, { + input_color : v.color, + func : v.func, + theme_url : this.url + }); + }, + + _mceCodeEditor : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/source_editor.htm', + width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)), + height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)), + inline : true, + resizable : true, + maximizable : true + }, { + theme_url : this.url + }); + }, + + _mceImage : function(ui, val) { + var ed = this.editor; + + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/image.htm', + width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)), + height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceLink : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/link.htm', + width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)), + height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceNewDocument : function() { + var ed = this.editor; + + ed.windowManager.confirm('advanced.newdocument', function(s) { + if (s) + ed.execCommand('mceSetContent', false, ''); + }); + }, + + _mceForeColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.fgColor, + func : function(co) { + t.fgColor = co; + t.editor.execCommand('ForeColor', false, co); + } + }); + }, + + _mceBackColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.bgColor, + func : function(co) { + t.bgColor = co; + t.editor.execCommand('HiliteColor', false, co); + } + }); + }, + + _ufirst : function(s) { + return s.substring(0, 1).toUpperCase() + s.substring(1); + } + }); + + tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme); +}(tinymce)); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm b/js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm new file mode 100644 index 0000000..98fd2cd --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/image.htm @@ -0,0 +1,80 @@ + + + + {#advanced_dlg.image_title} + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    + x +
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg b/js/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b4c542d107b25f68a9d4f9d7a109d0565d1f1437 GIT binary patch literal 3189 zcmbW0dsLEX8o)utyLkf>vO+8cOg9wF%x1j+p@RkpsHC1z^8%LRB~9&2XDqEGG)XNW za}>Dv$PIyhNYo}DFE8{K%%;saJRZN^Z|nBZpzy$8e9+2Iz;a<8Kk+#d^3T1~%eX+Yocd57U@)iBS;Lz~Rksn75)5aOo z?47y!`{oCW4<9{#^7PrO*Kd~J{`T(uhu>GYz#z*%v4Hp|*ne=j0$dhWR+d&aD_mfU z{lIJKY6bDeS-VBjZPE+fQ9+fq&?sTsg&TH0!Hk!%jG`%fj}7?y8(*!UeJ1mKAkW+N+qrtJ``cfL69@8V&h4pSlYZct zdbj(JoO9O?Qsypg_fMOg z#rMbU1sg3&fUGhub|uS1yIT&?FK_29gtOKhHhq6|)$&^OfnnC|ikp{TaNez5@_lf< zVtK=Xq%zSvAMNgxI$d``m?>^#DeXGE<=1t-8%N)&Uj?N0rRmZL=i-Ck?cDEJW9D3T zQNPlr2-xo8nJClmdhOM!G zSxEgwFp>mhr9k%KF1;r^Lf?*3q*Hw)AAX54&QN>v!`Sj4coX05(}r$KJj?NGNXrKD z8NeX+XC1e{BJniG?|2&dIw0`UbHjy&?fwkwr)jCV>jFx1PkkVvaTKR0CyLX7_nCecUzMp7ZL}O4zG~}I+CyvTeU-TI-o>tMCfOfLfd}6{ zn-VTf)-(a;Sp7?!H+8zxp-X96c*~5f=$(V9wU)QI1jM{4!5`D}1JYcRmW=fTf+e4QuYi-${T5Wl!DOA;{Oo23HgADWZ0p6&DQlQq?3y&OLbGnI?ce`qz*7HE3Q&J0yE1{KY(ay2sM|HXSio`Q) zzXlFjW+UfD{LLS0Y3NDMZ+bLSxya70{JN19=17g3?)?e9FZ5ZnrErV zvc9TlZ?yq&c7k1;y1CMvfr`2*p>dU3G~uVHuoh;U3XOlsL-Hc><_FsSENHw4o(p$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)o#6CnbVu%_YL zkA_EL0QME}wev(ESKLmxMjDBc)Yb-aJM+rU(|mZh4tM?0}d<^7HhJa22mwL*EptRLFpXUAn5J_@V literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif b/js/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif new file mode 100644 index 0000000000000000000000000000000000000000..e46de5333082869b9bdab2576a554a2f9d01a966 GIT binary patch literal 11794 zcmWk!i9gei8~^OH(+nR+?qiNn!bm7$?mKheng~fXL_(QujvSd%A?0R7CgiL}a+f(O zN;OjH`ZiMOvR}XFKX_ix^M0Q9`~5r)PWGmI!&c$uzz+b}8$Q_3J`4cB+Lzu9odL-SKwq4;O-1r8)E~_ottI`aGXoKC%Au zn^#xDp}vVP`bSneE^UKdg?XnvE=UgehDKkkY9AdP{jI0_{bSMZpThwmk!wGX_1zudul>Eom7>$LI-A@t$)|4>D~MG&C1_zCR1#W^XEVDR=-wEvF0W^qAtIs z)-CkjpLXBFAX75e+9f86jDNd1jBg175*w=9#^cLYOG~p~zTtm;=-E(mwEEr#kH?=` z-Wu+Rd-7l>t*GMu*vscGE`ur7p5fH>_4Ul$YaH&E-1_Ck_kU=tbynl;glkiYS2iwJ z-)y_;S#nxV+^x;tu`DgtJ<_87V@KPMpId}(oB5Gw>!@21XPSy`tQFNgx|oyWnc8>M zkLZ#x(AGCiB$sv!%xqejT1GWCcTPOk(|a`k%iP?O1A_Nz47LvW@HcrMzkKIDUObf1 z)zCO~sEF^Cv(6I;!t!~vmMv!MTq|dpGdMJN5pl6)`RRWnqpR%I)gK8i_viq?$m)lw{^5u3pND@{D+11X1P+Xj4tqBz2fmV`K<2l!6#eJx03j`!`bbftj>{VZ?~#@ zU#JBxOKgFCqr7M5*o1vF7MI9$@=SWN!_Gq&7LIl$wy|dC{;UObM|R^SnJ;&^Wp==L+_>& z9HFf(-Mr8qJuAIf=hE^#Z)d6TH`q7&i@xNqXXld=2f)y?FoB5cX3Nt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}L}$NF2hXw&V*{7z=gwIKt#_ zwr)xFj&ZNwkGx`DU;O=~zs3>3 z5VW5kaC@5OHZSE?sd;bi{P^YTu_9fcL>sn`jOH%>C)7fUsSTw%bk{+VaSD_;S+Nhx zp-WA-W3o6F@9lES{!pM+XZ#4ZRdN01JSLtCHZEy;9sl<~O22UX*p8_?suk)kMPguUV$i+B;HkurSBart5)TRz z$zn-iDoKa*lfo^NBHWV>A54lokrb7l6kV8fq#`M%HR4H;KvE&Su z&A`@-(3~H?w0~qd((JoI9UkleK11NnKS*m$&bybKKb2h2nvCEh84Y47Q5YF*h7Kp& z@3gvgGQDsy`SOX=SJF?H6#fhqJH^oYQR+z3;ZdVG*(S~s&W==*ocL0elxqEy8q1X0 zFVZsC_SYZ$Rd?^F4uDd?Gc=Ym{HfW!)tj}iQf_`pX%(bYyVHo;jFUVdx*MUuW4LpE znXzg9L0~&a2;d-=*HQ%+c@%W$!S2crXbn`aw2Ym5Ls2 zPaQ2x8>>hgANghtWQqA_Hl`rXR3PnJ;6Izvrd7_&=%1O5%Bgoh(@=4zrkfE0AyI7F zok(vNHp89pVRq`wi&tm9yfjIn`$h5mHt9^4g(z?P{Q<|IUoQ`yeS6~UyC0_zob1AM zD%1U?Kga!RCh?zE*VIRuY7Q56 z9a+~HFW%{QtHZzMDZRunYP`9Pa#>F=_@rC(`>$HuO6zP1-IxvSnOf&7hQ~fgse=cN z8isB88#|vg2X@7O{_ss_o_%QKg6`4pyPkE#JiT@7<9FS~?)Y~zEk}Roz3flXMS F{{gR&nqvR} literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js new file mode 100644 index 0000000..7fc8ba2 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/about.js @@ -0,0 +1,72 @@ +tinyMCEPopup.requireLangPack(); + +function init() { + var ed, tcont; + + tinyMCEPopup.resizeToInnerSize(); + ed = tinyMCEPopup.editor; + + // Give FF some time + window.setTimeout(insertHelpIFrame, 10); + + tcont = document.getElementById('plugintablecontainer'); + document.getElementById('plugins_tab').style.display = 'none'; + + var html = ""; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + + tinymce.each(ed.plugins, function(p, n) { + var info; + + if (!p.getInfo) + return; + + html += ''; + + info = p.getInfo(); + + if (info.infourl != null && info.infourl != '') + html += ''; + else + html += ''; + + if (info.authorurl != null && info.authorurl != '') + html += ''; + else + html += ''; + + html += ''; + html += ''; + + document.getElementById('plugins_tab').style.display = ''; + + }); + + html += ''; + html += '
    ' + ed.getLang('advanced_dlg.about_plugin') + '' + ed.getLang('advanced_dlg.about_author') + '' + ed.getLang('advanced_dlg.about_version') + '
    ' + info.longname + '' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
    '; + + tcont.innerHTML = html; + + tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion; + tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate; +} + +function insertHelpIFrame() { + var html; + + if (tinyMCEPopup.getParam('docs_url')) { + html = ''; + document.getElementById('iframecontainer').innerHTML = html; + document.getElementById('help_tab').style.display = 'block'; + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js new file mode 100644 index 0000000..d7a854e --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js @@ -0,0 +1,37 @@ +tinyMCEPopup.requireLangPack(); + +var AnchorDialog = { + init : function(ed) { + var action, elm, f = document.forms[0]; + + this.editor = ed; + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + v = ed.dom.getAttrib(elm, 'name'); + + if (v) { + this.action = 'update'; + f.anchorName.value = v; + } + + f.insert.value = ed.getLang(elm ? 'update' : 'insert'); + }, + + update : function() { + var ed = this.editor, elm, name = document.forms[0].anchorName.value; + + tinyMCEPopup.restoreSelection(); + + if (this.action != 'update') + ed.selection.collapse(1); + + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + if (elm) + elm.name = name; + else + ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, '')); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog); diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js new file mode 100644 index 0000000..53a2683 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/charmap.js @@ -0,0 +1,335 @@ +/** + * charmap.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var charmap = [ + [' ', ' ', true, 'no-break space'], + ['&', '&', true, 'ampersand'], + ['"', '"', true, 'quotation mark'], +// finance + ['¢', '¢', true, 'cent sign'], + ['€', '€', true, 'euro sign'], + ['£', '£', true, 'pound sign'], + ['¥', '¥', true, 'yen sign'], +// signs + ['©', '©', true, 'copyright sign'], + ['®', '®', true, 'registered sign'], + ['™', '™', true, 'trade mark sign'], + ['‰', '‰', true, 'per mille sign'], + ['µ', 'µ', true, 'micro sign'], + ['·', '·', true, 'middle dot'], + ['•', '•', true, 'bullet'], + ['…', '…', true, 'three dot leader'], + ['′', '′', true, 'minutes / feet'], + ['″', '″', true, 'seconds / inches'], + ['§', '§', true, 'section sign'], + ['¶', '¶', true, 'paragraph sign'], + ['ß', 'ß', true, 'sharp s / ess-zed'], +// quotations + ['‹', '‹', true, 'single left-pointing angle quotation mark'], + ['›', '›', true, 'single right-pointing angle quotation mark'], + ['«', '«', true, 'left pointing guillemet'], + ['»', '»', true, 'right pointing guillemet'], + ['‘', '‘', true, 'left single quotation mark'], + ['’', '’', true, 'right single quotation mark'], + ['“', '“', true, 'left double quotation mark'], + ['”', '”', true, 'right double quotation mark'], + ['‚', '‚', true, 'single low-9 quotation mark'], + ['„', '„', true, 'double low-9 quotation mark'], + ['<', '<', true, 'less-than sign'], + ['>', '>', true, 'greater-than sign'], + ['≤', '≤', true, 'less-than or equal to'], + ['≥', '≥', true, 'greater-than or equal to'], + ['–', '–', true, 'en dash'], + ['—', '—', true, 'em dash'], + ['¯', '¯', true, 'macron'], + ['‾', '‾', true, 'overline'], + ['¤', '¤', true, 'currency sign'], + ['¦', '¦', true, 'broken bar'], + ['¨', '¨', true, 'diaeresis'], + ['¡', '¡', true, 'inverted exclamation mark'], + ['¿', '¿', true, 'turned question mark'], + ['ˆ', 'ˆ', true, 'circumflex accent'], + ['˜', '˜', true, 'small tilde'], + ['°', '°', true, 'degree sign'], + ['−', '−', true, 'minus sign'], + ['±', '±', true, 'plus-minus sign'], + ['÷', '÷', true, 'division sign'], + ['⁄', '⁄', true, 'fraction slash'], + ['×', '×', true, 'multiplication sign'], + ['¹', '¹', true, 'superscript one'], + ['²', '²', true, 'superscript two'], + ['³', '³', true, 'superscript three'], + ['¼', '¼', true, 'fraction one quarter'], + ['½', '½', true, 'fraction one half'], + ['¾', '¾', true, 'fraction three quarters'], +// math / logical + ['ƒ', 'ƒ', true, 'function / florin'], + ['∫', '∫', true, 'integral'], + ['∑', '∑', true, 'n-ary sumation'], + ['∞', '∞', true, 'infinity'], + ['√', '√', true, 'square root'], + ['∼', '∼', false,'similar to'], + ['≅', '≅', false,'approximately equal to'], + ['≈', '≈', true, 'almost equal to'], + ['≠', '≠', true, 'not equal to'], + ['≡', '≡', true, 'identical to'], + ['∈', '∈', false,'element of'], + ['∉', '∉', false,'not an element of'], + ['∋', '∋', false,'contains as member'], + ['∏', '∏', true, 'n-ary product'], + ['∧', '∧', false,'logical and'], + ['∨', '∨', false,'logical or'], + ['¬', '¬', true, 'not sign'], + ['∩', '∩', true, 'intersection'], + ['∪', '∪', false,'union'], + ['∂', '∂', true, 'partial differential'], + ['∀', '∀', false,'for all'], + ['∃', '∃', false,'there exists'], + ['∅', '∅', false,'diameter'], + ['∇', '∇', false,'backward difference'], + ['∗', '∗', false,'asterisk operator'], + ['∝', '∝', false,'proportional to'], + ['∠', '∠', false,'angle'], +// undefined + ['´', '´', true, 'acute accent'], + ['¸', '¸', true, 'cedilla'], + ['ª', 'ª', true, 'feminine ordinal indicator'], + ['º', 'º', true, 'masculine ordinal indicator'], + ['†', '†', true, 'dagger'], + ['‡', '‡', true, 'double dagger'], +// alphabetical special chars + ['À', 'À', true, 'A - grave'], + ['Á', 'Á', true, 'A - acute'], + ['Â', 'Â', true, 'A - circumflex'], + ['Ã', 'Ã', true, 'A - tilde'], + ['Ä', 'Ä', true, 'A - diaeresis'], + ['Å', 'Å', true, 'A - ring above'], + ['Æ', 'Æ', true, 'ligature AE'], + ['Ç', 'Ç', true, 'C - cedilla'], + ['È', 'È', true, 'E - grave'], + ['É', 'É', true, 'E - acute'], + ['Ê', 'Ê', true, 'E - circumflex'], + ['Ë', 'Ë', true, 'E - diaeresis'], + ['Ì', 'Ì', true, 'I - grave'], + ['Í', 'Í', true, 'I - acute'], + ['Î', 'Î', true, 'I - circumflex'], + ['Ï', 'Ï', true, 'I - diaeresis'], + ['Ð', 'Ð', true, 'ETH'], + ['Ñ', 'Ñ', true, 'N - tilde'], + ['Ò', 'Ò', true, 'O - grave'], + ['Ó', 'Ó', true, 'O - acute'], + ['Ô', 'Ô', true, 'O - circumflex'], + ['Õ', 'Õ', true, 'O - tilde'], + ['Ö', 'Ö', true, 'O - diaeresis'], + ['Ø', 'Ø', true, 'O - slash'], + ['Œ', 'Œ', true, 'ligature OE'], + ['Š', 'Š', true, 'S - caron'], + ['Ù', 'Ù', true, 'U - grave'], + ['Ú', 'Ú', true, 'U - acute'], + ['Û', 'Û', true, 'U - circumflex'], + ['Ü', 'Ü', true, 'U - diaeresis'], + ['Ý', 'Ý', true, 'Y - acute'], + ['Ÿ', 'Ÿ', true, 'Y - diaeresis'], + ['Þ', 'Þ', true, 'THORN'], + ['à', 'à', true, 'a - grave'], + ['á', 'á', true, 'a - acute'], + ['â', 'â', true, 'a - circumflex'], + ['ã', 'ã', true, 'a - tilde'], + ['ä', 'ä', true, 'a - diaeresis'], + ['å', 'å', true, 'a - ring above'], + ['æ', 'æ', true, 'ligature ae'], + ['ç', 'ç', true, 'c - cedilla'], + ['è', 'è', true, 'e - grave'], + ['é', 'é', true, 'e - acute'], + ['ê', 'ê', true, 'e - circumflex'], + ['ë', 'ë', true, 'e - diaeresis'], + ['ì', 'ì', true, 'i - grave'], + ['í', 'í', true, 'i - acute'], + ['î', 'î', true, 'i - circumflex'], + ['ï', 'ï', true, 'i - diaeresis'], + ['ð', 'ð', true, 'eth'], + ['ñ', 'ñ', true, 'n - tilde'], + ['ò', 'ò', true, 'o - grave'], + ['ó', 'ó', true, 'o - acute'], + ['ô', 'ô', true, 'o - circumflex'], + ['õ', 'õ', true, 'o - tilde'], + ['ö', 'ö', true, 'o - diaeresis'], + ['ø', 'ø', true, 'o slash'], + ['œ', 'œ', true, 'ligature oe'], + ['š', 'š', true, 's - caron'], + ['ù', 'ù', true, 'u - grave'], + ['ú', 'ú', true, 'u - acute'], + ['û', 'û', true, 'u - circumflex'], + ['ü', 'ü', true, 'u - diaeresis'], + ['ý', 'ý', true, 'y - acute'], + ['þ', 'þ', true, 'thorn'], + ['ÿ', 'ÿ', true, 'y - diaeresis'], + ['Α', 'Α', true, 'Alpha'], + ['Β', 'Β', true, 'Beta'], + ['Γ', 'Γ', true, 'Gamma'], + ['Δ', 'Δ', true, 'Delta'], + ['Ε', 'Ε', true, 'Epsilon'], + ['Ζ', 'Ζ', true, 'Zeta'], + ['Η', 'Η', true, 'Eta'], + ['Θ', 'Θ', true, 'Theta'], + ['Ι', 'Ι', true, 'Iota'], + ['Κ', 'Κ', true, 'Kappa'], + ['Λ', 'Λ', true, 'Lambda'], + ['Μ', 'Μ', true, 'Mu'], + ['Ν', 'Ν', true, 'Nu'], + ['Ξ', 'Ξ', true, 'Xi'], + ['Ο', 'Ο', true, 'Omicron'], + ['Π', 'Π', true, 'Pi'], + ['Ρ', 'Ρ', true, 'Rho'], + ['Σ', 'Σ', true, 'Sigma'], + ['Τ', 'Τ', true, 'Tau'], + ['Υ', 'Υ', true, 'Upsilon'], + ['Φ', 'Φ', true, 'Phi'], + ['Χ', 'Χ', true, 'Chi'], + ['Ψ', 'Ψ', true, 'Psi'], + ['Ω', 'Ω', true, 'Omega'], + ['α', 'α', true, 'alpha'], + ['β', 'β', true, 'beta'], + ['γ', 'γ', true, 'gamma'], + ['δ', 'δ', true, 'delta'], + ['ε', 'ε', true, 'epsilon'], + ['ζ', 'ζ', true, 'zeta'], + ['η', 'η', true, 'eta'], + ['θ', 'θ', true, 'theta'], + ['ι', 'ι', true, 'iota'], + ['κ', 'κ', true, 'kappa'], + ['λ', 'λ', true, 'lambda'], + ['μ', 'μ', true, 'mu'], + ['ν', 'ν', true, 'nu'], + ['ξ', 'ξ', true, 'xi'], + ['ο', 'ο', true, 'omicron'], + ['π', 'π', true, 'pi'], + ['ρ', 'ρ', true, 'rho'], + ['ς', 'ς', true, 'final sigma'], + ['σ', 'σ', true, 'sigma'], + ['τ', 'τ', true, 'tau'], + ['υ', 'υ', true, 'upsilon'], + ['φ', 'φ', true, 'phi'], + ['χ', 'χ', true, 'chi'], + ['ψ', 'ψ', true, 'psi'], + ['ω', 'ω', true, 'omega'], +// symbols + ['ℵ', 'ℵ', false,'alef symbol'], + ['ϖ', 'ϖ', false,'pi symbol'], + ['ℜ', 'ℜ', false,'real part symbol'], + ['ϑ','ϑ', false,'theta symbol'], + ['ϒ', 'ϒ', false,'upsilon - hook symbol'], + ['℘', '℘', false,'Weierstrass p'], + ['ℑ', 'ℑ', false,'imaginary part'], +// arrows + ['←', '←', true, 'leftwards arrow'], + ['↑', '↑', true, 'upwards arrow'], + ['→', '→', true, 'rightwards arrow'], + ['↓', '↓', true, 'downwards arrow'], + ['↔', '↔', true, 'left right arrow'], + ['↵', '↵', false,'carriage return'], + ['⇐', '⇐', false,'leftwards double arrow'], + ['⇑', '⇑', false,'upwards double arrow'], + ['⇒', '⇒', false,'rightwards double arrow'], + ['⇓', '⇓', false,'downwards double arrow'], + ['⇔', '⇔', false,'left right double arrow'], + ['∴', '∴', false,'therefore'], + ['⊂', '⊂', false,'subset of'], + ['⊃', '⊃', false,'superset of'], + ['⊄', '⊄', false,'not a subset of'], + ['⊆', '⊆', false,'subset of or equal to'], + ['⊇', '⊇', false,'superset of or equal to'], + ['⊕', '⊕', false,'circled plus'], + ['⊗', '⊗', false,'circled times'], + ['⊥', '⊥', false,'perpendicular'], + ['⋅', '⋅', false,'dot operator'], + ['⌈', '⌈', false,'left ceiling'], + ['⌉', '⌉', false,'right ceiling'], + ['⌊', '⌊', false,'left floor'], + ['⌋', '⌋', false,'right floor'], + ['⟨', '〈', false,'left-pointing angle bracket'], + ['⟩', '〉', false,'right-pointing angle bracket'], + ['◊', '◊', true,'lozenge'], + ['♠', '♠', false,'black spade suit'], + ['♣', '♣', true, 'black club suit'], + ['♥', '♥', true, 'black heart suit'], + ['♦', '♦', true, 'black diamond suit'], + [' ', ' ', false,'en space'], + [' ', ' ', false,'em space'], + [' ', ' ', false,'thin space'], + ['‌', '‌', false,'zero width non-joiner'], + ['‍', '‍', false,'zero width joiner'], + ['‎', '‎', false,'left-to-right mark'], + ['‏', '‏', false,'right-to-left mark'], + ['­', '­', false,'soft hyphen'] +]; + +tinyMCEPopup.onInit.add(function() { + tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML()); +}); + +function renderCharMapHTML() { + var charsPerRow = 20, tdWidth=20, tdHeight=20, i; + var html = ''; + var cols=-1; + + for (i=0; i' + + '' + + charmap[i][1] + + ''; + if ((cols+1) % charsPerRow == 0) + html += ''; + } + } + + if (cols % charsPerRow > 0) { + var padd = charsPerRow - (cols % charsPerRow); + for (var i=0; i '; + } + + html += '
    '; + + return html; +} + +function insertChar(chr) { + tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';'); + + // Refocus in window + if (tinyMCEPopup.isWindow) + window.focus(); + + tinyMCEPopup.editor.focus(); + tinyMCEPopup.close(); +} + +function previewChar(codeA, codeB, codeN) { + var elmA = document.getElementById('codeA'); + var elmB = document.getElementById('codeB'); + var elmV = document.getElementById('codeV'); + var elmN = document.getElementById('codeN'); + + if (codeA=='#160;') { + elmV.innerHTML = '__'; + } else { + elmV.innerHTML = '&' + codeA; + } + + elmB.innerHTML = '&' + codeA; + elmA.innerHTML = '&' + codeB; + elmN.innerHTML = codeN; +} diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js new file mode 100644 index 0000000..c1a65db --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js @@ -0,0 +1,253 @@ +tinyMCEPopup.requireLangPack(); + +var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false; + +var colors = [ + "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", + "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", + "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff", + "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033", + "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399", + "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff", + "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333", + "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399", + "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff", + "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633", + "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699", + "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff", + "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633", + "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999", + "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff", + "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933", + "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999", + "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff", + "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33", + "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99", + "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff", + "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33", + "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99", + "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff", + "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33", + "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99", + "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff" +]; + +var named = { + '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige', + '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown', + '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue', + '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod', + '#A9A9A9':'DarkGray','#A9A9A9':'DarkGrey','#006400':'DarkGreen','#BDB76B':'DarkKhaki','#8B008B':'DarkMagenta','#556B2F':'DarkOliveGreen', + '#FF8C00':'Darkorange','#9932CC':'DarkOrchid','#8B0000':'DarkRed','#E9967A':'DarkSalmon','#8FBC8F':'DarkSeaGreen','#483D8B':'DarkSlateBlue', + '#2F4F4F':'DarkSlateGray','#2F4F4F':'DarkSlateGrey','#00CED1':'DarkTurquoise','#9400D3':'DarkViolet','#FF1493':'DeepPink','#00BFFF':'DeepSkyBlue', + '#696969':'DimGray','#696969':'DimGrey','#1E90FF':'DodgerBlue','#B22222':'FireBrick','#FFFAF0':'FloralWhite','#228B22':'ForestGreen', + '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'GhostWhite','#FFD700':'Gold','#DAA520':'GoldenRod','#808080':'Gray','#808080':'Grey', + '#008000':'Green','#ADFF2F':'GreenYellow','#F0FFF0':'HoneyDew','#FF69B4':'HotPink','#CD5C5C':'IndianRed','#4B0082':'Indigo','#FFFFF0':'Ivory', + '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'LavenderBlush','#7CFC00':'LawnGreen','#FFFACD':'LemonChiffon','#ADD8E6':'LightBlue', + '#F08080':'LightCoral','#E0FFFF':'LightCyan','#FAFAD2':'LightGoldenRodYellow','#D3D3D3':'LightGray','#D3D3D3':'LightGrey','#90EE90':'LightGreen', + '#FFB6C1':'LightPink','#FFA07A':'LightSalmon','#20B2AA':'LightSeaGreen','#87CEFA':'LightSkyBlue','#778899':'LightSlateGray','#778899':'LightSlateGrey', + '#B0C4DE':'LightSteelBlue','#FFFFE0':'LightYellow','#00FF00':'Lime','#32CD32':'LimeGreen','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon', + '#66CDAA':'MediumAquaMarine','#0000CD':'MediumBlue','#BA55D3':'MediumOrchid','#9370D8':'MediumPurple','#3CB371':'MediumSeaGreen','#7B68EE':'MediumSlateBlue', + '#00FA9A':'MediumSpringGreen','#48D1CC':'MediumTurquoise','#C71585':'MediumVioletRed','#191970':'MidnightBlue','#F5FFFA':'MintCream','#FFE4E1':'MistyRose','#FFE4B5':'Moccasin', + '#FFDEAD':'NavajoWhite','#000080':'Navy','#FDF5E6':'OldLace','#808000':'Olive','#6B8E23':'OliveDrab','#FFA500':'Orange','#FF4500':'OrangeRed','#DA70D6':'Orchid', + '#EEE8AA':'PaleGoldenRod','#98FB98':'PaleGreen','#AFEEEE':'PaleTurquoise','#D87093':'PaleVioletRed','#FFEFD5':'PapayaWhip','#FFDAB9':'PeachPuff', + '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'PowderBlue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'RosyBrown','#4169E1':'RoyalBlue', + '#8B4513':'SaddleBrown','#FA8072':'Salmon','#F4A460':'SandyBrown','#2E8B57':'SeaGreen','#FFF5EE':'SeaShell','#A0522D':'Sienna','#C0C0C0':'Silver', + '#87CEEB':'SkyBlue','#6A5ACD':'SlateBlue','#708090':'SlateGray','#708090':'SlateGrey','#FFFAFA':'Snow','#00FF7F':'SpringGreen', + '#4682B4':'SteelBlue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet', + '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'WhiteSmoke','#FFFF00':'Yellow','#9ACD32':'YellowGreen' +}; + +function init() { + var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')); + + tinyMCEPopup.resizeToInnerSize(); + + generatePicker(); + + if (inputColor) { + changeFinalColor(inputColor); + + col = convertHexToRGB(inputColor); + + if (col) + updateLight(col.r, col.g, col.b); + } +} + +function insertAction() { + var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func'); + + tinyMCEPopup.restoreSelection(); + + if (f) + f(color); + + tinyMCEPopup.close(); +} + +function showColor(color, name) { + if (name) + document.getElementById("colorname").innerHTML = name; + + document.getElementById("preview").style.backgroundColor = color; + document.getElementById("color").value = color.toLowerCase(); +} + +function convertRGBToHex(col) { + var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi"); + + if (!col) + return col; + + var rgb = col.replace(re, "$1,$2,$3").split(','); + if (rgb.length == 3) { + r = parseInt(rgb[0]).toString(16); + g = parseInt(rgb[1]).toString(16); + b = parseInt(rgb[2]).toString(16); + + r = r.length == 1 ? '0' + r : r; + g = g.length == 1 ? '0' + g : g; + b = b.length == 1 ? '0' + b : b; + + return "#" + r + g + b; + } + + return col; +} + +function convertHexToRGB(col) { + if (col.indexOf('#') != -1) { + col = col.replace(new RegExp('[^0-9A-F]', 'gi'), ''); + + r = parseInt(col.substring(0, 2), 16); + g = parseInt(col.substring(2, 4), 16); + b = parseInt(col.substring(4, 6), 16); + + return {r : r, g : g, b : b}; + } + + return null; +} + +function generatePicker() { + var el = document.getElementById('light'), h = '', i; + + for (i = 0; i < detail; i++){ + h += '
    '; + } + + el.innerHTML = h; +} + +function generateWebColors() { + var el = document.getElementById('webcolors'), h = '', i; + + if (el.className == 'generated') + return; + + h += '' + + ''; + + for (i=0; i' + + '' + + ''; + if ((i+1) % 18 == 0) + h += ''; + } + + h += '
    '; + + el.innerHTML = h; + el.className = 'generated'; +} + +function generateNamedColors() { + var el = document.getElementById('namedcolors'), h = '', n, v, i = 0; + + if (el.className == 'generated') + return; + + for (n in named) { + v = named[n]; + h += '' + } + + el.innerHTML = h; + el.className = 'generated'; +} + +function dechex(n) { + return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16); +} + +function computeColor(e) { + var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB; + + x = e.offsetX ? e.offsetX : (e.target ? e.clientX - e.target.x : 0); + y = e.offsetY ? e.offsetY : (e.target ? e.clientY - e.target.y : 0); + + partWidth = document.getElementById('colors').width / 6; + partDetail = detail / 2; + imHeight = document.getElementById('colors').height; + + r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255; + g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth); + b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth); + + coef = (imHeight - y) / imHeight; + r = 128 + (r - 128) * coef; + g = 128 + (g - 128) * coef; + b = 128 + (b - 128) * coef; + + changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b)); + updateLight(r, g, b); +} + +function updateLight(r, g, b) { + var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color; + + for (i=0; i=0) && (i'); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '180px'; + + e = ed.selection.getNode(); + + this.fillFileList('image_list', 'tinyMCEImageList'); + + if (e.nodeName == 'IMG') { + f.src.value = ed.dom.getAttrib(e, 'src'); + f.alt.value = ed.dom.getAttrib(e, 'alt'); + f.border.value = this.getAttrib(e, 'border'); + f.vspace.value = this.getAttrib(e, 'vspace'); + f.hspace.value = this.getAttrib(e, 'hspace'); + f.width.value = ed.dom.getAttrib(e, 'width'); + f.height.value = ed.dom.getAttrib(e, 'height'); + f.insert.value = ed.getLang('update'); + this.styleVal = ed.dom.getAttrib(e, 'style'); + selectByValue(f, 'image_list', f.src.value); + selectByValue(f, 'align', this.getAttrib(e, 'align')); + this.updateStyle(); + } + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + update : function() { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (!ed.settings.inline_styles) { + args = tinymce.extend(args, { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }); + } else + args.style = this.styleVal; + + tinymce.extend(args, { + src : f.src.value, + alt : f.alt.value, + width : f.width.value, + height : f.height.value + }); + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + updateStyle : function() { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0]; + + if (tinyMCEPopup.editor.settings.inline_styles) { + st = tinyMCEPopup.dom.parseStyle(this.styleVal); + + // Handle align + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') { + st['float'] = v; + delete st['vertical-align']; + } else { + st['vertical-align'] = v; + delete st['float']; + } + } else { + delete st['float']; + delete st['vertical-align']; + } + + // Handle border + v = f.border.value; + if (v || v == '0') { + if (v == '0') + st['border'] = '0'; + else + st['border'] = v + 'px solid black'; + } else + delete st['border']; + + // Handle hspace + v = f.hspace.value; + if (v) { + delete st['margin']; + st['margin-left'] = v + 'px'; + st['margin-right'] = v + 'px'; + } else { + delete st['margin-left']; + delete st['margin-right']; + } + + // Handle vspace + v = f.vspace.value; + if (v) { + delete st['margin']; + st['margin-top'] = v + 'px'; + st['margin-bottom'] = v + 'px'; + } else { + delete st['margin-top']; + delete st['margin-bottom']; + } + + // Merge + st = tinyMCEPopup.dom.parseStyle(dom.serializeStyle(st), 'img'); + this.styleVal = dom.serializeStyle(st, 'img'); + } + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.width.value = f.height.value = ""; + }, + + updateImageData : function() { + var f = document.forms[0], t = ImageDialog; + + if (f.width.value == "") + f.width.value = t.preloadImg.width; + + if (f.height.value == "") + f.height.value = t.preloadImg.height; + }, + + getImageData : function() { + var f = document.forms[0]; + + this.preloadImg = new Image(); + this.preloadImg.onload = this.updateImageData; + this.preloadImg.onerror = this.resetImageData; + this.preloadImg.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(f.src.value); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js new file mode 100644 index 0000000..73b9f59 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js @@ -0,0 +1,156 @@ +tinyMCEPopup.requireLangPack(); + +var LinkDialog = { + preInit : function() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser', 'href', 'file', 'theme_advanced_link'); + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '180px'; + + this.fillClassList('class_list'); + this.fillFileList('link_list', 'tinyMCELinkList'); + this.fillTargetList('target_list'); + + if (e = ed.dom.getParent(ed.selection.getNode(), 'A')) { + f.href.value = ed.dom.getAttrib(e, 'href'); + f.linktitle.value = ed.dom.getAttrib(e, 'title'); + f.insert.value = ed.getLang('update'); + selectByValue(f, 'link_list', f.href.value); + selectByValue(f, 'target_list', ed.dom.getAttrib(e, 'target')); + selectByValue(f, 'class_list', ed.dom.getAttrib(e, 'class')); + } + }, + + update : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor, e, b; + + tinyMCEPopup.restoreSelection(); + e = ed.dom.getParent(ed.selection.getNode(), 'A'); + + // Remove element if there is no href + if (!f.href.value) { + if (e) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + b = ed.selection.getBookmark(); + ed.dom.remove(e, 1); + ed.selection.moveToBookmark(b); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (e == null) { + ed.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + tinymce.each(ed.dom.select("a"), function(n) { + if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') { + e = n; + + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + }); + } else { + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + + // Don't move caret if selection was image + if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') { + ed.focus(); + ed.selection.select(e); + ed.selection.collapse(0); + tinyMCEPopup.storeSelection(); + } + + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, + + checkPrefix : function(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external'))) + n.value = 'http://' + n.value; + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillTargetList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v; + + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self'); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank'); + + if (v = tinyMCEPopup.getParam('theme_advanced_link_targets')) { + tinymce.each(v.split(','), function(v) { + v = v.split('='); + lst.options[lst.options.length] = new Option(v[0], v[1]); + }); + } + } +}; + +LinkDialog.preInit(); +tinyMCEPopup.onInit.add(LinkDialog.init, LinkDialog); diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js new file mode 100644 index 0000000..81063ec --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js @@ -0,0 +1,62 @@ +tinyMCEPopup.requireLangPack(); +tinyMCEPopup.onInit.add(onLoadInit); + +function saveContent() { + tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true}); + tinyMCEPopup.close(); +} + +function onLoadInit() { + tinyMCEPopup.resizeToInnerSize(); + + // Remove Gecko spellchecking + if (tinymce.isGecko) + document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck"); + + document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); + + if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) { + setWrap('soft'); + document.getElementById('wraped').checked = true; + } + + resizeInputs(); +} + +function setWrap(val) { + var v, n, s = document.getElementById('htmlSource'); + + s.wrap = val; + + if (!tinymce.isIE) { + v = s.value; + n = s.cloneNode(false); + n.setAttribute("wrap", val); + s.parentNode.replaceChild(n, s); + n.value = v; + } +} + +function toggleWordWrap(elm) { + if (elm.checked) + setWrap('soft'); + else + setWrap('off'); +} + +var wHeight=0, wWidth=0, owHeight=0, owWidth=0; + +function resizeInputs() { + var el = document.getElementById('htmlSource'); + + if (!tinymce.isIE) { + wHeight = self.innerHeight - 65; + wWidth = self.innerWidth - 16; + } else { + wHeight = document.body.clientHeight - 70; + wWidth = document.body.clientWidth - 16; + } + + el.style.height = Math.abs(wHeight) + 'px'; + el.style.width = Math.abs(wWidth) + 'px'; +} diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js new file mode 100644 index 0000000..52989e3 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js @@ -0,0 +1,62 @@ +tinyMCE.addI18n('en.advanced',{ +style_select:"Styles", +font_size:"Font size", +fontdefault:"Font family", +block:"Format", +paragraph:"Paragraph", +div:"Div", +address:"Address", +pre:"Preformatted", +h1:"Heading 1", +h2:"Heading 2", +h3:"Heading 3", +h4:"Heading 4", +h5:"Heading 5", +h6:"Heading 6", +blockquote:"Blockquote", +code:"Code", +samp:"Code sample", +dt:"Definition term ", +dd:"Definition description", +bold_desc:"Bold (Ctrl+B)", +italic_desc:"Italic (Ctrl+I)", +underline_desc:"Underline (Ctrl+U)", +striketrough_desc:"Strikethrough", +justifyleft_desc:"Align left", +justifycenter_desc:"Align center", +justifyright_desc:"Align right", +justifyfull_desc:"Align full", +bullist_desc:"Unordered list", +numlist_desc:"Ordered list", +outdent_desc:"Outdent", +indent_desc:"Indent", +undo_desc:"Undo (Ctrl+Z)", +redo_desc:"Redo (Ctrl+Y)", +link_desc:"Insert/edit link", +unlink_desc:"Unlink", +image_desc:"Insert/edit image", +cleanup_desc:"Cleanup messy code", +code_desc:"Edit HTML Source", +sub_desc:"Subscript", +sup_desc:"Superscript", +hr_desc:"Insert horizontal ruler", +removeformat_desc:"Remove formatting", +custom1_desc:"Your custom description here", +forecolor_desc:"Select text color", +backcolor_desc:"Select background color", +charmap_desc:"Insert custom character", +visualaid_desc:"Toggle guidelines/invisible elements", +anchor_desc:"Insert/edit anchor", +cut_desc:"Cut", +copy_desc:"Copy", +paste_desc:"Paste", +image_props_desc:"Image properties", +newdocument_desc:"New document", +help_desc:"Help", +blockquote_desc:"Blockquote", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\r\nDo you want more information about this issue?", +path:"Path", +newdocument:"Are you sure you want clear all contents?", +toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X", +more_colors:"More colors" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js b/js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js new file mode 100644 index 0000000..80e4941 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('en.advanced_dlg',{ +about_title:"About TinyMCE", +about_general:"About", +about_help:"Help", +about_license:"License", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Author", +about_version:"Version", +about_loaded:"Loaded plugins", +anchor_title:"Insert/edit anchor", +anchor_name:"Anchor name", +code_title:"HTML Source Editor", +code_wordwrap:"Word wrap", +colorpicker_title:"Select a color", +colorpicker_picker_tab:"Picker", +colorpicker_picker_title:"Color picker", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Palette colors", +colorpicker_named_tab:"Named", +colorpicker_named_title:"Named colors", +colorpicker_color:"Color:", +colorpicker_name:"Name:", +charmap_title:"Select custom character", +image_title:"Insert/edit image", +image_src:"Image URL", +image_alt:"Image description", +image_list:"Image list", +image_border:"Border", +image_dimensions:"Dimensions", +image_vspace:"Vertical space", +image_hspace:"Horizontal space", +image_align:"Alignment", +image_align_baseline:"Baseline", +image_align_top:"Top", +image_align_middle:"Middle", +image_align_bottom:"Bottom", +image_align_texttop:"Text top", +image_align_textbottom:"Text bottom", +image_align_left:"Left", +image_align_right:"Right", +link_title:"Insert/edit link", +link_url:"Link URL", +link_target:"Target", +link_target_same:"Open link in the same window", +link_target_blank:"Open link in a new window", +link_titlefield:"Title", +link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +link_list:"Link list" +}); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/link.htm b/js/tinymce/jscripts/tiny_mce/themes/advanced/link.htm new file mode 100644 index 0000000..22627cc --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/link.htm @@ -0,0 +1,58 @@ + + + + {#advanced_dlg.link_title} + + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    +
    +
    + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css new file mode 100644 index 0000000..dd8fb95 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css @@ -0,0 +1,36 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat 0 0;} +span.mceItemNbsp {background: #DDD} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css new file mode 100644 index 0000000..1f5598c --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css @@ -0,0 +1,117 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(img/buttons.png) 0 -52px} +#cancel {background:url(img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} +#colorpicker #picker_panel fieldset {margin:auto;width:325px;} diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png new file mode 100644 index 0000000000000000000000000000000000000000..7dd58418ba7cfe58ae7efdf174e0b223fe3aa6a0 GIT binary patch literal 3274 zcmV;*3^ntKP)vhvWz=ElHVTU+(h$oTm7rnFw= z#lG_L@z>Yab%+@B(Z}@j@}#p|h#d-Ha21r3lI-j0?ajsc`T6PS=IZI^?Ca|2$-?Z+ z#H%L@czAgD`1gZ@gX+q{=f}bK_x5aTZ1(o``1trpNJ!-4;q&tH-P_pe%f#ZsyXeTl z;^5vYDk=vD2k`Ll^6~KO%foAHYuvlE`uh6h#J%Up!SnO-^YZcM$G_phy57FF>B_@2 zG&J}3_vhy1;NIKl=jBRDN&x`@?dHyV<$1d3kwydU{JsOZD~j?##m9zqnmp zU4)q(-rU*i>gdkR%iP-6>Bzt4<>Tby;C6O)g+u7Fi^Yd9*S@7=d<>TRzqB->R^6~NS=;q{L zU|{$5_HJ%&j-5pI_VnZ97cymWMQsi>#$@a~zJm+b24>*?s`Kw_>-YEd@9ysC=jQ6jz~|-U_V)Jf?d;9X z&BMdN$uR=*^77r?-S6-3%uUYo000UBNklbM`ydMEin*+}whKg169D1bTAel#7r%w?GyUy@b*pMzXSyzY?h@ z3-N}8g51;~G~P<{m+Z|*(~X5P1-aeb(_^{eT^B}ch?tY zrBh#z)8LR*SPxv0!r@BdYYB7ULp;eMaut}B_J#FVuVkeMSfGbo7?foJiWR%d&AM{+ zs^x08)P*FXmS8r^_C58*7PqCixUdj?MS6NHS?Eksi!D8XyhZr=Ul1r3RCu*V{soi3 zzJ^?Tvstfq>vehyT!DW8#RRvmM-f(7XmRUwdY!u(w$X#+dUw5Iw6NIiz9Kb&!jyfs zz7wIdNc;t;*LC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?AD{>m zABo%u27~f$#FXoiNTioa2Ms=s%z!aWFqu9F$&75jxYE{k<3?K~{tMssI3ADuf;JP4 z^6_{t&ItyUDPPCq@sE<}z@RA-p9y05jX*pem=#tQMf;`syXaAiOwI5-e>6Td^_UkR zVfopVjqHO&pbPeEGRaR(Ju{`8e?{Fe8htkP5OfcsHZZu(FW;SCB7e1)VzJe`-~MS^ z`S$K=EQakbUxL@k{7TNYvN8{^lNazhajyS(k}%djNZ!ZSjt{oC501Tn!wJH>z+uAs z*P#3G`Ja68Ud1PYo)nG&HZjU$oynf$VXWmLfl4;LhW7;=BP>X*f$Q?+>3y zm6jmg29B0i2HM2L?pADHyD$O!GO&h3IxI^|O#`aZI25KttkOis1efk`Zb7u4IESjV z4GwmPfid_p&J9l1GOSaja&pS)3G6@e;EDw5## zNmZJ(A5x{!DLc>`uo9qQq30%Q$+e$2XEbV!Mk8BEAO(yeX`~ckG*oGzF(xS|s?tzX z%ciO{SeVhsiAp?Owtw%KkyL4{1iE9DT0xu2LTswiQqfSQv4X&28CfHD>^<3DrR5Qn zM&rb#1uB*H2Qg`m?Z6qRrzi3 zK~m{Taw4qO??+<1JSSX0g+08D{Wid_tT+UljgqS;38RfbrBcNa-eyay(q#K%1L#KK z>dR(KRcXA#u|<{Ue^Zs_ci2wJRgc#17&s=|3t(>xARK=DOyDXl5HN18(zIB$Rh1U7 z$wd$E2n1yNBLnDG`R#UxEdU3Uh2ZUW9_OT2X%4&H?%$$HbJ%S}4J)jEB<5wG8q|kKzxu41Cw-5|H{*E`4`XOxxoD9Y}F^Z SLTQbO*E^TJI;F+RU=09Vu@yA{ literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif new file mode 100644 index 0000000000000000000000000000000000000000..adfdddccd7cac62a17d68873fa53c248bff8351a GIT binary patch literal 70 zcmZ?wbhEHb6k!lyXkcUjg8%>j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Yj?QOwElp;mJmC5Q-Cu; z_j9olaxZtLLYY(*z>8E>q2uLahjEinHmgPzzFu(iu#W2aZ97xl03at>J=w%BI-jLfSG(1)qZm4EQ@^MeoM-{P7PPn*+hB6S1 z$6~RD-3$-s+N*89cF6q2kVv<3}ah#beYOWC@IP(&*Fr{z^Yi3P$4r(ZGr z)LJF7oQl!zI{TMQ(fsKo!tIoeOG1zRGaRJrhbmuC^H&Rg9vB#CEfRTR*&u7{OoEkR zisJ4~`?qx@K&Ov{mR2rkWD{lJJP~%dl_vXhPp>GK^6)dI=NKe!Y;5r9KQ2;wbv^6o zx~UXDXe31|FqG;sSD^m@>ETfDG?r~%54#7pMLIsno7!iB*^92MAdyRSUZKnXfTWvC zmN5l+Zdc5_;G)~x+w*ht^L0KBh!$vPeSIgLKQl*};uL*IDC3GQE7XVlnZ)^r^K*2f z)wjw-LL43K?QLT2Z0OJ&eL~W=LL>KN#t+`8kAv^FLW{O$SADOL$LgBUAr8DuI?13F zZ~WG2$@6E|bSa@(lZRFnPAdXpX&kx^yzwD8gVUM{gcm-y*j~Sp=vj}I=&@NHi=o#M zz{qI+6h3S+Y(gjcGf4Z<-c$`;k6}0mXrlzg?Cnx|AG$`R^}5z)Wi1%XK^yq3j@M1O zxw)sJ&x?s2dc$q$M+xY{hKhXJvDP!VSq^+7 zK&?R^^LjkaF&C#6}U3!=r%%BB}_0cs!R4XTDW0&iQR%Q6@v0$p`QJ2%{H zgKg&rYinyWmanw^A6i?jSCcxWg6dT6^XeP1(R-DC3dvVF-5`_qzXBjm0c$D&qniSn R!Sp}^Mt9BhYjvGt{|88cricIl literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png new file mode 100644 index 0000000000000000000000000000000000000000..8996c7493e8a58c9c40845cbe8abdc3e6730716d GIT binary patch literal 3736 zcmV;J4rlR+P)KLZ*U+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!y^a9vbgF8avwNRNI6?R_xcWD=lsNK`)oC{XE_1H47NP>Y@&~8_J8U8J9{vFU zaP8Kjt$p*SAL^5fKL#$m)&YR~8wE(E1t_M@-d$N4PclpTv(-N;ISMKwaxkx7!L@h) z?Ofv@=u{EZUkCL!fwc{Yb$ys~>ThPh>-m8-eczl@e;u@L&NuaSNK0aRs52VW1Ma=! zW`6IzQ`|$`4H1F0bD)atgv*kf_TDsm_bxeM`GEfvi4`EMXxeA*;pX*U0iV6+){Bk+ z%x6ReTe}PSOr2szl;!Ry`!)GE+Z)6|z#gj^AWExl?*DF~j;SAfiH08s_s-@COXCse zt1K&4O)3x&A>UQ0%;Mqbl!n9UBEXfN+*(&e#D=3fmi?ZrZcfuxmO$jOUxm5?aMX7! zfjl>t#TnF+1%XC-2r6=Uu4xg9gQtKvc9uisyY6kqWefa}R)j}lGU^Bi!vc^> z9-S($V$V6bv=SaqzQ4o2%)s%DcQ3_4T)pHJ_8n&Rr~9ROG-5#LxX)wLf6NO|fq`uOj7mdgJI0H2v4wf~~Kng9R* M07*qoM6N<$f@g#ZbN~PV literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css new file mode 100644 index 0000000..52f5760 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.o2k7Skin table, .o2k7Skin tbody, .o2k7Skin a, .o2k7Skin img, .o2k7Skin tr, .o2k7Skin div, .o2k7Skin td, .o2k7Skin iframe, .o2k7Skin span, .o2k7Skin *, .o2k7Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.o2k7Skin a:hover, .o2k7Skin a:link, .o2k7Skin a:visited, .o2k7Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.o2k7Skin table td {vertical-align:middle} + +/* Containers */ +.o2k7Skin table {background:#E5EFFD} +.o2k7Skin iframe {display:block; background:#FFF} +.o2k7Skin .mceToolbar {height:26px} + +/* External */ +.o2k7Skin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +.o2k7Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.o2k7Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.o2k7Skin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +.o2k7Skin table.mceToolbar, .o2k7Skin tr.mceFirst .mceToolbar tr td, .o2k7Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.o2k7Skin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.o2k7Skin .mceStatusbar div {float:left; padding:2px} +.o2k7Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.o2k7Skin .mceStatusbar a:hover {text-decoration:underline} +.o2k7Skin table.mceToolbar {margin-left:3px} +.o2k7Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.o2k7Skin .mceToolbar td.mceFirst span {margin:0} +.o2k7Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7Skin .mceToolbar .mceToolbarEndListBox span, .o2k7Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.o2k7Skin span.mceIcon, .o2k7Skin img.mceIcon {display:block; width:20px; height:20px} +.o2k7Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.o2k7Skin td.mceCenter {text-align:center;} +.o2k7Skin td.mceCenter table {margin:0 auto; text-align:left;} +.o2k7Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.o2k7Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7Skin a.mceButton span, .o2k7Skin a.mceButton img {margin-left:1px} +.o2k7Skin .mceOldBoxModel a.mceButton span, .o2k7Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.o2k7Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7Skin a.mceButtonActive, .o2k7Skin a.mceButtonSelected {background-position:0 -44px} +.o2k7Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceButtonLabeled {width:auto} +.o2k7Skin .mceButtonLabeled span.mceIcon {float:left} +.o2k7Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.o2k7Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.o2k7Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.o2k7Skin .mceListBox {margin-left:3px} +.o2k7Skin .mceListBox, .o2k7Skin .mceListBox a {display:block} +.o2k7Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.o2k7Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.o2k7Skin table.mceListBoxEnabled:hover .mceText, .o2k7Skin .mceListBoxHover .mceText, .o2k7Skin .mceListBoxSelected .mceText {background:#FFF} +.o2k7Skin table.mceListBoxEnabled:hover .mceOpen, .o2k7Skin .mceListBoxHover .mceOpen, .o2k7Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.o2k7Skin .mceListBoxDisabled .mceText {color:gray} +.o2k7Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.o2k7Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.o2k7Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.o2k7Skin .mceSplitButton, .o2k7Skin .mceSplitButton a, .o2k7Skin .mceSplitButton span {display:block; height:22px} +.o2k7Skin .mceSplitButton {background:url(img/button_bg.png)} +.o2k7Skin .mceSplitButton a.mceAction {width:22px} +.o2k7Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.o2k7Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.o2k7Skin .mceSplitButton span.mceOpen {display:none} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceAction, .o2k7Skin .mceSplitButtonHover a.mceAction, .o2k7Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceOpen, .o2k7Skin .mceSplitButtonHover a.mceOpen, .o2k7Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.o2k7Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.o2k7Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.o2k7Skin .mceColorSplitMenu td {padding:2px} +.o2k7Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.o2k7Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.o2k7Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.o2k7Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.o2k7Skin .mce_forecolor span.mceAction, .o2k7Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.o2k7Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +.o2k7Skin .mceNoIcons span.mceIcon {width:0;} +.o2k7Skin .mceNoIcons a .mceText {padding-left:10px} +.o2k7Skin .mceMenu table {background:#FFF} +.o2k7Skin .mceMenu a, .o2k7Skin .mceMenu span, .o2k7Skin .mceMenu {display:block} +.o2k7Skin .mceMenu td {height:20px} +.o2k7Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.o2k7Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.o2k7Skin .mceMenu span.mceText, .o2k7Skin .mceMenu .mcePreview {font-size:11px} +.o2k7Skin .mceMenu pre.mceText {font-family:Monospace} +.o2k7Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.o2k7Skin .mceMenu .mceMenuItemEnabled a:hover, .o2k7Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.o2k7Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.o2k7Skin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.o2k7Skin .mceMenuItemDisabled .mceText {color:#888} +.o2k7Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.o2k7Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.o2k7Skin .mceMenu span.mceMenuLine {display:none} +.o2k7Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.o2k7Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.o2k7Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.o2k7Skin .mce_formatPreview a {font-size:10px} +.o2k7Skin .mce_p span.mceText {} +.o2k7Skin .mce_address span.mceText {font-style:italic} +.o2k7Skin .mce_pre span.mceText {font-family:monospace} +.o2k7Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.o2k7Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.o2k7Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.o2k7Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.o2k7Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.o2k7Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.o2k7Skin span.mce_bold {background-position:0 0} +.o2k7Skin span.mce_italic {background-position:-60px 0} +.o2k7Skin span.mce_underline {background-position:-140px 0} +.o2k7Skin span.mce_strikethrough {background-position:-120px 0} +.o2k7Skin span.mce_undo {background-position:-160px 0} +.o2k7Skin span.mce_redo {background-position:-100px 0} +.o2k7Skin span.mce_cleanup {background-position:-40px 0} +.o2k7Skin span.mce_bullist {background-position:-20px 0} +.o2k7Skin span.mce_numlist {background-position:-80px 0} +.o2k7Skin span.mce_justifyleft {background-position:-460px 0} +.o2k7Skin span.mce_justifyright {background-position:-480px 0} +.o2k7Skin span.mce_justifycenter {background-position:-420px 0} +.o2k7Skin span.mce_justifyfull {background-position:-440px 0} +.o2k7Skin span.mce_anchor {background-position:-200px 0} +.o2k7Skin span.mce_indent {background-position:-400px 0} +.o2k7Skin span.mce_outdent {background-position:-540px 0} +.o2k7Skin span.mce_link {background-position:-500px 0} +.o2k7Skin span.mce_unlink {background-position:-640px 0} +.o2k7Skin span.mce_sub {background-position:-600px 0} +.o2k7Skin span.mce_sup {background-position:-620px 0} +.o2k7Skin span.mce_removeformat {background-position:-580px 0} +.o2k7Skin span.mce_newdocument {background-position:-520px 0} +.o2k7Skin span.mce_image {background-position:-380px 0} +.o2k7Skin span.mce_help {background-position:-340px 0} +.o2k7Skin span.mce_code {background-position:-260px 0} +.o2k7Skin span.mce_hr {background-position:-360px 0} +.o2k7Skin span.mce_visualaid {background-position:-660px 0} +.o2k7Skin span.mce_charmap {background-position:-240px 0} +.o2k7Skin span.mce_paste {background-position:-560px 0} +.o2k7Skin span.mce_copy {background-position:-700px 0} +.o2k7Skin span.mce_cut {background-position:-680px 0} +.o2k7Skin span.mce_blockquote {background-position:-220px 0} +.o2k7Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.o2k7Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.o2k7Skin span.mce_forecolorpicker {background-position:-720px 0} +.o2k7Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.o2k7Skin span.mce_advhr {background-position:-0px -20px} +.o2k7Skin span.mce_ltr {background-position:-20px -20px} +.o2k7Skin span.mce_rtl {background-position:-40px -20px} +.o2k7Skin span.mce_emotions {background-position:-60px -20px} +.o2k7Skin span.mce_fullpage {background-position:-80px -20px} +.o2k7Skin span.mce_fullscreen {background-position:-100px -20px} +.o2k7Skin span.mce_iespell {background-position:-120px -20px} +.o2k7Skin span.mce_insertdate {background-position:-140px -20px} +.o2k7Skin span.mce_inserttime {background-position:-160px -20px} +.o2k7Skin span.mce_absolute {background-position:-180px -20px} +.o2k7Skin span.mce_backward {background-position:-200px -20px} +.o2k7Skin span.mce_forward {background-position:-220px -20px} +.o2k7Skin span.mce_insert_layer {background-position:-240px -20px} +.o2k7Skin span.mce_insertlayer {background-position:-260px -20px} +.o2k7Skin span.mce_movebackward {background-position:-280px -20px} +.o2k7Skin span.mce_moveforward {background-position:-300px -20px} +.o2k7Skin span.mce_media {background-position:-320px -20px} +.o2k7Skin span.mce_nonbreaking {background-position:-340px -20px} +.o2k7Skin span.mce_pastetext {background-position:-360px -20px} +.o2k7Skin span.mce_pasteword {background-position:-380px -20px} +.o2k7Skin span.mce_selectall {background-position:-400px -20px} +.o2k7Skin span.mce_preview {background-position:-420px -20px} +.o2k7Skin span.mce_print {background-position:-440px -20px} +.o2k7Skin span.mce_cancel {background-position:-460px -20px} +.o2k7Skin span.mce_save {background-position:-480px -20px} +.o2k7Skin span.mce_replace {background-position:-500px -20px} +.o2k7Skin span.mce_search {background-position:-520px -20px} +.o2k7Skin span.mce_styleprops {background-position:-560px -20px} +.o2k7Skin span.mce_table {background-position:-580px -20px} +.o2k7Skin span.mce_cell_props {background-position:-600px -20px} +.o2k7Skin span.mce_delete_table {background-position:-620px -20px} +.o2k7Skin span.mce_delete_col {background-position:-640px -20px} +.o2k7Skin span.mce_delete_row {background-position:-660px -20px} +.o2k7Skin span.mce_col_after {background-position:-680px -20px} +.o2k7Skin span.mce_col_before {background-position:-700px -20px} +.o2k7Skin span.mce_row_after {background-position:-720px -20px} +.o2k7Skin span.mce_row_before {background-position:-740px -20px} +.o2k7Skin span.mce_merge_cells {background-position:-760px -20px} +.o2k7Skin span.mce_table_props {background-position:-980px -20px} +.o2k7Skin span.mce_row_props {background-position:-780px -20px} +.o2k7Skin span.mce_split_cells {background-position:-800px -20px} +.o2k7Skin span.mce_template {background-position:-820px -20px} +.o2k7Skin span.mce_visualchars {background-position:-840px -20px} +.o2k7Skin span.mce_abbr {background-position:-860px -20px} +.o2k7Skin span.mce_acronym {background-position:-880px -20px} +.o2k7Skin span.mce_attribs {background-position:-900px -20px} +.o2k7Skin span.mce_cite {background-position:-920px -20px} +.o2k7Skin span.mce_del {background-position:-940px -20px} +.o2k7Skin span.mce_ins {background-position:-960px -20px} +.o2k7Skin span.mce_pagebreak {background-position:0 -40px} +.o2k7Skin span.mce_restoredraft {background-position:-20px -40px} +.o2k7Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css new file mode 100644 index 0000000..81dbfe4 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css @@ -0,0 +1,8 @@ +/* Black */ +.o2k7SkinBlack .mceToolbar .mceToolbarStart span, .o2k7SkinBlack .mceToolbar .mceToolbarEnd span, .o2k7SkinBlack .mceButton, .o2k7SkinBlack .mceSplitButton, .o2k7SkinBlack .mceSeparator, .o2k7SkinBlack .mceSplitButton a.mceOpen, .o2k7SkinBlack .mceListBox a.mceOpen {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack table, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack .mceMenuItemTitle span.mceText, .o2k7SkinBlack .mceStatusbar div, .o2k7SkinBlack .mceStatusbar span, .o2k7SkinBlack .mceStatusbar a {background:#535353; color:#FFF} +.o2k7SkinBlack table.mceListBoxEnabled .mceText, o2k7SkinBlack .mceListBox .mceText {background:#FFF; border:1px solid #CBCFD4; border-bottom-color:#989FA9; border-right:0} +.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText, .o2k7SkinBlack .mceListBoxHover .mceText, .o2k7SkinBlack .mceListBoxSelected .mceText {background:#FFF; border:1px solid #FFBD69; border-right:0} +.o2k7SkinBlack .mceExternalToolbar, .o2k7SkinBlack .mceListBox .mceText, .o2k7SkinBlack div.mceMenu, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceFirst td, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceLast td, .o2k7SkinBlack .mceIframeContainer {border-color: #535353;} +.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction, .o2k7SkinBlack .mceSplitButtonHover a.mceAction, .o2k7SkinBlack .mceSplitButtonSelected {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover, .o2k7SkinBlack .mceMenu .mceMenuItemActive {background-color:#FFE7A1} \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css new file mode 100644 index 0000000..e8ae844 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css @@ -0,0 +1,5 @@ +/* Silver */ +.o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)} +.o2k7SkinSilver table, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee} +.o2k7SkinSilver .mceListBox .mceText {background:#FFF} +.o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb} diff --git a/js/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm b/js/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm new file mode 100644 index 0000000..78033fd --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm @@ -0,0 +1,25 @@ + + + {#advanced_dlg.code_title} + + + + +
    +
    {#advanced_dlg.code_title}
    + +
    + +
    + +
    + + + +
    + + +
    +
    + + diff --git a/js/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js b/js/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js new file mode 100644 index 0000000..ed89abc --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js @@ -0,0 +1 @@ +(function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})});c.dom.loadCSS(d+"/skins/"+f.skin+"/content.css")});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js b/js/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js new file mode 100644 index 0000000..ec9e963 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/simple/editor_template_src.js @@ -0,0 +1,85 @@ +/** + * editor_template_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM; + + // Tell it to load theme specific language pack(s) + tinymce.ThemeManager.requireLangPack('simple'); + + tinymce.create('tinymce.themes.SimpleTheme', { + init : function(ed, url) { + var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings; + + t.editor = ed; + + ed.onInit.add(function() { + ed.onNodeChange.add(function(ed, cm) { + tinymce.each(states, function(c) { + cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c)); + }); + }); + + ed.dom.loadCSS(url + "/skins/" + s.skin + "/content.css"); + }); + + DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css"); + }, + + renderUI : function(o) { + var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc; + + n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n); + n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'}); + n = tb = DOM.add(n, 'tbody'); + + // Create iframe container + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'}); + + // Create toolbar container + n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'}); + + // Create toolbar + tb = t.toolbar = cf.createToolbar("tools1"); + tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'})); + tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'})); + tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'})); + tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'})); + tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'})); + tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'})); + tb.renderTo(n); + + return { + iframeContainer : ic, + editorContainer : ed.id + '_container', + sizeContainer : sc, + deltaHeight : -20 + }; + }, + + getInfo : function() { + return { + longname : 'Simple theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + } + }); + + tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme); +})(); \ No newline at end of file diff --git a/js/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif b/js/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif new file mode 100644 index 0000000000000000000000000000000000000000..16af141ff0eea376a889b1e8d28e9c1cacaaab16 GIT binary patch literal 1440 zcmV;R1z-9{Nk%w1VaNa!0QUd@Ib*`7v&H}b0P*i`B{WZ*I4YI8{iDPCZ*XyWj;?N! z&ooP8CcKTM%}ImAk&d@bUef&=iA% zhPA3sm56OYcjMRI^s}jof~E0n!SIozxs`y)bZpaM%~elOt(xIz_1F@`xREtxwxO@X zElsNLx;f_MIwnTOux@bk@5r<-;@s){f~fMSskU>S&vlpdmZGk)n^Ks084*pfMo5}`Y)@uBrt7q^ z_xb)XxI@^-XhLVQWPPfUtMQSg&Xb6UQhU2=S3pa1!Lhs1Kwz1)!P59aI6r5pthLM4 zE-ud4`aC>8zybolqcQ$sRq*)W>+kl^)!br%x2LJkVv+Dui1Oh7|6z>ag023Luhg%= z;=sbh)RP30t>V}2$H?fg=;-%zOTU8v0MO8l85I$+z}bYP#G9DS_#hs}n3hj*tissz zAwYQh{QX~VkH5&*9YTcu{{H^`{_yYcW|;u|{Qilm^upTyi?sd!nVG)6{{LrW`s5%! zQETJeu@Y0sB3Qy+jGVB@-BWO)C1U{h_4v@?@UEu*S8lPiucH6>|4vxO2|0#LaF@v0 z@ZaCy@c8hkxVXaB{z|fT@U~;Hv$d$T$J*xpqPpE8TH+G^0=vlI+KzIEuZN}B@UYO} z&dtoGp5{=vw)ErQRcDJbQgSxGf8JYL_`X^{uFH_9uqY`f`}_Of)zF}&w4mVd!0r05 zoM3>k!2kdMA^8LW00930EC2ui0LTCo000R80RIUbNU)&6g9sBUT*$DY!-o(fN}Ncs zqQ#3CGiuz(v7^V2AVW@EluM+^lPFV4B&kwhfCK?JZW}S8Lq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9lzz>a&*5*_D^tDmPctYVAn%wGT@|gM)()rq-0of86@S zpW$YCMNq)NG9$`LhM%M70yp9Oe27W3YD3n< zV?=oxR(68L_JS3@&Ti7CH)#u-q^YxN7b22`Or8ynbtoJ~GYNN6M}36p0QHtFr;sN(-`SjCLE z^;=~`c}nHAqS=&+**WhTU?amp#_E%kugb=cbTvjcRPdpJo_T*OLJ~E+ z!ioz{$NIZL-zNH7DRMHiRe7{kW|Putvu{sV*4mj)KM`Q#@$FtzjJr`TWl&lobv$g0 zKk0a>J=E{+oZtaA(2AEuGZ)*O-YVuT>7N}ZloloSuk}6lP(mKk+94U@XrwtnRBxAs zm^c~xa2y+x-0}0iUT9JlG=jv-)(>n)f262E!2209 VmjT$ODWe$zObpERYjs_s{s;8{A&me4 literal 0 HcmV?d00001 diff --git a/js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css b/js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css new file mode 100644 index 0000000..021d650 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/ui.css @@ -0,0 +1,35 @@ +/* Reset */ +.o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000} + +/* Containers */ +.o2k7SimpleSkin {position:relative} +.o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;} +.o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;} +.o2k7SimpleSkin .mceToolbar {height:26px;} + +/* Layout */ +.o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; } +.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px} +.o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} + +/* Button */ +.o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px} +.o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px} +.o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} + +/* Separator */ +.o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* Theme */ +.o2k7SimpleSkin span.mce_bold {background-position:0 0} +.o2k7SimpleSkin span.mce_italic {background-position:-60px 0} +.o2k7SimpleSkin span.mce_underline {background-position:-140px 0} +.o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0} +.o2k7SimpleSkin span.mce_undo {background-position:-160px 0} +.o2k7SimpleSkin span.mce_redo {background-position:-100px 0} +.o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0} +.o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0} +.o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0} diff --git a/js/tinymce/jscripts/tiny_mce/tiny_mce.js b/js/tinymce/jscripts/tiny_mce/tiny_mce.js new file mode 100644 index 0000000..14d3570 --- /dev/null +++ b/js/tinymce/jscripts/tiny_mce/tiny_mce.js @@ -0,0 +1 @@ +(function(c){var a=/^\s*|\s*$/g,d;var b={majorVersion:"3",minorVersion:"3.8",releaseDate:"2010-06-30",_init:function(){var r=this,o=document,m=navigator,f=m.userAgent,l,e,k,j,h,q;r.isOpera=c.opera&&opera.buildNumber;r.isWebKit=/WebKit/.test(f);r.isIE=!r.isWebKit&&!r.isOpera&&(/MSIE/gi).test(f)&&(/Explorer/gi).test(m.appName);r.isIE6=r.isIE&&/MSIE [56]/.test(f);r.isGecko=!r.isWebKit&&/Gecko/.test(f);r.isMac=f.indexOf("Mac")!=-1;r.isAir=/adobeair/i.test(f);r.isIDevice=/(iPad|iPhone)/.test(f);if(c.tinyMCEPreInit){r.suffix=tinyMCEPreInit.suffix;r.baseURL=tinyMCEPreInit.base;r.query=tinyMCEPreInit.query;return}r.suffix="";e=o.getElementsByTagName("base");for(l=0;l=c.length){for(e=0,b=g.length;e=c.length||g[e]!=c[e]){f=e+1;break}}}if(g.length=g.length||g[e]!=c[e]){f=e+1;break}}}if(f==1){return h}for(e=0,b=g.length-(f-1);e=0;c--){if(f[c].length==0||f[c]=="."){continue}if(f[c]==".."){b++;continue}if(b>0){b--;continue}h.push(f[c])}c=e.length-b;if(c<=0){g=h.reverse().join("/")}else{g=e.slice(0,c).join("/")+"/"+h.reverse().join("/")}if(g.indexOf("/")!==0){g="/"+g}if(d&&g.lastIndexOf("/")!==g.length-1){g+=d}return g},getURI:function(d){var c,b=this;if(!b.source||d){c="";if(!d){if(b.protocol){c+=b.protocol+"://"}if(b.userInfo){c+=b.userInfo+"@"}if(b.host){c+=b.host}if(b.port){c+=":"+b.port}}if(b.path){c+=b.path}if(b.query){c+="?"+b.query}if(b.anchor){c+="#"+b.anchor}b.source=c}return b.source}})})();(function(){var a=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(d){var b=this.get(d),c;if(b){a(b.split("&"),function(e){e=e.split("=");c=c||{};c[unescape(e[0])]=unescape(e[1])})}return c},setHash:function(j,b,g,f,i,c){var h="";a(b,function(e,d){h+=(!h?"":"&")+escape(d)+"="+escape(e)});this.set(j,h,g,f,i,c)},get:function(i){var h=document.cookie,g,f=i+"=",d;if(!h){return}d=h.indexOf("; "+f);if(d==-1){d=h.indexOf(f);if(d!=0){return null}}else{d+=2}g=h.indexOf(";",d);if(g==-1){g=h.length}return unescape(h.substring(d+f.length,g))},set:function(i,b,g,f,h,c){document.cookie=i+"="+escape(b)+((g)?"; expires="+g.toGMTString():"")+((f)?"; path="+escape(f):"")+((h)?"; domain="+h:"")+((c)?"; secure":"")},remove:function(e,b){var c=new Date();c.setTime(c.getTime()-1000);this.set(e,"",c,b,c)}})})();tinymce.create("static tinymce.util.JSON",{serialize:function(e){var c,a,d=tinymce.util.JSON.serialize,b;if(e==null){return"null"}b=typeof e;if(b=="string"){a="\bb\tt\nn\ff\rr\"\"''\\\\";return'"'+e.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(g,f){c=a.indexOf(f);if(c+1){return"\\"+a.charAt(c+1)}g=f.charCodeAt().toString(16);return"\\u"+"0000".substring(g.length)+g})+'"'}if(b=="object"){if(e.hasOwnProperty&&e instanceof Array){for(c=0,a="[";c0?",":"")+d(e[c])}return a+"]"}a="{";for(c in e){a+=typeof e[c]!="function"?(a.length>1?',"':'"')+c+'":'+d(e[c]):""}return a+"}"}return""+e},parse:function(s){try{return eval("("+s+")")}catch(ex){}}});tinymce.create("static tinymce.util.XHR",{send:function(g){var a,e,b=window,h=0;g.scope=g.scope||this;g.success_scope=g.success_scope||g.scope;g.error_scope=g.error_scope||g.scope;g.async=g.async===false?false:true;g.data=g.data||"";function d(i){a=0;try{a=new ActiveXObject(i)}catch(c){}return a}a=b.XMLHttpRequest?new XMLHttpRequest():d("Microsoft.XMLHTTP")||d("Msxml2.XMLHTTP");if(a){if(a.overrideMimeType){a.overrideMimeType(g.content_type)}a.open(g.type||(g.data?"POST":"GET"),g.url,g.async);if(g.content_type){a.setRequestHeader("Content-Type",g.content_type)}a.setRequestHeader("X-Requested-With","XMLHttpRequest");a.send(g.data);function f(){if(!g.async||a.readyState==4||h++>10000){if(g.success&&h<10000&&a.status==200){g.success.call(g.success_scope,""+a.responseText,a,g)}else{if(g.error){g.error.call(g.error_scope,h>10000?"TIMED_OUT":"GENERAL",a,g)}}a=null}else{b.setTimeout(f,10)}}if(!g.async){return f()}e=b.setTimeout(f,10)}}});(function(){var c=tinymce.extend,b=tinymce.util.JSON,a=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(d){this.settings=c({},d);this.count=0},send:function(f){var e=f.error,d=f.success;f=c(this.settings,f);f.success=function(h,g){h=b.parse(h);if(typeof(h)=="undefined"){h={error:"JSON Parse error."}}if(h.error){e.call(f.error_scope||f.scope,h.error,g)}else{d.call(f.success_scope||f.scope,h.result)}};f.error=function(h,g){e.call(f.error_scope||f.scope,h,g)};f.data=b.serialize({id:f.id||"c"+(this.count++),method:f.method,params:f.params});f.content_type="application/json";a.send(f)},"static":{sendRPC:function(d){return new tinymce.util.JSONRequest().send(d)}}})}());(function(m){var k=m.each,j=m.is,i=m.isWebKit,d=m.isIE,a=/^(H[1-6R]|P|DIV|ADDRESS|PRE|FORM|T(ABLE|BODY|HEAD|FOOT|H|R|D)|LI|OL|UL|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|MENU|ISINDEX|SAMP)$/,e=g("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),f=g("src,href,style,coords,shape"),c={"&":"&",'"':""","<":"<",">":">"},n=/[<>&\"]/g,b=/^([a-z0-9],?)+$/i,h=/<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)(\s*\/?)>/g,l=/(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g;function g(q){var p={},o;q=q.split(",");for(o=q.length;o>=0;o--){p[q[o]]=1}return p}m.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(u,q){var p=this,o;p.doc=u;p.win=window;p.files={};p.cssFlicker=false;p.counter=0;p.boxModel=!m.isIE||u.compatMode=="CSS1Compat";p.stdMode=u.documentMode===8;p.settings=q=m.extend({keep_values:false,hex_colors:1,process_html:1},q);if(m.isIE6){try{u.execCommand("BackgroundImageCache",false,true)}catch(r){p.cssFlicker=true}}if(q.valid_styles){p._styles={};k(q.valid_styles,function(t,s){p._styles[s]=m.explode(t)})}m.addUnload(p.destroy,p)},getRoot:function(){var o=this,p=o.settings;return(p&&o.get(p.root_element))||o.doc.body},getViewPort:function(p){var q,o;p=!p?this.win:p;q=p.document;o=this.boxModel?q.documentElement:q.body;return{x:p.pageXOffset||o.scrollLeft,y:p.pageYOffset||o.scrollTop,w:p.innerWidth||o.clientWidth,h:p.innerHeight||o.clientHeight}},getRect:function(s){var r,o=this,q;s=o.get(s);r=o.getPos(s);q=o.getSize(s);return{x:r.x,y:r.y,w:q.w,h:q.h}},getSize:function(r){var p=this,o,q;r=p.get(r);o=p.getStyle(r,"width");q=p.getStyle(r,"height");if(o.indexOf("px")===-1){o=0}if(q.indexOf("px")===-1){q=0}return{w:parseInt(o)||r.offsetWidth||r.clientWidth,h:parseInt(q)||r.offsetHeight||r.clientHeight}},getParent:function(q,p,o){return this.getParents(q,p,o,false)},getParents:function(z,v,s,y){var q=this,p,u=q.settings,x=[];z=q.get(z);y=y===undefined;if(u.strict_root){s=s||q.getRoot()}if(j(v,"string")){p=v;if(v==="*"){v=function(o){return o.nodeType==1}}else{v=function(o){return q.is(o,p)}}}while(z){if(z==s||!z.nodeType||z.nodeType===9){break}if(!v||v(z)){if(y){x.push(z)}else{return z}}z=z.parentNode}return y?x:null},get:function(o){var p;if(o&&this.doc&&typeof(o)=="string"){p=o;o=this.doc.getElementById(o);if(o&&o.id!==p){return this.doc.getElementsByName(p)[1]}}return o},getNext:function(p,o){return this._findSib(p,o,"nextSibling")},getPrev:function(p,o){return this._findSib(p,o,"previousSibling")},select:function(q,p){var o=this;return m.dom.Sizzle(q,o.get(p)||o.get(o.settings.root_element)||o.doc,[])},is:function(q,o){var p;if(q.length===undefined){if(o==="*"){return q.nodeType==1}if(b.test(o)){o=o.toLowerCase().split(/,/);q=q.nodeName.toLowerCase();for(p=o.length-1;p>=0;p--){if(o[p]==q){return true}}return false}}return m.dom.Sizzle.matches(o,q.nodeType?[q]:q).length>0},add:function(s,v,o,r,u){var q=this;return this.run(s,function(y){var x,t;x=j(v,"string")?q.doc.createElement(v):v;q.setAttribs(x,o);if(r){if(r.nodeType){x.appendChild(r)}else{q.setHTML(x,r)}}return !u?y.appendChild(x):x})},create:function(q,o,p){return this.add(this.doc.createElement(q),q,o,p,1)},createHTML:function(v,p,s){var u="",r=this,q;u+="<"+v;for(q in p){if(p.hasOwnProperty(q)){u+=" "+q+'="'+r.encode(p[q])+'"'}}if(m.is(s)){return u+">"+s+""}return u+" />"},remove:function(o,p){return this.run(o,function(r){var q,s;q=r.parentNode;if(!q){return null}if(p){while(s=r.firstChild){if(!m.isIE||s.nodeType!==3||s.nodeValue){q.insertBefore(s,r)}else{r.removeChild(s)}}}return q.removeChild(r)})},setStyle:function(r,o,p){var q=this;return q.run(r,function(v){var u,t;u=v.style;o=o.replace(/-(\D)/g,function(x,s){return s.toUpperCase()});if(q.pixelStyles.test(o)&&(m.is(p,"number")||/^[\-0-9\.]+$/.test(p))){p+="px"}switch(o){case"opacity":if(d){u.filter=p===""?"":"alpha(opacity="+(p*100)+")";if(!r.currentStyle||!r.currentStyle.hasLayout){u.display="inline-block"}}u[o]=u["-moz-opacity"]=u["-khtml-opacity"]=p||"";break;case"float":d?u.styleFloat=p:u.cssFloat=p;break;default:u[o]=p||""}if(q.settings.update_styles){q.setAttrib(v,"_mce_style")}})},getStyle:function(r,o,q){r=this.get(r);if(!r){return false}if(this.doc.defaultView&&q){o=o.replace(/[A-Z]/g,function(s){return"-"+s});try{return this.doc.defaultView.getComputedStyle(r,null).getPropertyValue(o)}catch(p){return null}}o=o.replace(/-(\D)/g,function(t,s){return s.toUpperCase()});if(o=="float"){o=d?"styleFloat":"cssFloat"}if(r.currentStyle&&q){return r.currentStyle[o]}return r.style[o]},setStyles:function(u,v){var q=this,r=q.settings,p;p=r.update_styles;r.update_styles=0;k(v,function(o,s){q.setStyle(u,s,o)});r.update_styles=p;if(r.update_styles){q.setAttrib(u,r.cssText)}},setAttrib:function(q,r,o){var p=this;if(!q||!r){return}if(p.settings.strict){r=r.toLowerCase()}return this.run(q,function(u){var t=p.settings;switch(r){case"style":if(!j(o,"string")){k(o,function(s,x){p.setStyle(u,x,s)});return}if(t.keep_values){if(o&&!p._isRes(o)){u.setAttribute("_mce_style",o,2)}else{u.removeAttribute("_mce_style",2)}}u.style.cssText=o;break;case"class":u.className=o||"";break;case"src":case"href":if(t.keep_values){if(t.url_converter){o=t.url_converter.call(t.url_converter_scope||p,o,r,u)}p.setAttrib(u,"_mce_"+r,o,2)}break;case"shape":u.setAttribute("_mce_style",o);break}if(j(o)&&o!==null&&o.length!==0){u.setAttribute(r,""+o,2)}else{u.removeAttribute(r,2)}})},setAttribs:function(q,r){var p=this;return this.run(q,function(o){k(r,function(s,t){p.setAttrib(o,t,s)})})},getAttrib:function(r,s,q){var o,p=this;r=p.get(r);if(!r||r.nodeType!==1){return false}if(!j(q)){q=""}if(/^(src|href|style|coords|shape)$/.test(s)){o=r.getAttribute("_mce_"+s);if(o){return o}}if(d&&p.props[s]){o=r[p.props[s]];o=o&&o.nodeValue?o.nodeValue:o}if(!o){o=r.getAttribute(s,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(s)){if(r[p.props[s]]===true&&o===""){return s}return o?s:""}if(r.nodeName==="FORM"&&r.getAttributeNode(s)){return r.getAttributeNode(s).nodeValue}if(s==="style"){o=o||r.style.cssText;if(o){o=p.serializeStyle(p.parseStyle(o),r.nodeName);if(p.settings.keep_values&&!p._isRes(o)){r.setAttribute("_mce_style",o)}}}if(i&&s==="class"&&o){o=o.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(d){switch(s){case"rowspan":case"colspan":if(o===1){o=""}break;case"size":if(o==="+0"||o===20||o===0){o=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(o===0){o=""}break;case"hspace":if(o===-1){o=""}break;case"maxlength":case"tabindex":if(o===32768||o===2147483647||o==="32768"){o=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(o===65535){return s}return q;case"shape":o=o.toLowerCase();break;default:if(s.indexOf("on")===0&&o){o=(""+o).replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1")}}}return(o!==undefined&&o!==null&&o!=="")?""+o:q},getPos:function(A,s){var p=this,o=0,z=0,u,v=p.doc,q;A=p.get(A);s=s||v.body;if(A){if(d&&!p.stdMode){A=A.getBoundingClientRect();u=p.boxModel?v.documentElement:v.body;o=p.getStyle(p.select("html")[0],"borderWidth");o=(o=="medium"||p.boxModel&&!p.isIE6)&&2||o;return{x:A.left+u.scrollLeft-o,y:A.top+u.scrollTop-o}}q=A;while(q&&q!=s&&q.nodeType){o+=q.offsetLeft||0;z+=q.offsetTop||0;q=q.offsetParent}q=A.parentNode;while(q&&q!=s&&q.nodeType){o-=q.scrollLeft||0;z-=q.scrollTop||0;q=q.parentNode}}return{x:o,y:z}},parseStyle:function(r){var u=this,v=u.settings,x={};if(!r){return x}function p(D,A,C){var z,B,o,y;z=x[D+"-top"+A];if(!z){return}B=x[D+"-right"+A];if(z!=B){return}o=x[D+"-bottom"+A];if(B!=o){return}y=x[D+"-left"+A];if(o!=y){return}x[C]=y;delete x[D+"-top"+A];delete x[D+"-right"+A];delete x[D+"-bottom"+A];delete x[D+"-left"+A]}function q(y,s,o,A){var z;z=x[s];if(!z){return}z=x[o];if(!z){return}z=x[A];if(!z){return}x[y]=x[s]+" "+x[o]+" "+x[A];delete x[s];delete x[o];delete x[A]}r=r.replace(/&(#?[a-z0-9]+);/g,"&$1_MCE_SEMI_");k(r.split(";"),function(s){var o,t=[];if(s){s=s.replace(/_MCE_SEMI_/g,";");s=s.replace(/url\([^\)]+\)/g,function(y){t.push(y);return"url("+t.length+")"});s=s.split(":");o=m.trim(s[1]);o=o.replace(/url\(([^\)]+)\)/g,function(z,y){return t[parseInt(y)-1]});o=o.replace(/rgb\([^\)]+\)/g,function(y){return u.toHex(y)});if(v.url_converter){o=o.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g,function(y,z){return"url("+v.url_converter.call(v.url_converter_scope||u,u.decode(z),"style",null)+")"})}x[m.trim(s[0]).toLowerCase()]=o}});p("border","","border");p("border","-width","border-width");p("border","-color","border-color");p("border","-style","border-style");p("padding","","padding");p("margin","","margin");q("border","border-width","border-style","border-color");if(d){if(x.border=="medium none"){x.border=""}}return x},serializeStyle:function(v,p){var q=this,r="";function u(s,o){if(o&&s){if(o.indexOf("-")===0){return}switch(o){case"font-weight":if(s==700){s="bold"}break;case"color":case"background-color":s=s.toLowerCase();break}r+=(r?" ":"")+o+": "+s+";"}}if(p&&q._styles){k(q._styles["*"],function(o){u(v[o],o)});k(q._styles[p.toLowerCase()],function(o){u(v[o],o)})}else{k(v,u)}return r},loadCSS:function(o){var q=this,r=q.doc,p;if(!o){o=""}p=q.select("head")[0];k(o.split(","),function(s){var t;if(q.files[s]){return}q.files[s]=true;t=q.create("link",{rel:"stylesheet",href:m._addVer(s)});if(d&&r.documentMode){t.onload=function(){r.recalc();t.onload=null}}p.appendChild(t)})},addClass:function(o,p){return this.run(o,function(q){var r;if(!p){return 0}if(this.hasClass(q,p)){return q.className}r=this.removeClass(q,p);return q.className=(r!=""?(r+" "):"")+p})},removeClass:function(q,r){var o=this,p;return o.run(q,function(t){var s;if(o.hasClass(t,r)){if(!p){p=new RegExp("(^|\\s+)"+r+"(\\s+|$)","g")}s=t.className.replace(p," ");s=m.trim(s!=" "?s:"");t.className=s;if(!s){t.removeAttribute("class");t.removeAttribute("className")}return s}return t.className})},hasClass:function(p,o){p=this.get(p);if(!p||!o){return false}return(" "+p.className+" ").indexOf(" "+o+" ")!==-1},show:function(o){return this.setStyle(o,"display","block")},hide:function(o){return this.setStyle(o,"display","none")},isHidden:function(o){o=this.get(o);return !o||o.style.display=="none"||this.getStyle(o,"display")=="none"},uniqueId:function(o){return(!o?"mce_":o)+(this.counter++)},setHTML:function(q,p){var o=this;return this.run(q,function(v){var r,t,s,z,u,r;p=o.processHTML(p);if(d){function y(){while(v.firstChild){v.firstChild.removeNode()}try{v.innerHTML="
    "+p;v.removeChild(v.firstChild)}catch(x){r=o.create("div");r.innerHTML="
    "+p;k(r.childNodes,function(B,A){if(A){v.appendChild(B)}})}}if(o.settings.fix_ie_paragraphs){p=p.replace(/

    <\/p>|]+)><\/p>|/gi,' 

    ')}y();if(o.settings.fix_ie_paragraphs){s=v.getElementsByTagName("p");for(t=s.length-1,r=0;t>=0;t--){z=s[t];if(!z.hasChildNodes()){if(!z._mce_keep){r=1;break}z.removeAttribute("_mce_keep")}}}if(r){p=p.replace(/

    ]+)>|

    /ig,'

    ');p=p.replace(/<\/p>/gi,"
    ");y();if(o.settings.fix_ie_paragraphs){s=v.getElementsByTagName("DIV");for(t=s.length-1;t>=0;t--){z=s[t];if(z._mce_tmp){u=o.doc.createElement("p");z.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi,function(A,x){var B;if(x!=="_mce_tmp"){B=z.getAttribute(x);if(!B&&x==="class"){B=z.className}u.setAttribute(x,B)}});for(r=0;r]+)\/>|/gi,"");if(q.keep_values){if(/)/g,"\n");t=t.replace(/^[\r\n]*|[\r\n]*$/g,"");t=t.replace(/^\s*(\/\/\s*|\]\]>|-->|\]\]-->)\s*$/g,"");return t}r=r.replace(/]+|)>([\s\S]*?)<\/script>/gi,function(s,x,t){if(!x){x=' type="text/javascript"'}x=x.replace(/src=\"([^\"]+)\"?/i,function(y,z){if(q.url_converter){z=p.encode(q.url_converter.call(q.url_converter_scope||p,p.decode(z),"src","script"))}return'_mce_src="'+z+'"'});if(m.trim(t)){v.push(o(t));t=""}return""+t+""});r=r.replace(/]+|)>([\s\S]*?)<\/style>/gi,function(s,x,t){if(t){v.push(o(t));t=""}return""+t+""});r=r.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(s,x,t){return""})}r=r.replace(//g,"");function u(s){return s.replace(h,function(y,z,x,t){return"<"+z+x.replace(l,function(B,A,E,D,C){var F;A=A.toLowerCase();E=E||D||C||"";if(e[A]){if(E==="false"||E==="0"){return}return A+'="'+A+'"'}if(f[A]&&x.indexOf("_mce_"+A)==-1){F=p.decode(E);if(q.url_converter&&(A=="src"||A=="href")){F=q.url_converter.call(q.url_converter_scope||p,F,A,z)}if(A=="style"){F=p.serializeStyle(p.parseStyle(F),A)}return A+'="'+E+'" _mce_'+A+'="'+p.encode(F)+'"'}return B})+t+">"})}r=u(r);r=r.replace(/MCE_SCRIPT:([0-9]+)/g,function(t,s){return v[s]})}return r},getOuterHTML:function(o){var p;o=this.get(o);if(!o){return null}if(o.outerHTML!==undefined){return o.outerHTML}p=(o.ownerDocument||this.doc).createElement("body");p.appendChild(o.cloneNode(true));return p.innerHTML},setOuterHTML:function(r,p,s){var o=this;function q(u,t,x){var y,v;v=x.createElement("body");v.innerHTML=t;y=v.lastChild;while(y){o.insertAfter(y.cloneNode(true),u);y=y.previousSibling}o.remove(u)}return this.run(r,function(u){u=o.get(u);if(u.nodeType==1){s=s||u.ownerDocument||o.doc;if(d){try{if(d&&u.nodeType==1){u.outerHTML=p}else{q(u,p,s)}}catch(t){q(u,p,s)}}else{q(u,p,s)}}})},decode:function(p){var q,r,o;if(/&[\w#]+;/.test(p)){q=this.doc.createElement("div");q.innerHTML=p;r=q.firstChild;o="";if(r){do{o+=r.nodeValue}while(r=r.nextSibling)}return o||p}return p},encode:function(o){return(""+o).replace(n,function(p){return c[p]})},insertAfter:function(o,p){p=this.get(p);return this.run(o,function(r){var q,s;q=p.parentNode;s=p.nextSibling;if(s){q.insertBefore(r,s)}else{q.appendChild(r)}return r})},isBlock:function(o){if(o.nodeType&&o.nodeType!==1){return false}o=o.nodeName||o;return a.test(o)},replace:function(s,r,p){var q=this;if(j(r,"array")){s=s.cloneNode(true)}return q.run(r,function(t){if(p){k(m.grep(t.childNodes),function(o){s.appendChild(o)})}return t.parentNode.replaceChild(s,t)})},rename:function(r,o){var q=this,p;if(r.nodeName!=o.toUpperCase()){p=q.create(o);k(q.getAttribs(r),function(s){q.setAttrib(p,s.nodeName,q.getAttrib(r,s.nodeName))});q.replace(p,r,1)}return p||r},findCommonAncestor:function(q,o){var r=q,p;while(r){p=o;while(p&&r!=p){p=p.parentNode}if(r==p){break}r=r.parentNode}if(!r&&q.ownerDocument){return q.ownerDocument.documentElement}return r},toHex:function(o){var q=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(o);function p(r){r=parseInt(r).toString(16);return r.length>1?r:"0"+r}if(q){o="#"+p(q[1])+p(q[2])+p(q[3]);return o}return o},getClasses:function(){var s=this,o=[],r,u={},v=s.settings.class_filter,q;if(s.classes){return s.classes}function x(t){k(t.imports,function(y){x(y)});k(t.cssRules||t.rules,function(y){switch(y.type||1){case 1:if(y.selectorText){k(y.selectorText.split(","),function(z){z=z.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(z)||!/\.[\w\-]+$/.test(z)){return}q=z;z=z.replace(/.*\.([a-z0-9_\-]+).*/i,"$1");if(v&&!(z=v(z,q))){return}if(!u[z]){o.push({"class":z});u[z]=1}})}break;case 3:x(y.styleSheet);break}})}try{k(s.doc.styleSheets,x)}catch(p){}if(o.length>0){s.classes=o}return o},run:function(u,r,q){var p=this,v;if(p.doc&&typeof(u)==="string"){u=p.get(u)}if(!u){return false}q=q||this;if(!u.nodeType&&(u.length||u.length===0)){v=[];k(u,function(s,o){if(s){if(typeof(s)=="string"){s=p.doc.getElementById(s)}v.push(r.call(q,s,o))}});return v}return r.call(q,u)},getAttribs:function(q){var p;q=this.get(q);if(!q){return[]}if(d){p=[];if(q.nodeName=="OBJECT"){return q.attributes}if(q.nodeName==="OPTION"&&this.getAttrib(q,"selected")){p.push({specified:1,nodeName:"selected"})}q.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(o){p.push({specified:1,nodeName:o})});return p}return q.attributes},destroy:function(p){var o=this;if(o.events){o.events.destroy()}o.win=o.doc=o.root=o.events=null;if(!p){m.removeUnload(o.destroy)}},createRng:function(){var o=this.doc;return o.createRange?o.createRange():new m.dom.Range(this)},nodeIndex:function(s,t){var o=0,q,r,p;if(s){for(q=s.nodeType,s=s.previousSibling,r=s;s;s=s.previousSibling){p=s.nodeType;if(t&&p==3){if(p==q||!s.nodeValue.length){continue}}o++;q=p}}return o},split:function(u,s,y){var z=this,o=z.createRng(),v,q,x;function p(A){var t,r=A.childNodes;if(A.nodeType==1&&A.getAttribute("_mce_type")=="bookmark"){return}for(t=r.length-1;t>=0;t--){p(r[t])}if(A.nodeType!=9){if(A.nodeType==3&&A.nodeValue.length>0){return}if(A.nodeType==1){r=A.childNodes;if(r.length==1&&r[0]&&r[0].nodeType==1&&r[0].getAttribute("_mce_type")=="bookmark"){A.parentNode.insertBefore(r[0],A)}if(r.length||/^(br|hr|input|img)$/i.test(A.nodeName)){return}}z.remove(A)}return A}if(u&&s){o.setStart(u.parentNode,z.nodeIndex(u));o.setEnd(s.parentNode,z.nodeIndex(s));v=o.extractContents();o=z.createRng();o.setStart(s.parentNode,z.nodeIndex(s)+1);o.setEnd(u.parentNode,z.nodeIndex(u)+1);q=o.extractContents();x=u.parentNode;x.insertBefore(p(v),u);if(y){x.replaceChild(y,s)}else{x.insertBefore(s,u)}x.insertBefore(p(q),u);z.remove(u);return y||s}},bind:function(s,o,r,q){var p=this;if(!p.events){p.events=new m.dom.EventUtils()}return p.events.add(s,o,r,q||this)},unbind:function(r,o,q){var p=this;if(!p.events){p.events=new m.dom.EventUtils()}return p.events.remove(r,o,q)},_findSib:function(r,o,p){var q=this,s=o;if(r){if(j(s,"string")){s=function(t){return q.is(t,o)}}for(r=r[p];r;r=r[p]){if(s(r)){return r}}}return null},_isRes:function(o){return/^(top|left|bottom|right|width|height)/i.test(o)||/;\s*(top|left|bottom|right|width|height)/i.test(o)}});m.DOM=new m.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(a){function b(c){var N=this,e=c.doc,S=0,E=1,j=2,D=true,R=false,U="startOffset",h="startContainer",P="endContainer",z="endOffset",k=tinymce.extend,n=c.nodeIndex;k(N,{startContainer:e,startOffset:0,endContainer:e,endOffset:0,collapsed:D,commonAncestorContainer:e,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:q,setEnd:s,setStartBefore:g,setStartAfter:I,setEndBefore:J,setEndAfter:u,collapse:A,selectNode:x,selectNodeContents:F,compareBoundaryPoints:v,deleteContents:p,extractContents:H,cloneContents:d,insertNode:C,surroundContents:M,cloneRange:K});function q(V,t){B(D,V,t)}function s(V,t){B(R,V,t)}function g(t){q(t.parentNode,n(t))}function I(t){q(t.parentNode,n(t)+1)}function J(t){s(t.parentNode,n(t))}function u(t){s(t.parentNode,n(t)+1)}function A(t){if(t){N[P]=N[h];N[z]=N[U]}else{N[h]=N[P];N[U]=N[z]}N.collapsed=D}function x(t){g(t);u(t)}function F(t){q(t,0);s(t,t.nodeType===1?t.childNodes.length:t.nodeValue.length)}function v(W,X){var Z=N[h],Y=N[U],V=N[P],t=N[z];if(W===0){return G(Z,Y,Z,Y)}if(W===1){return G(Z,Y,V,t)}if(W===2){return G(V,t,V,t)}if(W===3){return G(V,t,Z,Y)}}function p(){m(j)}function H(){return m(S)}function d(){return m(E)}function C(Y){var V=this[h],t=this[U],X,W;if((V.nodeType===3||V.nodeType===4)&&V.nodeValue){if(!t){V.parentNode.insertBefore(Y,V)}else{if(t>=V.nodeValue.length){c.insertAfter(Y,V)}else{X=V.splitText(t);V.parentNode.insertBefore(Y,X)}}}else{if(V.childNodes.length>0){W=V.childNodes[t]}if(W){V.insertBefore(Y,W)}else{V.appendChild(Y)}}}function M(V){var t=N.extractContents();N.insertNode(V);V.appendChild(t);N.selectNode(V)}function K(){return k(new b(c),{startContainer:N[h],startOffset:N[U],endContainer:N[P],endOffset:N[z],collapsed:N.collapsed,commonAncestorContainer:N.commonAncestorContainer})}function O(t,V){var W;if(t.nodeType==3){return t}if(V<0){return t}W=t.firstChild;while(W&&V>0){--V;W=W.nextSibling}if(W){return W}return t}function l(){return(N[h]==N[P]&&N[U]==N[z])}function G(X,Z,V,Y){var aa,W,t,ab,ad,ac;if(X==V){if(Z==Y){return 0}if(Z0){N.collapse(V)}}else{N.collapse(V)}N.collapsed=l();N.commonAncestorContainer=c.findCommonAncestor(N[h],N[P])}function m(ab){var aa,X=0,ad=0,V,Z,W,Y,t,ac;if(N[h]==N[P]){return f(ab)}for(aa=N[P],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[h]){return r(aa,ab)}++X}for(aa=N[h],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[P]){return T(aa,ab)}++ad}Z=ad-X;W=N[h];while(Z>0){W=W.parentNode;Z--}Y=N[P];while(Z<0){Y=Y.parentNode;Z++}for(t=W.parentNode,ac=Y.parentNode;t!=ac;t=t.parentNode,ac=ac.parentNode){W=t;Y=ac}return o(W,Y,ab)}function f(Z){var ab,Y,X,aa,t,W,V;if(Z!=j){ab=e.createDocumentFragment()}if(N[U]==N[z]){return ab}if(N[h].nodeType==3){Y=N[h].nodeValue;X=Y.substring(N[U],N[z]);if(Z!=E){N[h].deleteData(N[U],N[z]-N[U]);N.collapse(D)}if(Z==j){return}ab.appendChild(e.createTextNode(X));return ab}aa=O(N[h],N[U]);t=N[z]-N[U];while(t>0){W=aa.nextSibling;V=y(aa,Z);if(ab){ab.appendChild(V)}--t;aa=W}if(Z!=E){N.collapse(D)}return ab}function r(ab,Y){var aa,Z,V,t,X,W;if(Y!=j){aa=e.createDocumentFragment()}Z=i(ab,Y);if(aa){aa.appendChild(Z)}V=n(ab);t=V-N[U];if(t<=0){if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}Z=ab.previousSibling;while(t>0){X=Z.previousSibling;W=y(Z,Y);if(aa){aa.insertBefore(W,aa.firstChild)}--t;Z=X}if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}function T(Z,Y){var ab,V,aa,t,X,W;if(Y!=j){ab=e.createDocumentFragment()}aa=Q(Z,Y);if(ab){ab.appendChild(aa)}V=n(Z);++V;t=N[z]-V;aa=Z.nextSibling;while(t>0){X=aa.nextSibling;W=y(aa,Y);if(ab){ab.appendChild(W)}--t;aa=X}if(Y!=E){N.setStartAfter(Z);N.collapse(D)}return ab}function o(Z,t,ac){var W,ae,Y,aa,ab,V,ad,X;if(ac!=j){ae=e.createDocumentFragment()}W=Q(Z,ac);if(ae){ae.appendChild(W)}Y=Z.parentNode;aa=n(Z);ab=n(t);++aa;V=ab-aa;ad=Z.nextSibling;while(V>0){X=ad.nextSibling;W=y(ad,ac);if(ae){ae.appendChild(W)}ad=X;--V}W=i(t,ac);if(ae){ae.appendChild(W)}if(ac!=E){N.setStartAfter(Z);N.collapse(D)}return ae}function i(aa,ab){var W=O(N[P],N[z]-1),ac,Z,Y,t,V,X=W!=N[P];if(W==aa){return L(W,X,R,ab)}ac=W.parentNode;Z=L(ac,R,R,ab);while(ac){while(W){Y=W.previousSibling;t=L(W,X,R,ab);if(ab!=j){Z.insertBefore(t,Z.firstChild)}X=D;W=Y}if(ac==aa){return Z}W=ac.previousSibling;ac=ac.parentNode;V=L(ac,R,R,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function Q(aa,ab){var X=O(N[h],N[U]),Y=X!=N[h],ac,Z,W,t,V;if(X==aa){return L(X,Y,D,ab)}ac=X.parentNode;Z=L(ac,R,D,ab);while(ac){while(X){W=X.nextSibling;t=L(X,Y,D,ab);if(ab!=j){Z.appendChild(t)}Y=D;X=W}if(ac==aa){return Z}X=ac.nextSibling;ac=ac.parentNode;V=L(ac,R,D,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function L(t,Y,ab,ac){var X,W,Z,V,aa;if(Y){return y(t,ac)}if(t.nodeType==3){X=t.nodeValue;if(ab){V=N[U];W=X.substring(V);Z=X.substring(0,V)}else{V=N[z];W=X.substring(0,V);Z=X.substring(V)}if(ac!=E){t.nodeValue=Z}if(ac==j){return}aa=t.cloneNode(R);aa.nodeValue=W;return aa}if(ac==j){return}return t.cloneNode(R)}function y(V,t){if(t!=j){return t==E?V.cloneNode(D):V}V.parentNode.removeChild(V)}}a.Range=b})(tinymce.dom);(function(){function a(g){var i=this,j="\uFEFF",e,h,d=g.dom,c=true,f=false;function b(){var n=g.getRng(),k=d.createRng(),m,o;m=n.item?n.item(0):n.parentElement();if(m.ownerDocument!=d.doc){return k}if(n.item||!m.hasChildNodes()){k.setStart(m.parentNode,d.nodeIndex(m));k.setEnd(k.startContainer,k.startOffset+1);return k}o=g.isCollapsed();function l(s){var u,q,t,p,A=0,x,y,z,r,v;r=n.duplicate();r.collapse(s);u=d.create("a");z=r.parentElement();if(!z.hasChildNodes()){k[s?"setStart":"setEnd"](z,0);return}z.appendChild(u);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){k[s?"setStartAfter":"setEndAfter"](z);d.remove(u);return}p=tinymce.grep(z.childNodes);x=p.length-1;while(A<=x){y=Math.floor((A+x)/2);z.insertBefore(u,p[y]);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){A=y+1}else{if(v<0){x=y-1}else{found=true;break}}}q=v>0||y==0?u.nextSibling:u.previousSibling;if(q.nodeType==1){d.remove(u);t=d.nodeIndex(q);q=q.parentNode;if(!s||y>0){t++}}else{if(v>0||y==0){r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=r.text.length}else{r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=q.nodeValue.length-r.text.length}d.remove(u)}k[s?"setStart":"setEnd"](q,t)}l(true);if(!o){l()}return k}this.addRange=function(k){var p,n,m,r,u,s,t=g.dom.doc,o=t.body;function l(B){var x,A,v,z,y;v=d.create("a");x=B?m:u;A=B?r:s;z=p.duplicate();if(x==t){x=o;A=0}if(x.nodeType==3){x.parentNode.insertBefore(v,x);z.moveToElementText(v);z.moveStart("character",A);d.remove(v);p.setEndPoint(B?"StartToStart":"EndToEnd",z)}else{y=x.childNodes;if(y.length){if(A>=y.length){d.insertAfter(v,y[y.length-1])}else{x.insertBefore(v,y[A])}z.moveToElementText(v)}else{v=t.createTextNode(j);x.appendChild(v);z.moveToElementText(v.parentNode);z.collapse(c)}p.setEndPoint(B?"StartToStart":"EndToEnd",z);d.remove(v)}}this.destroy();m=k.startContainer;r=k.startOffset;u=k.endContainer;s=k.endOffset;p=o.createTextRange();if(m==u&&m.nodeType==1&&r==s-1){if(r==s-1){try{n=o.createControlRange();n.addElement(m.childNodes[r]);n.select();n.scrollIntoView();return}catch(q){}}}l(true);l();p.select();p.scrollIntoView()};this.getRangeAt=function(){if(!e||!tinymce.dom.RangeUtils.compareRanges(h,g.getRng())){e=b();h=g.getRng()}try{e.startContainer.nextSibling}catch(k){e=b();h=null}return e};this.destroy=function(){h=e=null};if(g.dom.boxModel){(function(){var q=d.doc,l=q.body,n,o;q.documentElement.unselectable=c;function p(r,u){var s=l.createTextRange();try{s.moveToPoint(r,u)}catch(t){s=null}return s}function m(s){var r;if(s.button){r=p(s.x,s.y);if(r){if(r.compareEndPoints("StartToStart",o)>0){r.setEndPoint("StartToStart",o)}else{r.setEndPoint("EndToEnd",o)}r.select()}}else{k()}}function k(){d.unbind(q,"mouseup",k);d.unbind(q,"mousemove",m);n=0}d.bind(q,"mousedown",function(r){if(r.target.nodeName==="HTML"){if(n){k()}n=1;o=p(r.x,r.y);if(o){d.bind(q,"mouseup",k);d.bind(q,"mousemove",m);o.select()}}})})()}}tinymce.dom.TridentSelection=a})();(function(){var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,j=0,d=Object.prototype.toString,o=false,i=true;[0,0].sort(function(){i=false;return 0});var b=function(v,e,z,A){z=z||[];e=e||document;var C=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!v||typeof v!=="string"){return z}var x=[],s,E,H,r,u=true,t=b.isXML(e),B=v,D,G,F,y;do{p.exec("");s=p.exec(B);if(s){B=s[3];x.push(s[1]);if(s[2]){r=s[3];break}}}while(s);if(x.length>1&&k.exec(v)){if(x.length===2&&f.relative[x[0]]){E=h(x[0]+x[1],e)}else{E=f.relative[x[0]]?[e]:b(x.shift(),e);while(x.length){v=x.shift();if(f.relative[v]){v+=x.shift()}E=h(v,E)}}}else{if(!A&&x.length>1&&e.nodeType===9&&!t&&f.match.ID.test(x[0])&&!f.match.ID.test(x[x.length-1])){D=b.find(x.shift(),e,t);e=D.expr?b.filter(D.expr,D.set)[0]:D.set[0]}if(e){D=A?{expr:x.pop(),set:a(A)}:b.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&e.parentNode?e.parentNode:e,t);E=D.expr?b.filter(D.expr,D.set):D.set;if(x.length>0){H=a(E)}else{u=false}while(x.length){G=x.pop();F=G;if(!f.relative[G]){G=""}else{F=x.pop()}if(F==null){F=e}f.relative[G](H,F,t)}}else{H=x=[]}}if(!H){H=E}if(!H){b.error(G||v)}if(d.call(H)==="[object Array]"){if(!u){z.push.apply(z,H)}else{if(e&&e.nodeType===1){for(y=0;H[y]!=null;y++){if(H[y]&&(H[y]===true||H[y].nodeType===1&&b.contains(e,H[y]))){z.push(E[y])}}}else{for(y=0;H[y]!=null;y++){if(H[y]&&H[y].nodeType===1){z.push(E[y])}}}}}else{a(H,z)}if(r){b(r,C,z,A);b.uniqueSort(z)}return z};b.uniqueSort=function(r){if(c){o=i;r.sort(c);if(o){for(var e=1;e":function(x,r){var u=typeof r==="string",v,s=0,e=x.length;if(u&&!/\W/.test(r)){r=r.toLowerCase();for(;s=0)){if(!s){e.push(v)}}else{if(s){r[u]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(r,e){return r[1].toLowerCase()},CHILD:function(e){if(e[1]==="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(r[1]+(r[2]||1))-0;e[3]=r[3]-0}e[0]=j++;return e},ATTR:function(u,r,s,e,v,x){var t=u[1].replace(/\\/g,"");if(!x&&f.attrMap[t]){u[1]=f.attrMap[t]}if(u[2]==="~="){u[4]=" "+u[4]+" "}return u},PSEUDO:function(u,r,s,e,v){if(u[1]==="not"){if((p.exec(u[3])||"").length>1||/^\w/.test(u[3])){u[3]=b(u[3],null,null,r)}else{var t=b.filter(u[3],r,s,true^v);if(!s){e.push.apply(e,t)}return false}}else{if(f.match.POS.test(u[0])||f.match.CHILD.test(u[0])){return true}}return u},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(s,r,e){return !!b(e[3],s).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)}},setFilters:{first:function(r,e){return e===0},last:function(s,r,e,t){return r===t.length-1},even:function(r,e){return e%2===0},odd:function(r,e){return e%2===1},lt:function(s,r,e){return re[3]-0},nth:function(s,r,e){return e[3]-0===r},eq:function(s,r,e){return e[3]-0===r}},filter:{PSEUDO:function(s,y,x,z){var e=y[1],r=f.filters[e];if(r){return r(s,x,y,z)}else{if(e==="contains"){return(s.textContent||s.innerText||b.getText([s])||"").indexOf(y[3])>=0}else{if(e==="not"){var t=y[3];for(var v=0,u=t.length;v=0)}}},ID:function(r,e){return r.nodeType===1&&r.getAttribute("id")===e},TAG:function(r,e){return(e==="*"&&r.nodeType===1)||r.nodeName.toLowerCase()===e},CLASS:function(r,e){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(v,t){var s=t[1],e=f.attrHandle[s]?f.attrHandle[s](v):v[s]!=null?v[s]:v.getAttribute(s),x=e+"",u=t[2],r=t[4];return e==null?u==="!=":u==="="?x===r:u==="*="?x.indexOf(r)>=0:u==="~="?(" "+x+" ").indexOf(r)>=0:!r?x&&e!==false:u==="!="?x!==r:u==="^="?x.indexOf(r)===0:u==="$="?x.substr(x.length-r.length)===r:u==="|="?x===r||x.substr(0,r.length+1)===r+"-":false},POS:function(u,r,s,v){var e=r[2],t=f.setFilters[e];if(t){return t(u,s,r,v)}}}};var k=f.match.POS,g=function(r,e){return"\\"+(e-0+1)};for(var m in f.match){f.match[m]=new RegExp(f.match[m].source+(/(?![^\[]*\])(?![^\(]*\))/.source));f.leftMatch[m]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[m].source.replace(/\\(\d+)/g,g))}var a=function(r,e){r=Array.prototype.slice.call(r,0);if(e){e.push.apply(e,r);return e}return r};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(l){a=function(u,t){var r=t||[],s=0;if(d.call(u)==="[object Array]"){Array.prototype.push.apply(r,u)}else{if(typeof u.length==="number"){for(var e=u.length;s";var e=document.documentElement;e.insertBefore(r,e.firstChild);if(document.getElementById(s)){f.find.ID=function(u,v,x){if(typeof v.getElementById!=="undefined"&&!x){var t=v.getElementById(u[1]);return t?t.id===u[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===u[1]?[t]:undefined:[]}};f.filter.ID=function(v,t){var u=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&u&&u.nodeValue===t}}e.removeChild(r);e=r=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(r,v){var u=v.getElementsByTagName(r[1]);if(r[1]==="*"){var t=[];for(var s=0;u[s];s++){if(u[s].nodeType===1){t.push(u[s])}}u=t}return u}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(r){return r.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=b,s=document.createElement("div");s.innerHTML="

    ";if(s.querySelectorAll&&s.querySelectorAll(".TEST").length===0){return}b=function(x,v,t,u){v=v||document;if(!u&&v.nodeType===9&&!b.isXML(v)){try{return a(v.querySelectorAll(x),t)}catch(y){}}return e(x,v,t,u)};for(var r in e){b[r]=e[r]}s=null})()}(function(){var e=document.createElement("div");e.innerHTML="
    ";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(r,s,t){if(typeof s.getElementsByClassName!=="undefined"&&!t){return s.getElementsByClassName(r[1])}};e=null})();function n(r,x,v,A,y,z){for(var t=0,s=A.length;t0){u=e;break}}}e=e[r]}A[t]=u}}}b.contains=document.compareDocumentPosition?function(r,e){return !!(r.compareDocumentPosition(e)&16)}:function(r,e){return r!==e&&(r.contains?r.contains(e):true)};b.isXML=function(e){var r=(e?e.ownerDocument||e:0).documentElement;return r?r.nodeName!=="HTML":false};var h=function(e,y){var t=[],u="",v,s=y.nodeType?[y]:y;while((v=f.match.PSEUDO.exec(e))){u+=v[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var x=0,r=s.length;x=0;h--){k=g[h];if(k.obj===l){j._remove(k.obj,k.name,k.cfunc);k.obj=k.cfunc=null;g.splice(h,1)}}}},cancel:function(g){if(!g){return false}this.stop(g);return this.prevent(g)},stop:function(g){if(g.stopPropagation){g.stopPropagation()}else{g.cancelBubble=true}return false},prevent:function(g){if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}return false},destroy:function(){var g=this;f(g.events,function(j,h){g._remove(j.obj,j.name,j.cfunc);j.obj=j.cfunc=null});g.events=[];g=null},_add:function(h,i,g){if(h.attachEvent){h.attachEvent("on"+i,g)}else{if(h.addEventListener){h.addEventListener(i,g,false)}else{h["on"+i]=g}}},_remove:function(i,j,h){if(i){try{if(i.detachEvent){i.detachEvent("on"+j,h)}else{if(i.removeEventListener){i.removeEventListener(j,h,false)}else{i["on"+j]=null}}}catch(g){}}},_pageInit:function(h){var g=this;if(g.domLoaded){return}g.domLoaded=true;f(g.inits,function(i){i()});g.inits=[]},_wait:function(i){var g=this,h=i.document;if(i.tinyMCE_GZ&&tinyMCE_GZ.loaded){g.domLoaded=1;return}if(h.attachEvent){h.attachEvent("onreadystatechange",function(){if(h.readyState==="complete"){h.detachEvent("onreadystatechange",arguments.callee);g._pageInit(i)}});if(h.documentElement.doScroll&&i==i.top){(function(){if(g.domLoaded){return}try{h.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);return}g._pageInit(i)})()}}else{if(h.addEventListener){g._add(i,"DOMContentLoaded",function(){g._pageInit(i)})}}g._add(i,"load",function(){g._pageInit(i)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});a=d.dom.Event=new d.dom.EventUtils();a._wait(window);d.addUnload(function(){a.destroy()})})(tinymce);(function(a){a.dom.Element=function(f,d){var b=this,e,c;b.settings=d=d||{};b.id=f;b.dom=e=d.dom||a.DOM;if(!a.isIE){c=e.get(b.id)}a.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(g){b[g]=function(){var h=[f],j;for(j=0;j_';if(j.startContainer==k&&j.endContainer==k){k.body.innerHTML=i}else{j.deleteContents();if(k.body.childNodes.length==0){k.body.innerHTML=i}else{j.insertNode(j.createContextualFragment(i))}}l=f.dom.get("__caret");j=k.createRange();j.setStartBefore(l);j.setEndBefore(l);f.setRng(j);f.dom.remove("__caret")}else{if(j.item){k.execCommand("Delete",false,null);j=f.getRng()}j.pasteHTML(i)}f.onSetContent.dispatch(f,g)},getStart:function(){var g=this.getRng(),h,f,j,i;if(g.duplicate||g.item){if(g.item){return g.item(0)}j=g.duplicate();j.collapse(1);h=j.parentElement();f=i=g.parentElement();while(i=i.parentNode){if(i==h){h=f;break}}if(h&&h.nodeName=="BODY"){return h.firstChild||h}return h}else{h=g.startContainer;if(h.nodeType==1&&h.hasChildNodes()){h=h.childNodes[Math.min(h.childNodes.length-1,g.startOffset)]}if(h&&h.nodeType==3){return h.parentNode}return h}},getEnd:function(){var g=this,h=g.getRng(),i,f;if(h.duplicate||h.item){if(h.item){return h.item(0)}h=h.duplicate();h.collapse(0);i=h.parentElement();if(i&&i.nodeName=="BODY"){return i.lastChild||i}return i}else{i=h.endContainer;f=h.endOffset;if(i.nodeType==1&&i.hasChildNodes()){i=i.childNodes[f>0?f-1:f]}if(i&&i.nodeType==3){return i.parentNode}return i}},getBookmark:function(q,r){var u=this,m=u.dom,g,j,i,n,h,o,p,l="\uFEFF",s;function f(v,x){var t=0;d(m.select(v),function(z,y){if(z==x){t=y}});return t}if(q==2){function k(){var v=u.getRng(true),t=m.getRoot(),x={};function y(B,G){var A=B[G?"startContainer":"endContainer"],F=B[G?"startOffset":"endOffset"],z=[],C,E,D=0;if(A.nodeType==3){if(r){for(C=A.previousSibling;C&&C.nodeType==3;C=C.previousSibling){F+=C.nodeValue.length}}z.push(F)}else{E=A.childNodes;if(F>=E.length&&E.length){D=1;F=Math.max(0,E.length-1)}z.push(u.dom.nodeIndex(E[F],r)+D)}for(;A&&A!=t;A=A.parentNode){z.push(u.dom.nodeIndex(A,r))}return z}x.start=y(v,true);if(!u.isCollapsed()){x.end=y(v)}return x}return k()}if(q){return{rng:u.getRng()}}g=u.getRng();i=m.uniqueId();n=tinyMCE.activeEditor.selection.isCollapsed();s="overflow:hidden;line-height:0px";if(g.duplicate||g.item){if(!g.item){j=g.duplicate();g.collapse();g.pasteHTML(''+l+"");if(!n){j.collapse(false);j.pasteHTML(''+l+"")}}else{o=g.item(0);h=o.nodeName;return{name:h,index:f(h,o)}}}else{o=u.getNode();h=o.nodeName;if(h=="IMG"){return{name:h,index:f(h,o)}}j=g.cloneRange();if(!n){j.collapse(false);j.insertNode(m.create("span",{_mce_type:"bookmark",id:i+"_end",style:s},l))}g.collapse(true);g.insertNode(m.create("span",{_mce_type:"bookmark",id:i+"_start",style:s},l))}u.moveToBookmark({id:i,keep:1});return{id:i}},moveToBookmark:function(n){var r=this,l=r.dom,i,h,f,q,j,s,o,p;if(r.tridentSel){r.tridentSel.destroy()}if(n){if(n.start){f=l.createRng();q=l.getRoot();function g(z){var t=n[z?"start":"end"],v,x,y,u;if(t){for(x=q,v=t.length-1;v>=1;v--){u=x.childNodes;if(u.length){x=u[t[v]]}}if(z){f.setStart(x,t[0])}else{f.setEnd(x,t[0])}}}g(true);g();r.setRng(f)}else{if(n.id){function k(A){var u=l.get(n.id+"_"+A),z,t,x,y,v=n.keep;if(u){z=u.parentNode;if(A=="start"){if(!v){t=l.nodeIndex(u)}else{z=u.firstChild;t=1}j=s=z;o=p=t}else{if(!v){t=l.nodeIndex(u)}else{z=u.firstChild;t=1}s=z;p=t}if(!v){y=u.previousSibling;x=u.nextSibling;d(c.grep(u.childNodes),function(B){if(B.nodeType==3){B.nodeValue=B.nodeValue.replace(/\uFEFF/g,"")}});while(u=l.get(n.id+"_"+A)){l.remove(u,1)}if(y&&x&&y.nodeType==x.nodeType&&y.nodeType==3){t=y.nodeValue.length;y.appendData(x.nodeValue);l.remove(x);if(A=="start"){j=s=y;o=p=t}else{s=y;p=t}}}}}function m(t){if(!a&&l.isBlock(t)&&!t.innerHTML){t.innerHTML='
    '}return t}k("start");k("end");f=l.createRng();f.setStart(m(j),o);f.setEnd(m(s),p);r.setRng(f)}else{if(n.name){r.select(l.select(n.name)[n.index])}else{if(n.rng){r.setRng(n.rng)}}}}}},select:function(k,j){var i=this,l=i.dom,g=l.createRng(),f;f=l.nodeIndex(k);g.setStart(k.parentNode,f);g.setEnd(k.parentNode,f+1);if(j){function h(m,o){var n=new c.dom.TreeWalker(m,m);do{if(m.nodeType==3&&c.trim(m.nodeValue).length!=0){if(o){g.setStart(m,0)}else{g.setEnd(m,m.nodeValue.length)}return}if(m.nodeName=="BR"){if(o){g.setStartBefore(m)}else{g.setEndBefore(m)}return}}while(m=(o?n.next():n.prev()))}h(k,1);h(k)}i.setRng(g);return k},isCollapsed:function(){var f=this,h=f.getRng(),g=f.getSel();if(!h||h.item){return false}if(h.compareEndPoints){return h.compareEndPoints("StartToEnd",h)===0}return !g||h.collapsed},collapse:function(f){var g=this,h=g.getRng(),i;if(h.item){i=h.item(0);h=this.win.document.body.createTextRange();h.moveToElementText(i)}h.collapse(!!f);g.setRng(h)},getSel:function(){var g=this,f=this.win;return f.getSelection?f.getSelection():f.document.selection},getRng:function(j){var g=this,h,i;if(j&&g.tridentSel){return g.tridentSel.getRangeAt(0)}try{if(h=g.getSel()){i=h.rangeCount>0?h.getRangeAt(0):(h.createRange?h.createRange():g.win.document.createRange())}}catch(f){}if(!i){i=g.win.document.createRange?g.win.document.createRange():g.win.document.body.createTextRange()}if(g.selectedRange&&g.explicitRange){if(i.compareBoundaryPoints(i.START_TO_START,g.selectedRange)===0&&i.compareBoundaryPoints(i.END_TO_END,g.selectedRange)===0){i=g.explicitRange}else{g.selectedRange=null;g.explicitRange=null}}return i},setRng:function(i){var h,g=this;if(!g.tridentSel){h=g.getSel();if(h){g.explicitRange=i;h.removeAllRanges();h.addRange(i);g.selectedRange=h.getRangeAt(0)}}else{if(i.cloneRange){g.tridentSel.addRange(i);return}try{i.select()}catch(f){}}},setNode:function(g){var f=this;f.setContent(f.dom.getOuterHTML(g));return g},getNode:function(){var g=this,f=g.getRng(),h=g.getSel(),i;if(f.setStart){if(!f){return g.dom.getRoot()}i=f.commonAncestorContainer;if(!f.collapsed){if(f.startContainer==f.endContainer){if(f.startOffset-f.endOffset<2){if(f.startContainer.hasChildNodes()){i=f.startContainer.childNodes[f.startOffset]}}}if(c.isWebKit&&h.anchorNode&&h.anchorNode.nodeType==1){return h.anchorNode.childNodes[h.anchorOffset]}}if(i&&i.nodeType==3){return i.parentNode}return i}return f.item?f.item(0):f.parentElement()},getSelectedBlocks:function(g,f){var i=this,j=i.dom,m,h,l,k=[];m=j.getParent(g||i.getStart(),j.isBlock);h=j.getParent(f||i.getEnd(),j.isBlock);if(m){k.push(m)}if(m&&h&&m!=h){l=m;while((l=l.nextSibling)&&l!=h){if(j.isBlock(l)){k.push(l)}}}if(h&&m!=h){k.push(h)}return k},destroy:function(g){var f=this;f.win=null;if(f.tridentSel){f.tridentSel.destroy()}if(!g){c.removeUnload(f.destroy)}}})})(tinymce);(function(a){a.create("tinymce.dom.XMLWriter",{node:null,XMLWriter:function(c){function b(){var e=document.implementation;if(!e||!e.createDocument){try{return new ActiveXObject("MSXML2.DOMDocument")}catch(d){}try{return new ActiveXObject("Microsoft.XmlDom")}catch(d){}}else{return e.createDocument("","",null)}}this.doc=b();this.valid=a.isOpera||a.isWebKit;this.reset()},reset:function(){var b=this,c=b.doc;if(c.firstChild){c.removeChild(c.firstChild)}b.node=c.appendChild(c.createElement("html"))},writeStartElement:function(c){var b=this;b.node=b.node.appendChild(b.doc.createElement(c))},writeAttribute:function(c,b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.setAttribute(c,b)},writeEndElement:function(){this.node=this.node.parentNode},writeFullEndElement:function(){var b=this,c=b.node;c.appendChild(b.doc.createTextNode(""));b.node=c.parentNode},writeText:function(b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.appendChild(this.doc.createTextNode(b))},writeCDATA:function(b){this.node.appendChild(this.doc.createCDATASection(b))},writeComment:function(b){if(a.isIE){b=b.replace(/^\-|\-$/g," ")}this.node.appendChild(this.doc.createComment(b.replace(/\-\-/g," ")))},getContent:function(){var b;b=this.doc.xml||new XMLSerializer().serializeToString(this.doc);b=b.replace(/<\?[^?]+\?>||<\/html>||]+>/g,"");b=b.replace(/ ?\/>/g," />");if(this.valid){b=b.replace(/\%MCGT%/g,">")}return b}})})(tinymce);(function(a){a.create("tinymce.dom.StringWriter",{str:null,tags:null,count:0,settings:null,indent:null,StringWriter:function(b){this.settings=a.extend({indent_char:" ",indentation:0},b);this.reset()},reset:function(){this.indent="";this.str="";this.tags=[];this.count=0},writeStartElement:function(b){this._writeAttributesEnd();this.writeRaw("<"+b);this.tags.push(b);this.inAttr=true;this.count++;this.elementCount=this.count},writeAttribute:function(d,b){var c=this;c.writeRaw(" "+c.encode(d)+'="'+c.encode(b)+'"')},writeEndElement:function(){var b;if(this.tags.length>0){b=this.tags.pop();if(this._writeAttributesEnd(1)){this.writeRaw("")}if(this.settings.indentation>0){this.writeRaw("\n")}}},writeFullEndElement:function(){if(this.tags.length>0){this._writeAttributesEnd();this.writeRaw("");if(this.settings.indentation>0){this.writeRaw("\n")}}},writeText:function(b){this._writeAttributesEnd();this.writeRaw(this.encode(b));this.count++},writeCDATA:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeComment:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeRaw:function(b){this.str+=b},encode:function(b){return b.replace(/[<>&"]/g,function(c){switch(c){case"<":return"<";case">":return">";case"&":return"&";case'"':return"""}return c})},getContent:function(){return this.str},_writeAttributesEnd:function(b){if(!this.inAttr){return}this.inAttr=false;if(b&&this.elementCount==this.count){this.writeRaw(" />");return false}this.writeRaw(">");return true}})})(tinymce);(function(e){var g=e.extend,f=e.each,b=e.util.Dispatcher,d=e.isIE,a=e.isGecko;function c(h){return h.replace(/([?+*])/g,".$1")}e.create("tinymce.dom.Serializer",{Serializer:function(j){var i=this;i.key=0;i.onPreProcess=new b(i);i.onPostProcess=new b(i);try{i.writer=new e.dom.XMLWriter()}catch(h){i.writer=new e.dom.StringWriter()}i.settings=j=g({dom:e.DOM,valid_nodes:0,node_filter:0,attr_filter:0,invalid_attrs:/^(_mce_|_moz_|sizset|sizcache)/,closed:/^(br|hr|input|meta|img|link|param|area)$/,entity_encoding:"named",entities:"160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro",valid_elements:"*[*]",extended_valid_elements:0,invalid_elements:0,fix_table_elements:1,fix_list_elements:true,fix_content_duplication:true,convert_fonts_to_spans:false,font_size_classes:0,apply_source_formatting:0,indent_mode:"simple",indent_char:"\t",indent_levels:1,remove_linebreaks:1,remove_redundant_brs:1,element_format:"xhtml"},j);i.dom=j.dom;i.schema=j.schema;if(j.entity_encoding=="named"&&!j.entities){j.entity_encoding="raw"}if(j.remove_redundant_brs){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/(
    \s*)+<\/(p|h[1-6]|div|li)>/gi,function(n,m,o){if(/^
    \s*<\//.test(n)){return""}return n})})}if(j.element_format=="html"){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/<([^>]+) \/>/g,"<$1>")})}if(j.fix_list_elements){i.onPreProcess.add(function(v,s){var l,z,y=["ol","ul"],u,t,q,k=/^(OL|UL)$/,A;function m(r,x){var o=x.split(","),p;while((r=r.previousSibling)!=null){for(p=0;p=1767){f(i.dom.select("p table",l.node).reverse(),function(p){var o=i.dom.getParent(p.parentNode,"table,p");if(o.nodeName!="TABLE"){try{i.dom.split(o,p)}catch(m){}}})}})}},setEntities:function(o){var n=this,j,m,h={},k;if(n.entityLookup){return}j=o.split(",");for(m=0;m1){f(q[1].split("|"),function(u){var p={},t;k=k||[];u=u.replace(/::/g,"~");u=/^([!\-])?([\w*.?~_\-]+|)([=:<])?(.+)?$/.exec(u);u[2]=u[2].replace(/~/g,":");if(u[1]=="!"){r=r||[];r.push(u[2])}if(u[1]=="-"){for(t=0;t=1767)){p=j.createHTMLDocument("");f(r.nodeName=="BODY"?r.childNodes:[r],function(h){p.body.appendChild(p.importNode(h,true))});if(r.nodeName!="BODY"){r=p.body.firstChild}else{r=p.body}i=k.dom.doc;k.dom.doc=p}k.key=""+(parseInt(k.key)+1);if(!q.no_events){q.node=r;k.onPreProcess.dispatch(k,q)}k.writer.reset();k._info=q;k._serializeNode(r,q.getInner);q.content=k.writer.getContent();if(i){k.dom.doc=i}if(!q.no_events){k.onPostProcess.dispatch(k,q)}k._postProcess(q);q.node=null;return e.trim(q.content)},_postProcess:function(n){var i=this,k=i.settings,j=n.content,m=[],l;if(n.format=="html"){l=i._protect({content:j,patterns:[{pattern:/(]*>)(.*?)(<\/script>)/g},{pattern:/(]*>)(.*?)(<\/noscript>)/g},{pattern:/(]*>)(.*?)(<\/style>)/g},{pattern:/(]*>)(.*?)(<\/pre>)/g,encode:1},{pattern:/()/g}]});j=l.content;if(k.entity_encoding!=="raw"){j=i._encode(j)}if(!n.set){j=j.replace(/

    \s+<\/p>|]+)>\s+<\/p>/g,k.entity_encoding=="numeric"?" 

    ":" 

    ");if(k.remove_linebreaks){j=j.replace(/\r?\n|\r/g," ");j=j.replace(/(<[^>]+>)\s+/g,"$1 ");j=j.replace(/\s+(<\/[^>]+>)/g," $1");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object) ([^>]+)>\s+/g,"<$1 $2>");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>\s+/g,"<$1>");j=j.replace(/\s+<\/(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>/g,"")}if(k.apply_source_formatting&&k.indent_mode=="simple"){j=j.replace(/<(\/?)(ul|hr|table|meta|link|tbody|tr|object|body|head|html|map)(|[^>]+)>\s*/g,"\n<$1$2$3>\n");j=j.replace(/\s*<(p|h[1-6]|blockquote|div|title|style|pre|script|td|li|area)(|[^>]+)>/g,"\n<$1$2>");j=j.replace(/<\/(p|h[1-6]|blockquote|div|title|style|pre|script|td|li)>\s*/g,"\n");j=j.replace(/\n\n/g,"\n")}}j=i._unprotect(j,l);j=j.replace(//g,"");if(k.entity_encoding=="raw"){j=j.replace(/

     <\/p>|]+)> <\/p>/g,"\u00a0

    ")}j=j.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(h,p,o){return""+i.dom.decode(o.replace(//g,""))+""})}n.content=j},_serializeNode:function(E,J){var A=this,B=A.settings,y=A.writer,q,j,u,G,F,I,C,h,z,k,r,D,p,m,H,o,x;if(!B.node_filter||B.node_filter(E)){switch(E.nodeType){case 1:if(E.hasAttribute?E.hasAttribute("_mce_bogus"):E.getAttribute("_mce_bogus")){return}p=H=false;q=E.hasChildNodes();k=E.getAttribute("_mce_name")||E.nodeName.toLowerCase();o=E.getAttribute("_mce_type");if(o){if(!A._info.cleanup){p=true;return}else{H=1}}if(d){x=E.scopeName;if(x&&x!=="HTML"&&x!=="html"){k=x+":"+k}}if(k.indexOf("mce:")===0){k=k.substring(4)}if(!H){if(!A.validElementsRE||!A.validElementsRE.test(k)||(A.invalidElementsRE&&A.invalidElementsRE.test(k))||J){p=true;break}}if(d){if(B.fix_content_duplication){if(E._mce_serialized==A.key){return}E._mce_serialized=A.key}if(k.charAt(0)=="/"){k=k.substring(1)}}else{if(a){if(E.nodeName==="BR"&&E.getAttribute("type")=="_moz"){return}}}if(B.validate_children){if(A.elementName&&!A.schema.isValid(A.elementName,k)){p=true;break}A.elementName=k}r=A.findRule(k);if(!r){p=true;break}k=r.name||k;m=B.closed.test(k);if((!q&&r.noEmpty)||(d&&!k)){p=true;break}if(r.requiredAttribs){I=r.requiredAttribs;for(G=I.length-1;G>=0;G--){if(this.dom.getAttrib(E,I[G])!==""){break}}if(G==-1){p=true;break}}y.writeStartElement(k);if(r.attribs){for(G=0,C=r.attribs,F=C.length;G-1;G--){h=C[G];if(h.specified){I=h.nodeName.toLowerCase();if(B.invalid_attrs.test(I)||!r.validAttribsRE.test(I)){continue}D=A.findAttribRule(r,I);z=A._getAttrib(E,D,I);if(z!==null){y.writeAttribute(I,z)}}}}if(o&&H){y.writeAttribute("_mce_type",o)}if(k==="script"&&e.trim(E.innerHTML)){y.writeText("// ");y.writeCDATA(E.innerHTML.replace(/|<\[CDATA\[|\]\]>/g,""));q=false;break}if(r.padd){if(q&&(u=E.firstChild)&&u.nodeType===1&&E.childNodes.length===1){if(u.hasAttribute?u.hasAttribute("_mce_bogus"):u.getAttribute("_mce_bogus")){y.writeText("\u00a0")}}else{if(!q){y.writeText("\u00a0")}}}break;case 3:if(B.validate_children&&A.elementName&&!A.schema.isValid(A.elementName,"#text")){return}return y.writeText(E.nodeValue);case 4:return y.writeCDATA(E.nodeValue);case 8:return y.writeComment(E.nodeValue)}}else{if(E.nodeType==1){q=E.hasChildNodes()}}if(q&&!m){u=E.firstChild;while(u){A._serializeNode(u);A.elementName=k;u=u.nextSibling}}if(!p){if(!m){y.writeFullEndElement()}else{y.writeEndElement()}}},_protect:function(j){var i=this;j.items=j.items||[];function h(l){return l.replace(/[\r\n\\]/g,function(m){if(m==="\n"){return"\\n"}else{if(m==="\\"){return"\\\\"}}return"\\r"})}function k(l){return l.replace(/\\[\\rn]/g,function(m){if(m==="\\n"){return"\n"}else{if(m==="\\\\"){return"\\"}}return"\r"})}f(j.patterns,function(l){j.content=k(h(j.content).replace(l.pattern,function(n,o,m,p){m=k(m);if(l.encode){m=i._encode(m)}j.items.push(m);return o+""+p}))});return j},_unprotect:function(i,j){i=i.replace(/\"))}if(a&&j.ListBox){if(a.Button||a.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarEnd"},b.createHTML("span",null,""))}}if(b.stdMode){e+='
    '+j.renderHTML()+""+j.renderHTML()+"
    + + + + + + +
    +
    +
    Danse
    +
    +

    Ma petite fille.

    +
    +
    +
    +
    +
    Musique
    +
    +

    Une activité que je ne pratique plus avec beaucoup d'entrain.

    +
    +
    +
    + + + + + 13 Fév 2007 + Sorties + Dancing practice + + + Sortie tous les premiers et tous les troisièmes + vendredi du mois au + + + The first and third week at + + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Les dimanche soirs à la grotte. + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Sortie tous le mardi et mercredi soir + à la mezzanine + + + Ebersold André + + + + + + + diff --git a/loisirs.xml b/loisirs.xml new file mode 100644 index 0000000..5437d64 --- /dev/null +++ b/loisirs.xml @@ -0,0 +1,145 @@ + + + + Loisirs + Hobbies + Hobbies + Les loisirs que nous pouvons partager + Danse, danse, Salsa, salsa, tango, Tango, video, cours, musique, Musique, Andre, EBERSOLD + $Date: 2010/04/21 17:10:21 $ + $Id: loisirs.xml,v 1.22 2010/04/21 17:10:21 aebersol Exp $ + + Loisirs + Hobbies +

    Danse

    +

    Dance

    +

    Tanz

    +

    Dancing Salsa, swing and rock are my favorit hobbies these time. I dance about 2 or 3 times a week.

    +
      +
    • I love this
    • +
    • It's my first experience
    • +
    • AND
    • +
    • WHY Et Maintenant
    • +
    +
    + + Lorsque j'ai commencé à travailler dans la vie professionnelle, + mon principal loisir était de continuer à faire ce que + je faisais en entreprise. + Mais avec le temps, les amis se faisaient de plus en plus rares. + Aussi, j'ai commencé par prospecter de nouveaux horizons. + + + J'ai commencé par prendre des cours de danse. J'en avais + rêvé déjà très jeune. Maintenant, l'occasion était là. + Plus de devoir, plus de stress après le boulot. + + + La valse, le cha-cha-cha, la + rumba, le rock furent les premières danses que j'ai apprisent. + Il s'agit de danses traditionnelles qu'on retrouve + souvent dans les bals ou les mariages. + + + Au bout de trois ans, l'école de danse où j'étais a fermée. + Un peu déçu sur le coup, je me suis lancé dans d'autres types +de danse. La salsa portoricaine, et le lindy maintenant. + +

    Bricolage

    +

    Do It Yourself

    + + La menuiserie fait également partie de mes loisirs. De temps en temps, + je retape de vieux meubles que plus personne ne veut. + Je m'essaye à la réalisation de portes d'armoires. + +

    Musique

    +

    This part describes what I do love to do in the house. Mainly reparation, working with wood.

    Music Titles

    +

    Musik

    +

    This is new to me. It's the first time that I am able to edit the content

    + Well, I learned piano. It's very good to change your bad mood. Today, I am studying + latino accords and rythmes. + + + Le piano est l'instrument que j'ai commencé à l'âge de 14 ans. Aujourd'hui je n'en fais + plus tellement. Il faut dire qu'on ne peut pas tout faire à la fois. + J'ai principalement exercé mon talent de pianiste dans les églises. Actuellement, + j'essaye de progresser en travaillant le blues. + +

    Systèmes embarqués

    + + Que dire si ce n'est que je m'amuse de temps en temps avec une petite + carte PC104. J'y ai installé un Kernel Linux 2.4.29. A travers le port + parallèle, je pilote des IO's sur une carte de test (labdec). + + + + + +
    +
    + Danse + + Test pour voir comment tout cela se boucle + +
    +
    +
    + Musique + + Un activité que je ne ptatique plus avec beaucoup + d'entrein. + +
    +
    + +
    + +
    + + + 13 Fév 2007 + Sorties + Dancing practice + + + Sortie tous les premiers et tous les troisièmes + vendredi du mois au + + + The first and third week at + + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Les dimanche soirs à la grotte. + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Sortie tous le mardi et mercredi soir + à la mezzanine + + + Ebersold André + + + + + +
    + diff --git a/loisirs_danse.xml b/loisirs_danse.xml new file mode 100644 index 0000000..698c189 --- /dev/null +++ b/loisirs_danse.xml @@ -0,0 +1,96 @@ + + + + Loisirs + Hobbies + Hobbies + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_danse.xml,v 1.6 2008/03/06 18:11:29 aebersol Exp $ + + Loisirs + Hobbies +

    Danse

    +

    Dance

    +

    Tanz

    + + + + Lorsque j'ai commencé à travailler dans la vie professionnelle, + mon principal loisir était de continuer à faire ce que + je faisais en entreprise. + Mais avec le temps, les amis se faisaient de plus en plus rares. + Aussi, j'ai commencé par prospecter de nouveaux horizons. + + + J'ai commencé par prendre des cours de danse. J'en avais + rêvé déjà très jeune. Maintenant, l'occasion était là. + Plus de devoir, plus de stress après le boulot. + + + La valse, le cha-cha-cha, la + rumba, le rock furent les premières danse que j'ai apprise. + Il s'agit de danses traditionnelles qu'on retrouve + souvent dans les bals ou les mariages. + + + Au bout de trois ans, l'école de danse où j'étais a fermé. + Un peu déçu sur le coup, je me suis lancé dans d'autres type +de danse. La salsa portoricaine, et le lindy maintenant. + +

    Salsa

    + + Une danse très riche et aussi un peu compliquée. Il y a plusieurs + manières de danser la Salsa. Divers + existent de par le monde. J'ai appris la salsa portoricaine "ON~1". + +

    Vidéos

    + + Pour l'instant les vidéos de mes cours de danses peuvent être + à partir de mon serveur web privé. Le flux montant est cependant relativement lent (256KB/s). + + +
    + + + 13 Fév 2007 + Sorties + + + Sortie tous les premiers et tous les troisièmes + vendredi du mois au + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Les dimanche soirs à la grotte. + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Sortie tous le mardi et mercredi soir + à la mezzanine + + + Ebersold André + + + + + +
    diff --git a/loisirs_music.xml b/loisirs_music.xml new file mode 100644 index 0000000..a45611c --- /dev/null +++ b/loisirs_music.xml @@ -0,0 +1,57 @@ + + + + Loisirs + Hobbies + Hobbies + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ + + Loisirs + Hobbies +

    Musique

    +

    Music

    +

    Musik

    + + + Le piano est l'instrument que j'ai commencé à l'âge de 14 ans. Aujourd'hui je n'en fais + plus tellement. Il faut dire qu'on ne peut pas tout faire à la fois. + J'ai principalement exercé mon talent de pianiste dans les églises. Actuellement, + j'essaye de progresser en travaillant le blues et le bossa. + + + +
    + + + 13 Fév 2007 + Sorties + + + Sortie tous les premiers et tous les troisièmes + vendredi du mois au + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Sortie tous le mardi et mercredi soir + à la mezzanine + + + Ebersold André + + + + + +
    diff --git a/loisirs_sports.xml b/loisirs_sports.xml new file mode 100644 index 0000000..37f5fb7 --- /dev/null +++ b/loisirs_sports.xml @@ -0,0 +1,94 @@ + + + + Loisirs + Hobbies + Hobbies + $Date: 2008/03/06 18:11:29 $ + $Id: loisirs_sports.xml,v 1.6 2008/03/06 18:11:29 aebersol Exp $ + + Loisirs + Hobbies +

    Danse

    +

    Dance

    +

    Tanz

    + + Just a little word to present myself. One more software +engineer. My interests are CORBA, embedded system, +music, and yes also religion. + + + Lorsque j'ai commencé à travailler dans la vie professionnelle, + mon principal loisir était de continuer à faire ce que + je faisais en entreprise. + Mais avec le temps, les amis se faisaient de plus en plus rares. + Aussi, j'ai commencé par prospecter de nouveaux horizons. + + + J'ai commencé par prendre des cours de danse. J'en avais + rêvé déjà très jeune. Maintenant, l'occasion était là. + Plus de devoir, plus de stress après le boulot. + + + La valse, le cha-cha-cha, la + rumba, le rock furent les premières danse que j'ai appris. + Il s'agit de danses traditionnelles qu'on retrouve + souvent dans les bals ou les mariages. + + + Au bout de trois ans, l'école de danse où j'étais a fermée. + Un peu déçu sur le coup, je me suis lancé dans d'autres type +de danse. La salsa portoricaine, et le lindy maintenant. + +

    Vélo

    + + + + Mon activité préféré après le travail. Quoi de mieux que de + l'exercice physique. + +
    + + + 13 Fév 2007 + Sorties + + + Sortie tous les premiers et tous les troisièmes + vendredi du mois au + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Les dimanche soirs à la grotte. + + + Ebersold André + + + + 13 Fév 2007 + Sorties + + + Sortie tous le mardi et mercredi soir + à la mezzanine + + + Ebersold André + + + + + +
    diff --git a/menu.xml b/menu.xml new file mode 100644 index 0000000..6f48228 --- /dev/null +++ b/menu.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/menu_4saisons.xml b/menu_4saisons.xml new file mode 100644 index 0000000..6046f32 --- /dev/null +++ b/menu_4saisons.xml @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + Forma Pre + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + diff --git a/menu_aliceadsl.xml b/menu_aliceadsl.xml new file mode 100644 index 0000000..ac89ad7 --- /dev/null +++ b/menu_aliceadsl.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/menu_andre.xml b/menu_andre.xml new file mode 100644 index 0000000..ac557e9 --- /dev/null +++ b/menu_andre.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + Home + + + + + + + + + + Activities + + + + + + + Activités + + + + + + + + + + + + diff --git a/menu_trinity.xml b/menu_trinity.xml new file mode 100644 index 0000000..6046f32 --- /dev/null +++ b/menu_trinity.xml @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + Forma Pre + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + diff --git a/menu_webobject.xml b/menu_webobject.xml new file mode 100644 index 0000000..6046f32 --- /dev/null +++ b/menu_webobject.xml @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + + + + Home + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + Forma Pre + + + + + + + + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + Home + + + + + + + + + + + + + + + + + + + Activities + + + + + + + + + + + + + + + + + + + + Activités + + + + + + + + + + + + + + + + + + + + + + + diff --git a/news.xml b/news.xml new file mode 100644 index 0000000..c79e3d3 --- /dev/null +++ b/news.xml @@ -0,0 +1,41 @@ + + + + 16 Feb 2010 + Amélioration du rendu + Unification of the design + + -Integration d'un méchanism de login type + MD5. + + + - Utilisation des lib prototype, scriptaculous, leightway. + L'objectif étant d'avoir une album photo et de permettre l'edition + en ligne. + + + EBERSOLD André + + + 29 Jan 2008 + Contenu + Content + + + Ajout d'un calendrier. Ajout + d'une selection pour changer de style. + + + Added Calendar control as a selection + to change the style. + + + + EBERSOLD Andre + + + diff --git a/phplib/CaptchaSecurityImages.php b/phplib/CaptchaSecurityImages.php new file mode 100644 index 0000000..ef964e8 --- /dev/null +++ b/phplib/CaptchaSecurityImages.php @@ -0,0 +1,89 @@ +$value) + { + if (isset($GLOBALS[$key])) + unset($GLOBALS[$key]); + } +} + +/* +* File: CaptchaSecurityImages.php +* Author: Simon Jarvis +* Copyright: 2006 Simon Jarvis +* Date: 03/08/06 +* Updated: 07/02/07 +* Requirements: PHP 4/5 with GD and FreeType libraries +* Link: http://www.white-hat-web-design.co.uk/articles/php-captcha.php +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details: +* http://www.gnu.org/licenses/gpl.html +* +*/ + +class CaptchaSecurityImages { + + var $font = 'monofont.ttf'; + + function generateCode($characters) { + /* list all possible characters, similar looking characters and vowels have been removed */ + $possible = '23456789bcdfghjkmnpqrstvwxyz'; + $code = ''; + $i = 0; + while ($i < $characters) { + $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); + $i++; + } + return $code; + } + + function CaptchaSecurityImages($width='120',$height='40',$characters='6') { + $code = $this->generateCode($characters); + /* font size will be 75% of the image height */ + $font_size = $height * 0.75; + $image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream'); + /* set the colours */ + $background_color = imagecolorallocate($image, 255, 255, 255); + $text_color = imagecolorallocate($image, 20, 40, 100); + $noise_color = imagecolorallocate($image, 100, 120, 180); + /* generate random dots in background */ + for( $i=0; $i<($width*$height)/3; $i++ ) { + imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color); + } + /* generate random lines in background */ + for( $i=0; $i<($width*$height)/150; $i++ ) { + imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color); + } + /* create textbox and add text */ + $textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function'); + $x = ($width - $textbox[4])/2; + $y = ($height - $textbox[5])/2; + imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code) or die('Error in imagettftext function'); + /* output captcha image to browser */ + header('Content-Type: image/jpeg'); + imagejpeg($image); + imagedestroy($image); + $_SESSION['security_code'] = $code; + //error_log("Capchar set security code:".$code); + } + +} + +$width = isset($_GET['width']) ? $_GET['width'] : '120'; +$height = isset($_GET['height']) ? $_GET['height'] : '40'; +$characters = isset($_GET['characters']) && $_GET['characters'] > 1 ? $_GET['characters'] : '6'; + +$captcha = new CaptchaSecurityImages($width,$height,$characters); + +?> diff --git a/phplib/IXR_Library.inc b/phplib/IXR_Library.inc new file mode 100644 index 0000000..99f685e --- /dev/null +++ b/phplib/IXR_Library.inc @@ -0,0 +1,818 @@ + htmlspecialchars) + Site: http://scripts.incutio.com/xmlrpc/ + Manual: http://scripts.incutio.com/xmlrpc/manual.php + Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php +*/ + + +class IXR_Value { + var $data; + var $type; + function IXR_Value ($data, $type = false) { + $this->data = $data; + if (!$type) { + $type = $this->calculateType(); + } + $this->type = $type; + if ($type == 'struct') { + /* Turn all the values in the array in to new IXR_Value objects */ + foreach ($this->data as $key => $value) { + $this->data[$key] = new IXR_Value($value); + } + } + if ($type == 'array') { + for ($i = 0, $j = count($this->data); $i < $j; $i++) { + $this->data[$i] = new IXR_Value($this->data[$i]); + } + } + } + function calculateType() { + if ($this->data === true || $this->data === false) { + return 'boolean'; + } + if (is_integer($this->data)) { + return 'int'; + } + if (is_double($this->data)) { + return 'double'; + } + // Deal with IXR object types base64 and date + if (is_object($this->data) && is_a($this->data, 'IXR_Date')) { + return 'date'; + } + if (is_object($this->data) && is_a($this->data, 'IXR_Base64')) { + return 'base64'; + } + // If it is a normal PHP object convert it in to a struct + if (is_object($this->data)) { + + $this->data = get_object_vars($this->data); + return 'struct'; + } + if (!is_array($this->data)) { + return 'string'; + } + /* We have an array - is it an array or a struct ? */ + if ($this->isStruct($this->data)) { + return 'struct'; + } else { + return 'array'; + } + } + function getXml() { + /* Return XML for this value */ + switch ($this->type) { + case 'boolean': + return ''.(($this->data) ? '1' : '0').''; + break; + case 'int': + return ''.$this->data.''; + break; + case 'double': + return ''.$this->data.''; + break; + case 'string': + return ''.htmlspecialchars($this->data).''; + break; + case 'array': + $return = ''."\n"; + foreach ($this->data as $item) { + $return .= ' '.$item->getXml()."\n"; + } + $return .= ''; + return $return; + break; + case 'struct': + $return = ''."\n"; + foreach ($this->data as $name => $value) { + $return .= " $name"; + $return .= $value->getXml()."\n"; + } + $return .= ''; + return $return; + break; + case 'date': + case 'base64': + return $this->data->getXml(); + break; + } + return false; + } + function isStruct($array) { + /* Nasty function to check if an array is a struct or not */ + $expected = 0; + foreach ($array as $key => $value) { + if ((string)$key != (string)$expected) { + return true; + } + $expected++; + } + return false; + } +} + + +class IXR_Message { + var $message; + var $messageType; // methodCall / methodResponse / fault + var $faultCode; + var $faultString; + var $methodName; + var $params; + // Current variable stacks + var $_arraystructs = array(); // The stack used to keep track of the current array/struct + var $_arraystructstypes = array(); // Stack keeping track of if things are structs or array + var $_currentStructName = array(); // A stack as well + var $_param; + var $_value; + var $_currentTag; + var $_currentTagContents; + // The XML parser + var $_parser; + function IXR_Message ($message) { + $this->message = $message; + } + function parse() { + // first remove the XML declaration + $this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message); + if (trim($this->message) == '') { + return false; + } + $this->_parser = xml_parser_create(); + // Set XML parser to take the case of tags in to account + xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false); + // Set XML parser callback functions + xml_set_object($this->_parser, $this); + xml_set_element_handler($this->_parser, 'tag_open', 'tag_close'); + xml_set_character_data_handler($this->_parser, 'cdata'); + if (!xml_parse($this->_parser, $this->message)) { + /* die(sprintf('XML error: %s at line %d', + xml_error_string(xml_get_error_code($this->_parser)), + xml_get_current_line_number($this->_parser))); */ + return false; + } + xml_parser_free($this->_parser); + // Grab the error messages, if any + if ($this->messageType == 'fault') { + $this->faultCode = $this->params[0]['faultCode']; + $this->faultString = $this->params[0]['faultString']; + } + return true; + } + function tag_open($parser, $tag, $attr) { + $this->currentTag = $tag; + switch($tag) { + case 'methodCall': + case 'methodResponse': + case 'fault': + $this->messageType = $tag; + break; + /* Deal with stacks of arrays and structs */ + case 'data': // data is to all intents and puposes more interesting than array + $this->_arraystructstypes[] = 'array'; + $this->_arraystructs[] = array(); + break; + case 'struct': + $this->_arraystructstypes[] = 'struct'; + $this->_arraystructs[] = array(); + break; + } + } + function cdata($parser, $cdata) { + $this->_currentTagContents .= $cdata; + } + function tag_close($parser, $tag) { + $valueFlag = false; + switch($tag) { + case 'int': + case 'i4': + $value = (int)trim($this->_currentTagContents); + $this->_currentTagContents = ''; + $valueFlag = true; + break; + case 'double': + $value = (double)trim($this->_currentTagContents); + $this->_currentTagContents = ''; + $valueFlag = true; + break; + case 'string': + $value = (string)trim($this->_currentTagContents); + $this->_currentTagContents = ''; + $valueFlag = true; + break; + case 'dateTime.iso8601': + $value = new IXR_Date(trim($this->_currentTagContents)); + // $value = $iso->getTimestamp(); + $this->_currentTagContents = ''; + $valueFlag = true; + break; + case 'value': + // "If no type is indicated, the type is string." + if (trim($this->_currentTagContents) != '') { + $value = (string)$this->_currentTagContents; + $this->_currentTagContents = ''; + $valueFlag = true; + } + break; + case 'boolean': + $value = (boolean)trim($this->_currentTagContents); + $this->_currentTagContents = ''; + $valueFlag = true; + break; + case 'base64': + $value = base64_decode($this->_currentTagContents); + $this->_currentTagContents = ''; + $valueFlag = true; + break; + /* Deal with stacks of arrays and structs */ + case 'data': + case 'struct': + $value = array_pop($this->_arraystructs); + array_pop($this->_arraystructstypes); + $valueFlag = true; + break; + case 'member': + array_pop($this->_currentStructName); + break; + case 'name': + $this->_currentStructName[] = trim($this->_currentTagContents); + $this->_currentTagContents = ''; + break; + case 'methodName': + $this->methodName = trim($this->_currentTagContents); + $this->_currentTagContents = ''; + break; + } + if ($valueFlag) { + /* + if (!is_array($value) && !is_object($value)) { + $value = trim($value); + } + */ + if (count($this->_arraystructs) > 0) { + // Add value to struct or array + if ($this->_arraystructstypes[count($this->_arraystructstypes)-1] == 'struct') { + // Add to struct + $this->_arraystructs[count($this->_arraystructs)-1][$this->_currentStructName[count($this->_currentStructName)-1]] = $value; + } else { + // Add to array + $this->_arraystructs[count($this->_arraystructs)-1][] = $value; + } + } else { + // Just add as a paramater + $this->params[] = $value; + } + } + } +} + + +class IXR_Server { + var $data; + var $callbacks = array(); + var $message; + var $capabilities; + function IXR_Server($callbacks = false, $data = false) { + $this->setCapabilities(); + if ($callbacks) { + $this->callbacks = $callbacks; + } + $this->setCallbacks(); + $this->serve($data); + } + function serve($data = false) { + if (!$data) { + global $HTTP_RAW_POST_DATA; + if (!$HTTP_RAW_POST_DATA) { + die('XML-RPC server accepts POST requests only.'); + } + $data = $HTTP_RAW_POST_DATA; + } + $this->message = new IXR_Message($data); + if (!$this->message->parse()) { + $this->error(-32700, 'parse error. not well formed'); + } + if ($this->message->messageType != 'methodCall') { + $this->error(-32600, 'server error. invalid xml-rpc. not conforming to spec. Request must be a methodCall'); + } + $result = $this->call($this->message->methodName, $this->message->params); + // Is the result an error? + if (is_a($result, 'IXR_Error')) { + $this->error($result); + } + // Encode the result + $r = new IXR_Value($result); + $resultxml = $r->getXml(); + // Create the XML + $xml = << + + + + $resultxml + + + + + +EOD; + // Send it + $this->output($xml); + } + function call($methodname, $args) { + if (!$this->hasMethod($methodname)) { + return new IXR_Error(-32601, 'server error. requested method '.$methodname.' does not exist.'); + } + $method = $this->callbacks[$methodname]; + // Perform the callback and send the response + if (count($args) == 1) { + // If only one paramater just send that instead of the whole array + $args = $args[0]; + } + // Are we dealing with a function or a method? + if (substr($method, 0, 5) == 'this:') { + // It's a class method - check it exists + $method = substr($method, 5); + if (!method_exists($this, $method)) { + return new IXR_Error(-32601, 'server error. requested class method "'.$method.'" does not exist.'); + } + // Call the method + $result = $this->$method($args); + } else { + // It's a function - does it exist? + if (!function_exists($method)) { + return new IXR_Error(-32601, 'server error. requested function "'.$method.'" does not exist.'); + } + // Call the function + $result = $method($args); + } + return $result; + } + + function error($error, $message = false) { + // Accepts either an error object or an error code and message + if ($message && !is_object($error)) { + $error = new IXR_Error($error, $message); + } + $this->output($error->getXml()); + } + function output($xml) { + $xml = ''."\n".$xml; + $length = strlen($xml); + header('Connection: close'); + header('Content-Length: '.$length); + header('Content-Type: text/xml'); + header('Date: '.date('r')); + echo $xml; + exit; + } + function hasMethod($method) { + return in_array($method, array_keys($this->callbacks)); + } + function setCapabilities() { + // Initialises capabilities array + $this->capabilities = array( + 'xmlrpc' => array( + 'specUrl' => 'http://www.xmlrpc.com/spec', + 'specVersion' => 1 + ), + 'faults_interop' => array( + 'specUrl' => 'http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php', + 'specVersion' => 20010516 + ), + 'system.multicall' => array( + 'specUrl' => 'http://www.xmlrpc.com/discuss/msgReader$1208', + 'specVersion' => 1 + ), + ); + } + function getCapabilities($args) { + return $this->capabilities; + } + function setCallbacks() { + $this->callbacks['system.getCapabilities'] = 'this:getCapabilities'; + $this->callbacks['system.listMethods'] = 'this:listMethods'; + $this->callbacks['system.multicall'] = 'this:multiCall'; + } + function listMethods($args) { + // Returns a list of methods - uses array_reverse to ensure user defined + // methods are listed before server defined methods + return array_reverse(array_keys($this->callbacks)); + } + function multiCall($methodcalls) { + // See http://www.xmlrpc.com/discuss/msgReader$1208 + $return = array(); + foreach ($methodcalls as $call) { + $method = $call['methodName']; + $params = $call['params']; + if ($method == 'system.multicall') { + $result = new IXR_Error(-32600, 'Recursive calls to system.multicall are forbidden'); + } else { + $result = $this->call($method, $params); + } + if (is_a($result, 'IXR_Error')) { + $return[] = array( + 'faultCode' => $result->code, + 'faultString' => $result->message + ); + } else { + $return[] = array($result); + } + } + return $return; + } +} + +class IXR_Request { + var $method; + var $args; + var $xml; + function IXR_Request($method, $args) { + $this->method = $method; + $this->args = $args; + $this->xml = << + +{$this->method} + + +EOD; + foreach ($this->args as $arg) { + $this->xml .= ''; + $v = new IXR_Value($arg); + $this->xml .= $v->getXml(); + $this->xml .= "\n"; + } + $this->xml .= ''; + } + function getLength() { + return strlen($this->xml); + } + function getXml() { + return $this->xml; + } +} + + +class IXR_Client { + var $server; + var $port; + var $path; + var $useragent; + var $response; + var $message = false; + var $debug = false; + // Storage place for an error message + var $error = false; + function IXR_Client($server, $path = false, $port = 80) { + if (!$path) { + // Assume we have been given a URL instead + $bits = parse_url($server); + $this->server = $bits['host']; + $this->port = isset($bits['port']) ? $bits['port'] : 80; + $this->path = isset($bits['path']) ? $bits['path'] : '/'; + // Make absolutely sure we have a path + if (!$this->path) { + $this->path = '/'; + } + } else { + $this->server = $server; + $this->path = $path; + $this->port = $port; + } + $this->useragent = 'The Incutio XML-RPC PHP Library'; + } + function query() { + $args = func_get_args(); + $method = array_shift($args); + $request = new IXR_Request($method, $args); + $length = $request->getLength(); + $xml = $request->getXml(); + $r = "\r\n"; + $request = "POST {$this->path} HTTP/1.0$r"; + $request .= "Host: {$this->server}$r"; + $request .= "Content-Type: text/xml$r"; + $request .= "User-Agent: {$this->useragent}$r"; + $request .= "Content-length: {$length}$r$r"; + $request .= $xml; + // Now send the request + if ($this->debug) { + echo '
    '.htmlspecialchars($request)."\n
    \n\n"; + } + $fp = @fsockopen($this->server, $this->port); + if (!$fp) { + $this->error = new IXR_Error(-32300, 'transport error - could not open socket'); + return false; + } + fputs($fp, $request); + $contents = ''; + $gotFirstLine = false; + $gettingHeaders = true; + while (!feof($fp)) { + $line = fgets($fp, 4096); + if (!$gotFirstLine) { + // Check line for '200' + if (strstr($line, '200') === false) { + $this->error = new IXR_Error(-32300, 'transport error - HTTP status code was not 200'); + return false; + } + $gotFirstLine = true; + } + if (trim($line) == '') { + $gettingHeaders = false; + } + if (!$gettingHeaders) { + $contents .= trim($line)."\n"; + } + } + if ($this->debug) { + echo '
    '.htmlspecialchars($contents)."\n
    \n\n"; + } + // Now parse what we've got back + $this->message = new IXR_Message($contents); + if (!$this->message->parse()) { + // XML error + $this->error = new IXR_Error(-32700, 'parse error. not well formed'); + return false; + } + // Is the message a fault? + if ($this->message->messageType == 'fault') { + $this->error = new IXR_Error($this->message->faultCode, $this->message->faultString); + return false; + } + // Message must be OK + return true; + } + function getResponse() { + // methodResponses can only have one param - return that + return $this->message->params[0]; + } + function isError() { + return (is_object($this->error)); + } + function getErrorCode() { + return $this->error->code; + } + function getErrorMessage() { + return $this->error->message; + } +} + + +class IXR_Error { + var $code; + var $message; + function IXR_Error($code, $message) { + $this->code = $code; + $this->message = $message; + } + function getXml() { + $xml = << + + + + + faultCode + {$this->code} + + + faultString + {$this->message} + + + + + + +EOD; + return $xml; + } +} + + +class IXR_Date { + var $year; + var $month; + var $day; + var $hour; + var $minute; + var $second; + function IXR_Date($time) { + // $time can be a PHP timestamp or an ISO one + if (is_numeric($time)) { + $this->parseTimestamp($time); + } else { + $this->parseIso($time); + } + } + function parseTimestamp($timestamp) { + $this->year = date('Y', $timestamp); + $this->month = date('Y', $timestamp); + $this->day = date('Y', $timestamp); + $this->hour = date('H', $timestamp); + $this->minute = date('i', $timestamp); + $this->second = date('s', $timestamp); + } + function parseIso($iso) { + $this->year = substr($iso, 0, 4); + $this->month = substr($iso, 4, 2); + $this->day = substr($iso, 6, 2); + $this->hour = substr($iso, 9, 2); + $this->minute = substr($iso, 12, 2); + $this->second = substr($iso, 15, 2); + } + function getIso() { + return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second; + } + function getXml() { + return ''.$this->getIso().''; + } + function getTimestamp() { + return mktime($this->hour, $this->minute, $this->second, $this->month, $this->day, $this->year); + } +} + + +class IXR_Base64 { + var $data; + function IXR_Base64($data) { + $this->data = $data; + } + function getXml() { + return ''.base64_encode($this->data).''; + } +} + + +class IXR_IntrospectionServer extends IXR_Server { + var $signatures; + var $help; + function IXR_IntrospectionServer() { + $this->setCallbacks(); + $this->setCapabilities(); + $this->capabilities['introspection'] = array( + 'specUrl' => 'http://xmlrpc.usefulinc.com/doc/reserved.html', + 'specVersion' => 1 + ); + $this->addCallback( + 'system.methodSignature', + 'this:methodSignature', + array('array', 'string'), + 'Returns an array describing the return type and required parameters of a method' + ); + $this->addCallback( + 'system.getCapabilities', + 'this:getCapabilities', + array('struct'), + 'Returns a struct describing the XML-RPC specifications supported by this server' + ); + $this->addCallback( + 'system.listMethods', + 'this:listMethods', + array('array'), + 'Returns an array of available methods on this server' + ); + $this->addCallback( + 'system.methodHelp', + 'this:methodHelp', + array('string', 'string'), + 'Returns a documentation string for the specified method' + ); + } + function addCallback($method, $callback, $args, $help) { + $this->callbacks[$method] = $callback; + $this->signatures[$method] = $args; + $this->help[$method] = $help; + } + function call($methodname, $args) { + // Make sure it's in an array + if ($args && !is_array($args)) { + $args = array($args); + } + // Over-rides default call method, adds signature check + if (!$this->hasMethod($methodname)) { + return new IXR_Error(-32601, 'server error. requested method "'.$this->message->methodName.'" not specified.'); + } + $method = $this->callbacks[$methodname]; + $signature = $this->signatures[$methodname]; + $returnType = array_shift($signature); + // Check the number of arguments + if (count($args) != count($signature)) { + // print 'Num of args: '.count($args).' Num in signature: '.count($signature); + return new IXR_Error(-32602, 'server error. wrong number of method parameters'); + } + // Check the argument types + $ok = true; + $argsbackup = $args; + for ($i = 0, $j = count($args); $i < $j; $i++) { + $arg = array_shift($args); + $type = array_shift($signature); + switch ($type) { + case 'int': + case 'i4': + if (is_array($arg) || !is_int($arg)) { + $ok = false; + } + break; + case 'base64': + case 'string': + if (!is_string($arg)) { + $ok = false; + } + break; + case 'boolean': + if ($arg !== false && $arg !== true) { + $ok = false; + } + break; + case 'float': + case 'double': + if (!is_float($arg)) { + $ok = false; + } + break; + case 'date': + case 'dateTime.iso8601': + if (!is_a($arg, 'IXR_Date')) { + $ok = false; + } + break; + } + if (!$ok) { + return new IXR_Error(-32602, 'server error. invalid method parameters'); + } + } + // It passed the test - run the "real" method call + return parent::call($methodname, $argsbackup); + } + function methodSignature($method) { + if (!$this->hasMethod($method)) { + return new IXR_Error(-32601, 'server error. requested method "'.$method.'" not specified.'); + } + // We should be returning an array of types + $types = $this->signatures[$method]; + $return = array(); + foreach ($types as $type) { + switch ($type) { + case 'string': + $return[] = 'string'; + break; + case 'int': + case 'i4': + $return[] = 42; + break; + case 'double': + $return[] = 3.1415; + break; + case 'dateTime.iso8601': + $return[] = new IXR_Date(time()); + break; + case 'boolean': + $return[] = true; + break; + case 'base64': + $return[] = new IXR_Base64('base64'); + break; + case 'array': + $return[] = array('array'); + break; + case 'struct': + $return[] = array('struct' => 'struct'); + break; + } + } + return $return; + } + function methodHelp($method) { + return $this->help[$method]; + } +} + + +class IXR_ClientMulticall extends IXR_Client { + var $calls = array(); + function IXR_ClientMulticall($server, $path = false, $port = 80) { + parent::IXR_Client($server, $path, $port); + $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)'; + } + function addCall() { + $args = func_get_args(); + $methodName = array_shift($args); + $struct = array( + 'methodName' => $methodName, + 'params' => $args + ); + $this->calls[] = $struct; + } + function query() { + // Prepare multicall, then call the parent::query() method + return parent::query('system.multicall', $this->calls); + } +} + +?> \ No newline at end of file diff --git a/phplib/class.chiffre_lettre.php b/phplib/class.chiffre_lettre.php new file mode 100644 index 0000000..37553ca --- /dev/null +++ b/phplib/class.chiffre_lettre.php @@ -0,0 +1,204 @@ + 999999999999999) { + return "#TropGrand" ; + } + } + else { + if ($dblEnt > 9999999999999.99) { + return "#TropGrand" ; + } + } + switch($Devise) { + case 0 : + if ($byDec > 0) $strDev = " virgule" ; + break; + case 1 : + $strDev = " Euro" ; + if ($byDec > 0) $strCentimes = $strCentimes . " Cents" ; + break; + case 2 : + $strDev = " Dollar" ; + if ($byDec > 0) $strCentimes = $strCentimes . " Cent" ; + break; + } + if (($dblEnt > 1) && ($Devise != 0)) $strDev = $strDev . "s" ; + + $NumberLetter = $this->ConvNumEnt(floatval($dblEnt), $Langue) . $strDev . " " . $this->ConvNumDizaine($byDec, $Langue) . $strCentimes ; + return $NumberLetter; + } + + private function ConvNumEnt($Nombre, $Langue) { + $byNum=$iTmp=$dblReste='' ; + $StrTmp = ''; + $NumEnt='' ; + $iTmp = $Nombre - (intval($Nombre / 1000) * 1000) ; + $NumEnt = $this->ConvNumCent(intval($iTmp), $Langue) ; + $dblReste = intval($Nombre / 1000) ; + $iTmp = $dblReste - (intval($dblReste / 1000) * 1000) ; + $StrTmp = $this->ConvNumCent(intval($iTmp), $Langue) ; + switch($iTmp) { + case 0 : + break; + case 1 : + $StrTmp = "mille " ; + break; + default : + $StrTmp = $StrTmp . " mille " ; + } + $NumEnt = $StrTmp . $NumEnt ; + $dblReste = intval($dblReste / 1000) ; + $iTmp = $dblReste - (intval($dblReste / 1000) * 1000) ; + $StrTmp = $this->ConvNumCent(intval($iTmp), $Langue) ; + switch($iTmp) { + case 0 : + break; + case 1 : + $StrTmp = $StrTmp . " million " ; + break; + default : + $StrTmp = $StrTmp . " millions " ; + } + $NumEnt = $StrTmp . $NumEnt ; + $dblReste = intval($dblReste / 1000) ; + $iTmp = $dblReste - (intval($dblReste / 1000) * 1000) ; + $StrTmp = $this->ConvNumCent(intval($iTmp), $Langue) ; + switch($iTmp) { + case 0 : + break; + case 1 : + $StrTmp = $StrTmp . " milliard " ; + break; + default : + $StrTmp = $StrTmp . " milliards " ; + } + $NumEnt = $StrTmp . $NumEnt ; + $dblReste = intval($dblReste / 1000) ; + $iTmp = $dblReste - (intval($dblReste / 1000) * 1000) ; + $StrTmp = $this->ConvNumCent(intval($iTmp), $Langue) ; + switch($iTmp) { + case 0 : + break; + case 1 : + $StrTmp = $StrTmp . " billion " ; + break; + default : + $StrTmp = $StrTmp . " billions " ; + } + $NumEnt = $StrTmp . $NumEnt ; + return $NumEnt; + } + + private function ConvNumDizaine($Nombre, $Langue) { + $TabUnit=$TabDiz=''; + $byUnit=$byDiz='' ; + $strLiaison = '' ; + + $TabUnit = array("", "un", "deux", "trois", "quatre", "cinq", "six", "sept", + "huit", "neuf", "dix", "onze", "douze", "treize", "quatorze", "quinze", + "seize", "dix-sept", "dix-huit", "dix-neuf") ; + $TabDiz = array("", "", "vingt", "trente", "quarante", "cinquante", + "soixante", "soixante", "quatre-vingt", "quatre-vingt") ; + if ($Langue == 1) { + $TabDiz[7] = "septante" ; + $TabDiz[9] = "nonante" ; + } + else if ($Langue == 2) { + $TabDiz[7] = "septante" ; + $TabDiz[8] = "huitante" ; + $TabDiz[9] = "nonante" ; + } + $byDiz = intval($Nombre / 10) ; + $byUnit = $Nombre - ($byDiz * 10) ; + $strLiaison = "-" ; + if ($byUnit == 1) $strLiaison = " et " ; + switch($byDiz) { + case 0 : + $strLiaison = "" ; + break; + case 1 : + $byUnit = $byUnit + 10 ; + $strLiaison = "" ; + break; + case 7 : + if ($Langue == 0) $byUnit = $byUnit + 10 ; + break; + case 8 : + if ($Langue != 2) $strLiaison = "-" ; + break; + case 9 : + if ($Langue == 0) { + $byUnit = $byUnit + 10 ; + $strLiaison = "-" ; + } + break; + } + $NumDizaine = $TabDiz[$byDiz] ; + if ($byDiz == 8 && $Langue != 2 && $byUnit == 0) $NumDizaine = $NumDizaine . "s" ; + if ($TabUnit[$byUnit] != "") { + $NumDizaine = $NumDizaine . $strLiaison . $TabUnit[$byUnit] ; + } + else { + $NumDizaine = $NumDizaine ; + } + return $NumDizaine; + } + + private function ConvNumCent($Nombre, $Langue) { + $TabUnit='' ; + $byCent=$byReste='' ; + $strReste = '' ; + $NumCent=''; + $TabUnit = array("", "un", "deux", "trois", "quatre", "cinq", "six", "sept","huit", "neuf", "dix") ; + + $byCent = intval($Nombre / 100) ; + $byReste = $Nombre - ($byCent * 100) ; + $strReste = $this->ConvNumDizaine($byReste, $Langue); + switch($byCent) { + case 0 : + $NumCent = $strReste ; + break; + case 1 : + if ($byReste == 0) + $NumCent = "cent" ; + else + $NumCent = "cent " . $strReste ; + break; + default : + if ($byReste == 0) + $NumCent = $TabUnit[$byCent] . " cents" ; + else + $NumCent = $TabUnit[$byCent] . " cent " . $strReste ; + } + return $NumCent; + } +} +?> diff --git a/phplib/class.crontab.php b/phplib/class.crontab.php new file mode 100644 index 0000000..c0369cd --- /dev/null +++ b/phplib/class.crontab.php @@ -0,0 +1,31 @@ +php." ".$job." 2>&1 >>NULL"; + file_put_content($this->filename,$data,FILE_APPEND); + } + function doQuarterly($job) { + $data = '30 7 15 2,5,8,11 * '.$this->php." ".$job." 2>&1 >>NULL"; + file_put_content($this->filename,$data,FILE_APPEND); + + } + function doJob($job) { + file_put_content($this->filename,$this->data,FILE_APPEND); + } + function commit() { + exec("crontab ".$filename,$output,$result); + if ($result === 0) { + } else { + log_error("Failed commit cron jobs"); + } + } +} +> diff --git a/phplib/class.db.php b/phplib/class.db.php new file mode 100644 index 0000000..8ed275d --- /dev/null +++ b/phplib/class.db.php @@ -0,0 +1,124 @@ +conn = mysql_connect($host,$user,$password); + if (! $this->conn) { + echo "Could not connect to $host as $user\n"; + } + mysql_select_db($dbname,$this->conn); + mysql_query("SET NAMES 'utf8'"); + /* Record version ... select VERSION();*/ + $this->mysqli = new mysqli($host,$user,$password,$dbname); + } + + function __destructor () { + if (defined($this->conn)) { + $this->cleanDb(); + } + $this->mysqli->close(); + } + + function insert_id() { + return $this->mysqli->insert_id; + } + function escape($values) { + if(is_array($values)) { + $values = array_map(array(&$this, 'escape'), $values); + } else { + /* Quote if not integer */ + if ( !is_numeric($values) || $values{0} == '0' ) { + $values = "\"" .mysql_real_escape_string($values) . "\""; + } + } + return $values; + } + + function validateUser($user,$pwd ="") { + $u = $this->escape($user); + $p = $this->escape($pwd); + #$query="select * from eglises_person where email =$u and userPassword = PASSWORD($p);" + $query="select * from annuaire_2004_pasteurs where mail = $u ;"; + $result = mysql_query($query,$this->conn); + if (!$result) { + echo "Query failed: $query\n".mysql_error();; + return false; + } + if (mysql_num_rows($result) == 1) { + return true; + } + return false; + } + + /** + * + * + * + */ + function doQuery($sql,$count = "") { + $ident = Array('total_matches' => 0 , 'records' => array ()); + $result = mysql_query($sql,$this->conn); + if ($result ) { + $i = 0; + while ($ident["records"][$i++] = mysql_fetch_array($result,MYSQL_ASSOC)) ; + mysql_free_result($result); + // Stating version 5 of mysql the queries can be more + // sofiticated + if ($count != "" ) { + $result = mysql_query($count,$this->conn); + $row= mysql_fetch_row($result); + $ident["total_matches"] = (int)$row[0]; + mysql_free_result($result); + } + } + return $ident; + + } + /** + */ + function doQueryI($sql,$count = "") { + $ident = Array('total_matches' => 0 , 'records' => array ()); + $qr = $this->mysqli->multi_query($sql); + $i = 0; + if ($qr ) { + do { + if ($result = $this->mysqli->store_result()) { + while ($row = $result->fetch_row()) { + $ident["records"][$i++] = $row; + } + $result->free(); + } + + $ident['total_matches'] = $i; + // Stating version 5 of mysql the queries can be more + // sofiticated + } while($this->mysqli->next_result()); + } else { + error_log("doQuery ".$sql." Failed:".$this->mysqli->error,0); + $ident['result']="Failed :".$this->mysqli->error; + } + return $ident; + } + + + function cleanDb() { + mysql_close($this->conn); + unset($this->conn); + } +} + +?> diff --git a/phplib/class.feed.php b/phplib/class.feed.php new file mode 100644 index 0000000..bf851be --- /dev/null +++ b/phplib/class.feed.php @@ -0,0 +1,369 @@ +unix = $dateString; + return; + } + if (preg_match("~(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s+)?(\\d{1,2})\\s+([a-zA-Z]{3})\\s+(\\d{4})\\s+(\\d{2}):(\\d{2}):(\\d{2})\\s+(.*)~",$dateString,$matches)) { + $months = Array("Jan"=>1,"Feb"=>2,"Mar"=>3,"Apr"=>4,"May"=>5,"Jun"=>6,"Jul"=>7,"Aug"=>8,"Sep"=>9,"Oct"=>10,"Nov"=>11,"Dec"=>12); + $this->unix = mktime($matches[4],$matches[5],$matches[6],$months[$matches[2]],$matches[1],$matches[3]); + if (substr($matches[7],0,1)=='+' OR substr($matches[7],0,1)=='-') { + $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60; + } else { + if (strlen($matches[7])==1) { + $oneHour = 3600; + $ord = ord($matches[7]); + if ($ord < ord("M")) { + $tzOffset = (ord("A") - $ord - 1) * $oneHour; + } elseif ($ord >= ord("M") AND $matches[7]!="Z") { + $tzOffset = ($ord - ord("M")) * $oneHour; + } elseif ($matches[7]=="Z") { + $tzOffset = 0; + } + } + switch ($matches[7]) { + case "UT": + case "GMT": $tzOffset = 0; + } + } + $this->unix += $tzOffset; + return; + } + if (preg_match("~(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(.*)~",$dateString,$matches)) { + $this->unix = mktime($matches[4],$matches[5],$matches[6],$matches[2],$matches[3],$matches[1]); + if (substr($matches[7],0,1)=='+' OR substr($matches[7],0,1)=='-') { + $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60; + } else { + if ($matches[7]=="Z") { + $tzOffset = 0; + } + } + $this->unix += $tzOffset; + return; + } + $this->unix = 0; + } + + /** + * Gets the date stored in this FeedDate as an RFC 822 date. + * + * @return a date in RFC 822 format + */ + function rfc822() { + //return gmdate("r",$this->unix); + $date = gmdate("D, d M Y H:i:s", $this->unix); + if (TIME_ZONE!="") $date .= " ".str_replace(":","",TIME_ZONE); + return $date; + } + + /** + * Gets the date stored in this FeedDate as an ISO 8601 date. + * + * @return a date in ISO 8601 (RFC 3339) format + */ + function iso8601() { + $date = gmdate("Y-m-d\TH:i:sO",$this->unix); + if (TIME_ZONE!="") $date = str_replace("+0000",TIME_ZONE,$date); + $date = substr($date,0,22) . ':' . substr($date,-2); + return $date; + } + + + /** + * Gets the date stored in this FeedDate as unix time stamp. + * + * @return a date as a unix time stamp + */ + function unix() { + return $this->unix; + } +} + + +/** + * \brief Feed Creator classs + * + */ +class FeedCreator { + var $title,$description,$link; + var $contentType = "application/xml"; + var $encoding = "utf-8"; + /** + * Should not be accessed + */ + var $items = Array(); + + /** + * \brief adds FeedItem to the feed; + * + * \param $item the FeedItem to be acced + */ + function addItem($item) { + $this->items[] = $item; + } + + /** + * \brief createFeed + */ + function createFeed() { + } + + /** + * + */ + function _redirect($filename) { + header("Content-Type:".$this->contentType."; charset=".$this->encoding."; filename=".basename($filename)); + header("Content-Disposition: inline; filename=".basename($filename)); + readfile($filename,"r"; + die(); + } + + /** + * + */ + function output() { + echo $this->createFeed(); + } +} + +/** + * RSSCreator091 is a FeedCreator that implements RSS 0.91 Spec, revision 3. + * + * @see http://my.netscape.com/publish/formats/rss-spec-0.91.html + * @since 1.3 + * @author Kai Blankenhorn + */ +class RSSCreator091 extends FeedCreator { + + /** + * Stores this RSS feed's version number. + * @access private + */ + var $RSSVersion; + + function RSSCreator091() { + $this->_setRSSVersion("0.91"); + $this->contentType = "application/rss+xml"; + } + + /** + * Sets this RSS feed's version number. + * @access private + */ + function _setRSSVersion($version) { + $this->RSSVersion = $version; + } + + /** + * Builds the RSS feed's text. The feed will be compliant to RDF Site Summary (RSS) 1.0. + * The feed will contain all items previously added in the same order. + * @return string the feed's complete text + */ + function createFeed() { + $feed = "encoding."\"?>\n"; + $feed.= $this->_createGeneratorComment(); + $feed.= $this->_createStylesheetReferences(); + $feed.= "RSSVersion."\">\n"; + $feed.= " \n"; + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->title),100)."\n"; + $this->descriptionTruncSize = 500; + $feed.= " ".$this->getDescription()."\n"; + $feed.= " ".$this->link."\n"; + $now = new FeedDate(); + $feed.= " ".htmlspecialchars($now->rfc822())."\n"; + $feed.= " ".FEEDCREATOR_VERSION."\n"; + + if ($this->image!=null) { + $feed.= " \n"; + $feed.= " ".$this->image->url."\n"; + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->image->title),100)."\n"; + $feed.= " ".$this->image->link."\n"; + if ($this->image->width!="") { + $feed.= " ".$this->image->width."\n"; + } + if ($this->image->height!="") { + $feed.= " ".$this->image->height."\n"; + } + if ($this->image->description!="") { + $feed.= " ".$this->image->getDescription()."\n"; + } + $feed.= " \n"; + } + if ($this->language!="") { + $feed.= " ".$this->language."\n"; + } + if ($this->copyright!="") { + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->copyright),100)."\n"; + } + if ($this->editor!="") { + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->editor),100)."\n"; + } + if ($this->webmaster!="") { + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->webmaster),100)."\n"; + } + if ($this->pubDate!="") { + $pubDate = new FeedDate($this->pubDate); + $feed.= " ".htmlspecialchars($pubDate->rfc822())."\n"; + } + if ($this->category!="") { + // Changed for DokuWiki: multiple categories are possible + if(is_array($this->category)) foreach($this->category as $cat){ + $feed.= " ".htmlspecialchars($cat)."\n"; + }else{ + $feed.= " ".htmlspecialchars($this->category)."\n"; + } + } + if ($this->docs!="") { + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->docs),500)."\n"; + } + if ($this->ttl!="") { + $feed.= " ".htmlspecialchars($this->ttl)."\n"; + } + if ($this->rating!="") { + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->rating),500)."\n"; + } + if ($this->skipHours!="") { + $feed.= " ".htmlspecialchars($this->skipHours)."\n"; + } + if ($this->skipDays!="") { + $feed.= " ".htmlspecialchars($this->skipDays)."\n"; + } + $feed.= $this->_createAdditionalElements($this->additionalElements, " "); + + for ($i=0;$iitems);$i++) { + $feed.= " \n"; + $feed.= " ".FeedCreator::iTrunc(htmlspecialchars(strip_tags($this->items[$i]->title)),100)."\n"; + $feed.= " ".htmlspecialchars($this->items[$i]->link)."\n"; + $feed.= " ".$this->items[$i]->getDescription()."\n"; + + if ($this->items[$i]->author!="") { + $feed.= " ".htmlspecialchars($this->items[$i]->author)."\n"; + } + /* + // on hold + if ($this->items[$i]->source!="") { + $feed.= " ".htmlspecialchars($this->items[$i]->source)."\n"; + } + */ + if ($this->items[$i]->category!="") { + // Changed for DokuWiki: multiple categories are possible + if(is_array($this->items[$i]->category)) foreach($this->items[$i]->category as $cat){ + $feed.= " ".htmlspecialchars($cat)."\n"; + }else{ + $feed.= " ".htmlspecialchars($this->items[$i]->category)."\n"; + } + } + + if ($this->items[$i]->comments!="") { + $feed.= " ".htmlspecialchars($this->items[$i]->comments)."\n"; + } + if ($this->items[$i]->date!="") { + $itemDate = new FeedDate($this->items[$i]->date); + $feed.= " ".htmlspecialchars($itemDate->rfc822())."\n"; + } + if ($this->items[$i]->guid!="") { + $feed.= " ".htmlspecialchars($this->items[$i]->guid)."\n"; + } + $feed.= $this->_createAdditionalElements($this->items[$i]->additionalElements, " "); + + if ($this->RSSVersion == "2.0" && $this->items[$i]->enclosure != NULL) + { + $feed.= " items[$i]->enclosure->url; + $feed.= "\" length=\""; + $feed.= $this->items[$i]->enclosure->length; + $feed.= "\" type=\""; + $feed.= $this->items[$i]->enclosure->type; + $feed.= "\"/>\n"; + } + + + + $feed.= " \n"; + } + + $feed.= " \n"; + $feed.= "\n"; + return $feed; + } +} + + + +/** + * RSSCreator20 is a FeedCreator that implements RDF Site Summary (RSS) 2.0. + * + * @see http://backend.userland.com/rss + * @since 1.3 + * @author Kai Blankenhorn + */ +class RSSCreator20 extends RSSCreator091 { + + function RSSCreator20() { + parent::_setRSSVersion("2.0"); + } + +} + + +/** + vim:et:ts=4:sw=4:enc=utf-8: + */ +?> diff --git a/phplib/class.form.php b/phplib/class.form.php new file mode 100644 index 0000000..93b904e --- /dev/null +++ b/phplib/class.form.php @@ -0,0 +1,237 @@ +name = $name; + $this->id = $id; + $this->value= $value; + $this->label= $label; + } + function showLabel() { + if ($this->label != "") { + echo ""; + } + } + function show() + { + $this->showLabel(); + echo "onClick != "") { + echo " onclick='".$this->onClick."' "; + } + echo " name='".$this->name."' value='".$this->value."' id='".$this->name."'>\n"; + } + + function setClass($class= "") { $this->class = $class;} + function setWidth($l,$i) {$this->lWidth=$l;$this->iWith=$i;} + function setSize($s,$ml=0) {$this->iSize = $s;} +} + +/** + * @brief + * + * + */ +class FormInputText extends FormInput{ + function FormInputText($name,$value,$label="",$id="") { + parent::FormInput($name,$value,$label,$id); + $this->type="text"; + } +} + +/** + * @brief + * + * + */ +class FormInputPassword extends FormInput{ + function FormInputPassword($name,$value,$label="",$id="") { + parent::FormInput($name,$value,$label,$id); + $this->type="password"; + } +} + +/** + * @brief + * + */ +class FormInputTextArea extends FormInput{ + var $rows = 5; + var $columns = 20; + function FormInputTextArea($name,$v="",$l="",$i="") { + parent::FormInput($name,$v,$l,$i); + } + function setSize($rows,$c = 0) { + $this->rows = $rows; + $this->columns = $c; + } + + function show() { + $this->showLabel(); + echo ""; + } +} + + +/** + * + * + */ +class FormInputCheckbox extends FormInput { + var $checked = 0; + function FormInputCheckbox($n,$v=0,$l="",$i="") { + parent::FormInput($n,$v,$l,$i); + $this->type='checkbox'; + $this->checked=$v; + } + function show() + { + $this->showLabel(); + echo "checked) { + echo "checked"; + } + echo ">\n"; + } +} +/** + * + * + * + */ +class FormInputButton extends FormInput { + function FormInputButton($n,$v,$l,$i) { + parent::FormInput($n,$v,$l,$i); + $this->type='button'; + } +} + +class FormInputSubmit extends FormInput { + function FormInputSubmit($n,$v="",$l="",$i="") { + parent::FormInput($n,$v,$l,$i); + $this->type='submit'; + } +} + +class FormInputFile extends FormInput { + function FormInputFile($n,$v="",$l="",$i="") { + parent::FormInput($n,$v,$l,$i); + $this->type='file'; + } +} +/** + * \brief This class defines an option for the select input. + * \author EBERSOLD Andre + * \date 29/08/08 + */ +class FormSelectOption { + var $selected,$value,$label; + /** + * + */ + function __construct($label,$value,$selected=false) { + $this->label=$label;$this->value=$value;$this->selected=$selected; + } + /** + * \brief default show function + * + */ + function show() { + echo ""; + } +} + +/** + * \brief The Select field + */ +class FormSelect { + var $options,$selection,$size; + var $tabindex,$disabled,$name; + /** + * Default constructor + * an option is 'selected' and has a 'value' + */ + function __construct($name,$options=Array()) { + $this->tabindex=0; + $this->selection= false; + $this->size=10; + $this->name = $name; + $this->options = $options; + } + + /** + * \brief Show function that echo's the selection field + * + */ + function show() { + echo ""; + } +} + +/** + * @brief a formulare + * + * + */ +class Form { + var $method ="POST"; + var $action = ""; + var $inputs = Array(); + var $count = 0; + var $class = ""; + var $id =""; + var $encode = "multipart/form-data"; + var $onSubmit =""; + + function Form($action = "",$method = "POST") { + if ($action != "") { + $this->action=$action; + } + $this->method = $method; + } + + function setClass($class= "") { $this->class = $class;} + + function addInput($input) { + $this->inputs[$this->count++] = $input; + } + + function show() { + echo "
    \n"; + echo "
    "; + echo " "; + foreach ($this->inputs as $input) { + $input->show(); + } + echo " "; + echo "
    "; + echo "
    \n"; + } +} + +?> diff --git a/phplib/class.fpdfdb.php b/phplib/class.fpdfdb.php new file mode 100644 index 0000000..766403f --- /dev/null +++ b/phplib/class.fpdfdb.php @@ -0,0 +1,146 @@ +conn = mysql_connect($host,$user,$password); + $this->conn = mysql_connect($host,$user,$password,false,65536); + if (! $this->conn) { + echo "Could not connect to $host as $user\n"; + } + mysql_select_db($dbname,$this->conn); + mysql_query("SET NAMES 'utf8'"); + /* Record version ... select VERSION();*/ + parent::FPDF(); + + $this->mysqli = new mysqli($host,$user,$password,$dbname); + } + + function __destruct () { + if (defined($this->conn)) { + $this->cleanDb(); + } + //if (defined($this->mysqli)) { + $this->mysqli->close(); + //} + } + + /** + * + * + * + */ + function doQuery($sql,$count = "") { + $ident = Array('total_matches' => 0 , 'records' => array ()); + $result = mysql_query($sql,$this->conn); + if ($result ) { + $i = 0; + while ($ident["records"][$i++] = mysql_fetch_array($result,MYSQL_ASSOC)) ; + mysql_free_result($result); + $ident['total_matches'] = $i; + // Stating version 5 of mysql the queries can be more + // sofiticated + if ($count != "" ) { + $result = mysql_query($count,$this->conn); + $row= mysql_fetch_row($result); + $ident["total_matches"] = (int)$row[0]; + mysql_free_result($result); + } + } else { + error_log("doQuery ".$sql." Failed:".mysql_error(),0); + $ident['result']="Failed"; + } + return $ident; + } + + function doQueryImpr($sql,$count = "") { + $ident = Array('total_matches' => 0 , 'records' => array ()); + $qr = $this->mysqli->multi_query($sql); + $i = 0; + if ($qr ) { + do { + if ($result = $this->mysqli->store_result()) { + while ($row = $result->fetch_row()) { + $ident["records"][$i++] = $row; + } + $result->free(); + } + + $ident['total_matches'] = $i; + // Stating version 5 of mysql the queries can be more + // sofiticated + } while($this->mysqli->next_result()); + } else { + error_log("doQuery ".$sql." Failed:".$this->mysqli->error,0); + $ident['result']="Failed"; + } + return $ident; + } + + function cleanDb() { + mysql_close($this->conn); + unset($this->conn); + } + + function RoundedRect($x, $y, $w, $h, $r, $corners = '1234', $style = '') + { + $k = $this->k; + $hp = $this->h; + if($style=='F') + $op='f'; + elseif($style=='FD' || $style=='DF') + $op='B'; + else + $op='S'; + $MyArc = 4/3 * (sqrt(2) - 1); + $this->_out(sprintf('%.2F %.2F m',($x+$r)*$k,($hp-$y)*$k )); + + $xc = $x+$w-$r; + $yc = $y+$r; + $this->_out(sprintf('%.2F %.2F l', $xc*$k,($hp-$y)*$k )); + if (strpos($corners, '2')===false) + $this->_out(sprintf('%.2F %.2F l', ($x+$w)*$k,($hp-$y)*$k )); + else + $this->_Arc($xc + $r*$MyArc, $yc - $r, $xc + $r, $yc - $r*$MyArc, $xc + $r, $yc); + + $xc = $x+$w-$r; + $yc = $y+$h-$r; + $this->_out(sprintf('%.2F %.2F l',($x+$w)*$k,($hp-$yc)*$k)); + if (strpos($corners, '3')===false) + $this->_out(sprintf('%.2F %.2F l',($x+$w)*$k,($hp-($y+$h))*$k)); + else + $this->_Arc($xc + $r, $yc + $r*$MyArc, $xc + $r*$MyArc, $yc + $r, $xc, $yc + $r); + + $xc = $x+$r; + $yc = $y+$h-$r; + $this->_out(sprintf('%.2F %.2F l',$xc*$k,($hp-($y+$h))*$k)); + if (strpos($corners, '4')===false) + $this->_out(sprintf('%.2F %.2F l',($x)*$k,($hp-($y+$h))*$k)); + else + $this->_Arc($xc - $r*$MyArc, $yc + $r, $xc - $r, $yc + $r*$MyArc, $xc - $r, $yc); + + $xc = $x+$r ; + $yc = $y+$r; + $this->_out(sprintf('%.2F %.2F l',($x)*$k,($hp-$yc)*$k )); + if (strpos($corners, '1')===false) + { + $this->_out(sprintf('%.2F %.2F l',($x)*$k,($hp-$y)*$k )); + $this->_out(sprintf('%.2F %.2F l',($x+$r)*$k,($hp-$y)*$k )); + } + else + $this->_Arc($xc - $r, $yc - $r*$MyArc, $xc - $r*$MyArc, $yc - $r, $xc, $yc - $r); + $this->_out($op); + } + + function _Arc($x1, $y1, $x2, $y2, $x3, $y3) + { + $h = $this->h; + $this->_out(sprintf('%.2F %.2F %.2F %.2F %.2F %.2F c ', $x1*$this->k, ($h-$y1)*$this->k, + $x2*$this->k, ($h-$y2)*$this->k, $x3*$this->k, ($h-$y3)*$this->k)); + } + +} + +?> diff --git a/phplib/class.images.php b/phplib/class.images.php new file mode 100644 index 0000000..de118aa --- /dev/null +++ b/phplib/class.images.php @@ -0,0 +1,124 @@ +src_folder = $src_dir; + $this->dst_folder = $dst_dir; + $this->width = $width; + $this->height = $height; + } + /** + * + */ + function do_batch() + { + $pics = $this->directory($this->src_folder,"jpg,JPG,JPEG,jpeg,mng,PNG"); + $pics = $this->ditchtn($pics,"tn_"); /* remove thumbs from list */ + + foreach ($pics as $p) + { + $this->createthumb($p,$dst_folder."/tn_".$p,$this->width,$this->height); + } + } + + /** + * + */ + function ditchtn($arr,$thumbname) + { + foreach ($arr as $item) + { + if (!preg_match("/^".$thumbname."/",$item)){$tmparr[]=$item;} + } + return $tmparr; + } + + /* + Function createthumb($name,$filename,$new_w,$new_h) + creates a resized image + variables: + $name Original filename + $filename Filename of the resized image + $new_w width of resized image + $new_h height of resized image + */ + function createthumb($name,$filename,$new_w,$new_h) + { + $system=explode(".",$name); + if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);} + if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);} + $old_x=imageSX($src_img); + $old_y=imageSY($src_img); + if ($old_x > $old_y) + { + $thumb_w=$new_w; + $thumb_h=$old_y*($new_h/$old_x); + } + if ($old_x < $old_y) + { + $thumb_w=$old_x*($new_w/$old_y); + $thumb_h=$new_h; + } + if ($old_x == $old_y) + { + $thumb_w=$new_w; + $thumb_h=$new_h; + } + $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h); + imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); + if (preg_match("/png/",$system[1])) + { + imagepng($dst_img,$filename); + } else { + imagejpeg($dst_img,$filename); + } + imagedestroy($dst_img); + imagedestroy($src_img); + } + + /* + Function directory($directory,$filters) + reads the content of $directory, takes the files that apply to $filter + and returns an array of the filenames. + You can specify which files to read, for example + $files = directory(".","jpg,gif"); + gets all jpg and gif files in this directory. + $files = directory(".","all"); + gets all files. + */ + function directory($dir,$filters) + { + $handle=opendir($dir); + $files=array(); + if ($filters == "all"){while(($file = readdir($handle))!==false){$files[] = $file;}} + if ($filters != "all") + { + $filters=explode(",",$filters); + while (($file = readdir($handle))!==false) + { + for ($f=0;$f diff --git a/phplib/class.json-rpc.php b/phplib/class.json-rpc.php new file mode 100644 index 0000000..6a531f0 --- /dev/null +++ b/phplib/class.json-rpc.php @@ -0,0 +1,116 @@ +url = $url; + $this->proxy= $proxy; + $this->id = 1; + } + + /** + * + */ + public function __call($method,$params) { + // pre cond + if ( !is_scalar($method)) { + throw new Exception('Method name issue'); + } + if ( !is_array($params)) { + throw new Exception('Params issue should ne an array'); + } + // request + $request = array('method' => $method, + 'params' => $params, + 'id' => $this->id); + $request = json_encode($request); + // do http request + $opts = array('http' => array( + 'method' => 'POST', + 'header' => 'Content-type: application/json', + 'content' => $request + )); + + $context = stream_context_create($opts); + if ($data = file_get_contents($this->url,false,$context)) { + $response = json_decode($data,true); + } + + if (!is_null($response['error'])) { + throw new Exception('Request error:'.$response['error']); + } + return $response['result']; + } +}; + +/** + * Starting from a object encode and decode json-rpc + * + */ +class JsonRPCServer { + + public function __construct() { + } + /** + * + */ + public static function is_json_rpc() { + if ( $_SERVER['REQUEST_METHOD'] != 'POST' || + empty($_SERVER['CONTENT_TYPE']) || + $_SERVER['CONTENT_TYPE'] != 'application/json; charset=UTF-8') { + return false; + } else return true; + } + function getContent() { + $request = json_decode(file_get_contents('php://input'),true); + return $request; + } + + static function handle($object,$request) { + if (!JsonRPCServer::is_json_rpc()) { + return false; + } + // reads the input data + //$request = json_decode(file_get_contents('php://input'),true); + + // executes the task on local object + try { + if ($result = @call_user_func_array(array($object,$request['method']),$request['params'])) { + $response = array ( + 'id' => $request['id'], + 'result' => $result, + 'error' => NULL + ); + } else { + $response = array ( + 'id' => $request['id'], + 'result' => NULL, + 'error' => 'unknown method or incorrect parameters' + ); + } + } catch (Exception $e) { + $response = array ( + 'id' => $request['id'], + 'result' => NULL, + 'error' => $e->getMessage() + ); + } + if (!empty($request['id'])) { + header('content-type: application/json'); + header('X-JSON: '.json_encode($response)); + echo json_encode($response); + } + return true; + } +}; +?> diff --git a/phplib/class.menu.php b/phplib/class.menu.php new file mode 100644 index 0000000..081cc8f --- /dev/null +++ b/phplib/class.menu.php @@ -0,0 +1,168 @@ +name = $name; + $this->link = $link; + if ( $sub != null ) { + $this->sub = $sub; + } + } + function isSubMenu() {return isset($this->sub);} + + function showHorizontal($parent,$pos,$level=0) { + $res = "
  • "; + if ($this->isSubMenu()) { + $res .= "".$this->name.""; + $res .= $this->sub->showSubMenu($parent,$pos); + } else { + $res .="link."'>".$this->name."
  • \n"; + } + return $res; + } + /** + * + * + */ + function show($parent,$pos,$level=0) { + $result = ""; + if ($this->isSubMenu()) { + $result.="
  • "; + $result.="link."\">".$this->name."\n
  • \n"; + + } else { + $result.="
  • "; + $result.="link."\">".$this->name."
  • \n"; + } + return $result; + } +} + +/** + * @brief Class used to build Menus + * + * + */ +class Menu { + var $parent = ""; + var $parent_item = 0; + var $title; + var $id; + var $items; + var $type='vertical'; + + /** + * + */ + function Menu($id="Menu",$title="home",$type='vertical') + { + $this->title = $title; + $this->id = $id; + $this->type = $type; + $this->items = array(); + } + + function addMenuItem($name,$link) { + $this->items[$name] = new MenuItem($name,$link); + } + function addSubMenu($name,$link,$sub) { + $this->items[$name] = new MenuItem($name,$link,$sub); + } + + /** + * @brief Show Vertical Menu + * + * + */ + function showVertical($parent="") + { + if ($parent == "") { + // Display Menu title + $result="id; + $result.="\">id."\">"; + $result.=$this->title.""; + $result.="
      id."\" onmouseout=\"hideMenu(event,'".$this->id."',0)\" onmouseover=\"stopHideMenu(0)\">\n"; + echo "$result"; + $i = 1; + $result=""; + foreach ($this->items as $item) { + $result.=$item->show($this->id,$i); + $i+= 1; + } + + $result.="
    \n"; + } + echo $result; + } + + /** + * @brief Show Horizontal Menu + * + */ + function showHorizontal($parent="") { + $result="
      \n"; + $res = ""; + $i = 1; + foreach ($this->items as $item) { + $res.=$item->showHorizontal($this->id,$i); + $i+= 1; + } + $result.=$res."
    \n"; + echo $result; + } + /** + * @brief + * + */ + function showSubMenu($parent,$pos) { + $i = 1; + $result = ""; + if ($this->type == "horizontal" ){ + $result.="
      \n"; + } + foreach ($this->items as $item) { + if ($this->type =='vertical' ) { + $result.=$item->show($parent."_".$pos,$i,1); + } else { + $result.=$item->showHorizontal($parent.$pos."_",$i,1); + } + $i+= 1; + } + if ($this->type == "horizontal" ){ + $result.="
    \n"; + } + return $result; + } + + /** + * @brief main entry to show a menu + * + */ + function show($parent = "") { + if ($this->type == 'vertical') { + $this->showVertical($parent); + } else { + $this->showHorizontal($parent); + } + + } +} +?> diff --git a/phplib/class.nntp.php b/phplib/class.nntp.php new file mode 100644 index 0000000..834c904 --- /dev/null +++ b/phplib/class.nntp.php @@ -0,0 +1,9 @@ + diff --git a/phplib/class.notebook.php b/phplib/class.notebook.php new file mode 100644 index 0000000..5cf1eb8 --- /dev/null +++ b/phplib/class.notebook.php @@ -0,0 +1,73 @@ +title;} + + function show_title($obj) { + echo "
  • "; + echo "title."');\" id=\"center\">"; + echo $this->title."
  • "; + } + /** + * \brief this function might be reimplemented for + * each new page + */ + function content() { + } + /** + * \brief This page display the decoration + */ + function show() { + echo "
    "; + $this->content(); + echo "
    "; + } +} + +/** + * \brief This class will be used to create and + * display a note book + * \author EBERSOLD ANDRE + * \date 01/09/08 + * + */ +class Notebook { + var $pages=Array(); + var $title; + var $obj="NoteWin"; + + function __construct() { + } + + fucntion addPage($page) { + $pages[] = $page; + } + + function show() { + echo "
      "; + echo "
    "; + foreach ($pages as $page) { + $page->show_title($this->obj); + } + foreach ($pages as $page) { + $page->show($this->obj); + } + echo "
    "; + } +} +/* + vim:et:sw=4:ts=4:enc=utf-8 + */ +?> diff --git a/phplib/class.ofx.php b/phplib/class.ofx.php new file mode 100644 index 0000000..0483b75 --- /dev/null +++ b/phplib/class.ofx.php @@ -0,0 +1,91 @@ +texte, '<'.$code.'>') ; + if ($debut>0) { + $fin = strpos($this->texte, '')+strlen($code)+3 ; + $this->paragraphe = substr($this->texte, $debut, $fin-$debut) ; + $this->texte = substr($this->texte, $fin) ; + } else $this->paragraphe = '' ; + } + +function valeur($parametre) { + global $paragraphe ; + $debut = strpos($this->paragraphe, '<'.$parametre.'>') ; + if ($debut>0) { + $debut = $debut+strlen($parametre)+2 ; + $fin = strpos($this->paragraphe, '<',$debut+1) ; + return trim(substr($this->paragraphe, $debut, $fin-$debut)) ; + } else return '' ; +} + + +$_file_ = $_FILES['fichier_ofx']; +if(is_uploaded_file($_file_['tmp_name']) && $_file_['error'] == 0){ + $ofx_msg = ""; + if($_size_ > 3200000) $ofx_msg = "Erreur: le fichier est trop lourd (max 3M)"; + if(empty($errStr)){ + $fichier = $_file_['tmp_name'] ; + if (file_exists($fichier)) { + $file = fopen($fichier, "r") ; + $texte = ''; + while (!feof($file)) $texte .= fread($file, 8192); + fclose($file); + paragraphe('BANKACCTFROM') ; + if (strlen($paragraphe)>0) { + $code_banque = $this->valeur('BANKID') ; + $code_guichet = $this->valeur('BRANCHID') ; + $no_compte = $this->valeur('ACCTID') ; + mysql_select_db($database_locations, $locations); + $query_rs_compte = "SELECT id, libelle FROM tbl_compte WHERE code_banque='$code_banque' AND code_guichet='$code_guichet' AND no_compte='$no_compte'"; + $rs_compte = mysql_query($query_rs_compte, $locations) or die(mysql_error()); + $row_rs_compte = mysql_fetch_assoc($rs_compte); + $compte_id = $row_rs_compte['id'] ; + $totalRows_rs_compte = mysql_num_rows($rs_compte); + if ($totalRows_rs_compte == 1) { + $values = '' ; + $a_supprimer = array("'", ".") ; + $this->paragraphe('STMTTRN') ; + $i = 0 ; + while (strlen($this->paragraphe)>0) { + $i += 1 ; + $type = $this->valeur('TRNTYPE') ; + $date = $this->valeur('DTPOSTED') ; + $montant = $this->valeur ('TRNAMT') ; + $reste = $montant ; + $banque_mouvement_id = $compte_id.' - '.valeur('FITID') ; + $libelle = ucwords(strtolower(str_replace($a_supprimer, ' ', valeur('NAME')))) ; + $info = ucwords(strtolower(str_replace($a_supprimer, ' ', valeur ('MEMO')))) ; + $values .= "(".$compte_id.",'".$type."',".$date.",".$montant.",".$reste. + ",'".$banque_mouvement_id."','".$libelle."','".$info."'), " ; + paragraphe('STMTTRN') ; + } + $values = substr($values, 0, strlen($values)-2) ; + mysql_select_db($database_locations, $locations); + $query_insert = "INSERT IGNORE INTO tbl_mouvement (compte_id, type, `date`, montant, reste, banque_mouvement_id, libelle, info) VALUES $values"; + if (mysql_query($query_insert, $locations) == 1) + $ofx_msg = "Importation réussie de $i mouvements dans le compte ".$row_rs_compte['libelle'].'
    '.mysql_info($locations) ; + else $ofx_msg = "Erreur dans l'insertion des mouvements" ; + } else $ofx_msg = "Erreur: le compte bancaire $code_banque / $code_guichet / $no_compte n'existe pas" ; + } else $ofx_msg = "Erreur: le fichier ne semble pas être un fichier OFX valide" ; + } else $ofx_msg = "Erreur: échec lors de l'ouverture du fichier $fichier" ; + } else $ofx_msg = "Erreur: le fichier n'a pas été téléchargé" ; +} else $ofx_msg = "Erreur: vous n'avez pas choisi de fichier" ; + + +?> diff --git a/phplib/class.page.php b/phplib/class.page.php new file mode 100644 index 0000000..f969d2b --- /dev/null +++ b/phplib/class.page.php @@ -0,0 +1,171 @@ +\n"; + echo ""; + echo "\n"; + echo " ".$this->title."\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " keywords."\">\n"; + echo " description()."\">\n"; + } + + function generate_links() { + + #echo "\n"; + echo "\n"; + echo << + + + +FIN; + + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + # + # Was necessary for IE !!! + # + echo "\n"; + } + + + + # + # xgui links + # + function generate_xgui() { + echo ""; + echo "\n"; + echo "\n"; + + } + + function top () { + } + function bottom () { + } + function news() { + "
    "; + } + + function hMenu () { + echo "
    \n"; + #echo ""; + } + + function vMenu () { + if (!defined($this->vmenu)) { + $this->vmenu = new Menu("Menu1"); + $this->vmenu->addMenuItem("accueil","/app/index.php"); + $this->vmenu->addMenuItem("register","/app/registration/register.php"); + } + $this->vmenu->show(); + } + + + function main() { + echo "

    Main entry

    "; + } + function _login() { + } + + function showTitle($title) { + echo "

    $title

    \n"; + } + function _content() { + echo "\n
    \n
    \n"; + $this->main(); + echo "
    \n"; /* end content */ + } + function show () { + $this->_HtmlHeader(); + echo "
    \n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "
    "; + $this->news(); + $this->_content(); + echo "
    \n"; /* end main */ + echo "
    "; + $this->bottom(); + echo "
    \n"; + echo "
    \n"; + $this->_login(); + echo "\n\n"; + return true; + } +} +?> diff --git a/phplib/class.session.php b/phplib/class.session.php new file mode 100644 index 0000000..1c18f90 --- /dev/null +++ b/phplib/class.session.php @@ -0,0 +1,64 @@ + diff --git a/phplib/class.sitemap.php b/phplib/class.sitemap.php new file mode 100644 index 0000000..57d0569 --- /dev/null +++ b/phplib/class.sitemap.php @@ -0,0 +1,59 @@ +url = $u; + + $this->changefreq ="monthly"; + $this->priority =$p; + } + + function createItem() { + $item=""; + $item.="".$this->url.""; + $item.="".$this->lastupdate.""; + $item.="".$this->changefreq.""; + $item.="".$this->priority.""; + $item.=""; + return $item; + } +}; + +class SitemapCreator { + var $contentType = "application/xml"; + var $encoding = "utf-8"; + var $items = array(); + function __construct() + { + header("Content-Type:".$this->contentType."; charset=".$this->encoding."; filename=sitemap.xml"); + } + + function addItem($i) { + $this->items[] = $i; + } + + function createSitemap() { + $sitemap =" "; + foreach ($this->items as $item) { + $sitemap.=$item->createItem(); + } + $sitemap .=""; + return $sitemap; + } + + function output() { + echo $this->createSitemap(); + } + +} + + +/* + :vim:enciding=utf-8:fileencoding=utf-8:et:sw=2:ts-2 + */ +?> diff --git a/phplib/class.smtp.php b/phplib/class.smtp.php new file mode 100644 index 0000000..2f4f933 --- /dev/null +++ b/phplib/class.smtp.php @@ -0,0 +1,671 @@ +serveur = $serveur; + } + if($user){ + $this->Authentification_smtp = true; + $this->login_smtp = $user; + $this->mdp_smtp = $pass; + } + $this->port = $port; + if($NomDuDomaine){ + $this->NomDuDomaine = $NomDuDomaine; + } + $this->debug = $debug; + } + + + //************************************************************************** + // Fonction de connection SMTP + //************************************************************************** + function Connect_SMTP(){ + // Definition du charset + if(!$this->CHARSET){ $this->CHARSET = mb_internal_encoding(); } + + // Connection au serveur SMTP + $this->smtp_connection = fsockopen($this->serveur, // Serveur + $this->port, // Port de connection + $num_erreur, // Numéros de l' erreur + $msg_erreur, // Message d' erreur + $this->time_out); // Durée de la connection en secs + if(!$this->smtp_connection){// Vérification de la connection + $this->erreur = 'Impossible de se connecter au serveur SMTP !!!
    '."\r\n" + .'Numéro de l' erreur: '.$num_erreur.'
    '."\r\n" + .'Message renvoyé: '.$msg_erreur.'
    '."\r\n"; + return false; + } + + // Suppression du message d' accueil + $reponce = $this->get_smtp_data(); + // Debug + if($this->debug){ + echo '
    Connection
    ',"\r\n",str_replace("\r\n", '
    ', $reponce['msg']); + } + + // On règle le timeout du serveur SMTP car parfois, le serveur SMTP peut être un peut lent à répondre + // Windows ne comprend pas la fonction socket_set_timeout donc on vérifi que l' on travail sous Linux + if(substr(PHP_OS, 0, 3) !== 'WIN'){ + socket_set_timeout($this->smtp_connection, $this->time_out, 0); + } + + //********************************************************************** + // Commande EHLO et HELO + if($this->NomDuDomaine === ''){// On vérifit si le nom de domaine à été renseigné + if($_SERVER['SERVER_NAME'] !== ''){ + $this->NomDuDomaine = $_SERVER['SERVER_NAME']; + }else{ + $this->NomDuDomaine = 'localhost.localdomain'; + } + } + + if(!$this->Commande('EHLO '.$this->NomDuDomaine, 250)){// Commande EHLO + // Deusième commande EHLO -> HELO + if(!$this->Commande('HELO '.$this->NomDuDomaine, 250, 'Le serveur refuse l' authentification (EHLO et HELO) !!!')){// Commande HELO + return false; + } + } + + if($this->tls && !$this->Commande('STARTTLS', 220, 'Le serveur refuse la connection sécurisée ( STARTTLS ) !!!')){// Commande STARTTLS + return false; + } + + if($this->Authentification_smtp){// On vérifi si l' on a besoin de s' authentifier + //****************************************************************** + // Authentification + //****************************************************************** + if(!$this->Commande('AUTH LOGIN', 334, 'Le serveur refuse l' authentification (AUTH LOGIN) !!!')){ + return false; + } + + + //****************************************************************** + // Authentification : Login + //****************************************************************** + $tmp = $this->Commande(base64_encode($this->login_smtp), 334, 'Login ( Nom d' utilisateur ) incorrect !!!', 0); + if(!$tmp['no_error']){ + return false; + } + // Debug + if($this->debug){ + echo '
    Envoie du login.
    ',"\r\n",str_replace("\r\n", '
    ', $tmp['msg']); + } + + + //****************************************************************** + // Authentification : Mot de passe + //****************************************************************** + $tmp = $this->Commande(base64_encode($this->mdp_smtp), 235, 'Mot de passe incorrect !!!', 0); + if(!$tmp['no_error']){ + return false; + } + // Debug + if($this->debug){ + echo '
    Envoie du mot de passe.
    ',"\r\n",str_replace("\r\n", '
    ', $tmp['msg']); + } + + } + + //********************************************************************** + // Connecté au serveur SMTP + //********************************************************************** + return true; + } + + + //************************************************************************** + // Fonctons de set + //************************************************************************** + function set_from($name, $email='', $org='Localhost'){ + $this->FromName = $name; + if($this->Encode){ + $this->FromName = $this->encode_mimeheader(mb_convert_encoding($this->FromName, $this->ISO, $this->CHARSET), $this->ISO); + } + if(!empty($email)){ + $this->From = $email; + } + $this->org = $org; + unset($name, $email, $org); + } + + function set_encode($ISO, $CHARSET=''){ + $this->Encode = true; + $this->ISO = $ISO; + $this->CHARSET = $CHARSET; + unset($ISO, $CHARSET); + } + + + //************************************************************************** + // System d' encodage par Pierre CORBEL + //************************************************************************** + function encode_mimeheader($string){ + $encoded = ''; + $CHARSET = mb_internal_encoding(); + // Each line must have length <= 75, including `=?'.$this->CHARSET.'?B?` and `?=` + $length = 75 - strlen('=?'.$this->CHARSET.'?B?') - 2; + $tmp = mb_strlen($string, $this->CHARSET); + // Average multi-byte ratio + $ratio = mb_strlen($string, $this->CHARSET) / strlen($string); + // Base64 has a 4:3 ratio + $magic = floor(3 * $length * $ratio / 4); + $avglength = $magic; + + for($i=0; $i <= $tmp; $i+=$magic) { + $magic = $avglength; + $offset = 0; + // Recalculate magic for each line to be 100% sure + do{ + $magic -= $offset; + $chunk = mb_substr($string, $i, $magic, $this->CHARSET); + $chunk = base64_encode($chunk); + $offset++; + }while(strlen($chunk) > $length); + if($chunk){ + $encoded .= ' '.'=?'.$this->CHARSET.'?B?'.$chunk.'?='."\r\n"; + } + } + // Chomp the first space and the last linefeed + return substr($encoded, 1, -2); + } + + + //************************************************************************** + // Foncton d' ajout de pièce jointe + //************************************************************************** + function add_file($url_file){ + if(!$url_file){ + $this->erreur = 'Champs manquant !!!
    '."\r\n"; + return false; + } + if(!($fp = @fopen($url_file, 'a'))){ + $this->erreur = 'Fichier introuvable !!!
    '."\r\n"; + return false; + } + fclose($fp); + + $file_name = explode('/', $url_file); + $file_name = $file_name[count($file_name)-1]; + $mime = parse_ini_file('./mime.ini'); + $ext = explode('.', $file_name); + $ext = $ext[count($ext)-1]; + + if(IsSet($this->File_joint[$file_name])){ + $file_name = explode('_', str_replace('.'.$ext, '', $file_name)); + if(is_numeric($file_name[count($file_name)-1])){ + $file_name[count($file_name)-1]++; + $file_name = implode('_', $file_name); + }else{ + $file_name = implode('_', $file_name); + $file_name .= '_1'; + } + $file_name .= '.'.$ext; + } + $this->File_joint[$file_name] = array( + 'url' => $url_file, + 'mime' => $mime[$ext] + ); + unset($file_name, $mime, $ext); + } + + + //************************************************************************** + // Entêtes (Headers) + //************************************************************************** + function headers(){ + // Id unique + $Boundary1 = '------------Boundary-00=_'.substr(md5(uniqid(time())), 0, 7).'0000000000000'; + $Boundary2 = '------------Boundary-00=_'.substr(md5(uniqid(time())), 0, 7).'0000000000000'; + $Boundary3 = '------------Boundary-00=_'.substr(md5(uniqid(time())), 0, 7).'0000000000000'; + + $header = ''; + $No_body = 0; + + // Adresse de l'expéditeur (format : Nom ) + if(!empty($this->From)){ + $header .= 'X-Sender: '.$this->From."\n";// Adresse réelle de l'expéditeur + } + // La version mime + if(!empty($this->MIME)){ + $header .= 'MIME-Version: '.$this->MIME."\n"; + } + $header .= sprintf("Message-ID: <%s@%s>%s", md5(uniqid(time())), $this->NomDuDomaine, "\n") + .'Date: '.date('r')."\n" + .'Content-Type: Multipart/Mixed;'."\n" + .' boundary="'.$Boundary1.'"'."\n" + // Logiciel utilisé pour l' envoi des mails + .'X-Mailer: PHP '.phpversion()."\n"; + // Adresse de l'expéditeur (format : Nom ) + if(!empty($this->From)){ + if(!empty($this->FromName)){ + $header .= 'From: "'.$this->FromName.'"'; + }else{ + $header .= 'From: '; + } + $header .= '<'.$this->From.">\n"; + } + $header .= 'X-FID: FLAVOR00-NONE-0000-0000-000000000000'."\n"; + + // Priorité accordée au mail (valeur allant de 1 pour Urgent à 3 pour normal et 6 pour bas) + if(!empty($this->Priority)){ + $header .= 'X-Priority: '.$this->Priority."\n"; + } + // To + if(!empty($this->To)){// A + $header .= 'To: '.$this->To."\n"; + }else{ + $No_body++;// Personne + } + // Cc + if(!empty($this->Cc)){// Copie du mail + $header .= 'Cc: '.$this->Cc."\n"; + }else{ + $No_body++;// Personne + } + // Bcc + if(empty($this->Bcc)){// Blind Carbon Copy, c' est à dire que les adresses qui sont contenue ici seront invisibles pour tout le monde + $No_body++;// Personne + } + // Sujet + if(!empty($this->Sujet)){ + $header .= 'Subject: '.$this->Sujet."\n"; + } + if(!empty($this->Confimation_reception)){// Adresse utilisée pour la réponse au mail + $header .= 'Disposition-Notification-To: <'.$this->Confimation_reception.'>'."\n"; + } + // ReplyTo + if(!empty($this->ReplyTo) && $this->ReplyTo !== $this->From && $this->ReplyTo !== 'root@localhost'){// Adresse utilisée pour la réponse au mail + $header .= 'Reply-to: '.$this->ReplyTo."\n" + .'Return-Path: <'.$this->ReplyTo.">\n"; + } + if(!IsSet($_SERVER['REMOTE_ADDR'])){$_SERVER['REMOTE_ADDR'] = '127.0.0.1';} + if(!IsSet($_SERVER['HTTP_X_FORWARDED_FOR'])){$_SERVER['HTTP_X_FORWARDED_FOR'] = '';} + if(!IsSet($_SERVER['HTTP_USER_AGENT'])){$_SERVER['HTTP_USER_AGENT'] = 'Internet Explorer';} + if(!IsSet($_SERVER['HTTP_ACCEPT_LANGUAGE'])){$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'Fr-fr';} + $host = 'localhost'; + if(function_exists('gethostbyaddr') && $_SERVER['REMOTE_ADDR'] !== '127.0.0.1'){$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);} + $header .= 'X-Client-IP: '.$_SERVER['REMOTE_ADDR']."\n" + .'X-Client-PROXY: '.$_SERVER['HTTP_X_FORWARDED_FOR']."\n" + .'X-Client-Agent: '.$_SERVER['HTTP_USER_AGENT']."\n" + .'X-Client-Host: '.$host."\n" + .'X-Client-Language: '.$_SERVER['HTTP_ACCEPT_LANGUAGE']."\n" + .'Organization: '.$this->org."\n" + ."\n\n\n" + .'--'.$Boundary1."\n" + .'Content-Type: Multipart/Alternative;'."\n" + .' boundary="'.$Boundary3.'"'."\n" + ."\n\n" + .'--'.$Boundary3."\n"; + if($this->ContentType === 'txt' || $this->ContentType === 'txt/html'){ + $header .= 'Content-Type: Text/Plain;'."\r\n" + .' charset="'.$this->ISO.'"'."\r\n" + .'Content-Transfer-Encoding: '.$this->Encoding."\r\n" + ."\r\n"; + if($this->ContentType === 'txt'){ + $header .= $this->Body."\r\n"; + }else{ + $header .= $this->Body_txt."\r\n"; + } + }elseif($this->ContentType === 'html' || $this->ContentType === 'txt/html'){ + if($this->ContentType === 'txt/html'){ + $header .= '--'.$Boundary3."\r\n"; + } + $header .= 'Content-Type: Text/HTML;'."\r\n" + .' charset="'.$this->ISO.'"'."\r\n" + .'Content-Transfer-Encoding: '.$this->Encoding."\r\n" + ."\r\n" + .''."\r\n" + .''."\r\n" + .''."\r\n" + .''."\r\n" + .''."\r\n" + .$this->Body."\r\n" + .''."\r\n" + .'--'.$Boundary3.'--'."\r\n"; + }else{ + $header .= 'Content-Type: '.$this->ContentType.';'."\r\n" + .' charset="'.$this->ISO.'"'."\r\n" + .'Content-Transfer-Encoding: '.$this->Encoding."\r\n" + ."\r\n" + .$this->Body."\r\n"; + } + $header .= "\n"; + + // On joint le ou les fichiers + if($this->File_joint){ + foreach($this->File_joint as $file_name => $file){ + $header .= '--'.$Boundary1."\n" + .'Content-Type: '.$file['mime'].';'."\n" + .' name="'.$file_name.'"'."\n" + .'Content-Disposition: attachment'."\n" + .'Content-Transfer-Encoding: base64'."\n" + ."\n" + .chunk_split(base64_encode(file_get_contents($file['url'])))."\n" + ."\n\n"; + } + } + $header .= '--'.$Boundary1.'--'; + + if($No_body === 3){ + $this->erreur = 'Le mail n' a pas de destinataire !!!'; + return false; + } + return $header; + } + + + //************************************************************************** + // Envoie du mail avec le serveur SMTP + //************************************************************************** + function smtp_mail($to, $subject, $message, $header=''){ + // Pas de déconnection automatique + $auto_disconnect = false; + // On vérifit si la connection existe + if(empty($this->smtp_connection)){ + if(!$this->Connect_SMTP()){// Connection + $this->erreur .= 'Impossible d' envoyer le mail !!!
    '."\r\n"; + return false; + } + $auto_disconnect = true;// Déconnection automatique activée + } + + // On vérifit Que c' est le premier tour sinon on éfface les anciens paramètres + if($this->Tour){ + if($this->Commande('RSET', 250, 'Envoie du mail impossible !!!')){ + $this->Tour = 0; + } + } + + //********************************************************************** + // Variables temporairement modifiées + if(!empty($to)){ + $this->To = $to; + } + if(!empty($subject)){ + if($this->Encode){ + $this->Sujet = $this->encode_mimeheader(mb_convert_encoding($subject, $this->ISO, $this->CHARSET), $this->ISO); + }else{ + $this->Sujet = mb_encode_mimeheader($subject, $this->ISO); + } + } + + if(is_array($message)){ + $this->Body = $message[0]; + $this->Body_txt = $message[1]; + if($this->Encode){ + $this->Body = mb_convert_encoding($this->Body, $this->ISO, $this->CHARSET); + $this->Body_txt = mb_convert_encoding($this->Body_txt, $this->ISO, $this->CHARSET); + } + }else{ + $this->Body = $message; + if($this->Encode){ + $this->Body = mb_convert_encoding($this->Body, $this->ISO, $this->CHARSET); + } + } + + //********************************************************************** + // Y a t' il un destinataire + if(empty($this->To) && empty($header) && empty($this->Bcc) && empty($this->Cc)){ + $this->erreur = 'Veuillez entrer une adresse de destination !!!
    '."\r\n"; + return false; + } + + //********************************************************************** + // Envoie des informations + //********************************************************************** + + //********************************************************************** + // De Qui + if(!empty($this->From) && !$this->Tour){ + if(!$this->Commande('MAIL FROM:<'.$this->From.'>', 250, 'Envoie du mail impossible car le serveur n' accèpte pas la commande MAIL FROM !!!')){ + return false; + } + $this->Tour = 1; + } + + //********************************************************************** + // A Qui + $A = array(); + if(!empty($this->To)){ + $A[0] = $this->To; + } + if(!empty($this->Bcc)){ + $A[1] = $this->Bcc; + } + if(!empty($this->Cc)){ + $A[2] = $this->Cc; + } + foreach($A as $cle => $tmp_to){ + if(substr_count($tmp_to, ',')){ + $tmp_to = explode(',', $tmp_to); + foreach($tmp_to as $cle => $tmp_A){ + if(!$this->Commande('RCPT TO:<'.$tmp_A.'>', array(250,251), 'Envoie du mail impossible car le serveur n' accèpte pas la commande RCPT TO !!!')){ + return false; + } + } + }else{ + if(!$this->Commande('RCPT TO:<'.$tmp_to.'>', array(250,251), 'Envoie du mail impossible car le serveur n' accèpte pas la commande RCPT TO !!!')){ + return false; + } + } + } + + //********************************************************************** + // On créer les entêtes ( headers ) si c' est pas fait + if(empty($header)){ + if(!$header = $this->headers()){ + $this->erreur .= 'Impossible d' envoyer le mail !!!
    '."\r\n"; + return false; + } + } + + + //********************************************************************** + // On indique que l' on va envoyer des données + if(!$this->Commande('DATA', 354, 'Envoie du mail impossible car le serveur n' accèpte pas la commande DATA!!!')){ + return false; + } + + + //********************************************************************** + // Envoie de l' entête et du message + fputs($this->smtp_connection, $header); + fputs($this->smtp_connection, "\r\n.\r\n"); + + $reponce = $this->get_smtp_data(); + // Debug + if($this->debug){ + echo '
    Entête et message :
    ',"\r\n",'
    ',str_replace(array("\r\n","\n"), '
    ', $header),'
    ',"\r\n",$message,'
    ',"\r\n",'
    ',"\r\n",str_replace("\r\n", '
    ', $reponce['msg']); + } + if($reponce['code'] !== 250 && $reponce['code'] !== 354){ + $this->erreur = 'Envoie du mail impossible !!!
    '."\r\n" + .'Numéro de l' erreur: '.$reponce['code'].'
    '."\r\n" + .'Message renvoyé: '.$reponce['msg'].'
    '."\r\n"; + return false; + } + + + //********************************************************************** + // Variables temporairement modifiées + if($to === $this->To){ + $this->To = ''; + } + if($subject === $this->Sujet){ + $this->Sujet = ''; + } + + //********************************************************************** + // Déconnection automatique + //********************************************************************** + if($auto_disconnect){// Auto déconnection ? + $this->Deconnection_SMTP();// Déconnection + } + + //********************************************************************** + // Mail envoyé + //********************************************************************** + return true; + } + + + //************************************************************************** + // Lecture des données renvoyées par le serveur SMTP + //************************************************************************** + function get_smtp_data(){ + $data = ''; + while($donnees = fgets($this->smtp_connection, 515)){// On parcour les données renvoyées + $data .= $donnees; + + if(substr($donnees,3,1) == ' ' && !empty($data)){break;}// On vérifi si on a toutes les données + } + // Renvoie des données : array(Code, message complet) + return array('code'=>(int)substr($data, 0, 3), 'msg'=>$data); + } + + + //************************************************************************** + // Execution des commandes SMTP + //************************************************************************** + function Commande($commande, $bad_error, $msg_error='', $debug=1){ + if(!empty($this->smtp_connection)){ + fputs($this->smtp_connection, $commande."\n"); + $reponce = $this->get_smtp_data(); + // Debug + if($this->debug && $debug){ + echo '
    ',htmlentities($commande),'
    ',"\r\n",str_replace("\r\n", '
    ', $reponce['msg']); + } + + // Tableau de code valide + if((is_array($bad_error) && !in_array($reponce['code'], $bad_error)) || (!is_array($bad_error) && $reponce['code'] !== $bad_error)){ + if($msg_error){ + $this->erreur = $msg_error.'
    '."\r\n" + .'Numéro de l' erreur: '.$reponce['code'].'
    '."\r\n" + .'Message renvoyé: '.$reponce['msg'].'
    '."\r\n"; + } + if(!$debug){ + return array('no_error'=>false, 'msg'=>$reponce['msg']); + }else{ + return false; + } + } + + if(!$debug){ + return array('no_error'=>true, 'msg'=>$reponce['msg']); + }else{ + return true; + } + }else{ + $this->erreur = 'Impossible d' éxecuter la commande '.$commande.' car il n' y a pas de connection !!!
    '."\r\n"; + if(!$debug){ + return array('no_error'=>false, 'msg'=>''); + }else{ + return false; + } + } + } + + + //************************************************************************** + // Fonction de déconnection SMTP + //************************************************************************** + function Deconnection_SMTP(){ + if(!empty($this->smtp_connection)){ + if(!$this->Commande('QUIT', 221, 'Impossible de se déconnecter !!!')){ + return false; + } + + @sleep(5);// On laisse 5 seconde au serveur pour terminer toutes les instructions + if(!fclose($this->smtp_connection)){ + $this->erreur = 'Impossible de se déconnecter !!!
    '."\r\n"; + return false; + } + $this->smtp_connection = 0; + return true; + } + $this->erreur = 'Impossible de se déconnecter car il n' y a pas de connection !!!
    '."\r\n"; + return false; + } + } + ?> + + diff --git a/phplib/fpdf/FAQ.htm b/phplib/fpdf/FAQ.htm new file mode 100644 index 0000000..ede1608 --- /dev/null +++ b/phplib/fpdf/FAQ.htm @@ -0,0 +1,284 @@ + + + + +FAQ + + + + +

    FAQ

    + +
      + +
    • +

      1. What's exactly the license of FPDF? Are there any usage restrictions?

      +FPDF is Freeware (it is stated at the beginning of the source file). There is no usage +restriction. You may embed it freely in your application (commercial or not), with or +without modification. You may redistribute it, too. +
    • + +
    • +

      2. When I try to create a PDF, a lot of weird characters show on the screen. Why?

      +These "weird" characters are in fact the actual content of your PDF. This behavior is a bug of +IE6. When it first receives an HTML page, then a PDF from the same URL, it displays it directly +without launching Acrobat. This happens frequently during the development stage: on the least +script error, an HTML page is sent, and after correction, the PDF arrives. +
      +To solve the problem, simply quit and restart IE. You can also go to another URL and come +back. +
      +To avoid this kind of inconvenience during the development, you can generate the PDF directly +to a file and open it through the explorer. +
    • + +
    • +

      3. I try to generate a PDF and IE displays a blank page. What happens?

      +First of all, check that you send nothing to the browser after the PDF (not even a space or a +carriage return). You can put an exit statement just after the call to the Output() method to +be sure. +
      +If it still doesn't work, it means you're a victim of the "blank page syndrome". IE used in +conjunction with the Acrobat plug-in suffers from numerous bugs, in all versions. You should +test your application with as many IE versions as possible (at least if you're on the Internet). +The problem occurs mostly with the POST method, so it is strongly advised to avoid it (all the +more that it causes other problems, see the next question). The GET works better but may fail +when the URL becomes too long: don't use a query string with more than 45 characters. However, a +tip exists to exceed this limit: end the URL with .pdf, which tricks IE. If you use a form, you +can add a hidden field at the last position: +
      +
      <input type="HIDDEN" name="ext" value=".pdf">
      +
      +The usage of PHP sessions also often causes trouble (avoid using HTTP headers preventing caching). +See question 5 for a workaround. +
      +
      +To avoid all these problems in a reliable manner, two main techniques exist: +
      +
      +- Disable the plug-in and use Acrobat as a helper application. To do this, launch Acrobat; in +the File menu, Preferences, General, uncheck the option "Web Browser Integration" (for Acrobat +5: Edit, Preferences, Options, "Display PDF in Browser"). Then, the next time you load a PDF in +IE, it displays the dialog box "Open it" or "Save it to disk". Uncheck the option "Always ask +before opening this type of file" and choose Open. From now on, PDF files will open +automatically in an external Acrobat window. +
      +The drawback of the method is that you need to alter the client configuration, which you can do +in an intranet environment but not for the Internet. +
      +
      +- Use a redirection technique. It consists in generating the PDF in a temporary file on the server +and redirect the client to it. For instance, at the end of the script, you can put the following: +
      +
      //Determine a temporary file name in the current directory
      +$file=basename(tempnam('.','tmp'));
      +rename($file,$file.'.pdf');
      +$file.='.pdf';
      +//Save PDF to file
      +$pdf->Output($file);
      +//JavaScript redirection
      +echo "<html><head><script>document.location='$file';</script></head></html>";
      +
      +This method turns the dynamic PDF into a static one and avoids all troubles. But you have to do +some cleaning in order to delete the temporary files. For instance: +
      +
      function CleanFiles($dir)
      +{
      +    //Delete temporary files
      +    $t=time();
      +    $h=opendir($dir);
      +    while($file=readdir($h))
      +    {
      +        if(substr($file,0,3)=='tmp' and substr($file,-4)=='.pdf')
      +        {
      +            $path=$dir.'/'.$file;
      +            if($t-filemtime($path)>3600)
      +                @unlink($path);
      +        }
      +    }
      +    closedir($h);
      +}
      +
      +This function deletes all files of the form tmp*.pdf older than an hour in the specified +directory. You may call it where you want, for instance in the script which generates the PDF. +
      +
      +Remark: it is necessary to open the PDF in a new window, as you can't go backwards due to the +redirection. +
    • + +
    • +

      4. I send parameters using the POST method and the values don't appear in the PDF.

      +It's a problem affecting some versions of IE (especially the first 5.5). See the previous +question for the ways to work around it. +
    • + +
    • +

      5. When I use a PHP session, IE doesn't display my PDF any more but asks me to download it.

      +It's a problem affecting some versions of IE. To work around it, add the following line before +session_start(): +
      +
      session_cache_limiter('private');
      +
      +or do a redirection as explained in question 3. +
    • + +
    • +

      6. When I'm on SSL, IE can't open the PDF.

      +The problem may be fixed by adding this line: +
      +
      Header('Pragma: public');
      +
      +
    • + +
    • +

      7. Accented characters are replaced by some strange characters like é.

      +Don't use UTF-8 encoding. Standard FPDF fonts use ISO-8859-1 or Windows-1252. +It is possible to perform a conversion to ISO-8859-1 with utf8_decode(): +
      +
      $str = utf8_decode($str);
      +
      +But some characters such as Euro won't be translated correctly. If the iconv extension is available, the +right way to do it is the following: +
      +
      $str = iconv('UTF-8', 'windows-1252', $str);
      +
      +
    • + +
    • +

      8. How can I put a background in my PDF?

      +For a picture, call Image() in the Header() method, before any other output. To set a background color, use Rect(). +
    • + +
    • +

      9. I encounter the following error when I try to generate a PDF: Warning: Cannot add header information - headers already sent by (output started at script.php:X)

      +You must send nothing to the browser except the PDF itself: no HTML, no space, no carriage return, +neither before nor after. The script outputs something at line X. +
    • + +
    • +

      10. I try to display a variable in the Header method but nothing prints.

      +You have to use the global keyword, for instance: +
      +
      function Header()
      +{
      +    global $title;
      +
      +    $this->SetFont('Arial','B',15);
      +    $this->Cell(0,10,$title,1,1,'C');
      +}
      +
      +
    • + +
    • +

      11. I defined the Header and Footer methods in my PDF class but nothing appears.

      +You have to create an object from the PDF class, not FPDF: +
      +
      $pdf = new PDF();
      +
      +
    • + +
    • +

      12. I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.

      +You have to enclose your string with double quotes, not single ones. +
    • + +
    • +

      13. I try to display the Euro symbol but it doesn't work.

      +The standard fonts have the Euro character at position 128. You can define a constant like this +for convenience: +
      +
      define('EURO', chr(128));
      +
      +
    • + +
    • +

      14. I draw a frame with very precise dimensions, but when printed I notice some differences.

      +To respect dimensions, you have to uncheck the option "Fit to page" in the print dialog box. +
    • + +
    • +

      15. I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?

      +All printers have physical margins (different depending on the model), it is therefore impossible +to remove them and print on the totality of the paper. +
    • + +
    • +

      16. What's the limit of the file sizes I can generate with FPDF?

      +There is no particular limit. There are some constraints however: +
      +
      +- The maximum memory size allocated to PHP scripts defaults to 8MB. For very big documents, +especially with images, this limit may be reached (the file being built into memory). The +parameter is configured in the php.ini file. +
      +
      +- The maximum execution time allocated defaults to 30 seconds. This limit can of course be easily +reached. It is configured in php.ini and may be altered dynamically with set_time_limit(). +
      +
      +- Browsers generally have a 5 minute time-out. If you send the PDF directly to the browser and +reach the limit, it will be lost. It is therefore advised for very big documents to +generate them in a file, and to send some data to the browser from time to time (for instance +page 1, page 2... with flush() to force the output). When the document is finished, you can send +a redirection on it with JavaScript or create a link. +
      +Remark: even when the browser goes in time-out, the script may continue to run on the server. +
    • + +
    • +

      17. Can I modify a PDF with FPDF?

      +You can import an existing PDF document thanks to the FPDI extension:
      +
      +http://www.setasign.de/products/pdf-php-solutions/fpdi/ +
    • + +
    • +

      18. I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?

      +No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from +a PDF. It is provided with the Xpdf package:
      +
      +http://www.foolabs.com/xpdf/ +
    • + +
    • +

      19. Can I convert an HTML page to PDF with FPDF?

      +Not real-world pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:
      +
      +http://www.htmldoc.org +
    • + +
    • +

      20. Can I concatenate PDF files with FPDF?

      +No. But some free tools exist to perform this task:
      +
      +mbtPdfAsm
      +pdftk +
    • +
    + + diff --git a/phplib/fpdf/doc/acceptpagebreak.htm b/phplib/fpdf/doc/acceptpagebreak.htm new file mode 100644 index 0000000..314548f --- /dev/null +++ b/phplib/fpdf/doc/acceptpagebreak.htm @@ -0,0 +1,69 @@ + + + + +AcceptPageBreak + + + +

    AcceptPageBreak

    +boolean AcceptPageBreak() +

    Version

    +1.4 +

    Description

    +Whenever a page break condition is met, the method is called, and the break is issued or not +depending on the returned value. The default implementation returns a value according to the +mode selected by SetAutoPageBreak(). +
    +This method is called automatically and should not be called directly by the application. +

    Example

    +The method is overriden in an inherited class in order to obtain a 3 column layout: +
    +
    +
    + +class PDF extends FPDF
    +{
    +var $col=0;
    +
    +function SetCol($col)
    +{
    +    //Move position to a column
    +    $this->col=$col;
    +    $x=10+$col*65;
    +    $this->SetLeftMargin($x);
    +    $this->SetX($x);
    +}
    +
    +function AcceptPageBreak()
    +{
    +    if($this->col<2)
    +    {
    +        //Go to next column
    +        $this->SetCol($this->col+1);
    +        $this->SetY(10);
    +        return false;
    +    }
    +    else
    +    {
    +        //Go back to first column and issue page break
    +        $this->SetCol(0);
    +        return true;
    +    }
    +}
    +}
    +
    +$pdf=new PDF();
    +$pdf->AddPage();
    +$pdf->SetFont('Arial','',12);
    +for($i=1;$i<=300;$i++)
    +    $pdf->Cell(0,5,"Line $i",0,1);
    +$pdf->Output(); +
    +

    +

    See also

    +SetAutoPageBreak(). +
    + + + diff --git a/phplib/fpdf/doc/addfont.htm b/phplib/fpdf/doc/addfont.htm new file mode 100644 index 0000000..d6ba4ae --- /dev/null +++ b/phplib/fpdf/doc/addfont.htm @@ -0,0 +1,61 @@ + + + + +AddFont + + + +

    AddFont

    +AddFont(string family [, string style [, string file]]) +

    Version

    +1.5 +

    Description

    +Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font +definition file first with the makefont.php utility. +
    +The definition file (and the font file itself when embedding) must be present in the font directory. +If it is not found, the error "Could not include font definition file" is generated. +

    Parameters

    +family +
    +Font family. The name can be chosen arbitrarily. If it is a standard family name, it will +override the corresponding font. +
    +style +
    +Font style. Possible values are (case insensitive): +
      +
    • empty string: regular +
    • B: bold +
    • I: italic +
    • BI or IB: bold italic +
    +The default value is regular. +
    +file +
    +The font definition file. +
    +By default, the name is built from the family and style, in lower case with no space. +
    +

    Example

    +
    + +$pdf->AddFont('Comic','I'); + +

    +is equivalent to: +
    +
    +
    + +$pdf->AddFont('Comic','I','comici.php'); + +

    +

    See also

    +SetFont(). +
    + + + diff --git a/phplib/fpdf/doc/addlink.htm b/phplib/fpdf/doc/addlink.htm new file mode 100644 index 0000000..6df100a --- /dev/null +++ b/phplib/fpdf/doc/addlink.htm @@ -0,0 +1,28 @@ + + + + +AddLink + + + +

    AddLink

    +int AddLink() +

    Version

    +1.5 +

    Description

    +Creates a new internal link and returns its identifier. An internal link is a clickable area +which directs to another place within the document. +
    +The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is +defined with SetLink(). +

    See also

    +Cell(), +Write(), +Image(), +Link(), +SetLink(). +
    + + + diff --git a/phplib/fpdf/doc/addpage.htm b/phplib/fpdf/doc/addpage.htm new file mode 100644 index 0000000..c233498 --- /dev/null +++ b/phplib/fpdf/doc/addpage.htm @@ -0,0 +1,42 @@ + + + + +AddPage + + + +

    AddPage

    +AddPage([string orientation]) +

    Version

    +1.0 +

    Description

    +Adds a new page to the document. If a page is already present, the Footer() method is called +first to output the footer. Then the page is added, the current position set to the top-left +corner according to the left and top margins, and Header() is called to display the header. +
    +The font which was set before calling is automatically restored. There is no need to call +SetFont() again if you want to continue with the same font. The same is true for colors and +line width. +
    +The origin of the coordinate system is at the top-left corner and increasing ordinates go +downwards. +

    Parameters

    +orientation +
    +Page orientation. Possible values are (case insensitive): +
      +
    • P or Portrait +
    • L or Landscape +
    +The default value is the one passed to the constructor. +
    +

    See also

    +FPDF(), +Header(), +Footer(), +SetMargins(). +
    + + + diff --git a/phplib/fpdf/doc/aliasnbpages.htm b/phplib/fpdf/doc/aliasnbpages.htm new file mode 100644 index 0000000..804f4a4 --- /dev/null +++ b/phplib/fpdf/doc/aliasnbpages.htm @@ -0,0 +1,47 @@ + + + + +AliasNbPages + + + +

    AliasNbPages

    +AliasNbPages([string alias]) +

    Version

    +1.4 +

    Description

    +Defines an alias for the total number of pages. It will be substituted as the document is +closed. +

    Parameters

    +alias +
    +The alias. Default value: {nb}. +
    +

    Example

    +
    + +class PDF extends FPDF
    +{
    +function Footer()
    +{
    +    //Go to 1.5 cm from bottom
    +    $this->SetY(-15);
    +    //Select Arial italic 8
    +    $this->SetFont('Arial','I',8);
    +    //Print current and total page numbers
    +    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
    +}
    +}
    +
    +$pdf=new PDF();
    +$pdf->AliasNbPages(); +
    +

    +

    See also

    +PageNo(), +Footer(). +
    + + + diff --git a/phplib/fpdf/doc/cell.htm b/phplib/fpdf/doc/cell.htm new file mode 100644 index 0000000..518e603 --- /dev/null +++ b/phplib/fpdf/doc/cell.htm @@ -0,0 +1,106 @@ + + + + +Cell + + + +

    Cell

    +Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, int fill [, mixed link]]]]]]]) +

    Version

    +1.0 +

    Description

    +Prints a cell (rectangular area) with optional borders, background color and character string. +The upper-left corner of the cell corresponds to the current position. The text can be aligned +or centered. After the call, the current position moves to the right or to the next line. It is +possible to put a link on the text. +
    +If automatic page breaking is enabled and the cell goes beyond the limit, a page break is +done before outputting. +

    Parameters

    +w +
    +Cell width. If 0, the cell extends up to the right margin. +
    +h +
    +Cell height. +Default value: 0. +
    +txt +
    +String to print. +Default value: empty string. +
    +border +
    +Indicates if borders must be drawn around the cell. The value can be either a number: +
      +
    • 0: no border +
    • 1: frame +
    +or a string containing some or all of the following characters (in any order): +
      +
    • L: left +
    • T: top +
    • R: right +
    • B: bottom +
    +Default value: 0. +
    +ln +
    +Indicates where the current position should go after the call. Possible values are: +
      +
    • 0: to the right +
    • 1: to the beginning of the next line +
    • 2: below +
    +Putting 1 is equivalent to putting 0 and calling Ln() just after. +Default value: 0. +
    +align +
    +Allows to center or align the text. Possible values are: +
      +
    • L or empty string: left align (default value) +
    • C: center +
    • R: right align +
    +
    +fill +
    +Indicates if the cell background must be painted (1) or transparent (0). +Default value: 0. +
    +link +
    +URL or identifier returned by AddLink(). +
    +

    Example

    +
    + +//Set font
    +$pdf->SetFont('Arial','B',16);
    +//Move to 8 cm to the right
    +$pdf->Cell(80);
    +//Centered text in a framed 20*10 mm cell and line break
    +$pdf->Cell(20,10,'Title',1,1,'C'); +
    +

    +

    See also

    +SetFont(), +SetDrawColor(), +SetFillColor(), +SetTextColor(), +SetLineWidth(), +AddLink(), +Ln(), +MultiCell(), +Write(), +SetAutoPageBreak(). +
    + + + diff --git a/phplib/fpdf/doc/close.htm b/phplib/fpdf/doc/close.htm new file mode 100644 index 0000000..e4c2e0b --- /dev/null +++ b/phplib/fpdf/doc/close.htm @@ -0,0 +1,23 @@ + + + + +Close + + + +

    Close

    +Close() +

    Version

    +1.0 +

    Description

    +Terminates the PDF document. It is not necessary to call this method explicitly because Output() +does it automatically. +
    +If the document contains no page, AddPage() is called to prevent from getting an invalid document. +

    See also

    +Output(). +
    + + + diff --git a/phplib/fpdf/doc/error.htm b/phplib/fpdf/doc/error.htm new file mode 100644 index 0000000..aea97d0 --- /dev/null +++ b/phplib/fpdf/doc/error.htm @@ -0,0 +1,25 @@ + + + + +Error + + + +

    Error

    +Error(string msg) +

    Version

    +1.0 +

    Description

    +This method is automatically called in case of fatal error; it simply outputs the message +and halts the execution. An inherited class may override it to customize the error handling +but should always halt the script, or the resulting document would probably be invalid. +

    Parameters

    +msg +
    +The error message. +
    +
    + + + diff --git a/phplib/fpdf/doc/footer.htm b/phplib/fpdf/doc/footer.htm new file mode 100644 index 0000000..dae62ee --- /dev/null +++ b/phplib/fpdf/doc/footer.htm @@ -0,0 +1,39 @@ + + + + +Footer + + + +

    Footer

    +Footer() +

    Version

    +1.0 +

    Description

    +This method is used to render the page footer. It is automatically called by AddPage() and +Close() and should not be called directly by the application. The implementation in FPDF is +empty, so you have to subclass it and override the method if you want a specific processing. +

    Example

    +
    + +class PDF extends FPDF
    +{
    +function Footer()
    +{
    +    //Go to 1.5 cm from bottom
    +    $this->SetY(-15);
    +    //Select Arial italic 8
    +    $this->SetFont('Arial','I',8);
    +    //Print centered page number
    +    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
    +}
    +} +
    +

    +

    See also

    +Header(). +
    + + + diff --git a/phplib/fpdf/doc/fpdf.htm b/phplib/fpdf/doc/fpdf.htm new file mode 100644 index 0000000..45ce9d9 --- /dev/null +++ b/phplib/fpdf/doc/fpdf.htm @@ -0,0 +1,57 @@ + + + + +FPDF + + + +

    FPDF

    +FPDF([string orientation [, string unit [, mixed format]]]) +

    Version

    +1.0 +

    Description

    +This is the class constructor. It allows to set up the page format, the orientation and the +measure unit used in all the methods (except for the font sizes). +

    Parameters

    +orientation +
    +Default page orientation. Possible values are (case insensitive): +
      +
    • P or Portrait +
    • L or Landscape +
    +Default value is P. +
    +unit +
    +User measure unit. Possible values are: +
      +
    • pt: point +
    • mm: millimeter +
    • cm: centimeter +
    • in: inch +
    +A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This +is a very common unit in typography; font sizes are expressed in that unit. +
    +
    +Default value is mm. +
    +format +
    +The format used for pages. It can be either one of the following values (case insensitive): +
      +
    • A3 +
    • A4 +
    • A5 +
    • Letter +
    • Legal +
    +or a custom format in the form of a two-element array containing the width and the height +(expressed in the unit given by unit). +
    +
    + + + diff --git a/phplib/fpdf/doc/getstringwidth.htm b/phplib/fpdf/doc/getstringwidth.htm new file mode 100644 index 0000000..f3cdfdd --- /dev/null +++ b/phplib/fpdf/doc/getstringwidth.htm @@ -0,0 +1,23 @@ + + + + +GetStringWidth + + + +

    GetStringWidth

    +float GetStringWidth(string s) +

    Version

    +1.2 +

    Description

    +Returns the length of a string in user unit. A font must be selected. +

    Parameters

    +s +
    +The string whose length is to be computed. +
    +
    + + + diff --git a/phplib/fpdf/doc/getx.htm b/phplib/fpdf/doc/getx.htm new file mode 100644 index 0000000..eb28efa --- /dev/null +++ b/phplib/fpdf/doc/getx.htm @@ -0,0 +1,22 @@ + + + + +GetX + + + +

    GetX

    +float GetX() +

    Version

    +1.2 +

    Description

    +Returns the abscissa of the current position. +

    See also

    +SetX(), +GetY(), +SetY(). +
    + + + diff --git a/phplib/fpdf/doc/gety.htm b/phplib/fpdf/doc/gety.htm new file mode 100644 index 0000000..e4a99cd --- /dev/null +++ b/phplib/fpdf/doc/gety.htm @@ -0,0 +1,22 @@ + + + + +GetY + + + +

    GetY

    +float GetY() +

    Version

    +1.0 +

    Description

    +Returns the ordinate of the current position. +

    See also

    +SetY(), +GetX(), +SetX(). +
    + + + diff --git a/phplib/fpdf/doc/header.htm b/phplib/fpdf/doc/header.htm new file mode 100644 index 0000000..e1da3c6 --- /dev/null +++ b/phplib/fpdf/doc/header.htm @@ -0,0 +1,41 @@ + + + + +Header + + + +

    Header

    +Header() +

    Version

    +1.0 +

    Description

    +This method is used to render the page header. It is automatically called by AddPage() and +should not be called directly by the application. The implementation in FPDF is empty, so +you have to subclass it and override the method if you want a specific processing. +

    Example

    +
    + +class PDF extends FPDF
    +{
    +function Header()
    +{
    +    //Select Arial bold 15
    +    $this->SetFont('Arial','B',15);
    +    //Move to the right
    +    $this->Cell(80);
    +    //Framed title
    +    $this->Cell(30,10,'Title',1,0,'C');
    +    //Line break
    +    $this->Ln(20);
    +}
    +} +
    +

    +

    See also

    +Footer(). +
    + + + diff --git a/phplib/fpdf/doc/image.htm b/phplib/fpdf/doc/image.htm new file mode 100644 index 0000000..0644e5d --- /dev/null +++ b/phplib/fpdf/doc/image.htm @@ -0,0 +1,88 @@ + + + + +Image + + + +

    Image

    +Image(string file, float x, float y [, float w [, float h [, string type [, mixed link]]]]) +

    Version

    +1.1 +

    Description

    +Puts an image in the page. The upper-left corner must be given. The dimensions can be specified +in different ways: +
      +
    • explicit width and height (expressed in user unit) +
    • one explicit dimension, the other being calculated automatically in order to keep the original +proportions +
    • no explicit dimension, in which case the image is put at 72 dpi +
    +Supported formats are JPEG and PNG. +
    +
    +For JPEG, all flavors are allowed: +
      +
    • gray scales +
    • true colors (24 bits) +
    • CMYK (32 bits) +
    +For PNG, are allowed: +
      +
    • gray scales on at most 8 bits (256 levels) +
    • indexed colors +
    • true colors (24 bits) +
    +but are not supported: +
      +
    • Interlacing +
    • Alpha channel +
    +If a transparent color is defined, it will be taken into account (but will be only interpreted +by Acrobat 4 and above). +
    +The format can be specified explicitly or inferred from the file extension. +
    +It is possible to put a link on the image. +
    +
    +Remark: if an image is used several times, only one copy will be embedded in the file. +

    Parameters

    +file +
    +Name of the file containing the image. +
    +x +
    +Abscissa of the upper-left corner. +
    +y +
    +Ordinate of the upper-left corner. +
    +w +
    +Width of the image in the page. If not specified or equal to zero, it is automatically +calculated. +
    +h +
    +Height of the image in the page. If not specified or equal to zero, it is automatically +calculated. +
    +type +
    +Image format. Possible values are (case insensitive): JPG, JPEG, PNG. +If not specified, the type is inferred from the file extension. +
    +link +
    +URL or identifier returned by AddLink(). +
    +

    See also

    +AddLink(). +
    + + + diff --git a/phplib/fpdf/doc/index.htm b/phplib/fpdf/doc/index.htm new file mode 100644 index 0000000..3167d0b --- /dev/null +++ b/phplib/fpdf/doc/index.htm @@ -0,0 +1,57 @@ + + + + +FPDF 1.53 Reference Manual + + + +

    FPDF 1.53 Reference Manual

    +AcceptPageBreak - accept or not automatic page break
    +AddFont - add a new font
    +AddLink - create an internal link
    +AddPage - add a new page
    +AliasNbPages - define an alias for number of pages
    +Cell - print a cell
    +Close - terminate the document
    +Error - fatal error
    +Footer - page footer
    +FPDF - constructor
    +GetStringWidth - compute string length
    +GetX - get current x position
    +GetY - get current y position
    +Header - page header
    +Image - output an image
    +Line - draw a line
    +Link - put a link
    +Ln - line break
    +MultiCell - print text with line breaks
    +Output - save or send the document
    +PageNo - page number
    +Rect - draw a rectangle
    +SetAuthor - set the document author
    +SetAutoPageBreak - set the automatic page breaking mode
    +SetCompression - turn compression on or off
    +SetCreator - set document creator
    +SetDisplayMode - set display mode
    +SetDrawColor - set drawing color
    +SetFillColor - set filling color
    +SetFont - set font
    +SetFontSize - set font size
    +SetKeywords - associate keywords with document
    +SetLeftMargin - set left margin
    +SetLineWidth - set line width
    +SetLink - set internal link destination
    +SetMargins - set margins
    +SetRightMargin - set right margin
    +SetSubject - set document subject
    +SetTextColor - set text color
    +SetTitle - set document title
    +SetTopMargin - set top margin
    +SetX - set current x position
    +SetXY - set current x and y positions
    +SetY - set current y position
    +Text - print a string
    +Write - print flowing text
    + + diff --git a/phplib/fpdf/doc/line.htm b/phplib/fpdf/doc/line.htm new file mode 100644 index 0000000..fe2d267 --- /dev/null +++ b/phplib/fpdf/doc/line.htm @@ -0,0 +1,38 @@ + + + + +Line + + + +

    Line

    +Line(float x1, float y1, float x2, float y2) +

    Version

    +1.0 +

    Description

    +Draws a line between two points. +

    Parameters

    +x1 +
    +Abscissa of first point. +
    +y1 +
    +Ordinate of first point. +
    +x2 +
    +Abscissa of second point. +
    +y2 +
    +Ordinate of second point. +
    +

    See also

    +SetLineWidth(), +SetDrawColor(). +
    + + + diff --git a/phplib/fpdf/doc/link.htm b/phplib/fpdf/doc/link.htm new file mode 100644 index 0000000..0d91003 --- /dev/null +++ b/phplib/fpdf/doc/link.htm @@ -0,0 +1,46 @@ + + + + +Link + + + +

    Link

    +Link(float x, float y, float w, float h, mixed link) +

    Version

    +1.5 +

    Description

    +Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(), +Write() or Image(), but this method can be useful for instance to define a clickable area inside +an image. +

    Parameters

    +x +
    +Abscissa of the upper-left corner of the rectangle. +
    +y +
    +Ordinate of the upper-left corner of the rectangle. +
    +w +
    +Width of the rectangle. +
    +h +
    +Height of the rectangle. +
    +link +
    +URL or identifier returned by AddLink(). +
    +

    See also

    +AddLink(), +Cell(), +Write(), +Image(). +
    + + + diff --git a/phplib/fpdf/doc/ln.htm b/phplib/fpdf/doc/ln.htm new file mode 100644 index 0000000..a8f371f --- /dev/null +++ b/phplib/fpdf/doc/ln.htm @@ -0,0 +1,28 @@ + + + + +Ln + + + +

    Ln

    +Ln([float h]) +

    Version

    +1.0 +

    Description

    +Performs a line break. The current abscissa goes back to the left margin and the ordinate +increases by the amount passed in parameter. +

    Parameters

    +h +
    +The height of the break. +
    +By default, the value equals the height of the last printed cell. +
    +

    See also

    +Cell(). +
    + + + diff --git a/phplib/fpdf/doc/multicell.htm b/phplib/fpdf/doc/multicell.htm new file mode 100644 index 0000000..3c39a3e --- /dev/null +++ b/phplib/fpdf/doc/multicell.htm @@ -0,0 +1,76 @@ + + + + +MultiCell + + + +

    MultiCell

    +MultiCell(float w, float h, string txt [, mixed border [, string align [, int fill]]]) +

    Version

    +1.3 +

    Description

    +This method allows printing text with line breaks. They can be automatic (as soon as the +text reaches the right border of the cell) or explicit (via the \n character). As many cells +as necessary are output, one below the other. +
    +Text can be aligned, centered or justified. The cell block can be framed and the background +painted. +

    Parameters

    +w +
    +Width of cells. If 0, they extend up to the right margin of the page. +
    +h +
    +Height of cells. +
    +txt +
    +String to print. +
    +border +
    +Indicates if borders must be drawn around the cell block. The value can be either a number: +
      +
    • 0: no border +
    • 1: frame +
    +or a string containing some or all of the following characters (in any order): +
      +
    • L: left +
    • T: top +
    • R: right +
    • B: bottom +
    +Default value: 0. +
    +align +
    +Sets the text alignment. Possible values are: +
      +
    • L: left alignment +
    • C: center +
    • R: right alignment +
    • J: justification (default value) +
    +
    +fill +
    +Indicates if the cell background must be painted (1) or transparent (0). +Default value: 0. +
    +

    See also

    +SetFont(), +SetDrawColor(), +SetFillColor(), +SetTextColor(), +SetLineWidth(), +Cell(), +Write(), +SetAutoPageBreak(). +
    + + + diff --git a/phplib/fpdf/doc/output.htm b/phplib/fpdf/doc/output.htm new file mode 100644 index 0000000..56f194d --- /dev/null +++ b/phplib/fpdf/doc/output.htm @@ -0,0 +1,47 @@ + + + + +Output + + + +

    Output

    +string Output([string name [, string dest]]) +

    Version

    +1.0 +

    Description

    +Send the document to a given destination: string, local file or browser. In the last case, the +plug-in may be used (if present) or a download ("Save as" dialog box) may be forced. +
    +The method first calls Close() if necessary to terminate the document. +

    Parameters

    +name +
    +The name of the file. If not given, the document will be sent to the browser +(destination I) with the name doc.pdf. +
    +dest +
    +Destination where to send the document. It can take one of the following values: +
      +
    • I: send the file inline to the browser. The plug-in is used if available. +The name given by name is used when one selects the "Save as" option on the +link generating the PDF. +
    • D: send to the browser and force a file download with the name given by +name. +
    • F: save to a local file with the name given by name. +
    • S: return the document as a string. name is ignored. +
    +If the parameter is not specified but a name is given, destination is F. If no +parameter is specified at all, destination is I.
    +
    +Note: for compatibility with previous versions, a boolean value is also accepted +(false for F and true for D). +
    +

    See also

    +Close(). +
    + + + diff --git a/phplib/fpdf/doc/pageno.htm b/phplib/fpdf/doc/pageno.htm new file mode 100644 index 0000000..53a9fbc --- /dev/null +++ b/phplib/fpdf/doc/pageno.htm @@ -0,0 +1,20 @@ + + + + +PageNo + + + +

    PageNo

    +int PageNo() +

    Version

    +1.0 +

    Description

    +Returns the current page number. +

    See also

    +AliasNbPages(). +
    + + + diff --git a/phplib/fpdf/doc/rect.htm b/phplib/fpdf/doc/rect.htm new file mode 100644 index 0000000..2c19a92 --- /dev/null +++ b/phplib/fpdf/doc/rect.htm @@ -0,0 +1,48 @@ + + + + +Rect + + + +

    Rect

    +Rect(float x, float y, float w, float h [, string style]) +

    Version

    +1.0 +

    Description

    +Outputs a rectangle. It can be drawn (border only), filled (with no border) or both. +

    Parameters

    +x +
    +Abscissa of upper-left corner. +
    +y +
    +Ordinate of upper-left corner. +
    +w +
    +Width. +
    +h +
    +Height. +
    +style +
    +Style of rendering. Possible values are: +
      +
    • D or empty string: draw. This is the default value. +
    • F: fill +
    • DF or FD: draw and fill +
    +
    +

    See also

    +SetLineWidth(), +SetDrawColor(), +SetFillColor(). +
    + + + diff --git a/phplib/fpdf/doc/setauthor.htm b/phplib/fpdf/doc/setauthor.htm new file mode 100644 index 0000000..d20aeb1 --- /dev/null +++ b/phplib/fpdf/doc/setauthor.htm @@ -0,0 +1,28 @@ + + + + +SetAuthor + + + +

    SetAuthor

    +SetAuthor(string author) +

    Version

    +1.2 +

    Description

    +Defines the author of the document. +

    Parameters

    +author +
    +The name of the author. +
    +

    See also

    +SetCreator(), +SetKeywords(), +SetSubject(), +SetTitle(). +
    + + + diff --git a/phplib/fpdf/doc/setautopagebreak.htm b/phplib/fpdf/doc/setautopagebreak.htm new file mode 100644 index 0000000..e3cb1eb --- /dev/null +++ b/phplib/fpdf/doc/setautopagebreak.htm @@ -0,0 +1,33 @@ + + + + +SetAutoPageBreak + + + +

    SetAutoPageBreak

    +SetAutoPageBreak(boolean auto [, float margin]) +

    Version

    +1.0 +

    Description

    +Enables or disables the automatic page breaking mode. When enabling, the second parameter is +the distance from the bottom of the page that defines the triggering limit. By default, the +mode is on and the margin is 2 cm. +

    Parameters

    +auto +
    +Boolean indicating if mode should be on or off. +
    +margin +
    +Distance from the bottom of the page. +
    +

    See also

    +Cell(), +MultiCell(), +AcceptPageBreak(). +
    + + + diff --git a/phplib/fpdf/doc/setcompression.htm b/phplib/fpdf/doc/setcompression.htm new file mode 100644 index 0000000..5e45e85 --- /dev/null +++ b/phplib/fpdf/doc/setcompression.htm @@ -0,0 +1,31 @@ + + + + +SetCompression + + + +

    SetCompression

    +SetCompression(boolean compress) +

    Version

    +1.4 +

    Description

    +Activates or deactivates page compression. When activated, the internal representation of +each page is compressed, which leads to a compression ratio of about 2 for the resulting +document. +
    +Compression is on by default. +
    +
    +Note: the Zlib extension is required for this feature. If not present, compression +will be turned off. +

    Parameters

    +compress +
    +Boolean indicating if compression must be enabled. +
    +
    + + + diff --git a/phplib/fpdf/doc/setcreator.htm b/phplib/fpdf/doc/setcreator.htm new file mode 100644 index 0000000..e1ace72 --- /dev/null +++ b/phplib/fpdf/doc/setcreator.htm @@ -0,0 +1,29 @@ + + + + +SetCreator + + + +

    SetCreator

    +SetCreator(string creator) +

    Version

    +1.2 +

    Description

    +Defines the creator of the document. This is typically the name of the application that +generates the PDF. +

    Parameters

    +creator +
    +The name of the creator. +
    +

    See also

    +SetAuthor(), +SetKeywords(), +SetSubject(), +SetTitle(). +
    + + + diff --git a/phplib/fpdf/doc/setdisplaymode.htm b/phplib/fpdf/doc/setdisplaymode.htm new file mode 100644 index 0000000..e363ccf --- /dev/null +++ b/phplib/fpdf/doc/setdisplaymode.htm @@ -0,0 +1,47 @@ + + + + +SetDisplayMode + + + +

    SetDisplayMode

    +SetDisplayMode(mixed zoom [, string layout]) +

    Version

    +1.2 +

    Description

    +Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be +displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a +specific zooming factor or use viewer default (configured in the Preferences menu of Acrobat). +The page layout can be specified too: single at once, continuous display, two columns or viewer +default. +
    +By default, documents use the full width mode with continuous display. +

    Parameters

    +zoom +
    +The zoom to use. It can be one of the following string values: +
      +
    • fullpage: displays the entire page on screen +
    • fullwidth: uses maximum width of window +
    • real: uses real size (equivalent to 100% zoom) +
    • default: uses viewer default mode +
    +or a number indicating the zooming factor to use. +
    +layout +
    +The page layout. Possible values are: +
      +
    • single: displays one page at once +
    • continuous: displays pages continuously +
    • two: displays two pages on two columns +
    • default: uses viewer default mode +
    +Default value is continuous. +
    +
    + + + diff --git a/phplib/fpdf/doc/setdrawcolor.htm b/phplib/fpdf/doc/setdrawcolor.htm new file mode 100644 index 0000000..b028cd2 --- /dev/null +++ b/phplib/fpdf/doc/setdrawcolor.htm @@ -0,0 +1,41 @@ + + + + +SetDrawColor + + + +

    SetDrawColor

    +SetDrawColor(int r [, int g, int b]) +

    Version

    +1.3 +

    Description

    +Defines the color used for all drawing operations (lines, rectangles and cell borders). It +can be expressed in RGB components or gray scale. The method can be called before the first +page is created and the value is retained from page to page. +

    Parameters

    +r +
    +If g et b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
    +g +
    +Green component (between 0 and 255). +
    +b +
    +Blue component (between 0 and 255). +
    +

    See also

    +SetFillColor(), +SetTextColor(), +Line(), +Rect(), +Cell(), +MultiCell(). +
    + + + diff --git a/phplib/fpdf/doc/setfillcolor.htm b/phplib/fpdf/doc/setfillcolor.htm new file mode 100644 index 0000000..8440e4d --- /dev/null +++ b/phplib/fpdf/doc/setfillcolor.htm @@ -0,0 +1,40 @@ + + + + +SetFillColor + + + +

    SetFillColor

    +SetFillColor(int r [, int g, int b]) +

    Version

    +1.3 +

    Description

    +Defines the color used for all filling operations (filled rectangles and cell backgrounds). +It can be expressed in RGB components or gray scale. The method can be called before the first +page is created and the value is retained from page to page. +

    Parameters

    +r +
    +If g and b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
    +g +
    +Green component (between 0 and 255). +
    +b +
    +Blue component (between 0 and 255). +
    +

    See also

    +SetDrawColor(), +SetTextColor(), +Rect(), +Cell(), +MultiCell(). +
    + + + diff --git a/phplib/fpdf/doc/setfont.htm b/phplib/fpdf/doc/setfont.htm new file mode 100644 index 0000000..e17c850 --- /dev/null +++ b/phplib/fpdf/doc/setfont.htm @@ -0,0 +1,98 @@ + + + + +SetFont + + + +

    SetFont

    +SetFont(string family [, string style [, float size]]) +

    Version

    +1.0 +

    Description

    +Sets the font used to print character strings. It is mandatory to call this method +at least once before printing text or the resulting document would not be valid. +
    +The font can be either a standard one or a font added via the AddFont() method. Standard fonts +use Windows encoding cp1252 (Western Europe). +
    +The method can be called before the first page is created and the font is retained from page +to page. +
    +If you just wish to change the current font size, it is simpler to call SetFontSize(). +
    +
    +Note: the font metric files must be accessible. They are searched successively in: +
      +
    • The directory defined by the FPDF_FONTPATH constant (if this constant is defined) +
    • The font directory located in the directory containing fpdf.php (if it exists) +
    • The directories accessible through include() +
    +Example defining FPDF_FONTPATH (note the mandatory trailing slash): +
    +
    +
    + +define('FPDF_FONTPATH','/home/www/font/');
    +require('fpdf.php'); +
    +

    +If the file corresponding to the requested font is not found, the error "Could not include +font metric file" is issued. +

    Parameters

    +family +
    +Family font. It can be either a name defined by AddFont() or one of the standard families (case +insensitive): +
      +
    • Courier (fixed-width) +
    • Helvetica or Arial (synonymous; sans serif) +
    • Times (serif) +
    • Symbol (symbolic) +
    • ZapfDingbats (symbolic) +
    +It is also possible to pass an empty string. In that case, the current family is retained. +
    +style +
    +Font style. Possible values are (case insensitive): +
      +
    • empty string: regular +
    • B: bold +
    • I: italic +
    • U: underline +
    +or any combination. The default value is regular. +Bold and italic styles do not apply to Symbol and ZapfDingbats. +
    +size +
    +Font size in points. +
    +The default value is the current size. If no size has been specified since the beginning of +the document, the value taken is 12. +
    +

    Example

    +
    + +//Times regular 12
    +$pdf->SetFont('Times');
    +//Arial bold 14
    +$pdf->SetFont('Arial','B',14);
    +//Removes bold
    +$pdf->SetFont('');
    +//Times bold, italic and underlined 14
    +$pdf->SetFont('Times','BIU'); +
    +

    +

    See also

    +AddFont(), +SetFontSize(), +Cell(), +MultiCell(), +Write(). +
    + + + diff --git a/phplib/fpdf/doc/setfontsize.htm b/phplib/fpdf/doc/setfontsize.htm new file mode 100644 index 0000000..73e1600 --- /dev/null +++ b/phplib/fpdf/doc/setfontsize.htm @@ -0,0 +1,25 @@ + + + + +SetFontSize + + + +

    SetFontSize

    +SetFontSize(float size) +

    Version

    +1.0 +

    Description

    +Defines the size of the current font. +

    Parameters

    +size +
    +The size (in points). +
    +

    See also

    +SetFont(). +
    + + + diff --git a/phplib/fpdf/doc/setkeywords.htm b/phplib/fpdf/doc/setkeywords.htm new file mode 100644 index 0000000..b73b791 --- /dev/null +++ b/phplib/fpdf/doc/setkeywords.htm @@ -0,0 +1,28 @@ + + + + +SetKeywords + + + +

    SetKeywords

    +SetKeywords(string keywords) +

    Version

    +1.2 +

    Description

    +Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'. +

    Parameters

    +keywords +
    +The list of keywords. +
    +

    See also

    +SetAuthor(), +SetCreator(), +SetSubject(), +SetTitle(). +
    + + + diff --git a/phplib/fpdf/doc/setleftmargin.htm b/phplib/fpdf/doc/setleftmargin.htm new file mode 100644 index 0000000..c43edb5 --- /dev/null +++ b/phplib/fpdf/doc/setleftmargin.htm @@ -0,0 +1,30 @@ + + + + +SetLeftMargin + + + +

    SetLeftMargin

    +SetLeftMargin(float margin) +

    Version

    +1.4 +

    Description

    +Defines the left margin. The method can be called before creating the first page. +
    +If the current abscissa gets out of page, it is brought back to the margin. +

    Parameters

    +margin +
    +The margin. +
    +

    See also

    +SetTopMargin(), +SetRightMargin(), +SetAutoPageBreak(), +SetMargins(). +
    + + + diff --git a/phplib/fpdf/doc/setlinewidth.htm b/phplib/fpdf/doc/setlinewidth.htm new file mode 100644 index 0000000..04af112 --- /dev/null +++ b/phplib/fpdf/doc/setlinewidth.htm @@ -0,0 +1,29 @@ + + + + +SetLineWidth + + + +

    SetLineWidth

    +SetLineWidth(float width) +

    Version

    +1.0 +

    Description

    +Defines the line width. By default, the value equals 0.2 mm. The method can be called before +the first page is created and the value is retained from page to page. +

    Parameters

    +width +
    +The width. +
    +

    See also

    +Line(), +Rect(), +Cell(), +MultiCell(). +
    + + + diff --git a/phplib/fpdf/doc/setlink.htm b/phplib/fpdf/doc/setlink.htm new file mode 100644 index 0000000..720bcea --- /dev/null +++ b/phplib/fpdf/doc/setlink.htm @@ -0,0 +1,34 @@ + + + + +SetLink + + + +

    SetLink

    +SetLink(int link [, float y [, int page]]) +

    Version

    +1.5 +

    Description

    +Defines the page and position a link points to. +

    Parameters

    +link +
    +The link identifier returned by AddLink(). +
    +y +
    +Ordinate of target position; -1 indicates the current position. +The default value is 0 (top of page). +
    +page +
    +Number of target page; -1 indicates the current page. This is the default value. +
    +

    See also

    +AddLink(). +
    + + + diff --git a/phplib/fpdf/doc/setmargins.htm b/phplib/fpdf/doc/setmargins.htm new file mode 100644 index 0000000..17c2376 --- /dev/null +++ b/phplib/fpdf/doc/setmargins.htm @@ -0,0 +1,37 @@ + + + + +SetMargins + + + +

    SetMargins

    +SetMargins(float left, float top [, float right]) +

    Version

    +1.0 +

    Description

    +Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change +them. +

    Parameters

    +left +
    +Left margin. +
    +top +
    +Top margin. +
    +right +
    +Right margin. Default value is the left one. +
    +

    See also

    +SetLeftMargin(), +SetTopMargin(), +SetRightMargin(), +SetAutoPageBreak(). +
    + + + diff --git a/phplib/fpdf/doc/setrightmargin.htm b/phplib/fpdf/doc/setrightmargin.htm new file mode 100644 index 0000000..6af0dbe --- /dev/null +++ b/phplib/fpdf/doc/setrightmargin.htm @@ -0,0 +1,28 @@ + + + + +SetRightMargin + + + +

    SetRightMargin

    +SetRightMargin(float margin) +

    Version

    +1.5 +

    Description

    +Defines the right margin. The method can be called before creating the first page. +

    Parameters

    +margin +
    +The margin. +
    +

    See also

    +SetLeftMargin(), +SetTopMargin(), +SetAutoPageBreak(), +SetMargins(). +
    + + + diff --git a/phplib/fpdf/doc/setsubject.htm b/phplib/fpdf/doc/setsubject.htm new file mode 100644 index 0000000..fc8b868 --- /dev/null +++ b/phplib/fpdf/doc/setsubject.htm @@ -0,0 +1,28 @@ + + + + +SetSubject + + + +

    SetSubject

    +SetSubject(string subject) +

    Version

    +1.2 +

    Description

    +Defines the subject of the document. +

    Parameters

    +subject +
    +The subject. +
    +

    See also

    +SetAuthor(), +SetCreator(), +SetKeywords(), +SetTitle(). +
    + + + diff --git a/phplib/fpdf/doc/settextcolor.htm b/phplib/fpdf/doc/settextcolor.htm new file mode 100644 index 0000000..d642c51 --- /dev/null +++ b/phplib/fpdf/doc/settextcolor.htm @@ -0,0 +1,40 @@ + + + + +SetTextColor + + + +

    SetTextColor

    +SetTextColor(int r [, int g, int b]) +

    Version

    +1.3 +

    Description

    +Defines the color used for text. It can be expressed in RGB components or gray scale. The +method can be called before the first page is created and the value is retained from page to +page. +

    Parameters

    +r +
    +If g et b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
    +g +
    +Green component (between 0 and 255). +
    +b +
    +Blue component (between 0 and 255). +
    +

    See also

    +SetDrawColor(), +SetFillColor(), +Text(), +Cell(), +MultiCell(). +
    + + + diff --git a/phplib/fpdf/doc/settitle.htm b/phplib/fpdf/doc/settitle.htm new file mode 100644 index 0000000..0ea5f10 --- /dev/null +++ b/phplib/fpdf/doc/settitle.htm @@ -0,0 +1,28 @@ + + + + +SetTitle + + + +

    SetTitle

    +SetTitle(string title) +

    Version

    +1.2 +

    Description

    +Defines the title of the document. +

    Parameters

    +title +
    +The title. +
    +

    See also

    +SetAuthor(), +SetCreator(), +SetKeywords(), +SetSubject(). +
    + + + diff --git a/phplib/fpdf/doc/settopmargin.htm b/phplib/fpdf/doc/settopmargin.htm new file mode 100644 index 0000000..bdab97d --- /dev/null +++ b/phplib/fpdf/doc/settopmargin.htm @@ -0,0 +1,28 @@ + + + + +SetTopMargin + + + +

    SetTopMargin

    +SetTopMargin(float margin) +

    Version

    +1.5 +

    Description

    +Defines the top margin. The method can be called before creating the first page. +

    Parameters

    +margin +
    +The margin. +
    +

    See also

    +SetLeftMargin(), +SetRightMargin(), +SetAutoPageBreak(), +SetMargins(). +
    + + + diff --git a/phplib/fpdf/doc/setx.htm b/phplib/fpdf/doc/setx.htm new file mode 100644 index 0000000..3b1722d --- /dev/null +++ b/phplib/fpdf/doc/setx.htm @@ -0,0 +1,29 @@ + + + + +SetX + + + +

    SetX

    +SetX(float x) +

    Version

    +1.2 +

    Description

    +Defines the abscissa of the current position. If the passed value is negative, it is relative +to the right of the page. +

    Parameters

    +x +
    +The value of the abscissa. +
    +

    See also

    +GetX(), +GetY(), +SetY(), +SetXY(). +
    + + + diff --git a/phplib/fpdf/doc/setxy.htm b/phplib/fpdf/doc/setxy.htm new file mode 100644 index 0000000..22fe246 --- /dev/null +++ b/phplib/fpdf/doc/setxy.htm @@ -0,0 +1,31 @@ + + + + +SetXY + + + +

    SetXY

    +SetXY(float x, float y) +

    Version

    +1.2 +

    Description

    +Defines the abscissa and ordinate of the current position. If the passed values are negative, +they are relative respectively to the right and bottom of the page. +

    Parameters

    +x +
    +The value of the abscissa. +
    +y +
    +The value of the ordinate. +
    +

    See also

    +SetX(), +SetY(). +
    + + + diff --git a/phplib/fpdf/doc/sety.htm b/phplib/fpdf/doc/sety.htm new file mode 100644 index 0000000..a1560e0 --- /dev/null +++ b/phplib/fpdf/doc/sety.htm @@ -0,0 +1,29 @@ + + + + +SetY + + + +

    SetY

    +SetY(float y) +

    Version

    +1.0 +

    Description

    +Moves the current abscissa back to the left margin and sets the ordinate. If the passed value +is negative, it is relative to the bottom of the page. +

    Parameters

    +y +
    +The value of the ordinate. +
    +

    See also

    +GetX(), +GetY(), +SetX(), +SetXY(). +
    + + + diff --git a/phplib/fpdf/doc/text.htm b/phplib/fpdf/doc/text.htm new file mode 100644 index 0000000..87c594a --- /dev/null +++ b/phplib/fpdf/doc/text.htm @@ -0,0 +1,39 @@ + + + + +Text + + + +

    Text

    +Text(float x, float y, string txt) +

    Version

    +1.0 +

    Description

    +Prints a character string. The origin is on the left of the first character, on the baseline. +This method allows to place a string precisely on the page, but it is usually easier to use +Cell(), MultiCell() or Write() which are the standard methods to print text. +

    Parameters

    +x +
    +Abscissa of the origin. +
    +y +
    +Ordinate of the origin. +
    +txt +
    +String to print. +
    +

    See also

    +SetFont(), +SetTextColor(), +Cell(), +MultiCell(), +Write(). +
    + + + diff --git a/phplib/fpdf/doc/write.htm b/phplib/fpdf/doc/write.htm new file mode 100644 index 0000000..2a56d04 --- /dev/null +++ b/phplib/fpdf/doc/write.htm @@ -0,0 +1,53 @@ + + + + +Write + + + +

    Write

    +Write(float h, string txt [, mixed link]) +

    Version

    +1.5 +

    Description

    +This method prints text from the current position. When the right margin is reached (or the \n +character is met) a line break occurs and text continues from the left margin. Upon method exit, +the current position is left just at the end of the text. +
    +It is possible to put a link on the text. +

    Parameters

    +h +
    +Line height. +
    +txt +
    +String to print. +
    +link +
    +URL or identifier returned by AddLink(). +
    +

    Example

    +
    + +//Begin with regular font
    +$pdf->SetFont('Arial','',14);
    +$pdf->Write(5,'Visit ');
    +//Then put a blue underlined link
    +$pdf->SetTextColor(0,0,255);
    +$pdf->SetFont('','U');
    +$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org'); +
    +

    +

    See also

    +SetFont(), +SetTextColor(), +AddLink(), +MultiCell(), +SetAutoPageBreak(). +
    + + + diff --git a/phplib/fpdf/font/courier.php b/phplib/fpdf/font/courier.php new file mode 100644 index 0000000..4c009f3 --- /dev/null +++ b/phplib/fpdf/font/courier.php @@ -0,0 +1,7 @@ + diff --git a/phplib/fpdf/font/helvetica.php b/phplib/fpdf/font/helvetica.php new file mode 100644 index 0000000..8fa7683 --- /dev/null +++ b/phplib/fpdf/font/helvetica.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +?> diff --git a/phplib/fpdf/font/helveticab.php b/phplib/fpdf/font/helveticab.php new file mode 100644 index 0000000..a8473c9 --- /dev/null +++ b/phplib/fpdf/font/helveticab.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); +?> diff --git a/phplib/fpdf/font/helveticabi.php b/phplib/fpdf/font/helveticabi.php new file mode 100644 index 0000000..4137953 --- /dev/null +++ b/phplib/fpdf/font/helveticabi.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); +?> diff --git a/phplib/fpdf/font/helveticai.php b/phplib/fpdf/font/helveticai.php new file mode 100644 index 0000000..d5bb6e0 --- /dev/null +++ b/phplib/fpdf/font/helveticai.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +?> diff --git a/phplib/fpdf/font/makefont/cp1250.map b/phplib/fpdf/font/makefont/cp1250.map new file mode 100644 index 0000000..ec110af --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1250.map @@ -0,0 +1,251 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+015A Sacute +!8D U+0164 Tcaron +!8E U+017D Zcaron +!8F U+0179 Zacute +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+015B sacute +!9D U+0165 tcaron +!9E U+017E zcaron +!9F U+017A zacute +!A0 U+00A0 space +!A1 U+02C7 caron +!A2 U+02D8 breve +!A3 U+0141 Lslash +!A4 U+00A4 currency +!A5 U+0104 Aogonek +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+015E Scedilla +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+02DB ogonek +!B3 U+0142 lslash +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+0105 aogonek +!BA U+015F scedilla +!BB U+00BB guillemotright +!BC U+013D Lcaron +!BD U+02DD hungarumlaut +!BE U+013E lcaron +!BF U+017C zdotaccent +!C0 U+0154 Racute +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0139 Lacute +!C6 U+0106 Cacute +!C7 U+00C7 Ccedilla +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+011A Ecaron +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+010E Dcaron +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+0147 Ncaron +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0158 Rcaron +!D9 U+016E Uring +!DA U+00DA Uacute +!DB U+0170 Uhungarumlaut +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+0162 Tcommaaccent +!DF U+00DF germandbls +!E0 U+0155 racute +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+013A lacute +!E6 U+0107 cacute +!E7 U+00E7 ccedilla +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+011B ecaron +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+010F dcaron +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+0148 ncaron +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0159 rcaron +!F9 U+016F uring +!FA U+00FA uacute +!FB U+0171 uhungarumlaut +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+0163 tcommaaccent +!FF U+02D9 dotaccent diff --git a/phplib/fpdf/font/makefont/cp1251.map b/phplib/fpdf/font/makefont/cp1251.map new file mode 100644 index 0000000..de6a198 --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1251.map @@ -0,0 +1,255 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0402 afii10051 +!81 U+0403 afii10052 +!82 U+201A quotesinglbase +!83 U+0453 afii10100 +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+20AC Euro +!89 U+2030 perthousand +!8A U+0409 afii10058 +!8B U+2039 guilsinglleft +!8C U+040A afii10059 +!8D U+040C afii10061 +!8E U+040B afii10060 +!8F U+040F afii10145 +!90 U+0452 afii10099 +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9A U+0459 afii10106 +!9B U+203A guilsinglright +!9C U+045A afii10107 +!9D U+045C afii10109 +!9E U+045B afii10108 +!9F U+045F afii10193 +!A0 U+00A0 space +!A1 U+040E afii10062 +!A2 U+045E afii10110 +!A3 U+0408 afii10057 +!A4 U+00A4 currency +!A5 U+0490 afii10050 +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+0401 afii10023 +!A9 U+00A9 copyright +!AA U+0404 afii10053 +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+0407 afii10056 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+0406 afii10055 +!B3 U+0456 afii10103 +!B4 U+0491 afii10098 +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+0451 afii10071 +!B9 U+2116 afii61352 +!BA U+0454 afii10101 +!BB U+00BB guillemotright +!BC U+0458 afii10105 +!BD U+0405 afii10054 +!BE U+0455 afii10102 +!BF U+0457 afii10104 +!C0 U+0410 afii10017 +!C1 U+0411 afii10018 +!C2 U+0412 afii10019 +!C3 U+0413 afii10020 +!C4 U+0414 afii10021 +!C5 U+0415 afii10022 +!C6 U+0416 afii10024 +!C7 U+0417 afii10025 +!C8 U+0418 afii10026 +!C9 U+0419 afii10027 +!CA U+041A afii10028 +!CB U+041B afii10029 +!CC U+041C afii10030 +!CD U+041D afii10031 +!CE U+041E afii10032 +!CF U+041F afii10033 +!D0 U+0420 afii10034 +!D1 U+0421 afii10035 +!D2 U+0422 afii10036 +!D3 U+0423 afii10037 +!D4 U+0424 afii10038 +!D5 U+0425 afii10039 +!D6 U+0426 afii10040 +!D7 U+0427 afii10041 +!D8 U+0428 afii10042 +!D9 U+0429 afii10043 +!DA U+042A afii10044 +!DB U+042B afii10045 +!DC U+042C afii10046 +!DD U+042D afii10047 +!DE U+042E afii10048 +!DF U+042F afii10049 +!E0 U+0430 afii10065 +!E1 U+0431 afii10066 +!E2 U+0432 afii10067 +!E3 U+0433 afii10068 +!E4 U+0434 afii10069 +!E5 U+0435 afii10070 +!E6 U+0436 afii10072 +!E7 U+0437 afii10073 +!E8 U+0438 afii10074 +!E9 U+0439 afii10075 +!EA U+043A afii10076 +!EB U+043B afii10077 +!EC U+043C afii10078 +!ED U+043D afii10079 +!EE U+043E afii10080 +!EF U+043F afii10081 +!F0 U+0440 afii10082 +!F1 U+0441 afii10083 +!F2 U+0442 afii10084 +!F3 U+0443 afii10085 +!F4 U+0444 afii10086 +!F5 U+0445 afii10087 +!F6 U+0446 afii10088 +!F7 U+0447 afii10089 +!F8 U+0448 afii10090 +!F9 U+0449 afii10091 +!FA U+044A afii10092 +!FB U+044B afii10093 +!FC U+044C afii10094 +!FD U+044D afii10095 +!FE U+044E afii10096 +!FF U+044F afii10097 diff --git a/phplib/fpdf/font/makefont/cp1252.map b/phplib/fpdf/font/makefont/cp1252.map new file mode 100644 index 0000000..dd490e5 --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1252.map @@ -0,0 +1,251 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+0152 OE +!8E U+017D Zcaron +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+0153 oe +!9E U+017E zcaron +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/cp1253.map b/phplib/fpdf/font/makefont/cp1253.map new file mode 100644 index 0000000..4bd826f --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1253.map @@ -0,0 +1,239 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9B U+203A guilsinglright +!A0 U+00A0 space +!A1 U+0385 dieresistonos +!A2 U+0386 Alphatonos +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+2015 afii00208 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+0384 tonos +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+0388 Epsilontonos +!B9 U+0389 Etatonos +!BA U+038A Iotatonos +!BB U+00BB guillemotright +!BC U+038C Omicrontonos +!BD U+00BD onehalf +!BE U+038E Upsilontonos +!BF U+038F Omegatonos +!C0 U+0390 iotadieresistonos +!C1 U+0391 Alpha +!C2 U+0392 Beta +!C3 U+0393 Gamma +!C4 U+0394 Delta +!C5 U+0395 Epsilon +!C6 U+0396 Zeta +!C7 U+0397 Eta +!C8 U+0398 Theta +!C9 U+0399 Iota +!CA U+039A Kappa +!CB U+039B Lambda +!CC U+039C Mu +!CD U+039D Nu +!CE U+039E Xi +!CF U+039F Omicron +!D0 U+03A0 Pi +!D1 U+03A1 Rho +!D3 U+03A3 Sigma +!D4 U+03A4 Tau +!D5 U+03A5 Upsilon +!D6 U+03A6 Phi +!D7 U+03A7 Chi +!D8 U+03A8 Psi +!D9 U+03A9 Omega +!DA U+03AA Iotadieresis +!DB U+03AB Upsilondieresis +!DC U+03AC alphatonos +!DD U+03AD epsilontonos +!DE U+03AE etatonos +!DF U+03AF iotatonos +!E0 U+03B0 upsilondieresistonos +!E1 U+03B1 alpha +!E2 U+03B2 beta +!E3 U+03B3 gamma +!E4 U+03B4 delta +!E5 U+03B5 epsilon +!E6 U+03B6 zeta +!E7 U+03B7 eta +!E8 U+03B8 theta +!E9 U+03B9 iota +!EA U+03BA kappa +!EB U+03BB lambda +!EC U+03BC mu +!ED U+03BD nu +!EE U+03BE xi +!EF U+03BF omicron +!F0 U+03C0 pi +!F1 U+03C1 rho +!F2 U+03C2 sigma1 +!F3 U+03C3 sigma +!F4 U+03C4 tau +!F5 U+03C5 upsilon +!F6 U+03C6 phi +!F7 U+03C7 chi +!F8 U+03C8 psi +!F9 U+03C9 omega +!FA U+03CA iotadieresis +!FB U+03CB upsilondieresis +!FC U+03CC omicrontonos +!FD U+03CD upsilontonos +!FE U+03CE omegatonos diff --git a/phplib/fpdf/font/makefont/cp1254.map b/phplib/fpdf/font/makefont/cp1254.map new file mode 100644 index 0000000..829473b --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1254.map @@ -0,0 +1,249 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+0152 OE +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+0153 oe +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+011E Gbreve +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0130 Idotaccent +!DE U+015E Scedilla +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+011F gbreve +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0131 dotlessi +!FE U+015F scedilla +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/cp1255.map b/phplib/fpdf/font/makefont/cp1255.map new file mode 100644 index 0000000..079e10c --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1255.map @@ -0,0 +1,233 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9B U+203A guilsinglright +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+20AA afii57636 +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00D7 multiply +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD sfthyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 middot +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00F7 divide +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+05B0 afii57799 +!C1 U+05B1 afii57801 +!C2 U+05B2 afii57800 +!C3 U+05B3 afii57802 +!C4 U+05B4 afii57793 +!C5 U+05B5 afii57794 +!C6 U+05B6 afii57795 +!C7 U+05B7 afii57798 +!C8 U+05B8 afii57797 +!C9 U+05B9 afii57806 +!CB U+05BB afii57796 +!CC U+05BC afii57807 +!CD U+05BD afii57839 +!CE U+05BE afii57645 +!CF U+05BF afii57841 +!D0 U+05C0 afii57842 +!D1 U+05C1 afii57804 +!D2 U+05C2 afii57803 +!D3 U+05C3 afii57658 +!D4 U+05F0 afii57716 +!D5 U+05F1 afii57717 +!D6 U+05F2 afii57718 +!D7 U+05F3 gereshhebrew +!D8 U+05F4 gershayimhebrew +!E0 U+05D0 afii57664 +!E1 U+05D1 afii57665 +!E2 U+05D2 afii57666 +!E3 U+05D3 afii57667 +!E4 U+05D4 afii57668 +!E5 U+05D5 afii57669 +!E6 U+05D6 afii57670 +!E7 U+05D7 afii57671 +!E8 U+05D8 afii57672 +!E9 U+05D9 afii57673 +!EA U+05DA afii57674 +!EB U+05DB afii57675 +!EC U+05DC afii57676 +!ED U+05DD afii57677 +!EE U+05DE afii57678 +!EF U+05DF afii57679 +!F0 U+05E0 afii57680 +!F1 U+05E1 afii57681 +!F2 U+05E2 afii57682 +!F3 U+05E3 afii57683 +!F4 U+05E4 afii57684 +!F5 U+05E5 afii57685 +!F6 U+05E6 afii57686 +!F7 U+05E7 afii57687 +!F8 U+05E8 afii57688 +!F9 U+05E9 afii57689 +!FA U+05EA afii57690 +!FD U+200E afii299 +!FE U+200F afii300 diff --git a/phplib/fpdf/font/makefont/cp1257.map b/phplib/fpdf/font/makefont/cp1257.map new file mode 100644 index 0000000..2f2ecfa --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1257.map @@ -0,0 +1,244 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!8D U+00A8 dieresis +!8E U+02C7 caron +!8F U+00B8 cedilla +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9B U+203A guilsinglright +!9D U+00AF macron +!9E U+02DB ogonek +!A0 U+00A0 space +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00D8 Oslash +!A9 U+00A9 copyright +!AA U+0156 Rcommaaccent +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00C6 AE +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00F8 oslash +!B9 U+00B9 onesuperior +!BA U+0157 rcommaaccent +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00E6 ae +!C0 U+0104 Aogonek +!C1 U+012E Iogonek +!C2 U+0100 Amacron +!C3 U+0106 Cacute +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+0118 Eogonek +!C7 U+0112 Emacron +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0179 Zacute +!CB U+0116 Edotaccent +!CC U+0122 Gcommaaccent +!CD U+0136 Kcommaaccent +!CE U+012A Imacron +!CF U+013B Lcommaaccent +!D0 U+0160 Scaron +!D1 U+0143 Nacute +!D2 U+0145 Ncommaaccent +!D3 U+00D3 Oacute +!D4 U+014C Omacron +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0172 Uogonek +!D9 U+0141 Lslash +!DA U+015A Sacute +!DB U+016A Umacron +!DC U+00DC Udieresis +!DD U+017B Zdotaccent +!DE U+017D Zcaron +!DF U+00DF germandbls +!E0 U+0105 aogonek +!E1 U+012F iogonek +!E2 U+0101 amacron +!E3 U+0107 cacute +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+0119 eogonek +!E7 U+0113 emacron +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+017A zacute +!EB U+0117 edotaccent +!EC U+0123 gcommaaccent +!ED U+0137 kcommaaccent +!EE U+012B imacron +!EF U+013C lcommaaccent +!F0 U+0161 scaron +!F1 U+0144 nacute +!F2 U+0146 ncommaaccent +!F3 U+00F3 oacute +!F4 U+014D omacron +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0173 uogonek +!F9 U+0142 lslash +!FA U+015B sacute +!FB U+016B umacron +!FC U+00FC udieresis +!FD U+017C zdotaccent +!FE U+017E zcaron +!FF U+02D9 dotaccent diff --git a/phplib/fpdf/font/makefont/cp1258.map b/phplib/fpdf/font/makefont/cp1258.map new file mode 100644 index 0000000..fed915f --- /dev/null +++ b/phplib/fpdf/font/makefont/cp1258.map @@ -0,0 +1,247 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!8C U+0152 OE +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9B U+203A guilsinglright +!9C U+0153 oe +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+0300 gravecomb +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+0110 Dcroat +!D1 U+00D1 Ntilde +!D2 U+0309 hookabovecomb +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+01A0 Ohorn +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+01AF Uhorn +!DE U+0303 tildecomb +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+0301 acutecomb +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+0111 dcroat +!F1 U+00F1 ntilde +!F2 U+0323 dotbelowcomb +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+01A1 ohorn +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+01B0 uhorn +!FE U+20AB dong +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/cp874.map b/phplib/fpdf/font/makefont/cp874.map new file mode 100644 index 0000000..1006e6b --- /dev/null +++ b/phplib/fpdf/font/makefont/cp874.map @@ -0,0 +1,225 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!85 U+2026 ellipsis +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!A0 U+00A0 space +!A1 U+0E01 kokaithai +!A2 U+0E02 khokhaithai +!A3 U+0E03 khokhuatthai +!A4 U+0E04 khokhwaithai +!A5 U+0E05 khokhonthai +!A6 U+0E06 khorakhangthai +!A7 U+0E07 ngonguthai +!A8 U+0E08 chochanthai +!A9 U+0E09 chochingthai +!AA U+0E0A chochangthai +!AB U+0E0B sosothai +!AC U+0E0C chochoethai +!AD U+0E0D yoyingthai +!AE U+0E0E dochadathai +!AF U+0E0F topatakthai +!B0 U+0E10 thothanthai +!B1 U+0E11 thonangmonthothai +!B2 U+0E12 thophuthaothai +!B3 U+0E13 nonenthai +!B4 U+0E14 dodekthai +!B5 U+0E15 totaothai +!B6 U+0E16 thothungthai +!B7 U+0E17 thothahanthai +!B8 U+0E18 thothongthai +!B9 U+0E19 nonuthai +!BA U+0E1A bobaimaithai +!BB U+0E1B poplathai +!BC U+0E1C phophungthai +!BD U+0E1D fofathai +!BE U+0E1E phophanthai +!BF U+0E1F fofanthai +!C0 U+0E20 phosamphaothai +!C1 U+0E21 momathai +!C2 U+0E22 yoyakthai +!C3 U+0E23 roruathai +!C4 U+0E24 ruthai +!C5 U+0E25 lolingthai +!C6 U+0E26 luthai +!C7 U+0E27 wowaenthai +!C8 U+0E28 sosalathai +!C9 U+0E29 sorusithai +!CA U+0E2A sosuathai +!CB U+0E2B hohipthai +!CC U+0E2C lochulathai +!CD U+0E2D oangthai +!CE U+0E2E honokhukthai +!CF U+0E2F paiyannoithai +!D0 U+0E30 saraathai +!D1 U+0E31 maihanakatthai +!D2 U+0E32 saraaathai +!D3 U+0E33 saraamthai +!D4 U+0E34 saraithai +!D5 U+0E35 saraiithai +!D6 U+0E36 sarauethai +!D7 U+0E37 saraueethai +!D8 U+0E38 sarauthai +!D9 U+0E39 sarauuthai +!DA U+0E3A phinthuthai +!DF U+0E3F bahtthai +!E0 U+0E40 saraethai +!E1 U+0E41 saraaethai +!E2 U+0E42 saraothai +!E3 U+0E43 saraaimaimuanthai +!E4 U+0E44 saraaimaimalaithai +!E5 U+0E45 lakkhangyaothai +!E6 U+0E46 maiyamokthai +!E7 U+0E47 maitaikhuthai +!E8 U+0E48 maiekthai +!E9 U+0E49 maithothai +!EA U+0E4A maitrithai +!EB U+0E4B maichattawathai +!EC U+0E4C thanthakhatthai +!ED U+0E4D nikhahitthai +!EE U+0E4E yamakkanthai +!EF U+0E4F fongmanthai +!F0 U+0E50 zerothai +!F1 U+0E51 onethai +!F2 U+0E52 twothai +!F3 U+0E53 threethai +!F4 U+0E54 fourthai +!F5 U+0E55 fivethai +!F6 U+0E56 sixthai +!F7 U+0E57 seventhai +!F8 U+0E58 eightthai +!F9 U+0E59 ninethai +!FA U+0E5A angkhankhuthai +!FB U+0E5B khomutthai diff --git a/phplib/fpdf/font/makefont/iso-8859-1.map b/phplib/fpdf/font/makefont/iso-8859-1.map new file mode 100644 index 0000000..61740a3 --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-1.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/iso-8859-11.map b/phplib/fpdf/font/makefont/iso-8859-11.map new file mode 100644 index 0000000..9168812 --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-11.map @@ -0,0 +1,248 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0E01 kokaithai +!A2 U+0E02 khokhaithai +!A3 U+0E03 khokhuatthai +!A4 U+0E04 khokhwaithai +!A5 U+0E05 khokhonthai +!A6 U+0E06 khorakhangthai +!A7 U+0E07 ngonguthai +!A8 U+0E08 chochanthai +!A9 U+0E09 chochingthai +!AA U+0E0A chochangthai +!AB U+0E0B sosothai +!AC U+0E0C chochoethai +!AD U+0E0D yoyingthai +!AE U+0E0E dochadathai +!AF U+0E0F topatakthai +!B0 U+0E10 thothanthai +!B1 U+0E11 thonangmonthothai +!B2 U+0E12 thophuthaothai +!B3 U+0E13 nonenthai +!B4 U+0E14 dodekthai +!B5 U+0E15 totaothai +!B6 U+0E16 thothungthai +!B7 U+0E17 thothahanthai +!B8 U+0E18 thothongthai +!B9 U+0E19 nonuthai +!BA U+0E1A bobaimaithai +!BB U+0E1B poplathai +!BC U+0E1C phophungthai +!BD U+0E1D fofathai +!BE U+0E1E phophanthai +!BF U+0E1F fofanthai +!C0 U+0E20 phosamphaothai +!C1 U+0E21 momathai +!C2 U+0E22 yoyakthai +!C3 U+0E23 roruathai +!C4 U+0E24 ruthai +!C5 U+0E25 lolingthai +!C6 U+0E26 luthai +!C7 U+0E27 wowaenthai +!C8 U+0E28 sosalathai +!C9 U+0E29 sorusithai +!CA U+0E2A sosuathai +!CB U+0E2B hohipthai +!CC U+0E2C lochulathai +!CD U+0E2D oangthai +!CE U+0E2E honokhukthai +!CF U+0E2F paiyannoithai +!D0 U+0E30 saraathai +!D1 U+0E31 maihanakatthai +!D2 U+0E32 saraaathai +!D3 U+0E33 saraamthai +!D4 U+0E34 saraithai +!D5 U+0E35 saraiithai +!D6 U+0E36 sarauethai +!D7 U+0E37 saraueethai +!D8 U+0E38 sarauthai +!D9 U+0E39 sarauuthai +!DA U+0E3A phinthuthai +!DF U+0E3F bahtthai +!E0 U+0E40 saraethai +!E1 U+0E41 saraaethai +!E2 U+0E42 saraothai +!E3 U+0E43 saraaimaimuanthai +!E4 U+0E44 saraaimaimalaithai +!E5 U+0E45 lakkhangyaothai +!E6 U+0E46 maiyamokthai +!E7 U+0E47 maitaikhuthai +!E8 U+0E48 maiekthai +!E9 U+0E49 maithothai +!EA U+0E4A maitrithai +!EB U+0E4B maichattawathai +!EC U+0E4C thanthakhatthai +!ED U+0E4D nikhahitthai +!EE U+0E4E yamakkanthai +!EF U+0E4F fongmanthai +!F0 U+0E50 zerothai +!F1 U+0E51 onethai +!F2 U+0E52 twothai +!F3 U+0E53 threethai +!F4 U+0E54 fourthai +!F5 U+0E55 fivethai +!F6 U+0E56 sixthai +!F7 U+0E57 seventhai +!F8 U+0E58 eightthai +!F9 U+0E59 ninethai +!FA U+0E5A angkhankhuthai +!FB U+0E5B khomutthai diff --git a/phplib/fpdf/font/makefont/iso-8859-15.map b/phplib/fpdf/font/makefont/iso-8859-15.map new file mode 100644 index 0000000..6c2b571 --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-15.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+20AC Euro +!A5 U+00A5 yen +!A6 U+0160 Scaron +!A7 U+00A7 section +!A8 U+0161 scaron +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+017D Zcaron +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+017E zcaron +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+0152 OE +!BD U+0153 oe +!BE U+0178 Ydieresis +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/iso-8859-16.map b/phplib/fpdf/font/makefont/iso-8859-16.map new file mode 100644 index 0000000..202c8fe --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-16.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+0105 aogonek +!A3 U+0141 Lslash +!A4 U+20AC Euro +!A5 U+201E quotedblbase +!A6 U+0160 Scaron +!A7 U+00A7 section +!A8 U+0161 scaron +!A9 U+00A9 copyright +!AA U+0218 Scommaaccent +!AB U+00AB guillemotleft +!AC U+0179 Zacute +!AD U+00AD hyphen +!AE U+017A zacute +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+010C Ccaron +!B3 U+0142 lslash +!B4 U+017D Zcaron +!B5 U+201D quotedblright +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+017E zcaron +!B9 U+010D ccaron +!BA U+0219 scommaaccent +!BB U+00BB guillemotright +!BC U+0152 OE +!BD U+0153 oe +!BE U+0178 Ydieresis +!BF U+017C zdotaccent +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0106 Cacute +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+015A Sacute +!D8 U+0170 Uhungarumlaut +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0118 Eogonek +!DE U+021A Tcommaaccent +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+0107 cacute +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+015B sacute +!F8 U+0171 uhungarumlaut +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0119 eogonek +!FE U+021B tcommaaccent +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/iso-8859-2.map b/phplib/fpdf/font/makefont/iso-8859-2.map new file mode 100644 index 0000000..c862712 --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-2.map @@ -0,0 +1,257 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+02D8 breve +!A3 U+0141 Lslash +!A4 U+00A4 currency +!A5 U+013D Lcaron +!A6 U+015A Sacute +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+0160 Scaron +!AA U+015E Scedilla +!AB U+0164 Tcaron +!AC U+0179 Zacute +!AD U+00AD hyphen +!AE U+017D Zcaron + +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+0105 aogonek +!B2 U+02DB ogonek +!B3 U+0142 lslash +!B4 U+00B4 acute +!B5 U+013E lcaron +!B6 U+015B sacute +!B7 U+02C7 caron +!B8 U+00B8 cedilla +!B9 U+0161 scaron +!BA U+015F scedilla +!BB U+0165 tcaron +!BC U+017A zacute +!BD U+02DD hungarumlaut +!BE U+017E zcaron +!BF U+017C zdotaccent +!C0 U+0154 Racute +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0139 Lacute +!C6 U+0106 Cacute +!C7 U+00C7 Ccedilla +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+011A Ecaron +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+010E Dcaron +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+0147 Ncaron +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0158 Rcaron +!D9 U+016E Uring +!DA U+00DA Uacute +!DB U+0170 Uhungarumlaut +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+0162 Tcommaaccent +!DF U+00DF germandbls +!E0 U+0155 racute +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+013A lacute +!E6 U+0107 cacute +!E7 U+00E7 ccedilla +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+011B ecaron +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+010F dcaron +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+0148 ncaron +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0159 rcaron +!F9 U+016F uring +!FA U+00FA uacute +!FB U+0171 uhungarumlaut +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+0163 tcommaaccent +!FF U+02D9 dotaccent diff --git a/phplib/fpdf/font/makefont/iso-8859-4.map b/phplib/fpdf/font/makefont/iso-8859-4.map new file mode 100644 index 0000000..a7d87bf --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-4.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+0138 kgreenlandic +!A3 U+0156 Rcommaaccent +!A4 U+00A4 currency +!A5 U+0128 Itilde +!A6 U+013B Lcommaaccent +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+0160 Scaron +!AA U+0112 Emacron +!AB U+0122 Gcommaaccent +!AC U+0166 Tbar +!AD U+00AD hyphen +!AE U+017D Zcaron +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+0105 aogonek +!B2 U+02DB ogonek +!B3 U+0157 rcommaaccent +!B4 U+00B4 acute +!B5 U+0129 itilde +!B6 U+013C lcommaaccent +!B7 U+02C7 caron +!B8 U+00B8 cedilla +!B9 U+0161 scaron +!BA U+0113 emacron +!BB U+0123 gcommaaccent +!BC U+0167 tbar +!BD U+014A Eng +!BE U+017E zcaron +!BF U+014B eng +!C0 U+0100 Amacron +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+012E Iogonek +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+0116 Edotaccent +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+012A Imacron +!D0 U+0110 Dcroat +!D1 U+0145 Ncommaaccent +!D2 U+014C Omacron +!D3 U+0136 Kcommaaccent +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+0172 Uogonek +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0168 Utilde +!DE U+016A Umacron +!DF U+00DF germandbls +!E0 U+0101 amacron +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+012F iogonek +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+0117 edotaccent +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+012B imacron +!F0 U+0111 dcroat +!F1 U+0146 ncommaaccent +!F2 U+014D omacron +!F3 U+0137 kcommaaccent +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+0173 uogonek +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0169 utilde +!FE U+016B umacron +!FF U+02D9 dotaccent diff --git a/phplib/fpdf/font/makefont/iso-8859-5.map b/phplib/fpdf/font/makefont/iso-8859-5.map new file mode 100644 index 0000000..f9cd4ed --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-5.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0401 afii10023 +!A2 U+0402 afii10051 +!A3 U+0403 afii10052 +!A4 U+0404 afii10053 +!A5 U+0405 afii10054 +!A6 U+0406 afii10055 +!A7 U+0407 afii10056 +!A8 U+0408 afii10057 +!A9 U+0409 afii10058 +!AA U+040A afii10059 +!AB U+040B afii10060 +!AC U+040C afii10061 +!AD U+00AD hyphen +!AE U+040E afii10062 +!AF U+040F afii10145 +!B0 U+0410 afii10017 +!B1 U+0411 afii10018 +!B2 U+0412 afii10019 +!B3 U+0413 afii10020 +!B4 U+0414 afii10021 +!B5 U+0415 afii10022 +!B6 U+0416 afii10024 +!B7 U+0417 afii10025 +!B8 U+0418 afii10026 +!B9 U+0419 afii10027 +!BA U+041A afii10028 +!BB U+041B afii10029 +!BC U+041C afii10030 +!BD U+041D afii10031 +!BE U+041E afii10032 +!BF U+041F afii10033 +!C0 U+0420 afii10034 +!C1 U+0421 afii10035 +!C2 U+0422 afii10036 +!C3 U+0423 afii10037 +!C4 U+0424 afii10038 +!C5 U+0425 afii10039 +!C6 U+0426 afii10040 +!C7 U+0427 afii10041 +!C8 U+0428 afii10042 +!C9 U+0429 afii10043 +!CA U+042A afii10044 +!CB U+042B afii10045 +!CC U+042C afii10046 +!CD U+042D afii10047 +!CE U+042E afii10048 +!CF U+042F afii10049 +!D0 U+0430 afii10065 +!D1 U+0431 afii10066 +!D2 U+0432 afii10067 +!D3 U+0433 afii10068 +!D4 U+0434 afii10069 +!D5 U+0435 afii10070 +!D6 U+0436 afii10072 +!D7 U+0437 afii10073 +!D8 U+0438 afii10074 +!D9 U+0439 afii10075 +!DA U+043A afii10076 +!DB U+043B afii10077 +!DC U+043C afii10078 +!DD U+043D afii10079 +!DE U+043E afii10080 +!DF U+043F afii10081 +!E0 U+0440 afii10082 +!E1 U+0441 afii10083 +!E2 U+0442 afii10084 +!E3 U+0443 afii10085 +!E4 U+0444 afii10086 +!E5 U+0445 afii10087 +!E6 U+0446 afii10088 +!E7 U+0447 afii10089 +!E8 U+0448 afii10090 +!E9 U+0449 afii10091 +!EA U+044A afii10092 +!EB U+044B afii10093 +!EC U+044C afii10094 +!ED U+044D afii10095 +!EE U+044E afii10096 +!EF U+044F afii10097 +!F0 U+2116 afii61352 +!F1 U+0451 afii10071 +!F2 U+0452 afii10099 +!F3 U+0453 afii10100 +!F4 U+0454 afii10101 +!F5 U+0455 afii10102 +!F6 U+0456 afii10103 +!F7 U+0457 afii10104 +!F8 U+0458 afii10105 +!F9 U+0459 afii10106 +!FA U+045A afii10107 +!FB U+045B afii10108 +!FC U+045C afii10109 +!FD U+00A7 section +!FE U+045E afii10110 +!FF U+045F afii10193 diff --git a/phplib/fpdf/font/makefont/iso-8859-7.map b/phplib/fpdf/font/makefont/iso-8859-7.map new file mode 100644 index 0000000..e163796 --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-7.map @@ -0,0 +1,250 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+2018 quoteleft +!A2 U+2019 quoteright +!A3 U+00A3 sterling +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AF U+2015 afii00208 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+0384 tonos +!B5 U+0385 dieresistonos +!B6 U+0386 Alphatonos +!B7 U+00B7 periodcentered +!B8 U+0388 Epsilontonos +!B9 U+0389 Etatonos +!BA U+038A Iotatonos +!BB U+00BB guillemotright +!BC U+038C Omicrontonos +!BD U+00BD onehalf +!BE U+038E Upsilontonos +!BF U+038F Omegatonos +!C0 U+0390 iotadieresistonos +!C1 U+0391 Alpha +!C2 U+0392 Beta +!C3 U+0393 Gamma +!C4 U+0394 Delta +!C5 U+0395 Epsilon +!C6 U+0396 Zeta +!C7 U+0397 Eta +!C8 U+0398 Theta +!C9 U+0399 Iota +!CA U+039A Kappa +!CB U+039B Lambda +!CC U+039C Mu +!CD U+039D Nu +!CE U+039E Xi +!CF U+039F Omicron +!D0 U+03A0 Pi +!D1 U+03A1 Rho +!D3 U+03A3 Sigma +!D4 U+03A4 Tau +!D5 U+03A5 Upsilon +!D6 U+03A6 Phi +!D7 U+03A7 Chi +!D8 U+03A8 Psi +!D9 U+03A9 Omega +!DA U+03AA Iotadieresis +!DB U+03AB Upsilondieresis +!DC U+03AC alphatonos +!DD U+03AD epsilontonos +!DE U+03AE etatonos +!DF U+03AF iotatonos +!E0 U+03B0 upsilondieresistonos +!E1 U+03B1 alpha +!E2 U+03B2 beta +!E3 U+03B3 gamma +!E4 U+03B4 delta +!E5 U+03B5 epsilon +!E6 U+03B6 zeta +!E7 U+03B7 eta +!E8 U+03B8 theta +!E9 U+03B9 iota +!EA U+03BA kappa +!EB U+03BB lambda +!EC U+03BC mu +!ED U+03BD nu +!EE U+03BE xi +!EF U+03BF omicron +!F0 U+03C0 pi +!F1 U+03C1 rho +!F2 U+03C2 sigma1 +!F3 U+03C3 sigma +!F4 U+03C4 tau +!F5 U+03C5 upsilon +!F6 U+03C6 phi +!F7 U+03C7 chi +!F8 U+03C8 psi +!F9 U+03C9 omega +!FA U+03CA iotadieresis +!FB U+03CB upsilondieresis +!FC U+03CC omicrontonos +!FD U+03CD upsilontonos +!FE U+03CE omegatonos diff --git a/phplib/fpdf/font/makefont/iso-8859-9.map b/phplib/fpdf/font/makefont/iso-8859-9.map new file mode 100644 index 0000000..48c123a --- /dev/null +++ b/phplib/fpdf/font/makefont/iso-8859-9.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+011E Gbreve +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0130 Idotaccent +!DE U+015E Scedilla +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+011F gbreve +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0131 dotlessi +!FE U+015F scedilla +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/koi8-r.map b/phplib/fpdf/font/makefont/koi8-r.map new file mode 100644 index 0000000..6ad5d05 --- /dev/null +++ b/phplib/fpdf/font/makefont/koi8-r.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+2500 SF100000 +!81 U+2502 SF110000 +!82 U+250C SF010000 +!83 U+2510 SF030000 +!84 U+2514 SF020000 +!85 U+2518 SF040000 +!86 U+251C SF080000 +!87 U+2524 SF090000 +!88 U+252C SF060000 +!89 U+2534 SF070000 +!8A U+253C SF050000 +!8B U+2580 upblock +!8C U+2584 dnblock +!8D U+2588 block +!8E U+258C lfblock +!8F U+2590 rtblock +!90 U+2591 ltshade +!91 U+2592 shade +!92 U+2593 dkshade +!93 U+2320 integraltp +!94 U+25A0 filledbox +!95 U+2219 periodcentered +!96 U+221A radical +!97 U+2248 approxequal +!98 U+2264 lessequal +!99 U+2265 greaterequal +!9A U+00A0 space +!9B U+2321 integralbt +!9C U+00B0 degree +!9D U+00B2 twosuperior +!9E U+00B7 periodcentered +!9F U+00F7 divide +!A0 U+2550 SF430000 +!A1 U+2551 SF240000 +!A2 U+2552 SF510000 +!A3 U+0451 afii10071 +!A4 U+2553 SF520000 +!A5 U+2554 SF390000 +!A6 U+2555 SF220000 +!A7 U+2556 SF210000 +!A8 U+2557 SF250000 +!A9 U+2558 SF500000 +!AA U+2559 SF490000 +!AB U+255A SF380000 +!AC U+255B SF280000 +!AD U+255C SF270000 +!AE U+255D SF260000 +!AF U+255E SF360000 +!B0 U+255F SF370000 +!B1 U+2560 SF420000 +!B2 U+2561 SF190000 +!B3 U+0401 afii10023 +!B4 U+2562 SF200000 +!B5 U+2563 SF230000 +!B6 U+2564 SF470000 +!B7 U+2565 SF480000 +!B8 U+2566 SF410000 +!B9 U+2567 SF450000 +!BA U+2568 SF460000 +!BB U+2569 SF400000 +!BC U+256A SF540000 +!BD U+256B SF530000 +!BE U+256C SF440000 +!BF U+00A9 copyright +!C0 U+044E afii10096 +!C1 U+0430 afii10065 +!C2 U+0431 afii10066 +!C3 U+0446 afii10088 +!C4 U+0434 afii10069 +!C5 U+0435 afii10070 +!C6 U+0444 afii10086 +!C7 U+0433 afii10068 +!C8 U+0445 afii10087 +!C9 U+0438 afii10074 +!CA U+0439 afii10075 +!CB U+043A afii10076 +!CC U+043B afii10077 +!CD U+043C afii10078 +!CE U+043D afii10079 +!CF U+043E afii10080 +!D0 U+043F afii10081 +!D1 U+044F afii10097 +!D2 U+0440 afii10082 +!D3 U+0441 afii10083 +!D4 U+0442 afii10084 +!D5 U+0443 afii10085 +!D6 U+0436 afii10072 +!D7 U+0432 afii10067 +!D8 U+044C afii10094 +!D9 U+044B afii10093 +!DA U+0437 afii10073 +!DB U+0448 afii10090 +!DC U+044D afii10095 +!DD U+0449 afii10091 +!DE U+0447 afii10089 +!DF U+044A afii10092 +!E0 U+042E afii10048 +!E1 U+0410 afii10017 +!E2 U+0411 afii10018 +!E3 U+0426 afii10040 +!E4 U+0414 afii10021 +!E5 U+0415 afii10022 +!E6 U+0424 afii10038 +!E7 U+0413 afii10020 +!E8 U+0425 afii10039 +!E9 U+0418 afii10026 +!EA U+0419 afii10027 +!EB U+041A afii10028 +!EC U+041B afii10029 +!ED U+041C afii10030 +!EE U+041D afii10031 +!EF U+041E afii10032 +!F0 U+041F afii10033 +!F1 U+042F afii10049 +!F2 U+0420 afii10034 +!F3 U+0421 afii10035 +!F4 U+0422 afii10036 +!F5 U+0423 afii10037 +!F6 U+0416 afii10024 +!F7 U+0412 afii10019 +!F8 U+042C afii10046 +!F9 U+042B afii10045 +!FA U+0417 afii10025 +!FB U+0428 afii10042 +!FC U+042D afii10047 +!FD U+0429 afii10043 +!FE U+0427 afii10041 +!FF U+042A afii10044 diff --git a/phplib/fpdf/font/makefont/koi8-u.map b/phplib/fpdf/font/makefont/koi8-u.map new file mode 100644 index 0000000..40a7e4f --- /dev/null +++ b/phplib/fpdf/font/makefont/koi8-u.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+2500 SF100000 +!81 U+2502 SF110000 +!82 U+250C SF010000 +!83 U+2510 SF030000 +!84 U+2514 SF020000 +!85 U+2518 SF040000 +!86 U+251C SF080000 +!87 U+2524 SF090000 +!88 U+252C SF060000 +!89 U+2534 SF070000 +!8A U+253C SF050000 +!8B U+2580 upblock +!8C U+2584 dnblock +!8D U+2588 block +!8E U+258C lfblock +!8F U+2590 rtblock +!90 U+2591 ltshade +!91 U+2592 shade +!92 U+2593 dkshade +!93 U+2320 integraltp +!94 U+25A0 filledbox +!95 U+2022 bullet +!96 U+221A radical +!97 U+2248 approxequal +!98 U+2264 lessequal +!99 U+2265 greaterequal +!9A U+00A0 space +!9B U+2321 integralbt +!9C U+00B0 degree +!9D U+00B2 twosuperior +!9E U+00B7 periodcentered +!9F U+00F7 divide +!A0 U+2550 SF430000 +!A1 U+2551 SF240000 +!A2 U+2552 SF510000 +!A3 U+0451 afii10071 +!A4 U+0454 afii10101 +!A5 U+2554 SF390000 +!A6 U+0456 afii10103 +!A7 U+0457 afii10104 +!A8 U+2557 SF250000 +!A9 U+2558 SF500000 +!AA U+2559 SF490000 +!AB U+255A SF380000 +!AC U+255B SF280000 +!AD U+0491 afii10098 +!AE U+255D SF260000 +!AF U+255E SF360000 +!B0 U+255F SF370000 +!B1 U+2560 SF420000 +!B2 U+2561 SF190000 +!B3 U+0401 afii10023 +!B4 U+0404 afii10053 +!B5 U+2563 SF230000 +!B6 U+0406 afii10055 +!B7 U+0407 afii10056 +!B8 U+2566 SF410000 +!B9 U+2567 SF450000 +!BA U+2568 SF460000 +!BB U+2569 SF400000 +!BC U+256A SF540000 +!BD U+0490 afii10050 +!BE U+256C SF440000 +!BF U+00A9 copyright +!C0 U+044E afii10096 +!C1 U+0430 afii10065 +!C2 U+0431 afii10066 +!C3 U+0446 afii10088 +!C4 U+0434 afii10069 +!C5 U+0435 afii10070 +!C6 U+0444 afii10086 +!C7 U+0433 afii10068 +!C8 U+0445 afii10087 +!C9 U+0438 afii10074 +!CA U+0439 afii10075 +!CB U+043A afii10076 +!CC U+043B afii10077 +!CD U+043C afii10078 +!CE U+043D afii10079 +!CF U+043E afii10080 +!D0 U+043F afii10081 +!D1 U+044F afii10097 +!D2 U+0440 afii10082 +!D3 U+0441 afii10083 +!D4 U+0442 afii10084 +!D5 U+0443 afii10085 +!D6 U+0436 afii10072 +!D7 U+0432 afii10067 +!D8 U+044C afii10094 +!D9 U+044B afii10093 +!DA U+0437 afii10073 +!DB U+0448 afii10090 +!DC U+044D afii10095 +!DD U+0449 afii10091 +!DE U+0447 afii10089 +!DF U+044A afii10092 +!E0 U+042E afii10048 +!E1 U+0410 afii10017 +!E2 U+0411 afii10018 +!E3 U+0426 afii10040 +!E4 U+0414 afii10021 +!E5 U+0415 afii10022 +!E6 U+0424 afii10038 +!E7 U+0413 afii10020 +!E8 U+0425 afii10039 +!E9 U+0418 afii10026 +!EA U+0419 afii10027 +!EB U+041A afii10028 +!EC U+041B afii10029 +!ED U+041C afii10030 +!EE U+041D afii10031 +!EF U+041E afii10032 +!F0 U+041F afii10033 +!F1 U+042F afii10049 +!F2 U+0420 afii10034 +!F3 U+0421 afii10035 +!F4 U+0422 afii10036 +!F5 U+0423 afii10037 +!F6 U+0416 afii10024 +!F7 U+0412 afii10019 +!F8 U+042C afii10046 +!F9 U+042B afii10045 +!FA U+0417 afii10025 +!FB U+0428 afii10042 +!FC U+042D afii10047 +!FD U+0429 afii10043 +!FE U+0427 afii10041 +!FF U+042A afii10044 diff --git a/phplib/fpdf/font/makefont/makefont.php b/phplib/fpdf/font/makefont/makefont.php new file mode 100644 index 0000000..1c83017 --- /dev/null +++ b/phplib/fpdf/font/makefont/makefont.php @@ -0,0 +1,416 @@ +Error:
    encoding not found: '.$enc); + $cc2gn=array(); + foreach($a as $l) + { + if($l{0}=='!') + { + $e=preg_split('/[ \\t]+/',rtrim($l)); + $cc=hexdec(substr($e[0],1)); + $gn=$e[2]; + $cc2gn[$cc]=$gn; + } + } + for($i=0;$i<=255;$i++) + { + if(!isset($cc2gn[$i])) + $cc2gn[$i]='.notdef'; + } + return $cc2gn; +} + +function ReadAFM($file,&$map) +{ + //Read a font metric file + $a=file($file); + if(empty($a)) + die('File not found'); + $widths=array(); + $fm=array(); + $fix=array('Edot'=>'Edotaccent','edot'=>'edotaccent','Idot'=>'Idotaccent','Zdot'=>'Zdotaccent','zdot'=>'zdotaccent', + 'Odblacute'=>'Ohungarumlaut','odblacute'=>'ohungarumlaut','Udblacute'=>'Uhungarumlaut','udblacute'=>'uhungarumlaut', + 'Gcedilla'=>'Gcommaaccent','gcedilla'=>'gcommaaccent','Kcedilla'=>'Kcommaaccent','kcedilla'=>'kcommaaccent', + 'Lcedilla'=>'Lcommaaccent','lcedilla'=>'lcommaaccent','Ncedilla'=>'Ncommaaccent','ncedilla'=>'ncommaaccent', + 'Rcedilla'=>'Rcommaaccent','rcedilla'=>'rcommaaccent','Scedilla'=>'Scommaaccent','scedilla'=>'scommaaccent', + 'Tcedilla'=>'Tcommaaccent','tcedilla'=>'tcommaaccent','Dslash'=>'Dcroat','dslash'=>'dcroat','Dmacron'=>'Dcroat','dmacron'=>'dcroat', + 'combininggraveaccent'=>'gravecomb','combininghookabove'=>'hookabovecomb','combiningtildeaccent'=>'tildecomb', + 'combiningacuteaccent'=>'acutecomb','combiningdotbelow'=>'dotbelowcomb','dongsign'=>'dong'); + foreach($a as $l) + { + $e=explode(' ',rtrim($l)); + if(count($e)<2) + continue; + $code=$e[0]; + $param=$e[1]; + if($code=='C') + { + //Character metrics + $cc=(int)$e[1]; + $w=$e[4]; + $gn=$e[7]; + if(substr($gn,-4)=='20AC') + $gn='Euro'; + if(isset($fix[$gn])) + { + //Fix incorrect glyph name + foreach($map as $c=>$n) + { + if($n==$fix[$gn]) + $map[$c]=$gn; + } + } + if(empty($map)) + { + //Symbolic font: use built-in encoding + $widths[$cc]=$w; + } + else + { + $widths[$gn]=$w; + if($gn=='X') + $fm['CapXHeight']=$e[13]; + } + if($gn=='.notdef') + $fm['MissingWidth']=$w; + } + elseif($code=='FontName') + $fm['FontName']=$param; + elseif($code=='Weight') + $fm['Weight']=$param; + elseif($code=='ItalicAngle') + $fm['ItalicAngle']=(double)$param; + elseif($code=='Ascender') + $fm['Ascender']=(int)$param; + elseif($code=='Descender') + $fm['Descender']=(int)$param; + elseif($code=='UnderlineThickness') + $fm['UnderlineThickness']=(int)$param; + elseif($code=='UnderlinePosition') + $fm['UnderlinePosition']=(int)$param; + elseif($code=='IsFixedPitch') + $fm['IsFixedPitch']=($param=='true'); + elseif($code=='FontBBox') + $fm['FontBBox']=array($e[1],$e[2],$e[3],$e[4]); + elseif($code=='CapHeight') + $fm['CapHeight']=(int)$param; + elseif($code=='StdVW') + $fm['StdVW']=(int)$param; + } + if(!isset($fm['FontName'])) + die('FontName not found'); + if(!empty($map)) + { + if(!isset($widths['.notdef'])) + $widths['.notdef']=600; + if(!isset($widths['Delta']) and isset($widths['increment'])) + $widths['Delta']=$widths['increment']; + //Order widths according to map + for($i=0;$i<=255;$i++) + { + if(!isset($widths[$map[$i]])) + { + echo 'Warning: character '.$map[$i].' is missing
    '; + $widths[$i]=$widths['.notdef']; + } + else + $widths[$i]=$widths[$map[$i]]; + } + } + $fm['Widths']=$widths; + return $fm; +} + +function MakeFontDescriptor($fm,$symbolic) +{ + //Ascent + $asc=(isset($fm['Ascender']) ? $fm['Ascender'] : 1000); + $fd="array('Ascent'=>".$asc; + //Descent + $desc=(isset($fm['Descender']) ? $fm['Descender'] : -200); + $fd.=",'Descent'=>".$desc; + //CapHeight + if(isset($fm['CapHeight'])) + $ch=$fm['CapHeight']; + elseif(isset($fm['CapXHeight'])) + $ch=$fm['CapXHeight']; + else + $ch=$asc; + $fd.=",'CapHeight'=>".$ch; + //Flags + $flags=0; + if(isset($fm['IsFixedPitch']) and $fm['IsFixedPitch']) + $flags+=1<<0; + if($symbolic) + $flags+=1<<2; + if(!$symbolic) + $flags+=1<<5; + if(isset($fm['ItalicAngle']) and $fm['ItalicAngle']!=0) + $flags+=1<<6; + $fd.=",'Flags'=>".$flags; + //FontBBox + if(isset($fm['FontBBox'])) + $fbb=$fm['FontBBox']; + else + $fbb=array(0,$des-100,1000,$asc+100); + $fd.=",'FontBBox'=>'[".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3]."]'"; + //ItalicAngle + $ia=(isset($fm['ItalicAngle']) ? $fm['ItalicAngle'] : 0); + $fd.=",'ItalicAngle'=>".$ia; + //StemV + if(isset($fm['StdVW'])) + $stemv=$fm['StdVW']; + elseif(isset($fm['Weight']) and eregi('(bold|black)',$fm['Weight'])) + $stemv=120; + else + $stemv=70; + $fd.=",'StemV'=>".$stemv; + //MissingWidth + if(isset($fm['MissingWidth'])) + $fd.=",'MissingWidth'=>".$fm['MissingWidth']; + $fd.=')'; + return $fd; +} + +function MakeWidthArray($fm) +{ + //Make character width array + $s="array(\n\t"; + $cw=$fm['Widths']; + for($i=0;$i<=255;$i++) + { + if(chr($i)=="'") + $s.="'\\''"; + elseif(chr($i)=="\\") + $s.="'\\\\'"; + elseif($i>=32 and $i<=126) + $s.="'".chr($i)."'"; + else + $s.="chr($i)"; + $s.='=>'.$fm['Widths'][$i]; + if($i<255) + $s.=','; + if(($i+1)%22==0) + $s.="\n\t"; + } + $s.=')'; + return $s; +} + +function MakeFontEncoding($map) +{ + //Build differences from reference encoding + $ref=ReadMap('cp1252'); + $s=''; + $last=0; + for($i=32;$i<=255;$i++) + { + if($map[$i]!=$ref[$i]) + { + if($i!=$last+1) + $s.=$i.' '; + $last=$i; + $s.='/'.$map[$i].' '; + } + } + return rtrim($s); +} + +function SaveToFile($file,$s,$mode='t') +{ + $f=fopen($file,'w'.$mode); + if(!$f) + die('Can\'t write to file '.$file); + fwrite($f,$s,strlen($s)); + fclose($f); +} + +function ReadShort($f) +{ + $a=unpack('n1n',fread($f,2)); + return $a['n']; +} + +function ReadLong($f) +{ + $a=unpack('N1N',fread($f,4)); + return $a['N']; +} + +function CheckTTF($file) +{ + //Check if font license allows embedding + $f=fopen($file,'rb'); + if(!$f) + die('Error: Can\'t open '.$file); + //Extract number of tables + fseek($f,4,SEEK_CUR); + $nb=ReadShort($f); + fseek($f,6,SEEK_CUR); + //Seek OS/2 table + $found=false; + for($i=0;$i<$nb;$i++) + { + if(fread($f,4)=='OS/2') + { + $found=true; + break; + } + fseek($f,12,SEEK_CUR); + } + if(!$found) + { + fclose($f); + return; + } + fseek($f,4,SEEK_CUR); + $offset=ReadLong($f); + fseek($f,$offset,SEEK_SET); + //Extract fsType flags + fseek($f,8,SEEK_CUR); + $fsType=ReadShort($f); + $rl=($fsType & 0x02)!=0; + $pp=($fsType & 0x04)!=0; + $e=($fsType & 0x08)!=0; + fclose($f); + if($rl and !$pp and !$e) + echo 'Warning: font license does not allow embedding'; +} + +/******************************************************************************* +* $fontfile : chemin du fichier TTF (ou chaîne vide si pas d'incorporation) * +* $afmfile : chemin du fichier AFM * +* $enc : encodage (ou chaîne vide si la police est symbolique) * +* $patch : patch optionnel pour l'encodage * +* $type : type de la police si $fontfile est vide * +*******************************************************************************/ +function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType') +{ + //Generate a font definition file + set_magic_quotes_runtime(0); + ini_set('auto_detect_line_endings','1'); + if($enc) + { + $map=ReadMap($enc); + foreach($patch as $cc=>$gn) + $map[$cc]=$gn; + } + else + $map=array(); + if(!file_exists($afmfile)) + die('Error: AFM file not found: '.$afmfile); + $fm=ReadAFM($afmfile,$map); + if($enc) + $diff=MakeFontEncoding($map); + else + $diff=''; + $fd=MakeFontDescriptor($fm,empty($map)); + //Find font type + if($fontfile) + { + $ext=strtolower(substr($fontfile,-3)); + if($ext=='ttf') + $type='TrueType'; + elseif($ext=='pfb') + $type='Type1'; + else + die('Error: unrecognized font file extension: '.$ext); + } + else + { + if($type!='TrueType' and $type!='Type1') + die('Error: incorrect font type: '.$type); + } + //Start generation + $s='Error: font file not found: '.$fontfile); + if($type=='TrueType') + CheckTTF($fontfile); + $f=fopen($fontfile,'rb'); + if(!$f) + die('Error: Can\'t open '.$fontfile); + $file=fread($f,filesize($fontfile)); + fclose($f); + if($type=='Type1') + { + //Find first two sections and discard third one + $header=(ord($file{0})==128); + if($header) + { + //Strip first binary header + $file=substr($file,6); + } + $pos=strpos($file,'eexec'); + if(!$pos) + die('Error: font file does not seem to be valid Type1'); + $size1=$pos+6; + if($header and ord($file{$size1})==128) + { + //Strip second binary header + $file=substr($file,0,$size1).substr($file,$size1+6); + } + $pos=strpos($file,'00000000'); + if(!$pos) + die('Error: font file does not seem to be valid Type1'); + $size2=$pos-$size1; + $file=substr($file,0,$size1+$size2); + } + if(function_exists('gzcompress')) + { + $cmp=$basename.'.z'; + SaveToFile($cmp,gzcompress($file),'b'); + $s.='$file=\''.$cmp."';\n"; + echo 'Font file compressed ('.$cmp.')
    '; + } + else + { + $s.='$file=\''.basename($fontfile)."';\n"; + echo 'Notice: font file could not be compressed (zlib extension not available)
    '; + } + if($type=='Type1') + { + $s.='$size1='.$size1.";\n"; + $s.='$size2='.$size2.";\n"; + } + else + $s.='$originalsize='.filesize($fontfile).";\n"; + } + else + { + //Not embedded font + $s.='$file='."'';\n"; + } + $s.="?>\n"; + SaveToFile($basename.'.php',$s); + echo 'Font definition file generated ('.$basename.'.php'.')
    '; +} +?> diff --git a/phplib/fpdf/font/symbol.php b/phplib/fpdf/font/symbol.php new file mode 100644 index 0000000..b556ed8 --- /dev/null +++ b/phplib/fpdf/font/symbol.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, + ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, + 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, + 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, + 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, + chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, + chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, + chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, + chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, + chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); +?> diff --git a/phplib/fpdf/font/times.php b/phplib/fpdf/font/times.php new file mode 100644 index 0000000..b9be1b2 --- /dev/null +++ b/phplib/fpdf/font/times.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722, + 'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944, + 'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333, + chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500); +?> diff --git a/phplib/fpdf/font/timesb.php b/phplib/fpdf/font/timesb.php new file mode 100644 index 0000000..c3eb9fa --- /dev/null +++ b/phplib/fpdf/font/timesb.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, + 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, + 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +?> diff --git a/phplib/fpdf/font/timesbi.php b/phplib/fpdf/font/timesbi.php new file mode 100644 index 0000000..161f630 --- /dev/null +++ b/phplib/fpdf/font/timesbi.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667, + 'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889, + 'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, + 'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333, + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444); +?> diff --git a/phplib/fpdf/font/timesi.php b/phplib/fpdf/font/timesi.php new file mode 100644 index 0000000..de171fd --- /dev/null +++ b/phplib/fpdf/font/timesi.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, + 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, + 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, + chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, + chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); +?> diff --git a/phplib/fpdf/font/zapfdingbats.php b/phplib/fpdf/font/zapfdingbats.php new file mode 100644 index 0000000..f2bdfd5 --- /dev/null +++ b/phplib/fpdf/font/zapfdingbats.php @@ -0,0 +1,15 @@ +0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0, + chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939, + ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692, + 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776, + 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873, + 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317, + chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788, + chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788, + chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918, + chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874, + chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0); +?> diff --git a/phplib/fpdf/fpdf.css b/phplib/fpdf/fpdf.css new file mode 100644 index 0000000..f3d9a35 --- /dev/null +++ b/phplib/fpdf/fpdf.css @@ -0,0 +1,23 @@ +body {font-family:"Times New Roman",serif} +h1 {font-size:150%; color:#4000A0} +h2 {color:#4000A0} +h3 {font-size:100%; margin-top:1.2em} +dl.param dt {text-decoration:underline} +dl.param dd {margin-top:1em; margin-bottom:1em} +dl.param ul {margin-top:1em; margin-bottom:1em} +tt, code, kbd {font-family:"Courier New",Courier,monospace; font-size:82%} +div.source {margin-top:1.4em; margin-bottom:1.3em} +div.source pre {display:table; border:1px solid #24246A; width:100%; margin:0em; font-family:inherit; font-size:100%} +div.source code {display:block; border:1px solid #C5C5EC; background-color:#F0F5FF; padding:6px; color:#000000} +div.doc-source {margin-top:1.4em; margin-bottom:1.3em} +div.doc-source pre {display:table; width:100%; margin:0em; font-family:inherit; font-size:100%} +div.doc-source code {display:block; background-color:#E0E0E0; padding:4px} +.st {font-weight:bold; color:#900000} +.kw {color:#000080; font-weight:bold} +.str {color:#CC0000} +.cmt {color:#008000} +p.demo {text-align:center; margin-top:-0.9em} +a.demo {text-decoration:none; font-weight:bold; color:#0000CC} +a.demo:link {text-decoration:none; font-weight:bold; color:#0000CC} +a.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF} +a.demo:active {text-decoration:none; font-weight:bold; color:#0000FF} diff --git a/phplib/fpdf/fpdf.php b/phplib/fpdf/fpdf.php new file mode 100644 index 0000000..5fbf585 --- /dev/null +++ b/phplib/fpdf/fpdf.php @@ -0,0 +1,1647 @@ +_dochecks(); + //Initialization of properties + $this->page=0; + $this->n=2; + $this->buffer=''; + $this->pages=array(); + $this->OrientationChanges=array(); + $this->state=0; + $this->fonts=array(); + $this->FontFiles=array(); + $this->diffs=array(); + $this->images=array(); + $this->links=array(); + $this->InFooter=false; + $this->lasth=0; + $this->FontFamily=''; + $this->FontStyle=''; + $this->FontSizePt=12; + $this->underline=false; + $this->DrawColor='0 G'; + $this->FillColor='0 g'; + $this->TextColor='0 g'; + $this->ColorFlag=false; + $this->ws=0; + //Standard fonts + $this->CoreFonts=array('courier'=>'Courier','courierB'=>'Courier-Bold','courierI'=>'Courier-Oblique','courierBI'=>'Courier-BoldOblique', + 'helvetica'=>'Helvetica','helveticaB'=>'Helvetica-Bold','helveticaI'=>'Helvetica-Oblique','helveticaBI'=>'Helvetica-BoldOblique', + 'times'=>'Times-Roman','timesB'=>'Times-Bold','timesI'=>'Times-Italic','timesBI'=>'Times-BoldItalic', + 'symbol'=>'Symbol','zapfdingbats'=>'ZapfDingbats'); + //Scale factor + if($unit=='pt') + $this->k=1; + elseif($unit=='mm') + $this->k=72/25.4; + elseif($unit=='cm') + $this->k=72/2.54; + elseif($unit=='in') + $this->k=72; + else + $this->Error('Incorrect unit: '.$unit); + //Page format + if(is_string($format)) + { + $format=strtolower($format); + if($format=='a3') + $format=array(841.89,1190.55); + elseif($format=='a4') + $format=array(595.28,841.89); + elseif($format=='a5') + $format=array(420.94,595.28); + elseif($format=='letter') + $format=array(612,792); + elseif($format=='legal') + $format=array(612,1008); + else + $this->Error('Unknown page format: '.$format); + $this->fwPt=$format[0]; + $this->fhPt=$format[1]; + } + else + { + $this->fwPt=$format[0]*$this->k; + $this->fhPt=$format[1]*$this->k; + } + $this->fw=$this->fwPt/$this->k; + $this->fh=$this->fhPt/$this->k; + //Page orientation + $orientation=strtolower($orientation); + if($orientation=='p' || $orientation=='portrait') + { + $this->DefOrientation='P'; + $this->wPt=$this->fwPt; + $this->hPt=$this->fhPt; + } + elseif($orientation=='l' || $orientation=='landscape') + { + $this->DefOrientation='L'; + $this->wPt=$this->fhPt; + $this->hPt=$this->fwPt; + } + else + $this->Error('Incorrect orientation: '.$orientation); + $this->CurOrientation=$this->DefOrientation; + $this->w=$this->wPt/$this->k; + $this->h=$this->hPt/$this->k; + //Page margins (1 cm) + $margin=28.35/$this->k; + $this->SetMargins($margin,$margin); + //Interior cell margin (1 mm) + $this->cMargin=$margin/10; + //Line width (0.2 mm) + $this->LineWidth=.567/$this->k; + //Automatic page break + $this->SetAutoPageBreak(true,2*$margin); + //Full width display mode + $this->SetDisplayMode('fullwidth'); + //Enable compression + $this->SetCompression(true); + //Set default PDF version number + $this->PDFVersion='1.3'; +} + +function SetMargins($left,$top,$right=-1) +{ + //Set left, top and right margins + $this->lMargin=$left; + $this->tMargin=$top; + if($right==-1) + $right=$left; + $this->rMargin=$right; +} + +function SetLeftMargin($margin) +{ + //Set left margin + $this->lMargin=$margin; + if($this->page>0 && $this->x<$margin) + $this->x=$margin; +} + +function SetTopMargin($margin) +{ + //Set top margin + $this->tMargin=$margin; +} + +function SetRightMargin($margin) +{ + //Set right margin + $this->rMargin=$margin; +} + +function SetAutoPageBreak($auto,$margin=0) +{ + //Set auto page break mode and triggering margin + $this->AutoPageBreak=$auto; + $this->bMargin=$margin; + $this->PageBreakTrigger=$this->h-$margin; +} + +function SetDisplayMode($zoom,$layout='continuous') +{ + //Set display mode in viewer + if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom)) + $this->ZoomMode=$zoom; + else + $this->Error('Incorrect zoom display mode: '.$zoom); + if($layout=='single' || $layout=='continuous' || $layout=='two' || $layout=='default') + $this->LayoutMode=$layout; + else + $this->Error('Incorrect layout display mode: '.$layout); +} + +function SetCompression($compress) +{ + //Set page compression + if(function_exists('gzcompress')) + $this->compress=$compress; + else + $this->compress=false; +} + +function SetTitle($title) +{ + //Title of document + $this->title=$title; +} + +function SetSubject($subject) +{ + //Subject of document + $this->subject=$subject; +} + +function SetAuthor($author) +{ + //Author of document + $this->author=$author; +} + +function SetKeywords($keywords) +{ + //Keywords of document + $this->keywords=$keywords; +} + +function SetCreator($creator) +{ + //Creator of document + $this->creator=$creator; +} + +function AliasNbPages($alias='{nb}') +{ + //Define an alias for total number of pages + $this->AliasNbPages=$alias; +} + +function Error($msg) +{ + //Fatal error + die('FPDF error: '.$msg); +} + +function Open() +{ + //Begin document + $this->state=1; +} + +function Close() +{ + //Terminate document + if($this->state==3) + return; + if($this->page==0) + $this->AddPage(); + //Page footer + $this->InFooter=true; + $this->Footer(); + $this->InFooter=false; + //Close page + $this->_endpage(); + //Close document + $this->_enddoc(); +} + +function AddPage($orientation='') +{ + //Start a new page + if($this->state==0) + $this->Open(); + $family=$this->FontFamily; + $style=$this->FontStyle.($this->underline ? 'U' : ''); + $size=$this->FontSizePt; + $lw=$this->LineWidth; + $dc=$this->DrawColor; + $fc=$this->FillColor; + $tc=$this->TextColor; + $cf=$this->ColorFlag; + if($this->page>0) + { + //Page footer + $this->InFooter=true; + $this->Footer(); + $this->InFooter=false; + //Close page + $this->_endpage(); + } + //Start new page + $this->_beginpage($orientation); + //Set line cap style to square + $this->_out('2 J'); + //Set line width + $this->LineWidth=$lw; + $this->_out(sprintf('%.2f w',$lw*$this->k)); + //Set font + if($family) + $this->SetFont($family,$style,$size); + //Set colors + $this->DrawColor=$dc; + if($dc!='0 G') + $this->_out($dc); + $this->FillColor=$fc; + if($fc!='0 g') + $this->_out($fc); + $this->TextColor=$tc; + $this->ColorFlag=$cf; + //Page header + $this->Header(); + //Restore line width + if($this->LineWidth!=$lw) + { + $this->LineWidth=$lw; + $this->_out(sprintf('%.2f w',$lw*$this->k)); + } + //Restore font + if($family) + $this->SetFont($family,$style,$size); + //Restore colors + if($this->DrawColor!=$dc) + { + $this->DrawColor=$dc; + $this->_out($dc); + } + if($this->FillColor!=$fc) + { + $this->FillColor=$fc; + $this->_out($fc); + } + $this->TextColor=$tc; + $this->ColorFlag=$cf; +} + +function Header() +{ + //To be implemented in your own inherited class +} + +function Footer() +{ + //To be implemented in your own inherited class +} + +function PageNo() +{ + //Get current page number + return $this->page; +} + +function SetDrawColor($r,$g=-1,$b=-1) +{ + //Set color for all stroking operations + if(($r==0 && $g==0 && $b==0) || $g==-1) + $this->DrawColor=sprintf('%.3f G',$r/255); + else + $this->DrawColor=sprintf('%.3f %.3f %.3f RG',$r/255,$g/255,$b/255); + if($this->page>0) + $this->_out($this->DrawColor); +} + +function SetFillColor($r,$g=-1,$b=-1) +{ + //Set color for all filling operations + if(($r==0 && $g==0 && $b==0) || $g==-1) + $this->FillColor=sprintf('%.3f g',$r/255); + else + $this->FillColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); + $this->ColorFlag=($this->FillColor!=$this->TextColor); + if($this->page>0) + $this->_out($this->FillColor); +} + +function SetTextColor($r,$g=-1,$b=-1) +{ + //Set color for text + if(($r==0 && $g==0 && $b==0) || $g==-1) + $this->TextColor=sprintf('%.3f g',$r/255); + else + $this->TextColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); + $this->ColorFlag=($this->FillColor!=$this->TextColor); +} + +function GetStringWidth($s) +{ + //Get width of a string in the current font + $s=(string)$s; + $cw=&$this->CurrentFont['cw']; + $w=0; + $l=strlen($s); + for($i=0;$i<$l;$i++) + $w+=$cw[$s{$i}]; + return $w*$this->FontSize/1000; +} + +function SetLineWidth($width) +{ + //Set line width + $this->LineWidth=$width; + if($this->page>0) + $this->_out(sprintf('%.2f w',$width*$this->k)); +} + +function Line($x1,$y1,$x2,$y2) +{ + //Draw a line + $this->_out(sprintf('%.2f %.2f m %.2f %.2f l S',$x1*$this->k,($this->h-$y1)*$this->k,$x2*$this->k,($this->h-$y2)*$this->k)); +} + +function Rect($x,$y,$w,$h,$style='') +{ + //Draw a rectangle + if($style=='F') + $op='f'; + elseif($style=='FD' || $style=='DF') + $op='B'; + else + $op='S'; + $this->_out(sprintf('%.2f %.2f %.2f %.2f re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op)); +} + +function AddFont($family,$style='',$file='') +{ + //Add a TrueType or Type1 font + $family=strtolower($family); + if($file=='') + $file=str_replace(' ','',$family).strtolower($style).'.php'; + if($family=='arial') + $family='helvetica'; + $style=strtoupper($style); + if($style=='IB') + $style='BI'; + $fontkey=$family.$style; + if(isset($this->fonts[$fontkey])) + $this->Error('Font already added: '.$family.' '.$style); + include($this->_getfontpath().$file); + if(!isset($name)) + $this->Error('Could not include font definition file'); + $i=count($this->fonts)+1; + $this->fonts[$fontkey]=array('i'=>$i,'type'=>$type,'name'=>$name,'desc'=>$desc,'up'=>$up,'ut'=>$ut,'cw'=>$cw,'enc'=>$enc,'file'=>$file); + if($diff) + { + //Search existing encodings + $d=0; + $nb=count($this->diffs); + for($i=1;$i<=$nb;$i++) + { + if($this->diffs[$i]==$diff) + { + $d=$i; + break; + } + } + if($d==0) + { + $d=$nb+1; + $this->diffs[$d]=$diff; + } + $this->fonts[$fontkey]['diff']=$d; + } + if($file) + { + if($type=='TrueType') + $this->FontFiles[$file]=array('length1'=>$originalsize); + else + $this->FontFiles[$file]=array('length1'=>$size1,'length2'=>$size2); + } +} + +function SetFont($family,$style='',$size=0) +{ + //Select a font; size given in points + global $fpdf_charwidths; + + $family=strtolower($family); + if($family=='') + $family=$this->FontFamily; + if($family=='arial') + $family='helvetica'; + elseif($family=='symbol' || $family=='zapfdingbats') + $style=''; + $style=strtoupper($style); + if(strpos($style,'U')!==false) + { + $this->underline=true; + $style=str_replace('U','',$style); + } + else + $this->underline=false; + if($style=='IB') + $style='BI'; + if($size==0) + $size=$this->FontSizePt; + //Test if font is already selected + if($this->FontFamily==$family && $this->FontStyle==$style && $this->FontSizePt==$size) + return; + //Test if used for the first time + $fontkey=$family.$style; + if(!isset($this->fonts[$fontkey])) + { + //Check if one of the standard fonts + if(isset($this->CoreFonts[$fontkey])) + { + if(!isset($fpdf_charwidths[$fontkey])) + { + //Load metric file + $file=$family; + if($family=='times' || $family=='helvetica') + $file.=strtolower($style); + include($this->_getfontpath().$file.'.php'); + if(!isset($fpdf_charwidths[$fontkey])) + $this->Error('Could not include font metric file'); + } + $i=count($this->fonts)+1; + $this->fonts[$fontkey]=array('i'=>$i,'type'=>'core','name'=>$this->CoreFonts[$fontkey],'up'=>-100,'ut'=>50,'cw'=>$fpdf_charwidths[$fontkey]); + } + else + $this->Error('Undefined font: '.$family.' '.$style); + } + //Select it + $this->FontFamily=$family; + $this->FontStyle=$style; + $this->FontSizePt=$size; + $this->FontSize=$size/$this->k; + $this->CurrentFont=&$this->fonts[$fontkey]; + if($this->page>0) + $this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); +} + +function SetFontSize($size) +{ + //Set font size in points + if($this->FontSizePt==$size) + return; + $this->FontSizePt=$size; + $this->FontSize=$size/$this->k; + if($this->page>0) + $this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); +} + +function AddLink() +{ + //Create a new internal link + $n=count($this->links)+1; + $this->links[$n]=array(0,0); + return $n; +} + +function SetLink($link,$y=0,$page=-1) +{ + //Set destination of internal link + if($y==-1) + $y=$this->y; + if($page==-1) + $page=$this->page; + $this->links[$link]=array($page,$y); +} + +function Link($x,$y,$w,$h,$link) +{ + //Put a link on the page + $this->PageLinks[$this->page][]=array($x*$this->k,$this->hPt-$y*$this->k,$w*$this->k,$h*$this->k,$link); +} + +function Text($x,$y,$txt) +{ + //Output a string + $s=sprintf('BT %.2f %.2f Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); + if($this->underline && $txt!='') + $s.=' '.$this->_dounderline($x,$y,$txt); + if($this->ColorFlag) + $s='q '.$this->TextColor.' '.$s.' Q'; + $this->_out($s); +} + +function AcceptPageBreak() +{ + //Accept automatic page break or not + return $this->AutoPageBreak; +} + +function Cell($w,$h=0,$txt='',$border=0,$ln=0,$align='',$fill=0,$link='') +{ + //Output a cell + $k=$this->k; + if($this->y+$h>$this->PageBreakTrigger && !$this->InFooter && $this->AcceptPageBreak()) + { + //Automatic page break + $x=$this->x; + $ws=$this->ws; + if($ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + $this->AddPage($this->CurOrientation); + $this->x=$x; + if($ws>0) + { + $this->ws=$ws; + $this->_out(sprintf('%.3f Tw',$ws*$k)); + } + } + if($w==0) + $w=$this->w-$this->rMargin-$this->x; + $s=''; + if($fill==1 || $border==1) + { + if($fill==1) + $op=($border==1) ? 'B' : 'f'; + else + $op='S'; + $s=sprintf('%.2f %.2f %.2f %.2f re %s ',$this->x*$k,($this->h-$this->y)*$k,$w*$k,-$h*$k,$op); + } + if(is_string($border)) + { + $x=$this->x; + $y=$this->y; + if(strpos($border,'L')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k); + if(strpos($border,'T')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k); + if(strpos($border,'R')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k); + if(strpos($border,'B')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k); + } + if($txt!=='') + { + if($align=='R') + $dx=$w-$this->cMargin-$this->GetStringWidth($txt); + elseif($align=='C') + $dx=($w-$this->GetStringWidth($txt))/2; + else + $dx=$this->cMargin; + if($this->ColorFlag) + $s.='q '.$this->TextColor.' '; + $txt2=str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$txt))); + $s.=sprintf('BT %.2f %.2f Td (%s) Tj ET',($this->x+$dx)*$k,($this->h-($this->y+.5*$h+.3*$this->FontSize))*$k,$txt2); + if($this->underline) + $s.=' '.$this->_dounderline($this->x+$dx,$this->y+.5*$h+.3*$this->FontSize,$txt); + if($this->ColorFlag) + $s.=' Q'; + if($link) + $this->Link($this->x+$dx,$this->y+.5*$h-.5*$this->FontSize,$this->GetStringWidth($txt),$this->FontSize,$link); + } + if($s) + $this->_out($s); + $this->lasth=$h; + if($ln>0) + { + //Go to next line + $this->y+=$h; + if($ln==1) + $this->x=$this->lMargin; + } + else + $this->x+=$w; +} + +function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0) +{ + //Output text with automatic or explicit line breaks + $cw=&$this->CurrentFont['cw']; + if($w==0) + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + $s=str_replace("\r",'',$txt); + $nb=strlen($s); + if($nb>0 && $s[$nb-1]=="\n") + $nb--; + $b=0; + if($border) + { + if($border==1) + { + $border='LTRB'; + $b='LRT'; + $b2='LR'; + } + else + { + $b2=''; + if(strpos($border,'L')!==false) + $b2.='L'; + if(strpos($border,'R')!==false) + $b2.='R'; + $b=(strpos($border,'T')!==false) ? $b2.'T' : $b2; + } + } + $sep=-1; + $i=0; + $j=0; + $l=0; + $ns=0; + $nl=1; + while($i<$nb) + { + //Get next character + $c=$s{$i}; + if($c=="\n") + { + //Explicit line break + if($this->ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + $i++; + $sep=-1; + $j=$i; + $l=0; + $ns=0; + $nl++; + if($border && $nl==2) + $b=$b2; + continue; + } + if($c==' ') + { + $sep=$i; + $ls=$l; + $ns++; + } + $l+=$cw[$c]; + if($l>$wmax) + { + //Automatic line break + if($sep==-1) + { + if($i==$j) + $i++; + if($this->ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + } + else + { + if($align=='J') + { + $this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0; + $this->_out(sprintf('%.3f Tw',$this->ws*$this->k)); + } + $this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill); + $i=$sep+1; + } + $sep=-1; + $j=$i; + $l=0; + $ns=0; + $nl++; + if($border && $nl==2) + $b=$b2; + } + else + $i++; + } + //Last chunk + if($this->ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + if($border && strpos($border,'B')!==false) + $b.='B'; + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + $this->x=$this->lMargin; +} + +function Write($h,$txt,$link='') +{ + //Output text in flowing mode + $cw=&$this->CurrentFont['cw']; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + $s=str_replace("\r",'',$txt); + $nb=strlen($s); + $sep=-1; + $i=0; + $j=0; + $l=0; + $nl=1; + while($i<$nb) + { + //Get next character + $c=$s{$i}; + if($c=="\n") + { + //Explicit line break + $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); + $i++; + $sep=-1; + $j=$i; + $l=0; + if($nl==1) + { + $this->x=$this->lMargin; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + } + $nl++; + continue; + } + if($c==' ') + $sep=$i; + $l+=$cw[$c]; + if($l>$wmax) + { + //Automatic line break + if($sep==-1) + { + if($this->x>$this->lMargin) + { + //Move to next line + $this->x=$this->lMargin; + $this->y+=$h; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + $i++; + $nl++; + continue; + } + if($i==$j) + $i++; + $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); + } + else + { + $this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',0,$link); + $i=$sep+1; + } + $sep=-1; + $j=$i; + $l=0; + if($nl==1) + { + $this->x=$this->lMargin; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + } + $nl++; + } + else + $i++; + } + //Last chunk + if($i!=$j) + $this->Cell($l/1000*$this->FontSize,$h,substr($s,$j),0,0,'',0,$link); +} + +function Image($file,$x,$y,$w=0,$h=0,$type='',$link='') +{ + //Put an image on the page + if(!isset($this->images[$file])) + { + //First use of image, get info + if($type=='') + { + $pos=strrpos($file,'.'); + if(!$pos) + $this->Error('Image file has no extension and no type was specified: '.$file); + $type=substr($file,$pos+1); + } + $type=strtolower($type); + $mqr=get_magic_quotes_runtime(); + set_magic_quotes_runtime(0); + if($type=='jpg' || $type=='jpeg') + $info=$this->_parsejpg($file); + elseif($type=='png') + $info=$this->_parsepng($file); + else + { + //Allow for additional formats + $mtd='_parse'.$type; + if(!method_exists($this,$mtd)) + $this->Error('Unsupported image type: '.$type); + $info=$this->$mtd($file); + } + set_magic_quotes_runtime($mqr); + $info['i']=count($this->images)+1; + $this->images[$file]=$info; + } + else + $info=$this->images[$file]; + //Automatic width and height calculation if needed + if($w==0 && $h==0) + { + //Put image at 72 dpi + $w=$info['w']/$this->k; + $h=$info['h']/$this->k; + } + if($w==0) + $w=$h*$info['w']/$info['h']; + if($h==0) + $h=$w*$info['h']/$info['w']; + $this->_out(sprintf('q %.2f 0 0 %.2f %.2f %.2f cm /I%d Do Q',$w*$this->k,$h*$this->k,$x*$this->k,($this->h-($y+$h))*$this->k,$info['i'])); + if($link) + $this->Link($x,$y,$w,$h,$link); +} + +function Ln($h='') +{ + //Line feed; default value is last cell height + $this->x=$this->lMargin; + if(is_string($h)) + $this->y+=$this->lasth; + else + $this->y+=$h; +} + +function GetX() +{ + //Get x position + return $this->x; +} + +function SetX($x) +{ + //Set x position + if($x>=0) + $this->x=$x; + else + $this->x=$this->w+$x; +} + +function GetY() +{ + //Get y position + return $this->y; +} + +function SetY($y) +{ + //Set y position and reset x + $this->x=$this->lMargin; + if($y>=0) + $this->y=$y; + else + $this->y=$this->h+$y; +} + +function SetXY($x,$y) +{ + //Set x and y positions + $this->SetY($y); + $this->SetX($x); +} + +function Output($name='',$dest='') +{ + //Output PDF to some destination + //Finish document if necessary + if($this->state<3) + $this->Close(); + //Normalize parameters + if(is_bool($dest)) + $dest=$dest ? 'D' : 'F'; + $dest=strtoupper($dest); + if($dest=='') + { + if($name=='') + { + $name='doc.pdf'; + $dest='I'; + } + else + $dest='F'; + } + switch($dest) + { + case 'I': + //Send to standard output + if(ob_get_contents()) + $this->Error('Some data has already been output, can\'t send PDF file'); + if(php_sapi_name()!='cli') + { + //We send to a browser + header('Content-Type: application/pdf'); + if(headers_sent()) + $this->Error('Some data has already been output to browser, can\'t send PDF file'); + header('Content-Length: '.strlen($this->buffer)); + header('Content-disposition: inline; filename="'.$name.'"'); + } + echo $this->buffer; + break; + case 'D': + //Download file + if(ob_get_contents()) + $this->Error('Some data has already been output, can\'t send PDF file'); + if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) + header('Content-Type: application/force-download'); + else + header('Content-Type: application/octet-stream'); + if(headers_sent()) + $this->Error('Some data has already been output to browser, can\'t send PDF file'); + header('Content-Length: '.strlen($this->buffer)); + header('Content-disposition: attachment; filename="'.$name.'"'); + echo $this->buffer; + break; + case 'F': + //Save to local file + $f=fopen($name,'wb'); + if(!$f) + $this->Error('Unable to create output file: '.$name); + fwrite($f,$this->buffer,strlen($this->buffer)); + fclose($f); + break; + case 'S': + //Return as a string + return $this->buffer; + default: + $this->Error('Incorrect output destination: '.$dest); + } + return ''; +} + +/******************************************************************************* +* * +* Protected methods * +* * +*******************************************************************************/ +function _dochecks() +{ + //Check for locale-related bug + if(1.1==1) + $this->Error('Don\'t alter the locale before including class file'); + //Check for decimal separator + if(sprintf('%.1f',1.0)!='1.0') + setlocale(LC_NUMERIC,'C'); +} + +function _getfontpath() +{ + if(!defined('FPDF_FONTPATH') && is_dir(dirname(__FILE__).'/font')) + define('FPDF_FONTPATH',dirname(__FILE__).'/font/'); + return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : ''; +} + +function _putpages() +{ + $nb=$this->page; + if(!empty($this->AliasNbPages)) + { + //Replace number of pages + for($n=1;$n<=$nb;$n++) + $this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]); + } + if($this->DefOrientation=='P') + { + $wPt=$this->fwPt; + $hPt=$this->fhPt; + } + else + { + $wPt=$this->fhPt; + $hPt=$this->fwPt; + } + $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; + for($n=1;$n<=$nb;$n++) + { + //Page + $this->_newobj(); + $this->_out('<_out('/Parent 1 0 R'); + if(isset($this->OrientationChanges[$n])) + $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$hPt,$wPt)); + $this->_out('/Resources 2 0 R'); + if(isset($this->PageLinks[$n])) + { + //Links + $annots='/Annots ['; + foreach($this->PageLinks[$n] as $pl) + { + $rect=sprintf('%.2f %.2f %.2f %.2f',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]); + $annots.='<_textstring($pl[4]).'>>>>'; + else + { + $l=$this->links[$pl[4]]; + $h=isset($this->OrientationChanges[$l[0]]) ? $wPt : $hPt; + $annots.=sprintf('/Dest [%d 0 R /XYZ 0 %.2f null]>>',1+2*$l[0],$h-$l[1]*$this->k); + } + } + $this->_out($annots.']'); + } + $this->_out('/Contents '.($this->n+1).' 0 R>>'); + $this->_out('endobj'); + //Page content + $p=($this->compress) ? gzcompress($this->pages[$n]) : $this->pages[$n]; + $this->_newobj(); + $this->_out('<<'.$filter.'/Length '.strlen($p).'>>'); + $this->_putstream($p); + $this->_out('endobj'); + } + //Pages root + $this->offsets[1]=strlen($this->buffer); + $this->_out('1 0 obj'); + $this->_out('<_out($kids.']'); + $this->_out('/Count '.$nb); + $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$wPt,$hPt)); + $this->_out('>>'); + $this->_out('endobj'); +} + +function _putfonts() +{ + $nf=$this->n; + foreach($this->diffs as $diff) + { + //Encodings + $this->_newobj(); + $this->_out('<>'); + $this->_out('endobj'); + } + $mqr=get_magic_quotes_runtime(); + set_magic_quotes_runtime(0); + foreach($this->FontFiles as $file=>$info) + { + //Font file embedding + $this->_newobj(); + $this->FontFiles[$file]['n']=$this->n; + $font=''; + $f=fopen($this->_getfontpath().$file,'rb',1); + if(!$f) + $this->Error('Font file not found'); + while(!feof($f)) + $font.=fread($f,8192); + fclose($f); + $compressed=(substr($file,-2)=='.z'); + if(!$compressed && isset($info['length2'])) + { + $header=(ord($font{0})==128); + if($header) + { + //Strip first binary header + $font=substr($font,6); + } + if($header && ord($font{$info['length1']})==128) + { + //Strip second binary header + $font=substr($font,0,$info['length1']).substr($font,$info['length1']+6); + } + } + $this->_out('<_out('/Filter /FlateDecode'); + $this->_out('/Length1 '.$info['length1']); + if(isset($info['length2'])) + $this->_out('/Length2 '.$info['length2'].' /Length3 0'); + $this->_out('>>'); + $this->_putstream($font); + $this->_out('endobj'); + } + set_magic_quotes_runtime($mqr); + foreach($this->fonts as $k=>$font) + { + //Font objects + $this->fonts[$k]['n']=$this->n+1; + $type=$font['type']; + $name=$font['name']; + if($type=='core') + { + //Standard font + $this->_newobj(); + $this->_out('<_out('/BaseFont /'.$name); + $this->_out('/Subtype /Type1'); + if($name!='Symbol' && $name!='ZapfDingbats') + $this->_out('/Encoding /WinAnsiEncoding'); + $this->_out('>>'); + $this->_out('endobj'); + } + elseif($type=='Type1' || $type=='TrueType') + { + //Additional Type1 or TrueType font + $this->_newobj(); + $this->_out('<_out('/BaseFont /'.$name); + $this->_out('/Subtype /'.$type); + $this->_out('/FirstChar 32 /LastChar 255'); + $this->_out('/Widths '.($this->n+1).' 0 R'); + $this->_out('/FontDescriptor '.($this->n+2).' 0 R'); + if($font['enc']) + { + if(isset($font['diff'])) + $this->_out('/Encoding '.($nf+$font['diff']).' 0 R'); + else + $this->_out('/Encoding /WinAnsiEncoding'); + } + $this->_out('>>'); + $this->_out('endobj'); + //Widths + $this->_newobj(); + $cw=&$font['cw']; + $s='['; + for($i=32;$i<=255;$i++) + $s.=$cw[chr($i)].' '; + $this->_out($s.']'); + $this->_out('endobj'); + //Descriptor + $this->_newobj(); + $s='<$v) + $s.=' /'.$k.' '.$v; + $file=$font['file']; + if($file) + $s.=' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R'; + $this->_out($s.'>>'); + $this->_out('endobj'); + } + else + { + //Allow for additional types + $mtd='_put'.strtolower($type); + if(!method_exists($this,$mtd)) + $this->Error('Unsupported font type: '.$type); + $this->$mtd($font); + } + } +} + +function _putimages() +{ + $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; + reset($this->images); + while(list($file,$info)=each($this->images)) + { + $this->_newobj(); + $this->images[$file]['n']=$this->n; + $this->_out('<_out('/Subtype /Image'); + $this->_out('/Width '.$info['w']); + $this->_out('/Height '.$info['h']); + if($info['cs']=='Indexed') + $this->_out('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]'); + else + { + $this->_out('/ColorSpace /'.$info['cs']); + if($info['cs']=='DeviceCMYK') + $this->_out('/Decode [1 0 1 0 1 0 1 0]'); + } + $this->_out('/BitsPerComponent '.$info['bpc']); + if(isset($info['f'])) + $this->_out('/Filter /'.$info['f']); + if(isset($info['parms'])) + $this->_out($info['parms']); + if(isset($info['trns']) && is_array($info['trns'])) + { + $trns=''; + for($i=0;$i_out('/Mask ['.$trns.']'); + } + $this->_out('/Length '.strlen($info['data']).'>>'); + $this->_putstream($info['data']); + unset($this->images[$file]['data']); + $this->_out('endobj'); + //Palette + if($info['cs']=='Indexed') + { + $this->_newobj(); + $pal=($this->compress) ? gzcompress($info['pal']) : $info['pal']; + $this->_out('<<'.$filter.'/Length '.strlen($pal).'>>'); + $this->_putstream($pal); + $this->_out('endobj'); + } + } +} + +function _putxobjectdict() +{ + foreach($this->images as $image) + $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R'); +} + +function _putresourcedict() +{ + $this->_out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]'); + $this->_out('/Font <<'); + foreach($this->fonts as $font) + $this->_out('/F'.$font['i'].' '.$font['n'].' 0 R'); + $this->_out('>>'); + $this->_out('/XObject <<'); + $this->_putxobjectdict(); + $this->_out('>>'); +} + +function _putresources() +{ + $this->_putfonts(); + $this->_putimages(); + //Resource dictionary + $this->offsets[2]=strlen($this->buffer); + $this->_out('2 0 obj'); + $this->_out('<<'); + $this->_putresourcedict(); + $this->_out('>>'); + $this->_out('endobj'); +} + +function _putinfo() +{ + $this->_out('/Producer '.$this->_textstring('FPDF '.FPDF_VERSION)); + if(!empty($this->title)) + $this->_out('/Title '.$this->_textstring($this->title)); + if(!empty($this->subject)) + $this->_out('/Subject '.$this->_textstring($this->subject)); + if(!empty($this->author)) + $this->_out('/Author '.$this->_textstring($this->author)); + if(!empty($this->keywords)) + $this->_out('/Keywords '.$this->_textstring($this->keywords)); + if(!empty($this->creator)) + $this->_out('/Creator '.$this->_textstring($this->creator)); + $this->_out('/CreationDate '.$this->_textstring('D:'.date('YmdHis'))); +} + +function _putcatalog() +{ + $this->_out('/Type /Catalog'); + $this->_out('/Pages 1 0 R'); + if($this->ZoomMode=='fullpage') + $this->_out('/OpenAction [3 0 R /Fit]'); + elseif($this->ZoomMode=='fullwidth') + $this->_out('/OpenAction [3 0 R /FitH null]'); + elseif($this->ZoomMode=='real') + $this->_out('/OpenAction [3 0 R /XYZ null null 1]'); + elseif(!is_string($this->ZoomMode)) + $this->_out('/OpenAction [3 0 R /XYZ null null '.($this->ZoomMode/100).']'); + if($this->LayoutMode=='single') + $this->_out('/PageLayout /SinglePage'); + elseif($this->LayoutMode=='continuous') + $this->_out('/PageLayout /OneColumn'); + elseif($this->LayoutMode=='two') + $this->_out('/PageLayout /TwoColumnLeft'); +} + +function _putheader() +{ + $this->_out('%PDF-'.$this->PDFVersion); +} + +function _puttrailer() +{ + $this->_out('/Size '.($this->n+1)); + $this->_out('/Root '.$this->n.' 0 R'); + $this->_out('/Info '.($this->n-1).' 0 R'); +} + +function _enddoc() +{ + $this->_putheader(); + $this->_putpages(); + $this->_putresources(); + //Info + $this->_newobj(); + $this->_out('<<'); + $this->_putinfo(); + $this->_out('>>'); + $this->_out('endobj'); + //Catalog + $this->_newobj(); + $this->_out('<<'); + $this->_putcatalog(); + $this->_out('>>'); + $this->_out('endobj'); + //Cross-ref + $o=strlen($this->buffer); + $this->_out('xref'); + $this->_out('0 '.($this->n+1)); + $this->_out('0000000000 65535 f '); + for($i=1;$i<=$this->n;$i++) + $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i])); + //Trailer + $this->_out('trailer'); + $this->_out('<<'); + $this->_puttrailer(); + $this->_out('>>'); + $this->_out('startxref'); + $this->_out($o); + $this->_out('%%EOF'); + $this->state=3; +} + +function _beginpage($orientation) +{ + $this->page++; + $this->pages[$this->page]=''; + $this->state=2; + $this->x=$this->lMargin; + $this->y=$this->tMargin; + $this->FontFamily=''; + //Page orientation + if(!$orientation) + $orientation=$this->DefOrientation; + else + { + $orientation=strtoupper($orientation{0}); + if($orientation!=$this->DefOrientation) + $this->OrientationChanges[$this->page]=true; + } + if($orientation!=$this->CurOrientation) + { + //Change orientation + if($orientation=='P') + { + $this->wPt=$this->fwPt; + $this->hPt=$this->fhPt; + $this->w=$this->fw; + $this->h=$this->fh; + } + else + { + $this->wPt=$this->fhPt; + $this->hPt=$this->fwPt; + $this->w=$this->fh; + $this->h=$this->fw; + } + $this->PageBreakTrigger=$this->h-$this->bMargin; + $this->CurOrientation=$orientation; + } +} + +function _endpage() +{ + //End of page contents + $this->state=1; +} + +function _newobj() +{ + //Begin a new object + $this->n++; + $this->offsets[$this->n]=strlen($this->buffer); + $this->_out($this->n.' 0 obj'); +} + +function _dounderline($x,$y,$txt) +{ + //Underline text + $up=$this->CurrentFont['up']; + $ut=$this->CurrentFont['ut']; + $w=$this->GetStringWidth($txt)+$this->ws*substr_count($txt,' '); + return sprintf('%.2f %.2f %.2f %.2f re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt); +} + +function _parsejpg($file) +{ + //Extract info from a JPEG file + $a=GetImageSize($file); + if(!$a) + $this->Error('Missing or incorrect image file: '.$file); + if($a[2]!=2) + $this->Error('Not a JPEG file: '.$file); + if(!isset($a['channels']) || $a['channels']==3) + $colspace='DeviceRGB'; + elseif($a['channels']==4) + $colspace='DeviceCMYK'; + else + $colspace='DeviceGray'; + $bpc=isset($a['bits']) ? $a['bits'] : 8; + //Read whole file + $f=fopen($file,'rb'); + $data=''; + while(!feof($f)) + $data.=fread($f,4096); + fclose($f); + return array('w'=>$a[0],'h'=>$a[1],'cs'=>$colspace,'bpc'=>$bpc,'f'=>'DCTDecode','data'=>$data); +} + +function _parsepng($file) +{ + //Extract info from a PNG file + $f=fopen($file,'rb'); + if(!$f) + $this->Error('Can\'t open image file: '.$file); + //Check signature + if(fread($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10)) + $this->Error('Not a PNG file: '.$file); + //Read header chunk + fread($f,4); + if(fread($f,4)!='IHDR') + $this->Error('Incorrect PNG file: '.$file); + $w=$this->_freadint($f); + $h=$this->_freadint($f); + $bpc=ord(fread($f,1)); + if($bpc>8) + $this->Error('16-bit depth not supported: '.$file); + $ct=ord(fread($f,1)); + if($ct==0) + $colspace='DeviceGray'; + elseif($ct==2) + $colspace='DeviceRGB'; + elseif($ct==3) + $colspace='Indexed'; + else + $this->Error('Alpha channel not supported: '.$file); + if(ord(fread($f,1))!=0) + $this->Error('Unknown compression method: '.$file); + if(ord(fread($f,1))!=0) + $this->Error('Unknown filter method: '.$file); + if(ord(fread($f,1))!=0) + $this->Error('Interlacing not supported: '.$file); + fread($f,4); + $parms='/DecodeParms <>'; + //Scan chunks looking for palette, transparency and image data + $pal=''; + $trns=''; + $data=''; + do + { + $n=$this->_freadint($f); + $type=fread($f,4); + if($type=='PLTE') + { + //Read palette + $pal=fread($f,$n); + fread($f,4); + } + elseif($type=='tRNS') + { + //Read transparency info + $t=fread($f,$n); + if($ct==0) + $trns=array(ord(substr($t,1,1))); + elseif($ct==2) + $trns=array(ord(substr($t,1,1)),ord(substr($t,3,1)),ord(substr($t,5,1))); + else + { + $pos=strpos($t,chr(0)); + if($pos!==false) + $trns=array($pos); + } + fread($f,4); + } + elseif($type=='IDAT') + { + //Read image data block + $data.=fread($f,$n); + fread($f,4); + } + elseif($type=='IEND') + break; + else + fread($f,$n+4); + } + while($n); + if($colspace=='Indexed' && empty($pal)) + $this->Error('Missing palette in '.$file); + fclose($f); + return array('w'=>$w,'h'=>$h,'cs'=>$colspace,'bpc'=>$bpc,'f'=>'FlateDecode','parms'=>$parms,'pal'=>$pal,'trns'=>$trns,'data'=>$data); +} + +function _freadint($f) +{ + //Read a 4-byte integer from file + $a=unpack('Ni',fread($f,4)); + return $a['i']; +} + +function _textstring($s) +{ + //Format a text string + return '('.$this->_escape($s).')'; +} + +function _escape($s) +{ + //Add \ before \, ( and ) + return str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$s))); +} + +function _putstream($s) +{ + $this->_out('stream'); + $this->_out($s); + $this->_out('endstream'); +} + +function _out($s) +{ + //Add a line to the document + if($this->state==2) + $this->pages[$this->page].=$s."\n"; + else + $this->buffer.=$s."\n"; +} +//End of class +} + +//Handle special IE contype request +if(isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT']=='contype') +{ + header('Content-Type: application/pdf'); + exit; +} + +} +?> diff --git a/phplib/fpdf/histo.htm b/phplib/fpdf/histo.htm new file mode 100644 index 0000000..e4f2dab --- /dev/null +++ b/phplib/fpdf/histo.htm @@ -0,0 +1,111 @@ + + + +History + + + +

    History

    +v1.53 (2004-12-31) +
    +- When the font subdirectory is in the same directory as fpdf.php, it is no longer necessary to define the FPDF_FONTPATH constant.
    +- The array $HTTP_SERVER_VARS is no longer used. It could cause trouble on PHP5-based configurations with the register_long_arrays option disabled.
    +- Fixed a problem related to Type1 font embedding which caused trouble to some PDF processors.
    +- The file name sent to the browser could not contain a space character.
    +- The Cell() method could not print the number 0 (you had to pass the string '0').
    +
    +v1.52 (2003-12-30) +
    +- Image() now displays the image at 72 dpi if no dimension is given.
    +- Output() takes a string as second parameter to indicate destination.
    +- Open() is now called automatically by AddPage().
    +- Inserting remote JPEG images doesn't generate an error any longer.
    +- Decimal separator is forced to dot in the constructor.
    +- Added several encodings (Turkish, Thai, Hebrew, Ukrainian and Vietnamese).
    +- The last line of a right-aligned MultiCell() was not correctly aligned if it was terminated by a carriage return.
    +- No more error message about already sent headers when outputting the PDF to the standard output from the command line.
    +- The underlining was going too far for text containing characters \, ( or ).
    +- $HTTP_ENV_VARS has been replaced by $HTTP_SERVER_VARS.
    +
    +v1.51 (2002-08-03) +
    +- Type1 font support.
    +- Added Baltic encoding.
    +- The class now works internally in points with the origin at the bottom in order to avoid two bugs occurring with Acrobat 5 :
      * The line thickness was too large when printed under Windows 98 SE and ME.
      * TrueType fonts didn't appear immediately inside the plug-in (a substitution font was used), one had to cause a window refresh to make them show up.
    +- It is no longer necessary to set the decimal separator as dot to produce valid documents.
    +- The clickable area in a cell was always on the left independently from the text alignment.
    +- JPEG images in CMYK mode appeared in inverted colors.
    +- Transparent PNG images in grayscale or true color mode were incorrectly handled.
    +- Adding new fonts now works correctly even with the magic_quotes_runtime option set to on.
    +
    +v1.5 (2002-05-28) +
    +- TrueType font (AddFont()) and encoding support (Western and Eastern Europe, Cyrillic and Greek).
    +- Added Write() method.
    +- Added underlined style.
    +- Internal and external link support (AddLink(), SetLink(), Link()).
    +- Added right margin management and methods SetRightMargin(), SetTopMargin().
    +- Modification of SetDisplayMode() to select page layout.
    +- The border parameter of MultiCell() now lets choose borders to draw as Cell().
    +- When a document contains no page, Close() now calls AddPage() instead of causing a fatal error.
    +
    +v1.41 (2002-03-13) +
    +- Fixed SetDisplayMode() which no longer worked (the PDF viewer used its default display).
    +
    +v1.4 (2002-03-02) +
    +- PHP3 is no longer supported.
    +- Page compression (SetCompression()).
    +- Choice of page format and possibility to change orientation inside document.
    +- Added AcceptPageBreak() method.
    +- Ability to print the total number of pages (AliasNbPages()).
    +- Choice of cell borders to draw.
    +- New mode for Cell(): the current position can now move under the cell.
    +- Ability to include an image by specifying height only (width is calculated automatically).
    +- Fixed a bug: when a justified line triggered a page break, the footer inherited the corresponding word spacing.
    +
    +v1.31 (2002-01-12) +
    +- Fixed a bug in drawing frame with MultiCell(): the last line always started from the left margin.
    +- Removed Expires HTTP header (gives trouble in some situations).
    +- Added Content-disposition HTTP header (seems to help in some situations).
    +
    +v1.3 (2001-12-03) +
    +- Line break and text justification support (MultiCell()).
    +- Color support (SetDrawColor(), SetFillColor(), SetTextColor()). Possibility to draw filled rectangles and paint cell background.
    +- A cell whose width is declared null extends up to the right margin of the page.
    +- Line width is now retained from page to page and defaults to 0.2 mm.
    +- Added SetXY() method.
    +- Fixed a passing by reference done in a deprecated manner for PHP4.
    +
    +v1.2 (2001-11-11) +
    +- Added font metric files and GetStringWidth() method.
    +- Centering and right-aligning text in cells.
    +- Display mode control (SetDisplayMode()).
    +- Added methods to set document properties (SetAuthor(), SetCreator(), SetKeywords(), SetSubject(), SetTitle()).
    +- Possibility to force PDF download by browser.
    +- Added SetX() and GetX() methods.
    +- During automatic page break, current abscissa is now retained.
    +
    +v1.11 (2001-10-20) +
    +- PNG support doesn't require PHP4/Zlib any more. Data are now put directly into PDF without any decompression/recompression stage.
    +- Image insertion now works correctly even with magic_quotes_runtime option set to on.
    +
    +v1.1 (2001-10-07) +
    +- JPEG and PNG image support.
    +
    +v1.01 (2001-10-03) +
    +- Fixed a bug involving page break: in case when Header() doesn't specify a font, the one from previous page was not restored and produced an incorrect document.
    +
    +v1.0 (2001-09-17) +
    +- First version.
    +
    + + diff --git a/phplib/fpdf/install.txt b/phplib/fpdf/install.txt new file mode 100644 index 0000000..a140995 --- /dev/null +++ b/phplib/fpdf/install.txt @@ -0,0 +1,26 @@ +The FPDF library is made up of the following elements: + +- the main file, fpdf.php, which contains the class +- the font metric files (located in the font directory of this archive) + +The metric files are necessary as soon as you want to output some text in a document. +They can be accessed from three different locations: + +- the directory defined by the FPDF_FONTPATH constant (if this constant is defined) +- the font directory located in the directory containing fpdf.php (as it is the case in this archive) +- the directories accessible through include() + +Here is an example defining FPDF_FONTPATH (note the mandatory final slash): + +define('FPDF_FONTPATH','/home/www/font/'); +require('fpdf.php'); + +If the files are not accessible, the SetFont() method will produce the following error: + +FPDF error: Could not include font metric file + + +Remarks: + +- Only the files corresponding to the fonts actually used are necessary +- The tutorials provided in this package are ready to be executed diff --git a/phplib/fpdf/tutorial/20k_c1.txt b/phplib/fpdf/tutorial/20k_c1.txt new file mode 100644 index 0000000..6d5b295 --- /dev/null +++ b/phplib/fpdf/tutorial/20k_c1.txt @@ -0,0 +1,10 @@ +The year 1866 was marked by a bizarre development, an unexplained and downright inexplicable phenomenon that surely no one has forgotten. Without getting into those rumors that upset civilians in the seaports and deranged the public mind even far inland, it must be said that professional seamen were especially alarmed. Traders, shipowners, captains of vessels, skippers, and master mariners from Europe and America, naval officers from every country, and at their heels the various national governments on these two continents, were all extremely disturbed by the business. +In essence, over a period of time several ships had encountered "an enormous thing" at sea, a long spindle-shaped object, sometimes giving off a phosphorescent glow, infinitely bigger and faster than any whale. +The relevant data on this apparition, as recorded in various logbooks, agreed pretty closely as to the structure of the object or creature in question, its unprecedented speed of movement, its startling locomotive power, and the unique vitality with which it seemed to be gifted. If it was a cetacean, it exceeded in bulk any whale previously classified by science. No naturalist, neither Cuvier nor Lacépède, neither Professor Dumeril nor Professor de Quatrefages, would have accepted the existence of such a monster sight unseen -- specifically, unseen by their own scientific eyes. +Striking an average of observations taken at different times -- rejecting those timid estimates that gave the object a length of 200 feet, and ignoring those exaggerated views that saw it as a mile wide and three long--you could still assert that this phenomenal creature greatly exceeded the dimensions of anything then known to ichthyologists, if it existed at all. +Now then, it did exist, this was an undeniable fact; and since the human mind dotes on objects of wonder, you can understand the worldwide excitement caused by this unearthly apparition. As for relegating it to the realm of fiction, that charge had to be dropped. +In essence, on July 20, 1866, the steamer Governor Higginson, from the Calcutta & Burnach Steam Navigation Co., encountered this moving mass five miles off the eastern shores of Australia. Captain Baker at first thought he was in the presence of an unknown reef; he was even about to fix its exact position when two waterspouts shot out of this inexplicable object and sprang hissing into the air some 150 feet. So, unless this reef was subject to the intermittent eruptions of a geyser, the Governor Higginson had fair and honest dealings with some aquatic mammal, until then unknown, that could spurt from its blowholes waterspouts mixed with air and steam. +Similar events were likewise observed in Pacific seas, on July 23 of the same year, by the Christopher Columbus from the West India & Pacific Steam Navigation Co. Consequently, this extraordinary cetacean could transfer itself from one locality to another with startling swiftness, since within an interval of just three days, the Governor Higginson and the Christopher Columbus had observed it at two positions on the charts separated by a distance of more than 700 nautical leagues. +Fifteen days later and 2,000 leagues farther, the Helvetia from the Compagnie Nationale and the Shannon from the Royal Mail line, running on opposite tacks in that part of the Atlantic lying between the United States and Europe, respectively signaled each other that the monster had been sighted in latitude 42 degrees 15' north and longitude 60 degrees 35' west of the meridian of Greenwich. From their simultaneous observations, they were able to estimate the mammal's minimum length at more than 350 English feet; this was because both the Shannon and the Helvetia were of smaller dimensions, although each measured 100 meters stem to stern. Now then, the biggest whales, those rorqual whales that frequent the waterways of the Aleutian Islands, have never exceeded a length of 56 meters--if they reach even that. +One after another, reports arrived that would profoundly affect public opinion: new observations taken by the transatlantic liner Pereire, the Inman line's Etna running afoul of the monster, an official report drawn up by officers on the French frigate Normandy, dead-earnest reckonings obtained by the general staff of Commodore Fitz-James aboard the Lord Clyde. In lighthearted countries, people joked about this phenomenon, but such serious, practical countries as England, America, and Germany were deeply concerned. +In every big city the monster was the latest rage; they sang about it in the coffee houses, they ridiculed it in the newspapers, they dramatized it in the theaters. The tabloids found it a fine opportunity for hatching all sorts of hoaxes. In those newspapers short of copy, you saw the reappearance of every gigantic imaginary creature, from "Moby Dick," that dreadful white whale from the High Arctic regions, to the stupendous kraken whose tentacles could entwine a 500-ton craft and drag it into the ocean depths. They even reprinted reports from ancient times: the views of Aristotle and Pliny accepting the existence of such monsters, then the Norwegian stories of Bishop Pontoppidan, the narratives of Paul Egede, and finally the reports of Captain Harrington -- whose good faith is above suspicion--in which he claims he saw, while aboard the Castilian in 1857, one of those enormous serpents that, until then, had frequented only the seas of France's old extremist newspaper, The Constitutionalist. diff --git a/phplib/fpdf/tutorial/20k_c2.txt b/phplib/fpdf/tutorial/20k_c2.txt new file mode 100644 index 0000000..7b5c565 --- /dev/null +++ b/phplib/fpdf/tutorial/20k_c2.txt @@ -0,0 +1,23 @@ +During the period in which these developments were occurring, I had returned from a scientific undertaking organized to explore the Nebraska badlands in the United States. In my capacity as Assistant Professor at the Paris Museum of Natural History, I had been attached to this expedition by the French government. After spending six months in Nebraska, I arrived in New York laden with valuable collections near the end of March. My departure for France was set for early May. In the meantime, then, I was busy classifying my mineralogical, botanical, and zoological treasures when that incident took place with the Scotia. +I was perfectly abreast of this question, which was the big news of the day, and how could I not have been? I had read and reread every American and European newspaper without being any farther along. This mystery puzzled me. Finding it impossible to form any views, I drifted from one extreme to the other. Something was out there, that much was certain, and any doubting Thomas was invited to place his finger on the Scotia's wound. +When I arrived in New York, the question was at the boiling point. The hypothesis of a drifting islet or an elusive reef, put forward by people not quite in their right minds, was completely eliminated. And indeed, unless this reef had an engine in its belly, how could it move about with such prodigious speed? +Also discredited was the idea of a floating hull or some other enormous wreckage, and again because of this speed of movement. +So only two possible solutions to the question were left, creating two very distinct groups of supporters: on one side, those favoring a monster of colossal strength; on the other, those favoring an "underwater boat" of tremendous motor power. +Now then, although the latter hypothesis was completely admissible, it couldn't stand up to inquiries conducted in both the New World and the Old. That a private individual had such a mechanism at his disposal was less than probable. Where and when had he built it, and how could he have built it in secret? +Only some government could own such an engine of destruction, and in these disaster-filled times, when men tax their ingenuity to build increasingly powerful aggressive weapons, it was possible that, unknown to the rest of the world, some nation could have been testing such a fearsome machine. The Chassepot rifle led to the torpedo, and the torpedo has led to this underwater battering ram, which in turn will lead to the world putting its foot down. At least I hope it will. +But this hypothesis of a war machine collapsed in the face of formal denials from the various governments. Since the public interest was at stake and transoceanic travel was suffering, the sincerity of these governments could not be doubted. Besides, how could the assembly of this underwater boat have escaped public notice? Keeping a secret under such circumstances would be difficult enough for an individual, and certainly impossible for a nation whose every move is under constant surveillance by rival powers. +So, after inquiries conducted in England, France, Russia, Prussia, Spain, Italy, America, and even Turkey, the hypothesis of an underwater Monitor was ultimately rejected. +After I arrived in New York, several people did me the honor of consulting me on the phenomenon in question. In France I had published a two-volume work, in quarto, entitled The Mysteries of the Great Ocean Depths. Well received in scholarly circles, this book had established me as a specialist in this pretty obscure field of natural history. My views were in demand. As long as I could deny the reality of the business, I confined myself to a flat "no comment." But soon, pinned to the wall, I had to explain myself straight out. And in this vein, "the honorable Pierre Aronnax, Professor at the Paris Museum," was summoned by The New York Herald to formulate his views no matter what. +I complied. Since I could no longer hold my tongue, I let it wag. I discussed the question in its every aspect, both political and scientific, and this is an excerpt from the well-padded article I published in the issue of April 30. + +"Therefore," I wrote, "after examining these different hypotheses one by one, we are forced, every other supposition having been refuted, to accept the existence of an extremely powerful marine animal. +"The deepest parts of the ocean are totally unknown to us. No soundings have been able to reach them. What goes on in those distant depths? What creatures inhabit, or could inhabit, those regions twelve or fifteen miles beneath the surface of the water? What is the constitution of these animals? It's almost beyond conjecture. +"However, the solution to this problem submitted to me can take the form of a choice between two alternatives. +"Either we know every variety of creature populating our planet, or we do not. +"If we do not know every one of them, if nature still keeps ichthyological secrets from us, nothing is more admissible than to accept the existence of fish or cetaceans of new species or even new genera, animals with a basically 'cast-iron' constitution that inhabit strata beyond the reach of our soundings, and which some development or other, an urge or a whim if you prefer, can bring to the upper level of the ocean for long intervals. +"If, on the other hand, we do know every living species, we must look for the animal in question among those marine creatures already cataloged, and in this event I would be inclined to accept the existence of a giant narwhale. +"The common narwhale, or sea unicorn, often reaches a length of sixty feet. Increase its dimensions fivefold or even tenfold, then give this cetacean a strength in proportion to its size while enlarging its offensive weapons, and you have the animal we're looking for. It would have the proportions determined by the officers of the Shannon, the instrument needed to perforate the Scotia, and the power to pierce a steamer's hull. +"In essence, the narwhale is armed with a sort of ivory sword, or lance, as certain naturalists have expressed it. It's a king-sized tooth as hard as steel. Some of these teeth have been found buried in the bodies of baleen whales, which the narwhale attacks with invariable success. Others have been wrenched, not without difficulty, from the undersides of vessels that narwhales have pierced clean through, as a gimlet pierces a wine barrel. The museum at the Faculty of Medicine in Paris owns one of these tusks with a length of 2.25 meters and a width at its base of forty-eight centimeters! +"All right then! Imagine this weapon to be ten times stronger and the animal ten times more powerful, launch it at a speed of twenty miles per hour, multiply its mass times its velocity, and you get just the collision we need to cause the specified catastrophe. +"So, until information becomes more abundant, I plump for a sea unicorn of colossal dimensions, no longer armed with a mere lance but with an actual spur, like ironclad frigates or those warships called 'rams,' whose mass and motor power it would possess simultaneously. +"This inexplicable phenomenon is thus explained away--unless it's something else entirely, which, despite everything that has been sighted, studied, explored and experienced, is still possible!" diff --git a/phplib/fpdf/tutorial/calligra.afm b/phplib/fpdf/tutorial/calligra.afm new file mode 100644 index 0000000..67ac4e6 --- /dev/null +++ b/phplib/fpdf/tutorial/calligra.afm @@ -0,0 +1,275 @@ +StartFontMetrics 4.1 +FontName Calligrapher-Regular +FullName Calligrapher Regular +Notice Generated by Fontographer 3.5 +EncodingScheme FontSpecific +FamilyName Calligrapher +Weight Regular +Version (Altsys Fontographer 3.5 5/26/92) +Characters 215 +ItalicAngle 0.0 +Ascender 899 +Descender -234 +UnderlineThickness 20 +UnderlinePosition -200 +IsFixedPitch false +FontBBox -50 -234 1328 899 +StartCharMetrics 256 +C 0 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 1 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 2 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 3 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 4 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 5 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 6 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 7 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 8 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 9 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 10 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 11 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 12 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 13 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 14 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 15 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 16 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 17 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 18 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 19 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 20 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 21 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 22 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 23 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 24 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 25 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 26 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 27 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 28 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 29 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 30 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 31 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 32 ; WX 282 ; N space ; B 67 -16 251 718 ; +C 33 ; WX 324 ; N exclam ; B 67 -16 251 718 ; +C 34 ; WX 405 ; N quotedbl ; B 60 460 353 718 ; +C 35 ; WX 584 ; N numbersign ; B 35 0 549 701 ; +C 36 ; WX 632 ; N dollar ; B 32 -126 595 814 ; +C 37 ; WX 980 ; N percent ; B 35 -16 945 703 ; +C 38 ; WX 776 ; N ampersand ; B 41 -17 811 670 ; +C 39 ; WX 259 ; N quotesingle ; B 72 460 206 718 ; +C 40 ; WX 299 ; N parenleft ; B 57 -119 299 785 ; +C 41 ; WX 299 ; N parenright ; B 0 -119 242 785 ; +C 42 ; WX 377 ; N asterisk ; B 35 407 342 714 ; +C 43 ; WX 600 ; N plus ; B 47 0 553 506 ; +C 44 ; WX 259 ; N comma ; B 35 -67 224 162 ; +C 45 ; WX 432 ; N hyphen ; B 28 249 404 377 ; +C 46 ; WX 254 ; N period ; B 43 -16 227 162 ; +C 47 ; WX 597 ; N slash ; B 7 -14 591 714 ; +C 48 ; WX 529 ; N zero ; B 21 -18 508 583 ; +C 49 ; WX 298 ; N one ; B 8 -15 233 582 ; +C 50 ; WX 451 ; N two ; B 17 -8 430 588 ; +C 51 ; WX 359 ; N three ; B 11 -54 337 582 ; +C 52 ; WX 525 ; N four ; B 18 -20 519 602 ; +C 53 ; WX 423 ; N five ; B 10 -55 420 582 ; +C 54 ; WX 464 ; N six ; B 23 -14 447 589 ; +C 55 ; WX 417 ; N seven ; B 8 -18 415 589 ; +C 56 ; WX 457 ; N eight ; B 19 -16 432 583 ; +C 57 ; WX 479 ; N nine ; B 26 -16 450 588 ; +C 58 ; WX 275 ; N colon ; B 59 -16 242 491 ; +C 59 ; WX 282 ; N semicolon ; B 54 -67 245 491 ; +C 60 ; WX 600 ; N less ; B 47 -8 553 514 ; +C 61 ; WX 600 ; N equal ; B 47 98 553 408 ; +C 62 ; WX 600 ; N greater ; B 47 -8 553 514 ; +C 63 ; WX 501 ; N question ; B 21 -16 473 721 ; +C 64 ; WX 800 ; N at ; B 29 -12 771 730 ; +C 65 ; WX 743 ; N A ; B -23 -14 754 723 ; +C 66 ; WX 636 ; N B ; B -42 -7 608 706 ; +C 67 ; WX 598 ; N C ; B 27 -12 572 712 ; +C 68 ; WX 712 ; N D ; B -42 -11 684 705 ; +C 69 ; WX 608 ; N E ; B -21 0 608 708 ; +C 70 ; WX 562 ; N F ; B -21 -18 584 716 ; +C 71 ; WX 680 ; N G ; B 29 -8 668 714 ; +C 72 ; WX 756 ; N H ; B 70 -17 777 728 ; +C 73 ; WX 308 ; N I ; B 14 -15 238 718 ; +C 74 ; WX 314 ; N J ; B 7 -223 244 727 ; +C 75 ; WX 676 ; N K ; B 14 -16 683 725 ; +C 76 ; WX 552 ; N L ; B 14 -8 580 713 ; +C 77 ; WX 1041 ; N M ; B 42 -17 1017 739 ; +C 78 ; WX 817 ; N N ; B -42 -17 747 736 ; +C 79 ; WX 729 ; N O ; B 32 -16 698 709 ; +C 80 ; WX 569 ; N P ; B -35 -15 570 716 ; +C 81 ; WX 698 ; N Q ; B 27 -201 1328 715 ; +C 82 ; WX 674 ; N R ; B -35 -20 696 712 ; +C 83 ; WX 618 ; N S ; B 31 -16 589 709 ; +C 84 ; WX 673 ; N T ; B -21 -20 702 714 ; +C 85 ; WX 805 ; N U ; B 0 -19 804 722 ; +C 86 ; WX 753 ; N V ; B -28 -20 788 729 ; +C 87 ; WX 1238 ; N W ; B -28 -17 1273 736 ; +C 88 ; WX 716 ; N X ; B 7 -38 709 731 ; +C 89 ; WX 754 ; N Y ; B -35 -17 789 747 ; +C 90 ; WX 599 ; N Z ; B 30 -5 584 748 ; +C 91 ; WX 315 ; N bracketleft ; B 93 -124 322 718 ; +C 92 ; WX 463 ; N backslash ; B -21 -18 484 736 ; +C 93 ; WX 315 ; N bracketright ; B -7 -124 222 718 ; +C 94 ; WX 600 ; N asciicircum ; B 63 266 537 658 ; +C 95 ; WX 547 ; N underscore ; B -7 -198 554 -163 ; +C 96 ; WX 278 ; N grave ; B -1 541 214 693 ; +C 97 ; WX 581 ; N a ; B 21 -16 581 494 ; +C 98 ; WX 564 ; N b ; B -24 -17 543 793 ; +C 99 ; WX 440 ; N c ; B 21 -17 422 490 ; +C 100 ; WX 571 ; N d ; B 0 -15 550 659 ; +C 101 ; WX 450 ; N e ; B 28 -23 428 493 ; +C 102 ; WX 347 ; N f ; B -35 -14 474 785 ; +C 103 ; WX 628 ; N g ; B 19 -219 612 496 ; +C 104 ; WX 611 ; N h ; B -29 -18 569 785 ; +C 105 ; WX 283 ; N i ; B -14 -15 241 679 ; +C 106 ; WX 283 ; N j ; B -14 -234 241 679 ; +C 107 ; WX 560 ; N k ; B -24 -15 582 789 ; +C 108 ; WX 252 ; N l ; B -28 -15 210 789 ; +C 109 ; WX 976 ; N m ; B -21 -16 927 494 ; +C 110 ; WX 595 ; N n ; B -28 -15 574 493 ; +C 111 ; WX 508 ; N o ; B 27 -17 485 490 ; +C 112 ; WX 549 ; N p ; B -28 -216 526 496 ; +C 113 ; WX 540 ; N q ; B 28 -219 491 493 ; +C 114 ; WX 395 ; N r ; B -21 -19 430 492 ; +C 115 ; WX 441 ; N s ; B 34 -15 413 493 ; +C 116 ; WX 307 ; N t ; B -21 -16 378 621 ; +C 117 ; WX 614 ; N u ; B -14 -18 558 501 ; +C 118 ; WX 556 ; N v ; B -28 -20 569 483 ; +C 119 ; WX 915 ; N w ; B -28 -17 928 495 ; +C 120 ; WX 559 ; N x ; B 14 -17 546 500 ; +C 121 ; WX 597 ; N y ; B -21 -227 541 500 ; +C 122 ; WX 452 ; N z ; B 28 -5 442 515 ; +C 123 ; WX 315 ; N braceleft ; B 6 -118 309 718 ; +C 124 ; WX 222 ; N bar ; B 63 -18 159 730 ; +C 125 ; WX 315 ; N braceright ; B 6 -118 309 718 ; +C 126 ; WX 600 ; N asciitilde ; B 69 166 531 340 ; +C 127 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 128 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 129 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 130 ; WX 0 ; N quotesinglbase ; B -23 -14 754 877 ; +C 131 ; WX 0 ; N florin ; B 0 -19 804 854 ; +C 132 ; WX 0 ; N quotedblbase ; B -23 -14 754 877 ; +C 133 ; WX 780 ; N ellipsis ; B 43 -16 747 162 ; +C 134 ; WX 0 ; N dagger ; B 27 -122 437 592 ; +C 135 ; WX 0 ; N daggerdbl ; B 43 278 227 456 ; +C 136 ; WX 278 ; N circumflex ; B -14 557 292 677 ; +C 137 ; WX 0 ; N perthousand ; B -23 -14 754 877 ; +C 138 ; WX 0 ; N Scaron ; B 0 0 0 100 ; +C 139 ; WX 0 ; N guilsinglleft ; B 43 278 227 456 ; +C 140 ; WX 1064 ; N OE ; B 32 -16 1055 709 ; +C 141 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 142 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 143 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 144 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 145 ; WX 259 ; N quoteleft ; B 35 489 224 717 ; +C 146 ; WX 259 ; N quoteright ; B 35 489 224 717 ; +C 147 ; WX 470 ; N quotedblleft ; B 35 489 443 717 ; +C 148 ; WX 470 ; N quotedblright ; B 35 487 443 717 ; +C 149 ; WX 500 ; N bullet ; B 70 179 430 539 ; +C 150 ; WX 300 ; N endash ; B 0 245 300 350 ; +C 151 ; WX 600 ; N emdash ; B 0 245 600 350 ; +C 152 ; WX 278 ; N tilde ; B -44 563 326 689 ; +C 153 ; WX 990 ; N trademark ; B 62 306 928 718 ; +C 154 ; WX 0 ; N scaron ; B 0 0 0 100 ; +C 155 ; WX 0 ; N guilsinglright ; B 43 278 227 456 ; +C 156 ; WX 790 ; N oe ; B 27 -23 764 493 ; +C 157 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 158 ; WX 800 ; N .notdef ; B 50 0 750 800 ; +C 159 ; WX 754 ; N Ydieresis ; B -35 -17 789 882 ; +C 160 ; WX 282 ; N nbspace ; B -23 -14 754 893 ; +C 161 ; WX 324 ; N exclamdown ; B 69 -203 253 531 ; +C 162 ; WX 450 ; N cent ; B 27 -122 437 592 ; +C 163 ; WX 640 ; N sterling ; B 0 -9 619 716 ; +C 164 ; WX 518 ; N currency ; B 3 72 515 586 ; +C 165 ; WX 603 ; N yen ; B -28 -65 631 747 ; +C 166 ; WX 0 ; N brokenbar ; B 0 0 0 100 ; +C 167 ; WX 519 ; N section ; B -50 -216 524 762 ; +C 168 ; WX 254 ; N dieresis ; B -20 554 308 682 ; +C 169 ; WX 800 ; N copyright ; B 29 -12 771 730 ; +C 170 ; WX 349 ; N ordfeminine ; B 13 385 349 717 ; +C 171 ; WX 0 ; N guillemotleft ; B 43 -16 747 162 ; +C 172 ; WX 0 ; N logicalnot ; B 30 0 730 700 ; +C 173 ; WX 432 ; N hyphen ; B 28 249 404 377 ; +C 174 ; WX 800 ; N registered ; B 29 -12 771 730 ; +C 175 ; WX 278 ; N macron ; B -47 584 325 665 ; +C 176 ; WX 0 ; N degree ; B 27 -122 437 592 ; +C 177 ; WX 0 ; N plusminus ; B 29 -8 668 877 ; +C 178 ; WX 0 ; N twosuperior ; B 0 0 0 100 ; +C 179 ; WX 0 ; N threesuperior ; B 0 0 0 100 ; +C 180 ; WX 278 ; N acute ; B 49 536 279 693 ; +C 181 ; WX 614 ; N mu ; B -14 -231 558 501 ; +C 182 ; WX 0 ; N paragraph ; B -35 -15 668 785 ; +C 183 ; WX 254 ; N periodcentered ; B 43 278 227 456 ; +C 184 ; WX 278 ; N cedilla ; B -8 -216 231 6 ; +C 185 ; WX 0 ; N onesuperior ; B 0 0 0 100 ; +C 186 ; WX 305 ; N ordmasculine ; B 16 373 291 702 ; +C 187 ; WX 0 ; N guillemotright ; B 43 -16 747 162 ; +C 188 ; WX 0 ; N onequarter ; B 0 0 0 100 ; +C 189 ; WX 0 ; N onehalf ; B 0 0 0 100 ; +C 190 ; WX 0 ; N threequarters ; B 0 0 0 100 ; +C 191 ; WX 501 ; N questiondown ; B 15 -196 467 541 ; +C 192 ; WX 743 ; N Agrave ; B -23 -14 754 893 ; +C 193 ; WX 743 ; N Aacute ; B -23 -14 754 893 ; +C 194 ; WX 743 ; N Acircumflex ; B -23 -14 754 877 ; +C 195 ; WX 743 ; N Atilde ; B -23 -14 754 889 ; +C 196 ; WX 743 ; N Adieresis ; B -23 -14 754 882 ; +C 197 ; WX 743 ; N Aring ; B -23 -14 754 899 ; +C 198 ; WX 1060 ; N AE ; B -29 -14 1053 708 ; +C 199 ; WX 598 ; N Ccedilla ; B 27 -183 572 712 ; +C 200 ; WX 608 ; N Egrave ; B -21 0 608 893 ; +C 201 ; WX 608 ; N Eacute ; B -21 0 608 893 ; +C 202 ; WX 608 ; N Ecircumflex ; B -21 0 608 877 ; +C 203 ; WX 608 ; N Edieresis ; B -21 0 608 882 ; +C 204 ; WX 308 ; N Igrave ; B 14 -15 264 893 ; +C 205 ; WX 308 ; N Iacute ; B 14 -15 274 893 ; +C 206 ; WX 308 ; N Icircumflex ; B 1 -15 307 877 ; +C 207 ; WX 308 ; N Idieresis ; B -15 -15 313 882 ; +C 208 ; WX 0 ; N Eth ; B 0 0 0 100 ; +C 209 ; WX 817 ; N Ntilde ; B -42 -17 747 889 ; +C 210 ; WX 729 ; N Ograve ; B 32 -16 698 893 ; +C 211 ; WX 729 ; N Oacute ; B 32 -16 698 893 ; +C 212 ; WX 729 ; N Ocircumflex ; B 32 -16 698 877 ; +C 213 ; WX 729 ; N Otilde ; B 32 -16 698 889 ; +C 214 ; WX 729 ; N Odieresis ; B 32 -16 698 882 ; +C 215 ; WX 0 ; N multiply ; B 0 0 0 100 ; +C 216 ; WX 729 ; N Oslash ; B 14 -24 724 709 ; +C 217 ; WX 805 ; N Ugrave ; B 0 -19 804 893 ; +C 218 ; WX 805 ; N Uacute ; B 0 -19 804 893 ; +C 219 ; WX 805 ; N Ucircumflex ; B 0 -19 804 877 ; +C 220 ; WX 805 ; N Udieresis ; B 0 -19 804 882 ; +C 221 ; WX 0 ; N _235 ; B 0 0 0 100 ; +C 222 ; WX 0 ; N Thorn ; B 0 0 0 100 ; +C 223 ; WX 688 ; N germandbls ; B -35 -15 668 785 ; +C 224 ; WX 581 ; N agrave ; B 21 -16 581 693 ; +C 225 ; WX 581 ; N aacute ; B 21 -16 581 693 ; +C 226 ; WX 581 ; N acircumflex ; B 21 -16 581 677 ; +C 227 ; WX 581 ; N atilde ; B 21 -16 581 689 ; +C 228 ; WX 581 ; N adieresis ; B 21 -16 581 682 ; +C 229 ; WX 581 ; N aring ; B 21 -16 581 734 ; +C 230 ; WX 792 ; N ae ; B 21 -23 773 494 ; +C 231 ; WX 440 ; N ccedilla ; B 21 -183 422 490 ; +C 232 ; WX 450 ; N egrave ; B 28 -23 428 693 ; +C 233 ; WX 450 ; N eacute ; B 28 -23 428 693 ; +C 234 ; WX 450 ; N ecircumflex ; B 28 -23 432 677 ; +C 235 ; WX 450 ; N edieresis ; B 28 -23 428 682 ; +C 236 ; WX 283 ; N igrave ; B -14 -15 244 693 ; +C 237 ; WX 283 ; N iacute ; B -14 -15 269 693 ; +C 238 ; WX 283 ; N icircumflex ; B -14 -15 297 677 ; +C 239 ; WX 283 ; N idieresis ; B -25 -15 303 682 ; +C 240 ; WX 0 ; N Yacute ; B 0 0 0 100 ; +C 241 ; WX 595 ; N ntilde ; B -28 -15 574 689 ; +C 242 ; WX 508 ; N ograve ; B 27 -17 485 693 ; +C 243 ; WX 508 ; N oacute ; B 27 -17 485 693 ; +C 244 ; WX 508 ; N ocircumflex ; B 27 -17 485 677 ; +C 245 ; WX 508 ; N otilde ; B 27 -17 485 689 ; +C 246 ; WX 508 ; N odieresis ; B 27 -17 485 682 ; +C 247 ; WX 0 ; N divide ; B 35 0 760 727 ; +C 248 ; WX 508 ; N oslash ; B -8 -54 496 589 ; +C 249 ; WX 614 ; N ugrave ; B -14 -18 558 693 ; +C 250 ; WX 614 ; N uacute ; B -14 -18 558 693 ; +C 251 ; WX 614 ; N ucircumflex ; B -14 -18 558 677 ; +C 252 ; WX 614 ; N udieresis ; B -14 -18 558 682 ; +C 253 ; WX 0 ; N yacute ; B 0 0 0 100 ; +C 254 ; WX 0 ; N thorn ; B 0 0 0 100 ; +C 255 ; WX 597 ; N ydieresis ; B -21 -227 541 682 ; +EndCharMetrics +EndFontMetrics diff --git a/phplib/fpdf/tutorial/calligra.php b/phplib/fpdf/tutorial/calligra.php new file mode 100644 index 0000000..9768158 --- /dev/null +++ b/phplib/fpdf/tutorial/calligra.php @@ -0,0 +1,24 @@ +899,'Descent'=>-234,'CapHeight'=>731,'Flags'=>32,'FontBBox'=>'[-50 -234 1328 899]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>800); +$up=-200; +$ut=20; +$cw=array( + chr(0)=>800,chr(1)=>800,chr(2)=>800,chr(3)=>800,chr(4)=>800,chr(5)=>800,chr(6)=>800,chr(7)=>800,chr(8)=>800,chr(9)=>800,chr(10)=>800,chr(11)=>800,chr(12)=>800,chr(13)=>800,chr(14)=>800,chr(15)=>800,chr(16)=>800,chr(17)=>800,chr(18)=>800,chr(19)=>800,chr(20)=>800,chr(21)=>800, + chr(22)=>800,chr(23)=>800,chr(24)=>800,chr(25)=>800,chr(26)=>800,chr(27)=>800,chr(28)=>800,chr(29)=>800,chr(30)=>800,chr(31)=>800,' '=>282,'!'=>324,'"'=>405,'#'=>584,'$'=>632,'%'=>980,'&'=>776,'\''=>259,'('=>299,')'=>299,'*'=>377,'+'=>600, + ','=>259,'-'=>432,'.'=>254,'/'=>597,'0'=>529,'1'=>298,'2'=>451,'3'=>359,'4'=>525,'5'=>423,'6'=>464,'7'=>417,'8'=>457,'9'=>479,':'=>275,';'=>282,'<'=>600,'='=>600,'>'=>600,'?'=>501,'@'=>800,'A'=>743, + 'B'=>636,'C'=>598,'D'=>712,'E'=>608,'F'=>562,'G'=>680,'H'=>756,'I'=>308,'J'=>314,'K'=>676,'L'=>552,'M'=>1041,'N'=>817,'O'=>729,'P'=>569,'Q'=>698,'R'=>674,'S'=>618,'T'=>673,'U'=>805,'V'=>753,'W'=>1238, + 'X'=>716,'Y'=>754,'Z'=>599,'['=>315,'\\'=>463,']'=>315,'^'=>600,'_'=>547,'`'=>278,'a'=>581,'b'=>564,'c'=>440,'d'=>571,'e'=>450,'f'=>347,'g'=>628,'h'=>611,'i'=>283,'j'=>283,'k'=>560,'l'=>252,'m'=>976, + 'n'=>595,'o'=>508,'p'=>549,'q'=>540,'r'=>395,'s'=>441,'t'=>307,'u'=>614,'v'=>556,'w'=>915,'x'=>559,'y'=>597,'z'=>452,'{'=>315,'|'=>222,'}'=>315,'~'=>600,chr(127)=>800,chr(128)=>800,chr(129)=>800,chr(130)=>0,chr(131)=>0, + chr(132)=>0,chr(133)=>780,chr(134)=>0,chr(135)=>0,chr(136)=>278,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>1064,chr(141)=>800,chr(142)=>800,chr(143)=>800,chr(144)=>800,chr(145)=>259,chr(146)=>259,chr(147)=>470,chr(148)=>470,chr(149)=>500,chr(150)=>300,chr(151)=>600,chr(152)=>278,chr(153)=>990, + chr(154)=>0,chr(155)=>0,chr(156)=>790,chr(157)=>800,chr(158)=>800,chr(159)=>754,chr(160)=>282,chr(161)=>324,chr(162)=>450,chr(163)=>640,chr(164)=>518,chr(165)=>603,chr(166)=>0,chr(167)=>519,chr(168)=>254,chr(169)=>800,chr(170)=>349,chr(171)=>0,chr(172)=>0,chr(173)=>432,chr(174)=>800,chr(175)=>278, + chr(176)=>0,chr(177)=>0,chr(178)=>0,chr(179)=>0,chr(180)=>278,chr(181)=>614,chr(182)=>0,chr(183)=>254,chr(184)=>278,chr(185)=>0,chr(186)=>305,chr(187)=>0,chr(188)=>0,chr(189)=>0,chr(190)=>0,chr(191)=>501,chr(192)=>743,chr(193)=>743,chr(194)=>743,chr(195)=>743,chr(196)=>743,chr(197)=>743, + chr(198)=>1060,chr(199)=>598,chr(200)=>608,chr(201)=>608,chr(202)=>608,chr(203)=>608,chr(204)=>308,chr(205)=>308,chr(206)=>308,chr(207)=>308,chr(208)=>0,chr(209)=>817,chr(210)=>729,chr(211)=>729,chr(212)=>729,chr(213)=>729,chr(214)=>729,chr(215)=>0,chr(216)=>729,chr(217)=>805,chr(218)=>805,chr(219)=>805, + chr(220)=>805,chr(221)=>0,chr(222)=>0,chr(223)=>688,chr(224)=>581,chr(225)=>581,chr(226)=>581,chr(227)=>581,chr(228)=>581,chr(229)=>581,chr(230)=>792,chr(231)=>440,chr(232)=>450,chr(233)=>450,chr(234)=>450,chr(235)=>450,chr(236)=>283,chr(237)=>283,chr(238)=>283,chr(239)=>283,chr(240)=>800,chr(241)=>595, + chr(242)=>508,chr(243)=>508,chr(244)=>508,chr(245)=>508,chr(246)=>508,chr(247)=>0,chr(248)=>508,chr(249)=>614,chr(250)=>614,chr(251)=>614,chr(252)=>614,chr(253)=>0,chr(254)=>0,chr(255)=>597); +$enc='cp1252'; +$diff=''; +$file='calligra.z'; +$originalsize=40120; +?> diff --git a/phplib/fpdf/tutorial/calligra.ttf b/phplib/fpdf/tutorial/calligra.ttf new file mode 100644 index 0000000000000000000000000000000000000000..e7fee650dadcebc481d58e0d8e68a558d9a52f85 GIT binary patch literal 40041 zcmbrm2bd&Rc`jV%RIaY4a_F3Mp6==H2|d$2d1iCg&PpTgYIn7(u+nOkRw#lJQHX1j z2}U;2fI%c*78`H?8!+kO>m^x+-*EZO6$lVugN=6n?^O59u7tQe_xX3HyQ{0Kt55jC z`@P?H4uvR+Qm8sbQ%~&NTWj3Ow`7WX<>PR6$I(+qP6vK@{MQuq;>Re8x#H;Ux5gj) z^@o2%Q7`)(Md9<;oIY{t-QT?O56EY5{jn1_+<8s(4KMG)d-(kJ^Cyp;I(z)HzN_JW zKcy)3b0?1r~mnen~ol# zR=B^UsJkAA_uoBrTUS z5AU_pXO5r#6^#sN&tJjy0!8`?kLCaRNA)VT`%Adzzrh*mUCa2L8?Wno*B!P_KLGD( z3VYx1zC%B-?!bM{ukU^KA|W5)9Oh@Hhj* zcPqReqvF)n)Sd9WNZkaV+zQVpyiZS4C%x<9RFkSwt+^vN+;HviPShNH`v&-b?Q^f) zbNs|@Hyk-b?SU_zpl*W;j!Lq*e>G-&sE^uXm2y1(M1Rb90=3D>N*O(|czb*a zzPWhhWc(nxQEKc7oFNw+A6u>T5qj0f(fUK6V-3*xr|CGzD^E@JLp<~M6vzHOVi`dS9-Ch^fy3cmWgVLVu!rw^!!ve*YntDRd!J~oyvhnPD==g8G z3rEk+!*9&3|CIVK{AJK=KQ-46`zQzTH2iS^hYjdF!aT*V$%=sVjUTza=SQ_?we#=` z+OtSE#^DcDtME$!oh_LvuF*Yg@?0vJZH@M5*ZC34osoT_SSS|9j!IlC8&A+_&c$E; z=bvxA{kAKvh(w~#K0JpzcF^y~L30{f)kR-KN1#=t=c&HTF&In`zs6zlEOmRY3x9qJ ze$)F^fn!TZMV%Zx(2>SIIRg*;G#PhMJiZ4I3)L>Tq>ehp`uo6N3q4e~S_N4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wH zm#)kpBT@qtLOMuG=TgjR9^eVrO{Z}mfK|{z)HcizFO_v!W&jbkYbr4TUI6VeL9v)g z9n9HGGJ(U{RK}%uVU>?2olIpjb?FSJ4XIrM!EhtVq@vD&nh9>wQ~n;oA#NsvclC5u zK@v`{LFDw$Bm#yaC%=`{Zxs?Frc08UBrc&4i?eYijO;KHEbC@6>1uQ^E%Iz4Q-VCh U10=7=DPWN61s<*;K-*jY1yYf)S^xk5 literal 0 HcmV?d00001 diff --git a/phplib/fpdf/tutorial/calligra.z b/phplib/fpdf/tutorial/calligra.z new file mode 100644 index 0000000000000000000000000000000000000000..1c0bebd20b3f68fe84a44520cc93c7cee39f2792 GIT binary patch literal 25604 zcmV((K;XZ4oTR)5fLvF7FMQ6qz4v>k_uhAAXJ*Un&TL=xE^B44Em@K!+mbEIwk+cs z+^EL9&=Me!fQR*w~l^5~O|S-kDvkWb^pS?%bI> zXJ+m_d@)i zVvqg$XQ65a`)!QWrR-;dpN@WhdN`tYam`(wC2FPyyj*4xH6j{hkD z_uY@*t0zw#Ir%FB>bO6Dg}=`NcdYnW{Lg<>u2DL_#Mk^++yb6hM31k&uIyT|sT%PB zeoFx4{lfbV@xY3WuXAo?*ZJ2`wL$yEzkl~y{vF&1NN^Az2;Z#-c-(dbd>y|d@RAF;G6(u@Yvv-1SWI_=M;#+U4wHPw|@eE6O!DZpZ)WGKl|tXe)iA%{p_Fj``JJ5 z_p^WQ^>g9KO-D{0yzR*0*tK`Y=5M~~wwsThI(YKfkyEior3n`BMBRjsQ+WDr!>@-y z3|tHD#Lx5KX8g%*`1z>!=}B5wF0H-qzm3H{z4BKh`p0^(HR8T|syCuP1zT=oxdfk@KOI}ZznnjKEVj@6VRGat zly<*xWMrw_gYb=?hAR(Ynyh1De~yS@nq$C3FUXL84`}M|Aw?nrF*Jez!GFT^2*Ld6 zYTF08oo)wKJLfy@0o3yy{1~czoCQ>|p~bZ*t>&V!wF?pPiq@_n2AvIrvZX zH0Ep{nCXQCU_*w$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GjohhZYHBgZAE>QY#mfsiZT(DAYo4!W9gN+4K5 jkH^DoB9A@c#fz}Vaf2UWPe| + + + +Tutorials + + + +

    Tutorials

    +

    The different examples rapidly show how to use FPDF. You will find all main features explained.

    +
    + + diff --git a/phplib/fpdf/tutorial/logo.png b/phplib/fpdf/tutorial/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..284a0071c850b5a2f1ba86f16775c5c0da9fe082 GIT binary patch literal 2373 zcmV-L3A*-)P) zS%_F?mvV!)Wp=3lzjR1ZZHtquk)+#ujl{EuRFL;#2d9Y_EG2qsBHK~#90?U`$Hsz?xqBTOMI!)?Y&BDz(mToO~E7{;QGM&SSd ztL>QqykIFJODXr%nV!DR2p=YRXz_s#4F?{<&J9~1a7 zn?218?_>JcqaP`+aa*(ZO?=H5#F`cxrfJ&VZe0=s#ewTQ z#-W5zN>8`-ykIvOaV#JAO+$23$oAJS+(=Bb+`K>RiJ7y=q{|%xovz&L^sA1V2IFNS zNv7xTN|M0iZeBiY-DhkZor1En>&F);^@Kq{@iN(h6sp2oNTa|0nr|LO6->hnUFeL| z{j3|@q^ni31Z}rVfUMw&xeC0mx9OuRzn~goy+$Z0G--&o0+P^D3TV~@Q)2Jl$_GnT zL`>7_TGO;M)CC5i7Oaq_9jRwAa7SX>yN?I`*8(MqqVG`%F|dM_b{a^sN}dUQ;-Qd8 zz28UTUwuNc3z7hlCQV1Ar5)%dg!K0#Rmz%))IRD++C{NY-1UVhy%CZ{X_?yI$FD~M zYTFh#Q6#fhUnfurKumxv>w;v)bn_OP_IiGqyV;FY=2(Fws{W1yAY>_>gSJ-r_QGw` z|5%(;X65Vq2;@W^XL2tjs8MWPl2q>E%1v$4{yN!#EED3bHzUwO>p`MQ1L+FI+7Sp^ z#1=^DR<^&7VIwfMp6A(%d!X}>u1OQxr>-L{;qta1$)0rPa2m&{g-2~EH#Es<=nWah z*)Ofd$RHzK0Y~31I}$9~p(>O{RycA)7S;+xUOJUjJiflZ&N(&s>+7e`yrNWN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%96z&w?zh;Uhw*RT~^1^?|FCKi!b`!H9GV)xqh9+OcTip z-O!iG+p=1#jENQ6`42-67Ms4vzhzv7KdHAhdp64;_vVt{TLMz{X8$a#8LWG1^6SC2 znxiN429AxNJQ@ASqu1Z@rM~~f%fkH|E|eK8Q=1^MUyTy%vdhLgM=~=*@}5MDO+{3% zx_xHgWcrAor(a2%{_HQcKim|kYi)Mx4kN>Do}3=|NFJdhWCz_|Rcq6P+;UpFN4VDZ z^THOyXQ{Vr!}FR)rMXaSOKgho(I_-$7Bs%R=|vc1uqJV%UH65Zuj{U?+*q&EFznnU z^IWzm_*Cf5goM+$$NO3PhO>sYSeG?S~s%X!jTauyEqHoQI3d`)5-&_fIy6=7fIR;(zY5A_` z<-#SxU9yE<-huZFgv(28;^Utfbl!@Xv(QV(lLVjD#0-DeX~nS@Dy_;_|9+1lL8}9= IayK9PFK}2WsQ>@~ literal 0 HcmV?d00001 diff --git a/phplib/fpdf/tutorial/makefont.php b/phplib/fpdf/tutorial/makefont.php new file mode 100644 index 0000000..d88a988 --- /dev/null +++ b/phplib/fpdf/tutorial/makefont.php @@ -0,0 +1,6 @@ + diff --git a/phplib/fpdf/tutorial/tuto1.htm b/phplib/fpdf/tutorial/tuto1.htm new file mode 100644 index 0000000..dc77192 --- /dev/null +++ b/phplib/fpdf/tutorial/tuto1.htm @@ -0,0 +1,84 @@ + + + + +Minimal example + + + +

    Minimal example

    +Let's start with the classic example: +
    +
    <?php
    +require('fpdf.php');
    +
    +$pdf=new FPDF();
    +$pdf->AddPage();
    +$pdf->SetFont('Arial','B',16);
    +$pdf->Cell(40,10,'Hello World!');
    +$pdf->Output();
    +?>
    +
    + +After including the library file, we create an FPDF object. +The FPDF() constructor is used here with the default values: pages are in A4 portrait and +the measure unit is millimeter. It could have been specified explicitly with: +
    +
    $pdf=new FPDF('P','mm','A4');
    +
    +
    +It is possible to use landscape (L), other page formats (such as Letter and +Legal) and measure units (pt, cm, in). +
    +
    +There is no page for the moment, so we have to add one with AddPage(). The origin +is at the upper-left corner and the current position is by default placed at 1 cm from the +borders; the margins can be changed with SetMargins(). +
    +
    +Before we can print text, it is mandatory to select a font with SetFont(), otherwise the +document would be invalid. We choose Arial bold 16: +
    +
    $pdf->SetFont('Arial','B',16);
    +
    +
    +We could have specified italics with I, underlined with U or a regular font with an empty string +(or any combination). Note that the font size is given in points, not millimeters (or another +user unit); it is the only exception. The other standard fonts are Times, Courier, Symbol and +ZapfDingbats. +
    +
    +We can now print a cell with Cell(). A cell is a rectangular area, possibly framed, +which contains some text. It is output at the current position. We specify its dimensions, +its text (centered or aligned), if borders should be drawn, and where the current position +moves after it (to the right, below or to the beginning of the next line). To add a frame, we would do this: +
    +
    $pdf->Cell(40,10,'Hello World !',1);
    +
    +
    +To add a new cell next to it with centered text and go to the next line, we would do: +
    +
    $pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
    +
    +
    +Remark : the line break can also be done with Ln(). This method allows to specify +in addition the height of the break. +
    +
    +Finally, the document is closed and sent to the browser with Output(). We could have saved +it in a file by passing the desired file name. +
    +
    +Caution: in case when the PDF is sent to the browser, nothing else must be output, not before +nor after (the least space or carriage return matters). If you send some data before, you will +get the error message: "Some data has already been output to browser, can't send PDF file". If +you send after, your browser may display a blank page. + + diff --git a/phplib/fpdf/tutorial/tuto1.php b/phplib/fpdf/tutorial/tuto1.php new file mode 100644 index 0000000..4166cca --- /dev/null +++ b/phplib/fpdf/tutorial/tuto1.php @@ -0,0 +1,9 @@ +AddPage(); +$pdf->SetFont('Arial','B',16); +$pdf->Cell(40,10,'Hello World!'); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto2.htm b/phplib/fpdf/tutorial/tuto2.htm new file mode 100644 index 0000000..9eea36d --- /dev/null +++ b/phplib/fpdf/tutorial/tuto2.htm @@ -0,0 +1,87 @@ + + + + +Header, footer, page break and image + + + +

    Header, footer, page break and image

    +Here is a two page example with header, footer and logo: +
    +
    <?php
    +require('fpdf.php');
    +
    +class PDF extends FPDF
    +{
    +//Page header
    +function Header()
    +{
    +    //Logo
    +    $this->Image('logo_pb.png',10,8,33);
    +    //Arial bold 15
    +    $this->SetFont('Arial','B',15);
    +    //Move to the right
    +    $this->Cell(80);
    +    //Title
    +    $this->Cell(30,10,'Title',1,0,'C');
    +    //Line break
    +    $this->Ln(20);
    +}
    +
    +//Page footer
    +function Footer()
    +{
    +    //Position at 1.5 cm from bottom
    +    $this->SetY(-15);
    +    //Arial italic 8
    +    $this->SetFont('Arial','I',8);
    +    //Page number
    +    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
    +}
    +}
    +
    +//Instanciation of inherited class
    +$pdf=new PDF();
    +$pdf->AliasNbPages();
    +$pdf->AddPage();
    +$pdf->SetFont('Times','',12);
    +for($i=1;$i<=40;$i++)
    +    $pdf->Cell(0,10,'Printing line number '.$i,0,1);
    +$pdf->Output();
    +?>
    +
    + +This example makes use of the Header() and Footer() methods to process page headers and +footers. They are called automatically. They already exist in the FPDF class but do nothing, +therefore we have to extend the class and override them. +
    +
    +The logo is printed with the Image() method by specifying its upper-left corner and +its width. The height is calculated automatically to respect the image proportions. +
    +
    +To print the page number, a null value is passed as the cell width. It means that the cell +should extend up to the right margin of the page; it is handy to center text. The current page +number is returned by the PageNo() method; as for the total number of pages, it is obtained +by means of the special value {nb} which will be substituted on document closure +(provided you first called AliasNbPages()). +
    +Note the use of the SetY() method which allows to set position at an absolute location in +the page, starting from the top or the bottom. +
    +
    +Another interesting feature is used here: the automatic page breaking. As soon as a cell would +cross a limit in the page (at 2 centimeters from the bottom by default), a break is performed +and the font restored. Although the header and footer select their own font (Arial), the body +continues with Times. This mechanism of automatic restoration also applies to colors and line +width. The limit which triggers page breaks can be set with SetAutoPageBreak(). + + diff --git a/phplib/fpdf/tutorial/tuto2.php b/phplib/fpdf/tutorial/tuto2.php new file mode 100644 index 0000000..9737526 --- /dev/null +++ b/phplib/fpdf/tutorial/tuto2.php @@ -0,0 +1,41 @@ +Image('logo_pb.png',10,8,33); + //Arial bold 15 + $this->SetFont('Arial','B',15); + //Move to the right + $this->Cell(80); + //Title + $this->Cell(30,10,'Title',1,0,'C'); + //Line break + $this->Ln(20); +} + +//Page footer +function Footer() +{ + //Position at 1.5 cm from bottom + $this->SetY(-15); + //Arial italic 8 + $this->SetFont('Arial','I',8); + //Page number + $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); +} +} + +//Instanciation of inherited class +$pdf=new PDF(); +$pdf->AliasNbPages(); +$pdf->AddPage(); +$pdf->SetFont('Times','',12); +for($i=1;$i<=40;$i++) + $pdf->Cell(0,10,'Printing line number '.$i,0,1); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto3.htm b/phplib/fpdf/tutorial/tuto3.htm new file mode 100644 index 0000000..7119544 --- /dev/null +++ b/phplib/fpdf/tutorial/tuto3.htm @@ -0,0 +1,122 @@ + + + + +Line breaks and colors + + + +

    Line breaks and colors

    +Let's continue with an example which prints justified paragraphs. It also illustrates the use +of colors. +
    +
    <?php
    +require('fpdf.php');
    +
    +class PDF extends FPDF
    +{
    +function Header()
    +{
    +    global $title;
    +
    +    //Arial bold 15
    +    $this->SetFont('Arial','B',15);
    +    //Calculate width of title and position
    +    $w=$this->GetStringWidth($title)+6;
    +    $this->SetX((210-$w)/2);
    +    //Colors of frame, background and text
    +    $this->SetDrawColor(0,80,180);
    +    $this->SetFillColor(230,230,0);
    +    $this->SetTextColor(220,50,50);
    +    //Thickness of frame (1 mm)
    +    $this->SetLineWidth(1);
    +    //Title
    +    $this->Cell($w,9,$title,1,1,'C',1);
    +    //Line break
    +    $this->Ln(10);
    +}
    +
    +function Footer()
    +{
    +    //Position at 1.5 cm from bottom
    +    $this->SetY(-15);
    +    //Arial italic 8
    +    $this->SetFont('Arial','I',8);
    +    //Text color in gray
    +    $this->SetTextColor(128);
    +    //Page number
    +    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
    +}
    +
    +function ChapterTitle($num,$label)
    +{
    +    //Arial 12
    +    $this->SetFont('Arial','',12);
    +    //Background color
    +    $this->SetFillColor(200,220,255);
    +    //Title
    +    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
    +    //Line break
    +    $this->Ln(4);
    +}
    +
    +function ChapterBody($file)
    +{
    +    //Read text file
    +    $f=fopen($file,'r');
    +    $txt=fread($f,filesize($file));
    +    fclose($f);
    +    //Times 12
    +    $this->SetFont('Times','',12);
    +    //Output justified text
    +    $this->MultiCell(0,5,$txt);
    +    //Line break
    +    $this->Ln();
    +    //Mention in italics
    +    $this->SetFont('','I');
    +    $this->Cell(0,5,'(end of excerpt)');
    +}
    +
    +function PrintChapter($num,$title,$file)
    +{
    +    $this->AddPage();
    +    $this->ChapterTitle($num,$title);
    +    $this->ChapterBody($file);
    +}
    +}
    +
    +$pdf=new PDF();
    +$title='20000 Leagues Under the Seas';
    +$pdf->SetTitle($title);
    +$pdf->SetAuthor('Jules Verne');
    +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
    +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
    +$pdf->Output();
    +?>
    +
    + +The GetStringWidth() method allows to determine the length of a string in the current font, +which is used here to calculate the position and the width of the frame surrounding the title. +Then colors are set (via SetDrawColor(), SetFillColor() and SetTextColor()) and the +thickness of the line is set to 1 mm (against 0.2 by default) with SetLineWidth(). Finally, +we output the cell (the last parameter to 1 indicates that the background must be filled). +
    +
    +The method used to print the paragraphs is MultiCell(). Each time a line reaches the +right extremity of the cell or a carriage-return character is met, a line break is issued +and a new cell automatically created under the current one. Text is justified by default. +
    +
    +Two document properties are defined: title (SetTitle()) and author (SetAuthor()). +Properties can be viewed by two means. First is open the document directly with Acrobat Reader, +go to the File menu, Document info, General. Second, also available from the plug-in, is click +on the triangle just above the right scrollbar and choose Document info. + + diff --git a/phplib/fpdf/tutorial/tuto3.php b/phplib/fpdf/tutorial/tuto3.php new file mode 100644 index 0000000..660a00d --- /dev/null +++ b/phplib/fpdf/tutorial/tuto3.php @@ -0,0 +1,83 @@ +SetFont('Arial','B',15); + //Calculate width of title and position + $w=$this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + //Colors of frame, background and text + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + //Thickness of frame (1 mm) + $this->SetLineWidth(1); + //Title + $this->Cell($w,9,$title,1,1,'C',1); + //Line break + $this->Ln(10); +} + +function Footer() +{ + //Position at 1.5 cm from bottom + $this->SetY(-15); + //Arial italic 8 + $this->SetFont('Arial','I',8); + //Text color in gray + $this->SetTextColor(128); + //Page number + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function ChapterTitle($num,$label) +{ + //Arial 12 + $this->SetFont('Arial','',12); + //Background color + $this->SetFillColor(200,220,255); + //Title + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1); + //Line break + $this->Ln(4); +} + +function ChapterBody($file) +{ + //Read text file + $f=fopen($file,'r'); + $txt=fread($f,filesize($file)); + fclose($f); + //Times 12 + $this->SetFont('Times','',12); + //Output justified text + $this->MultiCell(0,5,$txt); + //Line break + $this->Ln(); + //Mention in italics + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); +} + +function PrintChapter($num,$title,$file) +{ + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf=new PDF(); +$title='20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto4.htm b/phplib/fpdf/tutorial/tuto4.htm new file mode 100644 index 0000000..586630e --- /dev/null +++ b/phplib/fpdf/tutorial/tuto4.htm @@ -0,0 +1,143 @@ + + + + +Multi-columns + + + +

    Multi-columns

    +This example is a variant of the previous one showing how to lay the text across multiple +columns. +
    +
    <?php
    +require('fpdf.php');
    +
    +class PDF extends FPDF
    +{
    +//Current column
    +var $col=0;
    +//Ordinate of column start
    +var $y0;
    +
    +function Header()
    +{
    +    //Page header
    +    global $title;
    +
    +    $this->SetFont('Arial','B',15);
    +    $w=$this->GetStringWidth($title)+6;
    +    $this->SetX((210-$w)/2);
    +    $this->SetDrawColor(0,80,180);
    +    $this->SetFillColor(230,230,0);
    +    $this->SetTextColor(220,50,50);
    +    $this->SetLineWidth(1);
    +    $this->Cell($w,9,$title,1,1,'C',1);
    +    $this->Ln(10);
    +    //Save ordinate
    +    $this->y0=$this->GetY();
    +}
    +
    +function Footer()
    +{
    +    //Page footer
    +    $this->SetY(-15);
    +    $this->SetFont('Arial','I',8);
    +    $this->SetTextColor(128);
    +    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
    +}
    +
    +function SetCol($col)
    +{
    +    //Set position at a given column
    +    $this->col=$col;
    +    $x=10+$col*65;
    +    $this->SetLeftMargin($x);
    +    $this->SetX($x);
    +}
    +
    +function AcceptPageBreak()
    +{
    +    //Method accepting or not automatic page break
    +    if($this->col<2)
    +    {
    +        //Go to next column
    +        $this->SetCol($this->col+1);
    +        //Set ordinate to top
    +        $this->SetY($this->y0);
    +        //Keep on page
    +        return false;
    +    }
    +    else
    +    {
    +        //Go back to first column
    +        $this->SetCol(0);
    +        //Page break
    +        return true;
    +    }
    +}
    +
    +function ChapterTitle($num,$label)
    +{
    +    //Title
    +    $this->SetFont('Arial','',12);
    +    $this->SetFillColor(200,220,255);
    +    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
    +    $this->Ln(4);
    +    //Save ordinate
    +    $this->y0=$this->GetY();
    +}
    +
    +function ChapterBody($file)
    +{
    +    //Read text file
    +    $f=fopen($file,'r');
    +    $txt=fread($f,filesize($file));
    +    fclose($f);
    +    //Font
    +    $this->SetFont('Times','',12);
    +    //Output text in a 6 cm width column
    +    $this->MultiCell(60,5,$txt);
    +    $this->Ln();
    +    //Mention
    +    $this->SetFont('','I');
    +    $this->Cell(0,5,'(end of excerpt)');
    +    //Go back to first column
    +    $this->SetCol(0);
    +}
    +
    +function PrintChapter($num,$title,$file)
    +{
    +    //Add chapter
    +    $this->AddPage();
    +    $this->ChapterTitle($num,$title);
    +    $this->ChapterBody($file);
    +}
    +}
    +
    +$pdf=new PDF();
    +$title='20000 Leagues Under the Seas';
    +$pdf->SetTitle($title);
    +$pdf->SetAuthor('Jules Verne');
    +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
    +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
    +$pdf->Output();
    +?>
    +
    + +The key method used is AcceptPageBreak(). It allows to accept or not an automatic page +break. By refusing it and altering the margin and current position, the desired column layout +is achieved. +
    +For the rest, not much change; two properties have been added to the class to save the current +column number and the position where columns begin, and the MultiCell() call specifies a +6 centimeter width. + + diff --git a/phplib/fpdf/tutorial/tuto4.php b/phplib/fpdf/tutorial/tuto4.php new file mode 100644 index 0000000..4c1d75a --- /dev/null +++ b/phplib/fpdf/tutorial/tuto4.php @@ -0,0 +1,113 @@ +SetFont('Arial','B',15); + $w=$this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + $this->SetLineWidth(1); + $this->Cell($w,9,$title,1,1,'C',1); + $this->Ln(10); + //Save ordinate + $this->y0=$this->GetY(); +} + +function Footer() +{ + //Page footer + $this->SetY(-15); + $this->SetFont('Arial','I',8); + $this->SetTextColor(128); + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function SetCol($col) +{ + //Set position at a given column + $this->col=$col; + $x=10+$col*65; + $this->SetLeftMargin($x); + $this->SetX($x); +} + +function AcceptPageBreak() +{ + //Method accepting or not automatic page break + if($this->col<2) + { + //Go to next column + $this->SetCol($this->col+1); + //Set ordinate to top + $this->SetY($this->y0); + //Keep on page + return false; + } + else + { + //Go back to first column + $this->SetCol(0); + //Page break + return true; + } +} + +function ChapterTitle($num,$label) +{ + //Title + $this->SetFont('Arial','',12); + $this->SetFillColor(200,220,255); + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1); + $this->Ln(4); + //Save ordinate + $this->y0=$this->GetY(); +} + +function ChapterBody($file) +{ + //Read text file + $f=fopen($file,'r'); + $txt=fread($f,filesize($file)); + fclose($f); + //Font + $this->SetFont('Times','',12); + //Output text in a 6 cm width column + $this->MultiCell(60,5,$txt); + $this->Ln(); + //Mention + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); + //Go back to first column + $this->SetCol(0); +} + +function PrintChapter($num,$title,$file) +{ + //Add chapter + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf=new PDF(); +$title='20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto5.htm b/phplib/fpdf/tutorial/tuto5.htm new file mode 100644 index 0000000..c2403ec --- /dev/null +++ b/phplib/fpdf/tutorial/tuto5.htm @@ -0,0 +1,140 @@ + + + + +Tables + + + +

    Tables

    +This tutorial shows how to make tables easily. +
    +
    <?php
    +require('fpdf.php');
    +
    +class PDF extends FPDF
    +{
    +//Load data
    +function LoadData($file)
    +{
    +    //Read file lines
    +    $lines=file($file);
    +    $data=array();
    +    foreach($lines as $line)
    +        $data[]=explode(';',chop($line));
    +    return $data;
    +}
    +
    +//Simple table
    +function BasicTable($header,$data)
    +{
    +    //Header
    +    foreach($header as $col)
    +        $this->Cell(40,7,$col,1);
    +    $this->Ln();
    +    //Data
    +    foreach($data as $row)
    +    {
    +        foreach($row as $col)
    +            $this->Cell(40,6,$col,1);
    +        $this->Ln();
    +    }
    +}
    +
    +//Better table
    +function ImprovedTable($header,$data)
    +{
    +    //Column widths
    +    $w=array(40,35,40,45);
    +    //Header
    +    for($i=0;$i<count($header);$i++)
    +        $this->Cell($w[$i],7,$header[$i],1,0,'C');
    +    $this->Ln();
    +    //Data
    +    foreach($data as $row)
    +    {
    +        $this->Cell($w[0],6,$row[0],'LR');
    +        $this->Cell($w[1],6,$row[1],'LR');
    +        $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
    +        $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
    +        $this->Ln();
    +    }
    +    //Closure line
    +    $this->Cell(array_sum($w),0,'','T');
    +}
    +
    +//Colored table
    +function FancyTable($header,$data)
    +{
    +    //Colors, line width and bold font
    +    $this->SetFillColor(255,0,0);
    +    $this->SetTextColor(255);
    +    $this->SetDrawColor(128,0,0);
    +    $this->SetLineWidth(.3);
    +    $this->SetFont('','B');
    +    //Header
    +    $w=array(40,35,40,45);
    +    for($i=0;$i<count($header);$i++)
    +        $this->Cell($w[$i],7,$header[$i],1,0,'C',1);
    +    $this->Ln();
    +    //Color and font restoration
    +    $this->SetFillColor(224,235,255);
    +    $this->SetTextColor(0);
    +    $this->SetFont('');
    +    //Data
    +    $fill=0;
    +    foreach($data as $row)
    +    {
    +        $this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);
    +        $this->Cell($w[1],6,$row[1],'LR',0,'L',$fill);
    +        $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);
    +        $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);
    +        $this->Ln();
    +        $fill=!$fill;
    +    }
    +    $this->Cell(array_sum($w),0,'','T');
    +}
    +}
    +
    +$pdf=new PDF();
    +//Column titles
    +$header=array('Country','Capital','Area (sq km)','Pop. (thousands)');
    +//Data loading
    +$data=$pdf->LoadData('countries.txt');
    +$pdf->SetFont('Arial','',14);
    +$pdf->AddPage();
    +$pdf->BasicTable($header,$data);
    +$pdf->AddPage();
    +$pdf->ImprovedTable($header,$data);
    +$pdf->AddPage();
    +$pdf->FancyTable($header,$data);
    +$pdf->Output();
    +?>
    +
    + +A table being just a collection of cells, it is natural to build one from them. The first +example is achieved in the most basic way possible: simple framed cells, all of the same size +and left aligned. The result is rudimentary but very quick to obtain. +
    +
    +The second table brings some improvements: each column has its own width, titles are centered +and figures right aligned. Moreover, horizontal lines have been removed. This is done by means +of the border parameter of the Cell() method, which specifies which sides of the +cell must be drawn. Here we want the left (L) and right (R) ones. It remains +the problem of the horizontal line to finish the table. There are two possibilities: either +check for the last line in the loop, in which case we use LRB for the border +parameter; or, as done here, add the line once the loop is over. +
    +
    +The third table is similar to the second one but uses colors. Fill, text and line colors are +simply specified. Alternate coloring for rows is obtained by using alternatively transparent +and filled cells. + + diff --git a/phplib/fpdf/tutorial/tuto5.php b/phplib/fpdf/tutorial/tuto5.php new file mode 100644 index 0000000..4a1fbfc --- /dev/null +++ b/phplib/fpdf/tutorial/tuto5.php @@ -0,0 +1,101 @@ +Cell(40,7,$col,1); + $this->Ln(); + //Data + foreach($data as $row) + { + foreach($row as $col) + $this->Cell(40,6,$col,1); + $this->Ln(); + } +} + +//Better table +function ImprovedTable($header,$data) +{ + //Column widths + $w=array(40,35,40,45); + //Header + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); + $this->Ln(); + //Data + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR'); + $this->Cell($w[1],6,$row[1],'LR'); + $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R'); + $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R'); + $this->Ln(); + } + //Closure line + $this->Cell(array_sum($w),0,'','T'); +} + +//Colored table +function FancyTable($header,$data) +{ + //Colors, line width and bold font + $this->SetFillColor(255,0,0); + $this->SetTextColor(255); + $this->SetDrawColor(128,0,0); + $this->SetLineWidth(.3); + $this->SetFont('','B'); + //Header + $w=array(40,35,40,45); + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C',1); + $this->Ln(); + //Color and font restoration + $this->SetFillColor(224,235,255); + $this->SetTextColor(0); + $this->SetFont(''); + //Data + $fill=0; + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR',0,'L',$fill); + $this->Cell($w[1],6,$row[1],'LR',0,'L',$fill); + $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill); + $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill); + $this->Ln(); + $fill=!$fill; + } + $this->Cell(array_sum($w),0,'','T'); +} +} + +$pdf=new PDF(); +//Column titles +$header=array('Country','Capital','Area (sq km)','Pop. (thousands)'); +//Data loading +$data=$pdf->LoadData('countries.txt'); +$pdf->SetFont('Arial','',14); +$pdf->AddPage(); +$pdf->BasicTable($header,$data); +$pdf->AddPage(); +$pdf->ImprovedTable($header,$data); +$pdf->AddPage(); +$pdf->FancyTable($header,$data); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto6.htm b/phplib/fpdf/tutorial/tuto6.htm new file mode 100644 index 0000000..9496a3d --- /dev/null +++ b/phplib/fpdf/tutorial/tuto6.htm @@ -0,0 +1,183 @@ + + + + +Links and flowing text + + + +

    Links and flowing text

    +This tutorial explains how to insert links (internal and external) and shows a new text writing +mode. It also contains a rudimentary HTML parser. +
    +
    <?php
    +require('fpdf.php');
    +
    +class PDF extends FPDF
    +{
    +var $B;
    +var $I;
    +var $U;
    +var $HREF;
    +
    +function PDF($orientation='P',$unit='mm',$format='A4')
    +{
    +    //Call parent constructor
    +    $this->FPDF($orientation,$unit,$format);
    +    //Initialization
    +    $this->B=0;
    +    $this->I=0;
    +    $this->U=0;
    +    $this->HREF='';
    +}
    +
    +function WriteHTML($html)
    +{
    +    //HTML parser
    +    $html=str_replace("\n",' ',$html);
    +    $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
    +    foreach($a as $i=>$e)
    +    {
    +        if($i%2==0)
    +        {
    +            //Text
    +            if($this->HREF)
    +                $this->PutLink($this->HREF,$e);
    +            else
    +                $this->Write(5,$e);
    +        }
    +        else
    +        {
    +            //Tag
    +            if($e{0}=='/')
    +                $this->CloseTag(strtoupper(substr($e,1)));
    +            else
    +            {
    +                //Extract attributes
    +                $a2=explode(' ',$e);
    +                $tag=strtoupper(array_shift($a2));
    +                $attr=array();
    +                foreach($a2 as $v)
    +                    if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3))
    +                        $attr[strtoupper($a3[1])]=$a3[2];
    +                $this->OpenTag($tag,$attr);
    +            }
    +        }
    +    }
    +}
    +
    +function OpenTag($tag,$attr)
    +{
    +    //Opening tag
    +    if($tag=='B' or $tag=='I' or $tag=='U')
    +        $this->SetStyle($tag,true);
    +    if($tag=='A')
    +        $this->HREF=$attr['HREF'];
    +    if($tag=='BR')
    +        $this->Ln(5);
    +}
    +
    +function CloseTag($tag)
    +{
    +    //Closing tag
    +    if($tag=='B' or $tag=='I' or $tag=='U')
    +        $this->SetStyle($tag,false);
    +    if($tag=='A')
    +        $this->HREF='';
    +}
    +
    +function SetStyle($tag,$enable)
    +{
    +    //Modify style and select corresponding font
    +    $this->$tag+=($enable ? 1 : -1);
    +    $style='';
    +    foreach(array('B','I','U') as $s)
    +        if($this->$s>0)
    +            $style.=$s;
    +    $this->SetFont('',$style);
    +}
    +
    +function PutLink($URL,$txt)
    +{
    +    //Put a hyperlink
    +    $this->SetTextColor(0,0,255);
    +    $this->SetStyle('U',true);
    +    $this->Write(5,$txt,$URL);
    +    $this->SetStyle('U',false);
    +    $this->SetTextColor(0);
    +}
    +}
    +
    +$html='You can now easily print text mixing different
    +styles : <B>bold</B>, <I>italic</I>, <U>underlined</U>, or
    +<B><I><U>all at once</U></I></B>!<BR>You can also insert links
    +on text, such as <A HREF="http://www.fpdf.org">www.fpdf.org</A>,
    +or on an image: click on the logo.';
    +
    +$pdf=new PDF();
    +//First page
    +$pdf->AddPage();
    +$pdf->SetFont('Arial','',20);
    +$pdf->Write(5,'To find out what\'s new in this tutorial, click ');
    +$pdf->SetFont('','U');
    +$link=$pdf->AddLink();
    +$pdf->Write(5,'here',$link);
    +$pdf->SetFont('');
    +//Second page
    +$pdf->AddPage();
    +$pdf->SetLink($link);
    +$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org');
    +$pdf->SetLeftMargin(45);
    +$pdf->SetFontSize(14);
    +$pdf->WriteHTML($html);
    +$pdf->Output();
    +?>
    +
    + +The new method to print text is Write(). It is very close to MultiCell(); the differences +are: +
      +
    • The end of line is at the right margin and the next line begins at the left one +
    • The current position moves at the end of the text +
    +So it allows to write a chunk of text, alter the font style, then continue from the exact +place we left it. On the other hand, you cannot full justify it. +
    +
    +The method is used on the first page to put a link pointing to the second one. The beginning of +the sentence is written in regular style, then we switch to underline and finish it. The link +is created with AddLink(), which returns a link identifier. The identifier is +passed as third parameter of Write(). Once the second page is created, we use SetLink() to +make the link point to the beginning of the current page. +
    +
    +Then we put an image with a link on it. An external link points to an URL (HTTP, mailto...). +The URL is simply passed as last parameter of Image(). +Note that external links do not work when the PDF is displayed inside Netscape's plug-in. +
    +
    +Finally, the left margin is moved after the image with SetLeftMargin() and some text in +HTML format is output. An HTML parser is used for this, based on the regular expression splitting +function preg_split() and the option PREG_SPLIT_DELIM_CAPTURE (introduced in PHP 4.0.5) which +allows to fetch the separators as well (in this case the tags). If you use an older version of +PHP, replace the line with this one: +
    +
    $a=preg_split('/[<>]/',$html);
    +
    +
    +which is less strict but gives the same results with valid HTML. +
    +Recognized tags are <B>, <I>, <U>, <A> and <BR>; the others are +ignored. The parser also makes use of the Write() method. An external link is put the same way as +an internal one (third parameter of Write()). +
    +Note that Cell() also allows to put links. + + diff --git a/phplib/fpdf/tutorial/tuto6.php b/phplib/fpdf/tutorial/tuto6.php new file mode 100644 index 0000000..706cbd9 --- /dev/null +++ b/phplib/fpdf/tutorial/tuto6.php @@ -0,0 +1,122 @@ +FPDF($orientation,$unit,$format); + //Initialization + $this->B=0; + $this->I=0; + $this->U=0; + $this->HREF=''; +} + +function WriteHTML($html) +{ + //HTML parser + $html=str_replace("\n",' ',$html); + $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); + foreach($a as $i=>$e) + { + if($i%2==0) + { + //Text + if($this->HREF) + $this->PutLink($this->HREF,$e); + else + $this->Write(5,$e); + } + else + { + //Tag + if($e{0}=='/') + $this->CloseTag(strtoupper(substr($e,1))); + else + { + //Extract attributes + $a2=explode(' ',$e); + $tag=strtoupper(array_shift($a2)); + $attr=array(); + foreach($a2 as $v) + if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3)) + $attr[strtoupper($a3[1])]=$a3[2]; + $this->OpenTag($tag,$attr); + } + } + } +} + +function OpenTag($tag,$attr) +{ + //Opening tag + if($tag=='B' or $tag=='I' or $tag=='U') + $this->SetStyle($tag,true); + if($tag=='A') + $this->HREF=$attr['HREF']; + if($tag=='BR') + $this->Ln(5); +} + +function CloseTag($tag) +{ + //Closing tag + if($tag=='B' or $tag=='I' or $tag=='U') + $this->SetStyle($tag,false); + if($tag=='A') + $this->HREF=''; +} + +function SetStyle($tag,$enable) +{ + //Modify style and select corresponding font + $this->$tag+=($enable ? 1 : -1); + $style=''; + foreach(array('B','I','U') as $s) + if($this->$s>0) + $style.=$s; + $this->SetFont('',$style); +} + +function PutLink($URL,$txt) +{ + //Put a hyperlink + $this->SetTextColor(0,0,255); + $this->SetStyle('U',true); + $this->Write(5,$txt,$URL); + $this->SetStyle('U',false); + $this->SetTextColor(0); +} +} + +$html='You can now easily print text mixing different +styles : bold, italic, underlined, or +all at once!
    You can also insert links +on text, such as www.fpdf.org, +or on an image: click on the logo.'; + +$pdf=new PDF(); +//First page +$pdf->AddPage(); +$pdf->SetFont('Arial','',20); +$pdf->Write(5,'To find out what\'s new in this tutorial, click '); +$pdf->SetFont('','U'); +$link=$pdf->AddLink(); +$pdf->Write(5,'here',$link); +$pdf->SetFont(''); +//Second page +$pdf->AddPage(); +$pdf->SetLink($link); +$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org'); +$pdf->SetLeftMargin(45); +$pdf->SetFontSize(14); +$pdf->WriteHTML($html); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto7.htm b/phplib/fpdf/tutorial/tuto7.htm new file mode 100644 index 0000000..92c132b --- /dev/null +++ b/phplib/fpdf/tutorial/tuto7.htm @@ -0,0 +1,310 @@ + + + + +Adding new fonts and encoding support + + + + +

    Adding new fonts and encoding support

    +This tutorial explains how to use TrueType or Type1 fonts so that you are not limited to the standard +fonts any more. The other interest is that you can choose the font encoding, which allows you to +use other languages than the Western ones (the standard fonts having too few available characters). +
    +
    +There are two ways to use a new font: embedding it in the PDF or not. When a font is not +embedded, it is sought in the system. The advantage is that the PDF file is lighter; on the other +hand, if it is not available, a substitution font is used. So it is preferable to ensure that the +needed font is installed on the client systems. If the file is to be viewed by a large audience, +it is better to embed. +
    +
    +Adding a new font requires three steps for TrueTypes: +
      +
    • Generation of the metric file (.afm) +
    • Generation of the font definition file (.php) +
    • Declaration of the font in the script +
    +For Type1, the first one is theoretically not necessary because the AFM file is usually shipped +with the font. In case you have only a metric file in PFM format, use the convertor available +here. +

    Generation of the metric file

    +The first step for a TrueType consists in generating the AFM file. A utility exists to do this +task: ttf2pt1. The Windows binary +is available here. The command line to use is +the following: +
    +
    +ttf2pt1 -a font.ttf font +
    +
    +For example, for Comic Sans MS Regular: +
    +
    +ttf2pt1 -a c:\windows\fonts\comic.ttf comic +
    +
    +Two files are created; the one we are interested in is comic.afm. +

    Generation of the font definition file

    +The second step consists in generating a PHP file containing all the information needed by FPDF; +in addition, the font file is compressed. To do this, a helper script is provided in the font/makefont/ +directory of the package: makefont.php. It contains the following function: +
    +
    +MakeFont(string fontfile, string afmfile [, string enc [, array patch [, string type]]]) +
    +
    fontfile
    +
    +

    Path to the .ttf or .pfb file.

    +
    +
    afmfile
    +
    +

    Path to the .afm file.

    +
    +
    enc
    +
    +

    Name of the encoding to use. Default value: cp1252.

    +
    +
    patch
    +
    +

    Optional modification of the encoding. Empty by default.

    +
    +
    type
    +
    +

    Type of the font (TrueType or Type1). Default value: TrueType.

    +
    +
    +The first parameter is the name of the font file. The extension must be either .ttf or .pfb and +determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to +binary format with t1utils. +
    +If you don't want to embed the font, pass an empty string. In this case, type is given by the +type parameter. +
    +Note: in the case of a font with the same name as a standard one, for instance arial.ttf, it is +recommended to embed. If you don't, some versions of Acrobat will use their own fonts. +
    +
    +The AFM file is the one previously generated. +
    +
    +The encoding defines the association between a code (from 0 to 255) and a character. The first +128 are fixed and correspond to ASCII; the following are variable. The encodings are stored in +.map files. Those available are: +
      +
    • cp1250 (Central Europe) +
    • cp1251 (Cyrillic) +
    • cp1252 (Western Europe) +
    • cp1253 (Greek) +
    • cp1254 (Turkish) +
    • cp1255 (Hebrew) +
    • cp1257 (Baltic) +
    • cp1258 (Vietnamese) +
    • cp874 (Thai) +
    • ISO-8859-1 (Western Europe) +
    • ISO-8859-2 (Central Europe) +
    • ISO-8859-4 (Baltic) +
    • ISO-8859-5 (Cyrillic) +
    • ISO-8859-7 (Greek) +
    • ISO-8859-9 (Turkish) +
    • ISO-8859-11 (Thai) +
    • ISO-8859-15 (Western Europe) +
    • ISO-8859-16 (Central Europe) +
    • KOI8-R (Russian) +
    • KOI8-U (Ukrainian) +
    +Of course, the font must contain the characters corresponding to the chosen encoding. +
    +In the particular case of a symbolic font (that is to say which does not contain letters, such +as Symbol or ZapfDingbats), pass an empty string. +
    +The encodings which begin with cp are those used by Windows; Linux systems usually use ISO. +
    +Remark: the standard fonts use cp1252. +
    +
    +The fourth parameter gives the possibility to alter the encoding. Sometimes you may want to add +some characters. For instance, ISO-8859-1 does not contain the euro symbol. To add it at position +164, pass array(164=>'Euro'). +
    +
    +The last parameter is used to give the type of the font in case it is not embedded (that is to +say the first parameter is empty). +
    +
    +After you have called the function (create a new file for this and include makefont.php, or +simply add the call directly inside), a .php file is created, with the same name as the .afm one. +You may rename it if you wish. If the case of embedding, the font file is compressed and gives a +second file with .z as extension (except if the compression function is not available, it +requires zlib). You may rename it too, but in this case you have to alter the variable $file +in the .php file accordingly. +
    +
    +Example: +
    +
    MakeFont('c:\\windows\\fonts\\comic.ttf','comic.afm','cp1252');
    +
    +
    +which gives the files comic.php and comic.z. +
    +
    +Then you have to copy the generated file(s) to the font directory. If the font file +could not be compressed, copy the .ttf or .pfb instead of the .z. +
    +
    +Remark: for TTF fonts, you can generate the files online here +instead of doing it manually. +

    Declaration of the font in the script

    +The last step is the most simple. You just need to call the AddFont() method. For instance: +
    +
    $pdf->AddFont('Comic','','comic.php');
    +
    +
    +or simply: +
    +
    $pdf->AddFont('Comic');
    +
    +
    +And the font is now available (in regular and underlined styles), usable like the others. If we +had worked with Comic Sans MS Bold (comicbd.ttf), we would have put: +
    +
    $pdf->AddFont('Comic','B','comicbd.php');
    +
    +
    +

    Example

    +Let's now see a small complete example. The font used is Calligrapher, available at +www.abstractfonts.com (a site +offering numerous free TrueType fonts). The first step is the generation of the AFM file: +
    +
    +ttf2pt1 -a calligra.ttf calligra +
    +
    +which gives calligra.afm (and calligra.t1a that we can delete). Then we generate the definition +file: +
    +
    <?php
    +require('font/makefont/makefont.php');
    +
    +MakeFont('calligra.ttf','calligra.afm');
    +?>
    +
    +The function call gives the following report: +
    +
    +Warning: character Euro is missing
    +Warning: character Zcaron is missing
    +Warning: character zcaron is missing
    +Warning: character eth is missing
    +Font file compressed (calligra.z)
    +Font definition file generated (calligra.php)
    +
    +The euro character is not present in the font (it is too old). Three other characters are missing +too, but we are not interested in them anyway. +
    +We can now copy the two files to the font directory and write the script: +
    +
    <?php
    +require('fpdf.php');
    +
    +$pdf=new FPDF();
    +$pdf->AddFont('Calligrapher','','calligra.php');
    +
    +$pdf->AddPage();
    +$pdf->SetFont('Calligrapher','',35);
    +$pdf->Cell(0,10,'Enjoy new fonts with FPDF!');
    +$pdf->Output();
    +?>
    +
    + +

    About the euro symbol

    +The euro character is not present in all encodings, and is not always placed at the same position: + + + + + + + + + + + + + + + + + + + + + + +
    EncodingPosition
    cp1250128
    cp1251136
    cp1252128
    cp1253128
    cp1254128
    cp1255128
    cp1257128
    cp1258128
    cp874128
    ISO-8859-1absent
    ISO-8859-2absent
    ISO-8859-4absent
    ISO-8859-5absent
    ISO-8859-7absent
    ISO-8859-9absent
    ISO-8859-11absent
    ISO-8859-15164
    ISO-8859-16164
    KOI8-Rabsent
    KOI8-Uabsent
    +ISO-8859-1 is widespread but does not include the euro sign. If you need it, the simplest thing +to do is using cp1252 or ISO-8859-15 instead, which are nearly identical but contain the precious +symbol. +
    +As for ISO-8859-2, it is possible to use ISO-8859-16 instead, but it contains many differences. +It is therefore simpler to patch the encoding to add the symbol to it, as explained above. The +same is true for the other encodings. +

    Font synthesis under Windows

    +When a TrueType font is not available in a given style, Windows is able to synthesize it from the +regular version. For instance, there is no Comic Sans MS Italic, but it can be built from Comic +Sans MS Regular. This feature can be used in a PDF file, but unfortunately requires that the +regular font be present in the system (you must not embed it). Here is how to do it: +
      +
    • Generate the definition file for the regular font without embedding (you may rename it to +reflect the desired style) +
    • Open it and append to the variable $name a comma followed by the desired style +(Italic, Bold or BoldItalic) +
    +For instance, for the file comici.php: +
    +
    +$name='ComicSansMS,Italic'; +
    +
    +It can then be used normally: +
    +
    $pdf->AddFont('Comic','I','comici.php');
    +
    +
    +

    Reducing the size of TrueType fonts

    +Font files are often quite voluminous (more than 100, even 200KB); this is due to the fact that +they contain the characters corresponding to many encodings. zlib compression reduces them but +they remain fairly big. A technique exists to reduce them further. It consists in converting the +font to the Type1 format with ttf2pt1 by specifying the encoding you are interested in; all other +characters will be discarded. +
    +For instance, the arial.ttf font shipped with Windows 98 is 267KB (it contains 1296 characters). +After compression it gives 147. Let's convert it to Type1 by keeping only cp1250 characters: +
    +
    +ttf2pt1 -b -L cp1250.map c:\windows\fonts\arial.ttf arial +
    +
    +The .map files are located in the font/makefont/ directory of the package. The command produces +arial.pfb and arial.afm. The arial.pfb file is only 35KB, and 30KB after compression. +
    +
    +It is possible to go even further. If you are interested only by a subset of the encoding (you +probably don't need all 217 characters), you can open the .map file and remove the lines you are +not interested in. This will reduce the file size accordingly. + + diff --git a/phplib/fpdf/tutorial/tuto7.php b/phplib/fpdf/tutorial/tuto7.php new file mode 100644 index 0000000..e61078e --- /dev/null +++ b/phplib/fpdf/tutorial/tuto7.php @@ -0,0 +1,11 @@ +AddFont('Calligrapher','','calligra.php'); +$pdf->AddPage(); +$pdf->SetFont('Calligrapher','',35); +$pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); +$pdf->Output(); +?> diff --git a/phplib/monofont.ttf b/phplib/monofont.ttf new file mode 100644 index 0000000000000000000000000000000000000000..ec6c51b2640bafbf046060a8e2b594905dd5e7dc GIT binary patch literal 41036 zcmeHw349z!m43aRp6YsqmgEGU!&8Ot&wH)yK4%Ne^jgR9#%^$%`+-R$3;#P>V! zy<`88v18%u%a1U2Q8Qz-zz7N zoVaB6n-vc*cAF1;8TDJfdt~gAW2TT4!~ONRKX!EN$oO|^K5j-H z^+{`w%^W|mw{iSSjO}}#G1vNIv*X9k{98At2X(T8NJW&yQTuFVwb>joAGok| zFC+g@Hg9GQ_Ix(4Fe_QId98dCBiV|wIsIB*qhHHw^lN#Iel4%jujMuRwY)~ZmKWt$ z_t&&^cX!8z$1aTxj?Iqkn;MTb#Ac_pY-V!i#F4S7>BjvtM_4uMXEm&ab&G#7Hq6G@ zr7Xqy8f$56Zf4t1-Yh!~DtLu4w5Ji{ zqxn@H2lF$;>Q4>CK4PjGNQ_MuB_{W-Y?$9Y|9iSsTEj*`^e(mqE$d<%Suyp}esa~@>YYPDEQCP^ZK2)*@_G=KHLQqx_5$o+~>hYZA|Ea0xEWVuWVJ*$HcJfmw(z14P>?4`s9bMkePch5#>POu^HkgT$-=7JfVu@rElg$pdVzH1(GLb{C zw%2o(n$C*)8XL1UI+#DdMnA8yGvQ791FDj!NG03bI?}D-&`Y~^DGqmWvD*>lhp*D< zvoA(`!Jsb^sR{WxHK%Dig(RQg#89S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df/2dbarcodes.php b/phplib/tcpdf/2dbarcodes.php new file mode 100644 index 0000000..6490dfa --- /dev/null +++ b/phplib/tcpdf/2dbarcodes.php @@ -0,0 +1,332 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : PHP class to creates array representations for +// 2D barcodes to be used with TCPDF. +// +//============================================================+ + +/** + * @file + * PHP class to creates array representations for 2D barcodes to be used with TCPDF. + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.014 + */ + +/** + * @class TCPDF2DBarcode + * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org). + * @package com.tecnick.tcpdf + * @version 1.0.014 + * @author Nicola Asuni + */ +class TCPDF2DBarcode { + + /** + * Array representation of barcode. + * @protected + */ + protected $barcode_array = false; + + /** + * This is the class constructor. + * Return an array representations for 2D barcodes:
      + *
    • $arrcode['code'] code to be printed on text label
    • + *
    • $arrcode['num_rows'] required number of rows
    • + *
    • $arrcode['num_cols'] required number of columns
    • + *
    • $arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)
    + * @param $code (string) code to print + * @param $type (string) type of barcode:
    • DATAMATRIX : Datamatrix (ISO/IEC 16022)
    • PDF417 : PDF417 (ISO/IEC 15438:2006)
    • PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".
    • QRCODE : QRcode Low error correction
    • QRCODE,L : QRcode Low error correction
    • QRCODE,M : QRcode Medium error correction
    • QRCODE,Q : QRcode Better error correction
    • QRCODE,H : QR-CODE Best error correction
    • RAW: raw mode - comma-separad list of array rows
    • RAW2: raw mode - array rows are surrounded by square parenthesis.
    • TEST : Test matrix
    + */ + public function __construct($code, $type) { + $this->setBarcode($code, $type); + } + + /** + * Return an array representations of barcode. + * @return array + */ + public function getBarcodeArray() { + return $this->barcode_array; + } + + /** + * Send barcode as SVG image object to the standard output. + * @param $w (int) Width of a single rectangle element in user units. + * @param $h (int) Height of a single rectangle element in user units. + * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). + * @public + */ + public function getBarcodeSVG($w=3, $h=3, $color='black') { + // send headers + $code = $this->getBarcodeSVGcode($w, $h, $color); + header('Content-Type: application/svg+xml'); + header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 + header('Pragma: public'); + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); + header('Content-Disposition: inline; filename="'.md5($code).'.svg";'); + //header('Content-Length: '.strlen($code)); + echo $code; + } + + /** + * Return a SVG string representation of barcode. + * @param $w (int) Width of a single rectangle element in user units. + * @param $h (int) Height of a single rectangle element in user units. + * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). + * @return string SVG code. + * @public + */ + public function getBarcodeSVGcode($w=3, $h=3, $color='black') { + // replace table for special characters + $repstr = array("\0" => '', '&' => '&', '<' => '<', '>' => '>'); + $svg = '<'.'?'.'xml version="1.0" standalone="no"'.'?'.'>'."\n"; + $svg .= ''."\n"; + $svg .= ''."\n"; + $svg .= "\t".''.strtr($this->barcode_array['code'], $repstr).''."\n"; + $svg .= "\t".''."\n"; + // print barcode elements + $y = 0; + // for each row + for ($r = 0; $r < $this->barcode_array['num_rows']; ++$r) { + $x = 0; + // for each column + for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { + if ($this->barcode_array['bcode'][$r][$c] == 1) { + // draw a single barcode cell + $svg .= "\t\t".''."\n"; + } + $x += $w; + } + $y += $h; + } + $svg .= "\t".''."\n"; + $svg .= ''."\n"; + return $svg; + } + + /** + * Return an HTML representation of barcode. + * @param $w (int) Width of a single rectangle element in pixels. + * @param $h (int) Height of a single rectangle element in pixels. + * @param $color (string) Foreground color for bar elements (background is transparent). + * @return string HTML code. + * @public + */ + public function getBarcodeHTML($w=10, $h=10, $color='black') { + $html = '
    '."\n"; + // print barcode elements + $y = 0; + // for each row + for ($r = 0; $r < $this->barcode_array['num_rows']; ++$r) { + $x = 0; + // for each column + for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { + if ($this->barcode_array['bcode'][$r][$c] == 1) { + // draw a single barcode cell + $html .= '
     
    '."\n"; + } + $x += $w; + } + $y += $h; + } + $html .= '
    '."\n"; + return $html; + } + + /** + * Return a PNG image representation of barcode (requires GD or Imagick library). + * @param $w (int) Width of a single rectangle element in pixels. + * @param $h (int) Height of a single rectangle element in pixels. + * @param $color (array) RGB (0-255) foreground color for bar elements (background is transparent). + * @return image or false in case of error. + * @public + */ + public function getBarcodePNG($w=3, $h=3, $color=array(0,0,0)) { + // calculate image size + $width = ($this->barcode_array['num_cols'] * $w); + $height = ($this->barcode_array['num_rows'] * $h); + if (function_exists('imagecreate')) { + // GD library + $imagick = false; + $png = imagecreate($width, $height); + $bgcol = imagecolorallocate($png, 255, 255, 255); + imagecolortransparent($png, $bgcol); + $fgcol = imagecolorallocate($png, $color[0], $color[1], $color[2]); + } elseif (extension_loaded('imagick')) { + $imagick = true; + $bgcol = new imagickpixel('rgb(255,255,255'); + $fgcol = new imagickpixel('rgb('.$color[0].','.$color[1].','.$color[2].')'); + $png = new Imagick(); + $png->newImage($width, $height, 'none', 'png'); + $bar = new imagickdraw(); + $bar->setfillcolor($fgcol); + } else { + return false; + } + // print barcode elements + $y = 0; + // for each row + for ($r = 0; $r < $this->barcode_array['num_rows']; ++$r) { + $x = 0; + // for each column + for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { + if ($this->barcode_array['bcode'][$r][$c] == 1) { + // draw a single barcode cell + if ($imagick) { + $bar->rectangle($x, $y, ($x + $w - 1), ($y + $h - 1)); + } else { + imagefilledrectangle($png, $x, $y, ($x + $w - 1), ($y + $h - 1), $fgcol); + } + } + $x += $w; + } + $y += $h; + } + // send headers + header('Content-Type: image/png'); + header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 + header('Pragma: public'); + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); + if ($imagick) { + $png->drawimage($bar); + echo $png; + } else { + imagepng($png); + imagedestroy($png); + } + } + + /** + * Set the barcode. + * @param $code (string) code to print + * @param $type (string) type of barcode:
    • DATAMATRIX : Datamatrix (ISO/IEC 16022)
    • PDF417 : PDF417 (ISO/IEC 15438:2006)
    • PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".
    • QRCODE : QRcode Low error correction
    • QRCODE,L : QRcode Low error correction
    • QRCODE,M : QRcode Medium error correction
    • QRCODE,Q : QRcode Better error correction
    • QRCODE,H : QR-CODE Best error correction
    • RAW: raw mode - comma-separad list of array rows
    • RAW2: raw mode - array rows are surrounded by square parenthesis.
    • TEST : Test matrix
    + * @return array + */ + public function setBarcode($code, $type) { + $mode = explode(',', $type); + $qrtype = strtoupper($mode[0]); + switch ($qrtype) { + case 'DATAMATRIX': { // DATAMATRIX (ISO/IEC 16022) + require_once(dirname(__FILE__).'/datamatrix.php'); + $qrcode = new Datamatrix($code); + $this->barcode_array = $qrcode->getBarcodeArray(); + $this->barcode_array['code'] = $code; + break; + } + case 'PDF417': { // PDF417 (ISO/IEC 15438:2006) + require_once(dirname(__FILE__).'/pdf417.php'); + if (!isset($mode[1]) OR ($mode[1] === '')) { + $aspectratio = 2; // default aspect ratio (width / height) + } else { + $aspectratio = floatval($mode[1]); + } + if (!isset($mode[2]) OR ($mode[2] === '')) { + $ecl = -1; // default error correction level (auto) + } else { + $ecl = intval($mode[2]); + } + // set macro block + $macro = array(); + if (isset($mode[3]) AND ($mode[3] !== '') AND isset($mode[4]) AND ($mode[4] !== '') AND isset($mode[5]) AND ($mode[5] !== '')) { + $macro['segment_total'] = intval($mode[3]); + $macro['segment_index'] = intval($mode[4]); + $macro['file_id'] = strtr($mode[5], "\xff", ','); + for ($i = 0; $i < 7; ++$i) { + $o = $i + 6; + if (isset($mode[$o]) AND ($mode[$o] !== '')) { + // add option + $macro['option_'.$i] = strtr($mode[$o], "\xff", ','); + } + } + } + $qrcode = new PDF417($code, $ecl, $aspectratio, $macro); + $this->barcode_array = $qrcode->getBarcodeArray(); + $this->barcode_array['code'] = $code; + break; + } + case 'QRCODE': { // QR-CODE + require_once(dirname(__FILE__).'/qrcode.php'); + if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) { + $mode[1] = 'L'; // Ddefault: Low error correction + } + $qrcode = new QRcode($code, strtoupper($mode[1])); + $this->barcode_array = $qrcode->getBarcodeArray(); + $this->barcode_array['code'] = $code; + break; + } + case 'RAW': + case 'RAW2': { // RAW MODE + // remove spaces + $code = preg_replace('/[\s]*/si', '', $code); + if (strlen($code) < 3) { + break; + } + if ($qrtype == 'RAW') { + // comma-separated rows + $rows = explode(',', $code); + } else { // RAW2 + // rows enclosed in square parentheses + $code = substr($code, 1, -1); + $rows = explode('][', $code); + } + $this->barcode_array['num_rows'] = count($rows); + $this->barcode_array['num_cols'] = strlen($rows[0]); + $this->barcode_array['bcode'] = array(); + foreach ($rows as $r) { + $this->barcode_array['bcode'][] = str_split($r, 1); + } + $this->barcode_array['code'] = $code; + break; + } + case 'TEST': { // TEST MODE + $this->barcode_array['num_rows'] = 5; + $this->barcode_array['num_cols'] = 15; + $this->barcode_array['bcode'] = array( + array(1,1,1,0,1,1,1,0,1,1,1,0,1,1,1), + array(0,1,0,0,1,0,0,0,1,0,0,0,0,1,0), + array(0,1,0,0,1,1,0,0,1,1,1,0,0,1,0), + array(0,1,0,0,1,0,0,0,0,0,1,0,0,1,0), + array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0)); + $this->barcode_array['code'] = $code; + break; + } + default: { + $this->barcode_array = false; + } + } + } +} // end of class + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/CHANGELOG.TXT b/phplib/tcpdf/CHANGELOG.TXT new file mode 100644 index 0000000..216869e --- /dev/null +++ b/phplib/tcpdf/CHANGELOG.TXT @@ -0,0 +1,2500 @@ +5.9.207 (2013-03-04) + - Datamatrix class was fixed (a debug echo was removed). + +5.9.206 (2013-02-22) + - Bug item #754 "PNG with alpha channel becomes gray scale" was fixed. + - Minor documentation fixes. + +5.9.205 (2013-02-06) + - The constant K_TCPDF_THROW_EXCEPTION_ERROR was added on configuration file to change the behavior of Error() method. + - PDF417 barcode bug was fixed. + +5.9.204 (2013-01-23) + - The method Bookmark() was extended to include named destinations, URLs, internal links or embedded files (see example n. 15). + - automatic path calculation on configuration file was fixed. + - Error() method was extended to throw new Exception if PHP > 5. + +5.9.203 (2013-01-22) + - Horizontal position of radiobuttons and checkboxes was adjusted. + +5.9.202 (2012-12-16) + - Vertical space problem after table was fixed. + +5.9.201 (2012-12-10) + - First 256 chars are now always included on font subset to overcome a problem reported on the forum. + +5.9.200 (2012-12-05) + - Bug item #768 "Rowspan with Pagebreak error" was fixed. + - Page regions now works also with limited MultiCell() cells. + +5.9.199 (2012-11-29) + - Internal setImageBuffer() method was improved. + +5.9.198 (2012-11-19) + - Datamatrix EDIFACT mode was fixed. + +5.9.197 (2012-11-06) + - Bug item #756 "TCPDF 5.9.196 shows line on top of all PDFs" was fixed. + +5.9.196 (2012-11-02) + - Several methods were improved to avoid output when the context is out of page. + - Bug item #755 "remove cached files before unsetting" was fixed. + +5.9.195 (2012-10-24) + - Method _putfonts() was improved. + +5.9.194 (2012-10-23) + - Text alignment on TextField() method was fixed. + +5.9.193 (2012-09-25) + - Support for named destinations on HTML links was added (i.e.: link to named destination). + +5.9.192 (2012-09-24) + - A problem on the releasing process was fixed. + +5.9.191 (2012-09-24) + - SVG image naow support svg and eps images. + +5.9.190 (2012-09-23) + - "page" word translation is now set to empty if not defined. + - Tooltip feature was added on the radiobutton annotation. + +5.9.189 (2012-09-18) + - Bug item #3568969 "ini_get safe_mode error" was fixed. + +5.9.188 (2012-09-15) + - A datamatrix barcode bug was fixed. + +5.9.187 (2012-09-14) + - Subset feature was extended to include the first 256 characters. + +5.9.186 (2012-09-13) + - barcodes.php file was resynced. + - Methods SetAbsX, SetAbsY, SetAbsXY where added to set the absolute pointer coordinates. + - Method getCharBBox were added to get single character bounding box. + - Signature of addTTFfont method was changed ($addcbbox paramter was added). + +5.9.185 (2012-09-12) + - Method _putfontwidths() was fixed. + +5.9.184 (2012-09-11) + - A problem with EAN barcodes was fixed. + +5.9.183 (2012-09-07) + - A problem with font names normalization was fixed. + +5.9.182 (2012-09-05) + - Bug item #3564982 "Infinite loop in Write() method" was fixed. + +5.9.181 (2012-08-31) + - composer.json file was added. + - Bug item #3563369 "Cached images are not unlinked some time" was fixed. + +5.9.180 (2012-08-22) + - Bug item #3560493 "Problems with nested cells in HTML" was fixed. + +5.9.179 (2012-08-04) + - SVG 'use' tag was fixed for 'circle' and 'ellipse' shift problem. + - Alpha status is now correctly stored and restored by getGraphicVars() and SetGraphicVars() methods. + +5.9.178 (2012-08-02) + - SVG 'use' tag was fixed for 'circle' and 'ellipse'. + +5.9.177 (2012-08-02) + - An additional control on annotations was fixed. + +5.9.176 (2012-07-25) + - A bug related to stroke width was fixed. + - A problem related to font spacing in HTML was fixed. + +5.9.175 (2012-07-25) + - The problem of missing letter on hyphen break was fixed. + +5.9.174 (2012-07-25) + - The problem of wrong filename when downloading PDF from an Android device was fixed. + - The method setHeaderData() was extended to set text and line color for header (see example n. 1). + - The method setFooterData() was added to set text and line color for footer (see example n. 1). + - The methods setTextShadow() and getTextShadow() were added to set text shadows (see example n. 1). + - The GetCharWidth() method was fixed for negative character spacing. + - A 'none' border mode is now correctly recognized. + - Break on hyphen problem was fixed. + +5.9.173 (2012-07-23) + - Some additional control wher added on barcode methods. + - The option CURLOPT_FOLLOWLOCATION on Image method is now disabled if PHP safe_mode is on or open_basedir is set. + - Method Bookmark() was extended to include X parameter. + - Method setDestination() was extended to include X parameter. + - A problem with Thai language was fixed. + +5.9.172 (2012-07-02) + - A PNG color profile issue was fixed. + +5.9.171 (2012-07-01) + - Some SVG rendering problems were fixed. + +5.9.170 (2012-06-27) + - Bug #3538227 "Numerous errors inserting shared images" was fixed. + +5.9.169 (2012-06-25) + - Some SVG rendering problems were fixed. + +5.9.168 (2012-06-22) + - Thai language rendering was fixed. + +5.9.167 (2012-06-22) + - Thai language rendering was fixed and improved. + - Method isCharDefined() was improved. + - Protected method replaceChar() was added. + - Font "kerning" word was corrected to "tracking". + +5.9.166 (2012-06-21) + - Array to string conversion on file_id creation was fixed. + - Thai language rendering was fixed (thanks to Atsawin Chaowanakritsanakul). + +5.9.165 (2012-06-07) + - Some HTML form related bugs were fixed. + +5.9.164 (2012-06-06) + - A bug introduced on the latest release was fixed. + +5.9.163 (2012-06-05) + - Method getGDgamma() was changed. + - Rendering performances of PNG images with alpha channel were improved. + +5.9.162 (2012-05-11) + - A bug related to long text on TD cells was fixed. + +5.9.161 (2012-05-09) + - A bug on XREF table was fixed (Bug ID: 3525051). + - Deprecated Imagick:clone was replaced. + - Method objclone() was fixed for PHP4. + +5.9.160 (2012-05-03) + - A bug on tcpdf_parser.php was fixed. + +5.9.159 (2012-04-30) + - Barcode classes were updated to fix PNG export Bug (ID: 3522291). + +5.9.158 (2012-04-22) + - Some SVG-related bugs were fixed. + +5.9.157 (2012-04-16) + - Some SVG-related bugs were fixed. + +5.9.156 (2012-04-10) + - Bug item #3515885 "TOC and booklet: left and right page exchanged". + - SetAutoPageBreak(false) now works also in multicolumn mode. + +5.9.155 (2012-04-02) + - Bug item #3512596 "font import problems" was fixed. + - Method addTTFfont() was modified to extract only specified Platform ID and Encoding ID (check the source code documentation). + - All fonts were updated. + - Bug item #3513867 "booklet and setHeaderTemplateAutoreset: header shifted left" was fixed. + - Bug item #3513749 "TCPDF Superscript/Subscript" was fixed. + +5.9.154 (2012-03-29) + - A debug echo was removed. + +5.9.153 (2012-03-28) + - A bug on font conversion was fixed. + - All fonts were updated. + - Method isCharDefined() was added to find if a character is defined on the selected font. + - Method replaceMissingChars() was added to automatically replace missing chars on selected font. + - SetFont() method was fixed. + +5.9.152 (2012-03-23) + - The following overprint methods were added: setOverprint(), getOverprint(). + - Signature of setAlpha() method was changed and method getAlpha() was added. + - stroke-opacity support was added on SVG. + - The following date methods were added: setDocCreationTimestamp(), setDocModificationTimestamp(), getDocCreationTimestamp(), getDocModificationTimestamp(), getFormattedDate(), getTimestamp(). + - Signature of _datestring() method was changed. + - Method getFontBBox() was added. + - Method setPageBoxTypes() was aded. + +5.9.151 (2012-03-22) + - Bug item #3509889 "Transform() distorts PDF" was fixed. + - Precision of real number were extended. + - ComboBox and ListBox methods were fixed. + - Bulgarian language file was added. + - addTOC() method was improved to include bookmark color and font style. + +5.9.150 (2012-03-16) + - A bug related to form fields in PDF/A mode was fixed. + +5.9.149 (2012-02-21) + - Bug item #3489933 "SVG Parser treats tspan like text" was fixed. + +5.9.148 (2012-02-17) + - Bug item #3488600 "Multiple radiobutton sets get first set value" was fixed. + +5.9.147 (2012-02-14) + - A problem with SVG gradients has been fixed. + +5.9.146 (2012-02-12) + - Bug item #3486880 "$filehash undefine error" was fixed. + - The default font is now the one specified at PDF_FONT_NAME_MAIN constant. + +5.9.145 (2012-01-28) + - Japanese language file was added. + - TCPDF license and README.TXT files were updated. + +5.9.144 (2012-01-12) + - HTML output on barcode classes was improved. + +5.9.143 (2012-01-08) + - Bug item #3471057 "setCreator() has no effect" was fixed. + +5.9.142 (2011-12-23) + - Source code documentation was updated. + +5.9.141 (2011-12-14) + - Some minor bugs were fixed. + +5.9.140 (2011-12-13) + - SVG now supports embedded images encoded as base64. + +5.9.139 (2011-12-11) + - Spot color methods were fixed. + +5.9.138 (2011-12-10) + - cropMark() method was improved (check source code documentation). + - Example n. 56 was updated. + - Bug item #3452390 "Check Box still not ticked when set to true" was fixed. + +5.9.137 (2011-12-01) + - Bug item #3447005 "Background color and border of Form Elements is printed" was fixed. + - Color support for Form elements was improved. + +5.9.136 (2011-11-27) + - Bug item #3443387 "SetMargins with keep option does not work for top margin" was fixed. + +5.9.135 (2011-11-04) + - Bug item #3433406 "Double keywords in description" was fixed. + +5.9.134 (2011-10-29) + - The default value for $defcol parameter on convertHTMLColorToDec() method was fixed. + - Deafult HTTP headers were changed to avoid browser caching. + - Some deprecated syntax were replaced. + +5.9.133 (2011-10-26) + - Bug item #3428446 "copyPage method not working when diskcache enabled" was fixed. + +5.9.132 (2011-10-20) + - Bug item #3426167 "bug in function convertHTMLColorToDec()" was fixed. + +5.9.131 (2011-10-13) + - An error message was added to ImagePngAlpha() method. + +5.9.130 (2011-10-12) + - Now you can set image data strings on HTML img tag by encoding the image binary data in this way: $imgsrc = '@'.base64_encode($imgdata); + +5.9.129 (2011-10-07) + - Core fonts metrics was fixed (replace all helvetica and times php files on fonts folder). + - Form fields support was improved and some problems were fixed (check the example n. 14). + - Bug item #3420249 "Issue with booklet and MultiCell" was fixed. + +5.9.128 (2011-10-06) + - Method addTTFfont() was improved (check the source code documentation). + - Method setExtraXMP() to set custom XMP data was added. + +5.9.127 (2011-10-04) + - Readonly mode option was activated for radiobuttons. + +5.9.126 (2011-10-03) + - Bug item #3417989 "Graphics State operator in form XObject fails to render" was fixed. + - Xobjects problems with transparency, gradients and spot colors were fixed. + +5.9.125 (2011-10-03) + - Support for 8-digit CMYK hexadecimal color representation was added (to be used with XHTML and SVG). + - Spot colors support was improved (check example n. 37). + - Color methods were improved. + +5.9.124 (2011-10-02) + - Core fonts were updated. + +5.9.123 (2011-10-02) + - The method addTTFfont() wad added to automatically convert TTF fonts (check the new fonts guide at http://www.tcpdf.org). + - Old font utils were removed. + - All fonts were updated and new arabic fonts were added (almohanad were removed and replaced by aefurat and aealarabiya). + - The file unicode_data.php was updated. + - The file encodings_maps.php was added. + - PDF/A files are now compressed to save space. + - XHTML input form fields now support text-alignment attribute. + +5.9.122 (2011-09-29) + - PDF/A-1b compliance was improved to pass some online testing. + +5.9.121 (2011-09-28) + - This version includes support for PDF/A-1b format (the class constructor signature was changed - see example n. 65). + - Method setSRGBmode() was added to force sRGB_IEC61966-2.1 black scaled ICC color profile for the whole document (file sRGB.icc was added). + - 14 new fonts were added to allow embedding core fonts (for PDF/A compliance). + - Font utils were fixed. + +5.9.120 (2011-09-22) + - This version includes a fix for _getTrueTypeFontSubset() method. + +5.9.119 (2011-09-19) + - This version includes a fix for extra page numbering on TOC. + +5.9.118 (2011-09-17) + - This version includes some changes that allows you to add a bookmark for a page that do not exist. + +5.9.117 (2011-09-15) + - TCPDFBarcode and TCPDF2DBarcode classes were extended to include a method for exporting barcodes as PNG images. + +5.9.116 (2011-09-14) + - Datamatrix class was improved and documentation was fixed. + +5.9.115 (2011-09-13) + - Datamatrix ECC200 barcode support was added (a new datamatrix.php file was added) - check example n. 50. + - getBarcodeHTML() method was added on TCPDFBarcode and TCPDF2DBarcode classes to return an HTML representation of the barcode. + - cURL options on Image() method were improved. + - A bug on write2DBarcode() was fixed. + +5.9.114 (2011-09-04) + - A bug related to column position was fixed. + +5.9.113 (2011-08-24) + - This release include two new experimental files for parsing an existing PDF document (the integration with TCPDF is under development). + +5.9.112 (2011-08-18) + - A newline character was added after the 'trailer' keyword for compatibility with some parsers. + - Support for layers was improved. + +5.9.111 (2011-08-17) + - Barcode CODE 39 default gap was restored at 1. + +5.9.110 (2011-08-17) + - Barcode CODE 39 was fixed. + +5.9.109 (2011-08-12) + - Method getNumLines() was fixed. + - A bug related to page break in multi-column mode was fixed. + +5.9.108 (2011-08-09) + - A bug on PHP4 version was fixed. + +5.9.107 (2011-08-08) + - This version includes a minor bugfix. + +5.9.106 (2011-08-04) + - This version includes transparency groups: check the new parameter on startTemplate() method and example 62. + +5.9.105 (2011-08-04) + - Bug item #3386153 "Check Box not ticked when set to true" was fixed. + +5.9.104 (2011-08-01) + - Bug item #3383698 "imagemagick, resize and dpi" was fixed. + +5.9.103 (2011-07-16) + - Alignment of XHTML lines was improved. + - Spell of the "length" word was fixed. + +5.9.102 (2011-07-13) + - Methods startLayer() and endLayer() were added to support arbitrary PDF layers. + - Some improvements/fixes for images were added (thanks to Brendan Abbott). + +5.9.101 (2011-07-07) + - Support for JPEG and PNG ICC Color Profiles was added. + - Method addEmptySignatureAppearance() was added to add empty signature fields (see example n. 52). + - Bug item #3354332 "Strange line spacing with reduced font-size in writeHTML" was fixed. + +5.9.100 (2011-06-29) + - An SVG bug has been fixed. + +5.9.099 (2011-06-27) + - Bug item #3335045 "Font freesans seems somehow corrupted in footer" was fixed. + +5.9.098 (2011-06-23) + - The Named Destination feature was fixed. + +5.9.097 (2011-06-23) + - The method setHtmlVSpace() now can be used also for tags: div, li, br, dt and dd. + - The Named Destination feature was added (check the example n. 15) - thanks to Christian Deligant. + +5.9.096 (2011-06-19) + - Bug item #3322234 "Surrogate pairs codes in arrUTF8ToUTF16BE" was fixed. + +5.9.095 (2011-06-18) + - Numbers alignment for Table-Of-Content methods was improved and fixed. + - Font subsetting was fixed to include all parts of composite fonts. + +5.9.094 (2011-06-17) + - Bug item #3317898 "Page Group numbering broken in 5.9.093" was fixed. + +5.9.093 (2011-06-16) + - Method setStartingPageNumber() was added to set starting page number (for automatic page numbering). + +5.9.092 (2011-06-15) + - Method _putpages() was improved. + - Bug item #3316678 "Memory overflow when use Rotate and SetAutoPageBreak" was fixed. + - Right alignment of page numbers was improved. + +5.9.090 (2011-06-14) + - Methods AliasNbPages() and AliasNumPage() were re-added as deprecated for backward compatibility. + +5.9.089 (2011-06-13) + - Example n. 8 was updated. + - Method sendOutputData() was changed to remove default compression (it was incompatible with some server settings). + - Bugs related to page group numbers were fixed. + - Method copyPage() was fixed. + - Method Image() was improved to include support for alternative and external images. + +5.9.088 (2011-06-01) + - Method getAutoPageBreak() was added (see example n. 51). + - Example n. 51 (full page background) was updated. + +5.9.087 (2011-06-01) + - Method sendOutputData() was improved to include deflate encoding. + - Barcode classes on PHP 4 version were fixed. + +5.9.086 (2011-05-31) + - Font files were updated (the ones on the previous release were broken). + - The script fonts/utils/makeallttffonts.php was updated and fixed. + - Output() method was improved to use compression when available. + +5.9.085 (2011-05-31) + - TCPDFBarcode class (barcodes.php) now includes getBarcodeSVG() and getBarcodeSVGcode() methods to get SVG image representation of the barcode. + - TCPDF2DBarcode class (2dbarcodes.php) now includes getBarcodeSVG() and getBarcodeSVGcode() methods to get SVG image representation of the barcode. + +5.9.084 (2011-05-29) + - Font files were updated. + - The file fonts/utils/makeallttffonts.php was updated. + - Bug item# 3308774 "Problems with font subsetting" was fixed. + +5.9.083 (2011-05-24) + - Bug item #3308387 "line height & SetCellHeightRatio" was fixed. + +5.9.082 (2011-05-22) + - Bug item #3305592 "Setting fill color <> text color breaks text clipping" was fixed. + +5.9.081 (2011-05-18) + - Method resetHeaderTemplate() was added to reset the xobject template used by Header() method. + - Method setHeaderTemplateAutoreset() was added to automatically reset the xobject template used by Header() method at each page. + +5.9.080 (2011-05-17) + - A problem related to file path calculation for images was fixed. + - A problem related to unsupressed getimagesize() error was fixed. + +5.9.079 (2011-05-16) + - Footer() method was changed to use C128 barcode as default (instead of the previous C128B). + +5.9.078 (2011-05-12) + - Bug item #3300878 "wrong rendering for html bullet list in some case" was fixed. + - Bug item #3301017 "Emphasized vs. font-weight" was fixed. + - Barcode Code 128 was improved to include AUTO mode (automatically switch between A, B and C modes). + - Examples n. 27 and 49 were updated. + +5.9.077 (2011-05-07) + - Bug item #3298591 "error code93" was fixed. + - SetLineStyle() function was improved. + +5.9.076 (2011-05-06) + - Bug item #3298264 "codebar 93 error" was fixed. + +5.9.075 (2011-05-02) + - Table header alignment when using WriteHTMLCell() or MultiCell() was fixed. + +5.9.074 (2011-04-28) + - Bug item #3294306 "CSS classes not work in table section" was fixed. + +5.9.073 (2011-04-27) + - A bug related to character entities on HTML cells was fixed. + +5.9.072 (2011-04-26) + - Method resetColumns() was added to remove multiple columns and reset page margins (example n. 10 was updated). + +5.9.071 (2011-04-19) + - Bug #3288574 "
    trouble" was fixed. + +5.9.069 (2011-04-19) + - Bug #3288763 "HTML-Table: non-breaking table rows: Bug" was fixed. + +5.9.068 (2011-04-15) + - Bookmark, addTOC and addHTMLTOC methods were improved to include font style and color (Examples 15, 49 and 59 were updated). + - Default $_SERVER['DOCUMENT_ROOT'] value on tcpdf_config.php file was changed. + +5.9.067 (2011-04-10) + - Performances were drastically improved (PDF documents are now created more quickly). + +5.9.066 (2011-04-09) + - A bug related to digital signature + encryption was fixed. + - A bug related to encryption + xobject templates was fixed. + +5.9.065 (2011-04-08) + - Bug item #3280512 "Text encoding iso-8859-2 crashes" was fixed. + +5.9.064 (2011-04-05) + - A bug related to character entities on HTML cells was fixed. + +5.9.063 (2011-04-01) + - Bug item #3267235 "WriteHTML() and image that doesn't fit on the page" was fixed. + +5.9.062 (2011-03-23) + - Bug item #3232650 "Using Write if there are pageRegions active creates error" was fixed. + - Bug item #3221891 "text input borders" was fixed. + - Bug item #3228958 "Adobe Reader 9.4.2 crash" was fixed. + +5.9.061 (2011-03-15) + - Bug item #3213488 "wrong function call in function Write" was fixed. + - Bug item #3203007 "list element with black background" was fixed. + +5.9.060 (2011-03-08) + - addTOC() method was fixed for text alignment problems. + +5.9.059 (2011-02-27) + - Default Header() method was improved to reduce document size. + +5.9.058 (2011-02-25) + - Image() method was improved to cache images with transparency layers (thanks to Korneliusz Jarzębski for reporting this problem). + +5.9.057 (2011-02-24) + - A problem with image caching system was fixed (thanks to Korneliusz Jarzębski for reporting this problem). + +5.9.056 (2011-02-22) + - A bug on fixHTMLCode() method was fixed. + - Automatic line break for HTML was fixed. + +5.9.055 (2011-02-17) + - Another bug related to HTML table page break was fixed. + +5.9.054 (2011-02-16) + - A bug related to HTML table page break was fixed. + +5.9.053 (2011-02-16) + - Support for HTML attribute display="none" was added. + +5.9.052 (2011-02-15) + - A bug related to HTML automatic newlines was fixed. + +5.9.051 (2011-02-12) + - "Commas at beginning of new lines" problem was fixed. + +5.9.050 (2011-02-11) + - Bug #3177606 "SVG Bar chart error" was fixed. + +5.9.049 (2011-02-03) + - Bug #3170777 "TCPDF creates a new page after a single line in writeHTML" was fixed. + +5.9.048 (2011-02-02) + - No changes. Just released to override previous release that was not uploaded correctly. + +5.9.047 (2011-01-28) + - Bug #3167115 "PDF error in (example 48)" was fixed (was introduced in 5.8.046). + +5.9.046 (2011-01-18) + - PDF view/print layers are now automatically turned off if not used (see setVisibility() method). + +5.9.045 (2011-01-17) + - HTML list support were improved. + +5.9.044 (2011-01-15) + - Bug #3158422 "writeHTMLCell Loop" was fixed. + - Some HTML image alignment problems were fixed. + +5.9.043 (2011-01-14) + - Bug #3158178 "PHP Notice" was fixed. + - Bug #3158193 "Endless loop in writeHTML" was fixed. + - Bug #3157764 "SVG Pie chart incorrectly rendered2". + +5.9.042 (2011-01-14) + - Some problems of the PHP4 version were fixed. + +5.9.041 (2011-01-13) + - A problem with SVG elliptical arc path was fixed (ref. bug #3156574). + - A problem related to font weight on HTML table headers was fixed. + +5.9.040 (2011-01-12) + - A bug related to empty pages after table was fixed. + +5.9.039 (2011-01-12) + - Bug item #3155759 "openssl_random_pseudo_bytes() slow under Windows" was fixed. + +5.9.038 (2011-01-11) + - Minor bugs were fixed. + +5.9.037 (2011-01-09) + - An alignment problem for HTML texts was fixed. + +5.9.036 (2011-01-07) + - A bug related to HTML tables on header was fixed. + +5.9.035 (2011-01-03) + - A problem related to HTML table border alignment was fixed. + - Bug #2996366 "FastCGI and Header Problems" was fixed. + +5.9.034 (2010-12-19) + - DejaVu and GNU Free fonts were updated. + +5.9.033 (2010-12-18) + - Source code documetnation was improved. + +5.9.032 (2010-12-18) + - Default font stretching and spacing values are now inherited by HTML methods. + +5.9.031 (2010-12-16) + - Source code documentation errors were fixed. + +5.9.030 (2010-12-16) + - Several source code documentation errors were fixed. + - Source code style was changed for Doxygen. + - Source code documentation was moved online to http://www.tcpdf.org + +5.9.029 (2010-12-04) + - The $fitbox parameter on Image() method was extended to specify image alignment inside the box (check the example n. 9). + +5.9.028 (2010-12-03) + - Font utils makefont.php and makeallttffonts.php were updated. + +5.9.027 (2010-12-01) + - Spot Colors are now better integrated with HTML mode. + - Method SetDocInfoUnicode() was added to turn on/off Unicode mode for document information dictionary (meta tags) - check the example n. 19. + +5.9.026 (2010-12-01) + - A problem with mixed text directions on HTML was fixed. + +5.9.025 (2010-12-01) + - The AddSpotColor() now automatically fills the spotcolor array (defined on spotcolors.php file). + +5.9.024 (2010-11-30) + - Bug item #3123612 "SVG not use gradientTransform in percentage mode" was fixed. + +5.9.023 (2010-11-25) + - A potential bug on SVG transcoder was fixed. + +5.9.022 (2010-11-21) + - Method ImageEPS includes support for EPS/AI Spot colors. + - Method ImageEPS includes a new parameter $fixoutvals to remove values outside the bounding box. + +5.9.021 (2010-11-20) + - Support for custom bullet points images was added (check the example n.6) + - Examples n. 6 and 61 were update (check the comments inside). + +5.9.020 (2010-11-19) + - A problem related to additional page when using multicolumn mode was fixed. + +5.9.019 (2010-11-19) + - An SVG bug was fixed. + - ImageSVG() and ImageEPS() methods now accepts image data streams (put the string on the $file parameter preceded by '@' character). + - Option 'E' was added to the $dest parameter of Output() method to return the document as base64 mime multi-part email attachment (RFC 2045). + +5.9.018 (2010-11-19) + - An SVG bug was fixed. + +5.9.017 (2010-11-16) + - Tagline color was set to transparent. + - The method fixHTMLCode() was added to automatically clean up HTML code (requires HTML Tidy). + +5.9.016 (2010-11-16) + - Bug item #3109705 "list item page break hanging bullet" was fixed. + +5.9.015 (2010-11-16) + - Bug item affecting QRCode was fixed. + - Some bugs affecting HTML lists were fixed. + - ImageSVG() and fitBlock() methods were improved to handle some SVG problems. + - Some problems with PHP4 compatibility were fixed. + +5.9.014 (2010-11-15) + - Bug item #3109464 "QRCode error" was fixed. + +5.9.013 (2010-11-15) + - Bug item #3109257 "Problem with interlaced GIFs and PNGs" was fixed. + - Image function now accepts image data streams (check example n. 9). + +5.9.012 (2010-11-12) + - Method getTCPDFVersion() was added. + - PDF_PRODUCER constant was removed. + - Method convertHTMLColorToDec() was improved. + - HTML colors now support spot color names defined on the new spotcolors.php file. + - The default method Header() was improved to support SVG and EPS/AI images. + - A bug on SVG importer was fixed. + +5.9.011 (2010-11-02) + - Bug item #3101486 "Bug Fix for image loading" was fixed. + +5.9.010 (2010-10-27) + - Support for CSS properties 'border-spacing' and 'padding' for tables were added. + - Several language files were added. + +5.9.009 (2010-10-21) + - HTML text alignment was improved to include the case of RTL text on LTR direction and LTR text on RTL direction. + +5.9.008 (2010-10-21) + - Bug item #3091502 "Bookmark oddity" was fixed. + - HTML internal links now accepts page number and Y position. + - The method write1DBarcode() was improved to accept separate horizontal and vertical padding (see example n. 27). + +5.9.007 (2010-10-20) + - Method adjustCellPadding() was fixed to handle bad input. + +5.9.006 (2010-10-19) + - Support for AES 256 bit encryption was added (see example n. 16). + - Method getNumLines() was fixed for the empty string case. + +5.9.005 (2010-10-18) + - Method addPageRegion() was changed to accept regions starting exactly from the top of the page. + +5.9.004 (2010-10-18) + - A bug related to annotations was fixed. + - The file unicode_data.php was canged to encapsulate all data in a class. + - The file htmlcolors.php was changed to remove the global variable. + +5.9.003 (2010-10-15) + - Support for no-write page regions was added. Check the example n. 64 and new methods setPageRegions(), addPageRegion(), getPageRegions(), removePageRegion(). + - A bug on Right-To-Left alignment was fixed. + +5.9.002 (2010-10-08) + - Cell method was improved to preserve the font stretching and spacing values when using the $stretch parameter (see example n. 4). + +5.9.001 (2010-10-07) + - The problem of blank page for nobr table higher than a single page was fixed. + +5.9.000 (2010-10-06) + - Support for text stretching and spacing (tracking) was added, see example n. 63 and methods setFontStretching(), getFontStretching(), setFontSpacing(), getFontSpacing(). + - Support for CSS properties 'font-stretch' and 'letter-spacing' was added (see example n. 63). + - The cMargin state was replaced by cell_padding array that can be set/get using setCellPadding() and getCellPadding() methods. + - Methods getCellPaddings() and setCellPaddings() were added to fine tune cell paddings (see example n. 5). + - Methods getCellMargins() and setCellMargins() were added to fine tune cell margins (see example n. 5). + - Method write1DBarcode() was improved to permit custom labels (see example n. 27). + - Method ImagePngAlpha() now includes support for ImageMagick to improve performances. + - XObject Template support was extended to support Multicell(), writeHTML() and writeHTMLCell() methods. + - The signature of getNumLines() and getStringHeight() methods is changed. + - Example n. 57 was updated. + +// ------------------------------------------------------------------- + +5.8.034 (2010-09-27) + - A bug related to SetFont on XObject templates was fixed. + +5.8.033 (2010-09-25) + - A problem with Footer() and multiple columns was fixed. + +5.8.032 (2010-09-22) + - Bug #3073165 "Issues with changes to addHTMLVertSpace()" was fixed. + +5.8.031 (2010-09-20) + - Bug #3071961 "Spaces in HTML" was fixed. + +5.8.030 (2010-09-17) + - SVG support was improved and some bugs were fixed. + +5.8.029 (2010-09-16) + - A problem with HTML borders was fixed. + +5.8.028 (2010-09-13) + - Bug #3065224 "mcrypt_create_iv error on TCPDF 5.8.027 on PHP 5.3.2" was fixed. + +5.8.027 (2010-09-13) + - Bug #3065118 "mcrypt_decrypt error on TCPDF 5.8.026 on PHP 5.3.2" was fixed. + +5.8.026 (2010-09-13) + - A bug on addHTMLTOC() method was fixed. Note: be sure that the #TOC_PAGE_NUMBER# template has enough width to be printed correctly. + +5.8.025 (2010-09-09) + - Bug #3062692 "Textarea inside a table" was fixed. + +5.8.024 (2010-09-08) + - Bug #3062005 "Undefined variable: ann_obj_id" was fixed. + +5.8.023 (2010-08-31) + - Forms bug added on version 5.8.019 was fixed. + +5.8.022 (2010-08-31) + - Bug #3056632 "SVG rendered vertically flipped" was fixed. + +5.8.021 (2010-08-30) + - A new CID-0 'chinese' font was added for traditional Chinese. + - Bug #3054287 'Inner tags are ignored due to "align" attribute' was fixed. + +5.8.020 (2010-08-26) + - CSS "catch-all" class selector is now supported. + +5.8.019 (2010-08-26) + - XObject Templates now includes support for links and annotations. + - A problem related to link alignment on cell was fixed. + - A problem related to SVG styles was fixed. + +5.8.018 (2010-08-25) + - Method getNumberOfColumns() was added. + - A problem related to table header was fixed. + - Method getSVGTransformMatrix() was fixed to apply SVG transformations in the correct order. + - SVG support was improved and several bugs were fixed. + +5.8.017 (2010-08-25) + - This version includes support for XObject Templates (see the new example n. 62). + - Methods starttemplate(), endTemplate() and printTemplate() were added (see the new example n. 62). + +5.8.016 (2010-08-24) + - Alignment problem on write2DBarcode was fixed. + +5.8.015 (2010-08-24) + - A problem arised with the latest bugfix was fixed. + +5.8.014 (2010-08-23) + - Method _getxobjectdict() was added for better compatibility with external extensions. + - A bug related to radiobuttons was fixed. + - Bug #3051509 "new line after punctuation marks" was fixed (partially). + +5.8.013 (2010-08-23) + - SVG support for 'direction' property was added. + - A problem on default width calculation for linear barcodes was fixed. + - New option was added to write1DBarcode() method to improve alignments (see example n. 27). + - Bug #3050896 "Nested HTML tables: styles are not applied" was fixed. + - Method _putresourcedict() was improved to include external XObject templates. + +5.8.012 (2010-08-22) + - Support for SVG 'text-anchor' property was added. + +5.8.011 (2010-08-21) + - Method write1DBarcode() was improved to be backward compatible (check the new example n. 27). + - Support for CSS width and height properties on images were added. + +5.8.010 (2010-08-20) + - Documentation of unhtmlentities() was fixed. + - The 'fitwidth' option was added and border color problem was fixed on write1DBarcode() method (check the example n. 27). + +5.8.009 (2010-08-20) + - Internal object numbering was improved. + - Some errors in object encryption were fixed. + +5.8.008 (2010-08-19) + - Method write1DBarcode() was changed, check the example n. 27. + - Method Footer() was changed to account for barcode changes. + - Automatic calculation of K_PATH_URL constant was fixed on configuration file. + - Method setEqualColumns() was fixed for $width=0 case. + - Method AddTOC() was fixed for multipage and multicolumn modes. + - Better support for SVG "font-family" property. + - A problem on default Page Zoom mode was fixed. + - Several Annotation bugs were fixed. + +5.8.007 (2010-08-18) + - A bug affecting HTML tables was fixed. + - Bug #3047500 "SVG not rendering paths properly" was fixed. + +5.8.006 (2010-08-17) + - A bug affecting HTML table nesting was fixed. + +5.8.005 (2010-08-17) + - A bug affecting the HTML 'select' tag in certain conditions was fixed. + +5.8.004 (2010-08-17) + - Better support for HTML "font-family" property. + - A bug related to HTML multicolumn was fixed. + +5.8.003 (2010-08-16) + - Better support for HTML "font-family" property. + +5.8.002 (2010-08-14) + - HTML alignments were improved + - IMPORTANT: Default regular expression to find spaces has been changed to exclude the non-breaking-space (160 DEC- A0 HEX). If you are using setSpacesRE() method, please read the new documentation. + - Example n. 1 was updated. + +5.8.001 (2010-08-12) + - Bug #3043650 "subsetchars incorrectly cached" was fixed. + +5.8.000 (2010-08-11) + - A control to avoid bookmarking page 0 was added. + - addTOC() method now includes support for multicolumn mode. + - Support for tables in multicolumn mode was improved. + - Example n.10 was updated. + - All trimming functions were replaced with stringLeftTrim(), stringRightTrim() and stringTrim(). + - HTML alignments were improved. + +------------------------------------------------------------ + +5.7.003 (2010-08-08) + - Bug #3041263 "php source ending is bad" was fixed (all PHP files were updated, including fonts). + +5.7.002 (2010-08-06) + - Methods copyPage(), movePage() and deletePage() were changed to account for internal markings. + +5.7.001 (2010-08-05) + - Bug #3040105 "Broken PDF when using TOC (example 45)" was fixed. + +5.7.000 (2010-08-03) + - CSS borders are now supported for HTML tables and other block tags (see example n. 61); + - Cell borders were improved (see example n. 57); + - Minor bugs were fixed. + +------------------------------------------------------------ + +5.6.000 (2010-07-31) + - A bug with object IDs was fixes. + - Performances were improved. + +------------------------------------------------------------ + +5.5.015 (2010-07-29) + - Automatic fix for unclosed self-closing tag. + - Support for deprecated 's' and 'strike' tags was added. + - Empty list items problem was fixed. + +5.5.014 (2010-07-15) + - Support for external images was improved. + +5.5.013 (2010-07-14) + - Bug #3029338 "FI and FO output destination filename bug" was fixed (previous fix was wrong). + +5.5.012 (2010-07-14) + - Bug #3029310 "Font baseline inconsistencies with line-height and font-size" was fixed. + - Bug #3029338 "FI and FO output destination filename bug" was fixed. + +5.5.011 (2010-07-09) + - Support for multiple CSS classes was added. + - The method getColumn() was added to return the current column number. + - Some regular Expressions were fixed to be more compatible with UTF-8. + +5.5.010 (2010-07-06) + - Bug item #3025772 "Borders in all image functions are still flawed" was fixed. + +5.5.009 (2010-07-05) + - A problem related to last page footer was fixed. + - Image alignments and fit-on-page features were improved. + +5.5.008 (2010-07-02) + - A problem on table header alignment in booklet mode was fixed. + - Default graphic vars are now applied for setHeader(); + +5.5.007 (2010-07-02) + - Attribute "readonly" was added to input and textarea form fields. + - Vertical alignment feature was added on MultiCell() method only for simple text mode (see example n. 5). + - Text-Fit feature was added on MultiCell() method only for simple text mode (see example n. 5). + +5.5.006 (2010-06-29) + - getStringHeight() and getNumLines() methods were fixed. + +5.5.005 (2010-06-28) + - Bug #3022170 "getFontDescent() does not return correct descent value" was fixed. + - Some problems with multicolumn mode were fixed. + +5.5.004 (2010-06-27) + - Bug #3021803 "SVG Border" was fixed. + +5.5.003 (2010-06-26) + - On Write() method, blank lines at the beginning of a page or column are now automatically removed. + +5.5.002 (2010-06-24) + - ToUnicode Identity-H name was replaced with a full CMap (to avoid preflight syntax error). + - Bug #3020638 "str_split() not available in php4" was fixed. + - Bug #3020665 "file_get_contents() too many parameters for php4" was fixed. + +5.5.001 (2010-06-23) + - A problem on image streams was fixed. + +5.5.000 (2010-06-22) + - Several PDF syntax errors (and related bugs) were fixed. + - Bug #3019090 "/Length values are wrong if AES encryption is used" was fixed. + +------------------------------------------------------------ + +5.4.003 (2010-06-19) + - A problem related to page boxes was fixed. + - Bug #3016920 "Font subsetting issues when editing pdf" was partially fixed (Note that flattening transparency layers is currently incompatible with TrueTypeUnicode fonts). + +5.4.002 (2010-06-18) + - A problem related with setProtection() method was fixed. + +5.4.001 (2010-06-18) + - A problem related with setProtection() method was fixed. + +5.4.000 (2010-06-18) + - The method setSignatureAppearance() was added, check the example n. 52. + - Several problems related to font subsetting were fixed. + +------------------------------------------------------------ + +5.3.010 (2010-06-15) + - Previous release was corrupted. + +5.3.009 (2010-06-15) + - Bug #3015934 "Bullets don't display correctly" was fixed. + +5.3.008 (2010-06-13) + - This version fixes some problems of SVG rasterization. + +5.3.007 (2010-06-13) + - This version improves SVG support. + +5.3.006 (2010-06-10) + - This version includes a change in uniqid calls for backward compatibility with PHP4. + +5.3.005 (2010-06-09) + - The method getPageSizeFromFormat() was changed to include all standard page formats (includes 281 page formats + variation). + +5.3.004 (2010-06-08) + - Bug #3013291 "HTML table cell width" was fixed. + - Bug #3013294 "HTML table cell alignment" was fixed. + - The columns widths of HTML tables are now inherited from the first row. + +5.3.003 (2010-06-08) + - Bug #3013102 "HTML table header misaligned after page break" was fixed. + +5.3.002 (2010-06-07) + - The methods setFontSubsetting() and setFontSubsetting() were added to control the default font subsetting mode (see example n. 1). + - Bug #3012596 "Whitespace should not appeared after use Thai top characters" was fixed. + - Examples n. 1, 14, and 54 were updated. + +5.3.001 (2010-06-06) + - Barcode PDF417 was improved to support Macro Code Blocks (see example n. 50). + +5.3.000 (2010-06-05) + - License was changed to GNU-LGPLv3 (see the updated LICENSE.TXT file). + - PDF417 barcode support was added (check the example n. 50). + - The method write2DBarcode() was improved (some parameters were added and other changed - check example n. 50). + +------------------------------------------------------------ + +5.2.000 (2010-06-02) + - IMPORTANT: Support for font subsetting was added by default to reduce the size of documents using large unicode font files. + If you embed the whole font in the PDF, the person on the other end can make changes to it even if he didn't have your font. + If you subset the font, file size of the PDF will be smaller but the person who receives your PDF would need to have your same font in order to make changes to your PDF. + - The signature of the SetFont() and AddFont() methods were changed to include the font subsetting option (subsetting is applied by default). + - Examples 14 and 54 were updated. + +------------------------------------------------------------ + +5.1.002 (2010-05-27) + - Bug #3007818 "SetAutoPageBreak fails with MultiCell" was fixed. + - A bug related to MultiCell() minimun height was fixed. + +5.1.001 (2010-05-26) + - The problem of blank page after table was fixed. + +5.1.000 (2010-05-25) + - This version includes support for CSS (Cascading Style Sheets) (see example n. 61). + - The convertHTMLColorToDec() method was improved. + +------------------------------------------------------------ + +5.0.014 (2010-05-21) + - A problem on color and style of HTML links was fixed. + - A bug relative to gradients was fixed. + - The getStringHeight() method was added and getNumLines() method was improved. + - All examples were updated. + +5.0.013 (2010-05-19) + - A bug related to page-breaks and table cells was fixed. + +5.0.012 (2010-05-19) + - Page orientation bug was fixed. + - The access to method setPageFormat() was changed to 'protected' because it is not intended to be directly called. + +5.0.011 (2010-05-19) + - Page orientation bug was fixed. + - Bug #3003966 "Multiple columns and nested lists" was fixed. + +5.0.010 (2010-05-17) + - The methods setPageFormat(), setPageOrientation() and related methods were extended to include page boxes, page rotations and page transitions. + - The method setPageBoxes() was added to set page boundaries (MediaBox, CropBox, BleedBox, TrimBox, ArtBox); + - A bug relative to underline, overline and linethrough was fixed. + +5.0.009 (2010-05-16) + - Bug #3002381 "Multiple columns and nested lists" was fixed. + +5.0.008 (2010-05-15) + - Bug "Columns WriteHTML and Justification" was fixed. + +5.0.007 (2010-05-14) + - Bug #3001347 "Bug when using WriteHTML with setEqualColumns()" was fixed. + - Bug #3001505 "problem with sup and sub tags at the beginning of a line" was fixed. + +5.0.006 (2010-05-13) + - Length of hr tag was fixed. + - An error on 2d barcode method was fixed. + +5.0.005 (2010-05-12) + - WARNING: The logic of permissions on the SetProtection() method has been inverted and extended (see example 16). Now you have to specify the features you want to block. + - SetProtection() method was extended to support RSA and AES 128 encryption and public-keys (see example 16). + - Bug #2999489 "setEqualColumns() and TOC uses wrong columns" was fixed (see the example 10). + +5.0.004 (2010-05-10) + - HTML line alignment when using sub and sup tags was fixed. + +5.0.003 (2010-05-07) + - Horizontal alignment was fixed for images and barcodes. Now the X coordinate is always relative to the left margin. Use GetAbsX() instead of GetX() to get the X relative to left margin. + - Header() method was changed to account for new image alignment rules. + +5.0.002 (2010-05-06) + - Bookmark() and related methods were fixed to accept HTML code. + - A problem on HTML links was fixed. + +5.0.001 (2010-05-06) + - Protected method _putstream was re-added for backward compatibility. + - The following method were added to display HTML Table Of Content (see example n. 59): + addTOCPage(), endTOCPage(), addHTMLTOC(). + +5.0.000 (2010-05-05) + - Method ImageSVG() was added to embedd SVG images (see example n. 58). Note that not all SVG images are supported. + - Method setRasterizeVectorImages() was added to enable/disable rasterization for vector images via ImageMagick library. + - Method RoundedRectXY() was added. + - Method PieSectorXY() was added. + - Gradient() method is now public and support new features. + - Shading to transparency is now supported. + - Image alignments were fixed. + - Support for dynamic images were improved. + - PDF_IMAGE_SCALE_RATIO has been changed to 1.25 for better compatibility with SVG. + - RAW and RAW2 modes were added to 2D Barcodes (see example n. 50). + - Automatic padding feature was added on barcodes (see examples n. 27 and 50). + - Bug #2995003 "Reproduced thead bug" was fixed. + - The Output() method now accepts FI and FD destinations to save the document on server before sending it to the client. + - Ellipse() method was improved and fixed (see page 2 of example n. 12). + +------------------------------------------------------------ + +4.9.018 (2010-04-21) + - Bug item #2990356 "Current font size not respected with more than two HTML

    " was fixed. + +4.9.017 (2010-04-21) + - Bug item #2990224 "Different behaviour for equivalent HTML strings" was fixed. + - Bug item #2990314 "Dash is not appearing with SHY character" was fixed. + +4.9.016 (2010-04-20) + - An error on htmlcolors.php was fixed. + - getImageFileType() method was improved. + - GIF images with transparency are now better supported. + - Automatic page orientation was improved. + +4.9.015 (2010-04-20) + - A new method copyPage() was added to clone pages (see example n. 44). + - Support for text overline was added. + - Underline and linethrough methods were fixed. + - Bug #2989058 "SHY character causes unnecessary word-wrapping" was fixed. + +4.9.014 (2010-04-18) + - Bug item #2988845 was fixed. + +4.9.013 (2010-04-15) + - Image() and ImageEPS() methods were fixed and improved; $fitonpage parameter was added. + +4.9.012 (2010-04-12) + - The hyphenateText() method was added to automatically hyphenate text (see example n. 46). + +4.9.011 (2010-04-07) + - Vertical alignments for Cell() method were improved (see example n. 57). + +4.9.010 (2010-04-06) + - Signature of Cell() method now includes new parameters for vertical alignment (see example n. 57). + - Text() method was extended to include all Cell() parameters. + - HTML line alignment procedure was changed to fix some bugs. + +4.9.009 (2010-04-05) + - Text() method was fixed for backward compatibility. + +4.9.008 (2010-04-03) + - Additional line space after table header was removed. + - Support for HTML lists in multicolumn mode was added. + - The method setTextRenderingMode() was added to set text rendering modes (see the example n. 26). + - The following HTML attributes were added to set text rendering modes (see the example n. 26): stroke, strokecolor, fill. + +4.9.007 (2010-04-03) + - Font Descent computation was fixed (patch #2981441). + +4.9.006 (2010-04-02) + - The constant K_TCPDF_CALLS_IN_HTML was added on configuration file to enable/disable the ability to call TCPDF methods in HTML. + - The usage of tcpdf tag in HTML mode was changed to remove the possible security flaw offered by the eval() function (thanks to Matthias Hecker for spotting this security problem). See the new example n. 49 for further information. + +4.9.005 (2010-04-01) + - Bug# 2980354 "Wrong File attachment description with security" was fixed. + - Several problems with HTML line alignment were fixed. + - The constant K_THAI_TOPCHAR was added on configuration file to enable/disable the special procedure used to avoid the overlappind of symbols on Thai language. + - A problem with font name directory was fixed. + - A bug on _destroy() method was fixed. + +4.9.004 (2010-03-31) + - Patch #979681 "GetCharWidth - default character width" was applied (bugfix). + +4.9.003 (2010-03-30) + - Problem of first
    on multiple columns was fixed. + - HTML line alignment was fixed. + - A QR-code bug was fixed. + +4.9.002 (2010-03-29) + - Patch #2978349 "$ignore_min_height is ignored in function Cell()" was applied. + - Bug #2978607 "2D Barcodes are wrong" was fixed. + - A problem with HTML block tags was fixed. + - Artificial italic for CID-0 fonts was added. + - Several multicolumn bugs were fixed. + - Support for HTML tables on multicolumn was added. + +4.9.001 (2010-03-28) + - QR Code minor bug was fixed. + - Multicolumn mode was added (see the new example n. 10). + - The following methods were added: setEqualColumns(), setColumnsArray(), selectColumn(). + - Thai diacritics support were changed (note that this is incompatible with html justification). + +4.9.000 (2010-03-27) + - QR Code (2D barcode) support was added (see example n. 50). + - The following methods were added to print crop and registration marks (see example n. 56): colorRegistrationBar(), cropMark(), registrationMark(). + - Limited support for CSS line-height property was added. + - Gradient method now supports Gray, RGB and CMYK space color. + - Example n. 51 was updated. + - Vertical alignment of font inside cell was fixed. + - Support for multiple Thai diacritics was added. + - Bug item #2974929 "Duplicate case values" was fixed. + - Bug item #2976729 "File attachment not working with security" was fixed. + +------------------------------------------------------------ + +4.8.039 (2010-03-20) + - Problems related to custom locale settings were fixed. + - Problems related to HTML on Header and Footer were fixed. + +4.8.038 (2010-03-13) + - Various bugs related to page-break in HTML mode were fixed. + - Bug item #2968974 "Another

    pagebreak problem" was fixed. + - Bug item #2969276 "justification problem" was fixed. + - Bug item #2969289 "bug when using justified text and custom headers" was fixed. + - Images are now automatically resized to be contained on the page. + - Some HTML line alignments were fixed. + - Signature of AddPage() and SetMargins() methods were changed to include an option to set default page margins. + +4.8.037 (2010-03-03) + - Bug item #2962068 was fixed. + - Bug item #2967017 "Problems with and pagebreaks" was fixed. + - Bug item #2967023 "table header lost with pagebreak" was fixed. + - Bug item #2967032 "Header lost with nested tables" was fixed. + +4.8.036 (2010-02-24) + - Automatic page break for HTML images was improved. + - Example 10 was updated. + - Japanese was removed from example 8 because the freeserif font doesn't contain japanese (you can display it using arialunicid0 font). + +4.8.035 (2010-02-23) + - Automatic page break for HTML images was added. + - Support for multicolumn HTML was added (example 10 was updated). + +4.8.034 (2010-02-17) + - Language files were updated. + +4.8.033 (2010-02-12) + - A bug related to protection mode with links was fixed. + +4.8.032 (2010-02-04) + - A bug related to $maxh parameter on Write() and MultiCell() was fixed. + - Support for body tag was added. + +4.8.031 (2010-01-30) + - Bug item #2941589 "paragraph justify not working on some non-C locales" was fixed. + +4.8.030 (2010-01-27) + - Some text alignment cases were fixed. + +4.8.029 (2010-01-27) + - Bug item #2941057 "TOC Error in PDF File Output" was fixed. + - Some text alignment cases were fixed. + +4.8.028 (2010-01-26) + - Text alignment for RTL mode was fixed. + +4.8.027 (2010-01-25) + - Bug item #2938412 "Table related problems - thead, nobr, table width" was fixed. + +4.8.026 (2010-01-19) + - The misspelled word "lenght" was replaced with "length" in some variables and comments. + +4.8.025 (2010-01-18) + - addExtGState() method was improved to reuse existing ExtGState objects. + +4.8.024 (2010-01-15) + - Justification mode for HTML was fixed (Bug item #2932470). + +4.8.023 (2010-01-15) + - Bug item #2932470 "Some HTML entities breaks justification" was fixed. + +4.8.022 (2010-01-14) + - Source code documentation was fixed. + +4.8.021 (2010-01-03) + - A Bug relative to Table Of Content index was fixed. + +4.8.020 (2009-12-21) + - Bug item #2918545 "Display problem of the first row of a table with larger font" was fixed. + - A Bug relative to table rowspan mode was fixed. + +4.8.019 (2009-12-16) + - Bug item #2915684 "Image size" was fixed. + - Bug item #2914995 "Image jpeg quality" was fixed. + - The signature of the Image() method was changed (check the documentation for the $resize parameter). + +4.8.018 (2009-12-15) + - Bug item #2914352 "write error" was fixed. + +4.8.017 (2009-11-27) + - THEAD problem when table is used on header/footer was fixed. + - A first line alignment on HTML justification was fixed. + - Method getImageFileType() was added. + - Images with unknown extension and type are now supported via ImageMagick PHP extension. + +4.8.016 (2009-11-21) + - Document Information Dictionary was fixed. + - CSS attributes 'page-break-before', 'page-break-after' and 'page-break-inside' are now supported. + - Problem of unclosed last page was fixed. + - Problem of 'thead' unnecessarily repeated on the next page was fixed. + +4.8.015 (2009-11-20) + - A problem with some PNG transparency images was fixed. + - Bug #2900762 "Sort issues in Bookmarks" was fixed. + - Text justification was fixed for various modes: underline, strikeout and background. + +4.8.014 (2009-11-04) + - Bug item #2891316 "writeHTML, underlining replacing spaces" was fixed. + - The handling of temporary RTL text direction mode was fixed. + +4.8.013 (2009-10-26) + - Bug item #2884729 "Problem with word-wrap and hyphen" was fixed. + +4.8.012 (2009-10-23) + - Table cell alignments for RTL booklet mode were fixed. + - Images and barcode alignments for booklet mode were fixed. + +4.8.011 (2009-10-22) + - DejaVu fonts were updated to latest version. + +4.8.010 (2009-10-21) + - Bookmark for TOC page was added. + - Signature of addTOC() method is changed. + - Bookmarks are now automatically sorted by page and Y position. + - Example n. 45 was updated. + - Example n. 55 was added to display all charactes available on core fonts. + +4.8.009 (2009-09-30) + - Compatibility with PHP 5.3 was improved. + - All examples were updated. + - Index file for examples was added. + +4.8.008 (2009-09-29) + - Example 49 was updated. + - Underline and linethrough now works with cell stretching mode. + +4.8.007 (2009-09-23) + - Infinite loop problem caused by nobr attribute was fixed. + +4.8.006 (2009-09-23) + - Bug item #2864522 "No images if DOCUMENT_ROOT=='/'" was fixed. + - Support for text-indent CSS attribute was added. + - Method rollbackTransaction() was changed to support self-reassigment of previous object (check source code documentation). + - Support for the HTML "nobr" attribute was added to avoid splitting a table or a table row on two pages (i.e.: ...). + +4.8.005 (2009-09-17) + - A bug relative to multiple transformations and annotations was fixed. + +4.8.004 (2009-09-16) + - A bug on _putannotsrefs() method was fixed. + +4.8.003 (2009-09-15) + - Bug item #2858754 "Division by zero" was fixed. + - A bug relative to HTML list items was fixed. + - A bug relative to form fields on multiple pages was fixed. + - PolyLine() method was added (see example n. 12). + - Signature of Polygon() method was changed. + +4.8.002 (2009-09-12) + - A problem related to CID-0 fonts offset was fixed: if the $cw[1] entry on the CID-0 font file is not defined, then a CID keys offset is introduced. + +4.8.001 (2009-09-09) + - The appearance streams (AP) for anotations form fields was fixed (see examples n. 14 and 54). + - Radiobuttons were fixed. + +4.8.000 (2009-09-07) + - This version includes some support for Forms fields (see example n. 14) and XHTML forms (see example n. 54). + - The following methods were changed to work without JavaScript: TextField(), RadioButton(), ListBox(), ComboBox(), CheckBox(), Button(). + - Support for Widget annotations was improved. + - Alignment of annotation objects was fixed (examples 36 and 41 were updated). + - addJavascriptObject() method was added. + - Signature of Image() method was changed. + - htmlcolors.php file was updated. + +------------------------------------------------------------ + +4.7.003 (2009-09-03) + - Support for TCPDF methods on HTML was improved (see example n. 49). + +4.7.002 (2009-09-02) + - Bug item #2848892 "writeHTML + table: Gaps between rows" was fixed. + - JavaScript support was fixed (see example n. 53). + +4.7.001 (2009-08-30) + - The Polygon() and Arrow() methods were fixed and improved (see example n. 12). + +4.7.000 (2009-08-29) + - This is a major release. + - Some procedures were internally optimized. + - The problem of mixed signature and annotations was fixed (example n. 52). + +4.6.030 (2009-08-29) + - IMPORTANT: percentages on table cell widths are now relative to the full table width (as in standard HTML). + - Various minor bugs were fixed. + - Example n. 52 (digital signature) was updated. + +4.6.029 (2009-08-26) + - PHP4 version was fixed. + +4.6.028 (2009-08-25) + - Signature algorithm was finally fixed (see example n. 52). + +4.6.027 (2009-08-24) + - TCPDF now supports unembedded TrueTypeUnicode Fonts (just comment the $file entry on the fonts' php file. + +4.6.026 (2009-08-21) + - Bug #2841693 "Problem with MultiCell and ishtml and justification" was fixed. + - Signature functions were improved but not yet fixed (tcpdf.crt and example n. 52 were updated). + +4.6.025 (2009-08-17) + - Carriage returns (\r) were removed from source code. + - Problem related to set_magic_quotes_runtime() depracated was fixed. + +4.6.024 (2009-08-07) + - Bug item #2833556 "justification using other units than mm" was fixed. + - Documentation was fixed/updated. + +4.6.023 (2009-08-02) + - Bug item #2830537 "MirrorH can show mask for transparent PNGs" was fixed. + +4.6.022 (2009-07-24) + - A bug relative to single line printing when using WriteHTMLCell() was fixed. + - Signature support were improved but is still experimental. + - Fonts Free and Dejavu were updated to latest versions. + +4.6.021 (2009-07-20) + - Bug item #2824015 "XHTML Ampersand & in hyperlink bug" was fixed. + - Bug item #2824036 "Image as hyperlink in table, text displaced at page break" was fixed. + - Links alignment on justified text was fixed. + - Unicode "\u" modifier was added to re_spaces variable by default. + +4.6.020 (2009-07-16) + - Bug item #2821921 "issue in example 18" was fixed. + - Signature of SetRTL() method was changed. + +4.6.019 (2009-07-13) + - Bug item #2820703 "xref table broken" was fixed. + +4.6.018 (2009-07-10) + - Bug item #2819319 "Text over text" was fixed. + - Method Arrow() was added to print graphic arrows (example 12 was updated). + +4.6.017 (2009-07-05) + - Bug item #2816079 "Example 48 not working" was fixed. + - The signature of the checkPageBreak() was changed. The parameter $addpage was added to turn off the automatic page creation. + +4.6.016 (2009-06-16) + - Method setSpacesRE() was added to set the regular expression used for detecting withespaces or word separators. If you are using chinese, try: setSpacesRE('/[\s\p{Z}\p{Lo}]/');, otherwise you can use setSpacesRE('/[\s\p{Z}]/'); + - The method _putinfo() now automatically fills the metadata with '?' in case of empty string. + +4.6.015 (2009-06-11) + - Bug #2804667 "word wrap bug" was fixed. + +4.6.014 (2009-06-04) + - Bug #2800931 "Table thead tag bug" was fixed. + - A bug related to
     tag was fixed.
    +
    +4.6.013 (2009-05-28)
    +	- List bullets position was fixed for RTL languages.
    +
    +4.6.012 (2009-05-23)
    +	- setUserRights() method doesn't work anymore unless you call the setSignature() method with the Adobe private key!
    +
    +4.6.011 (2009-05-18)
    +	- Signature of the Image() method was changed to include the new $fitbox parameter (see source code documentation).
    +
    +4.6.010 (2009-05-17)
    +	- Image() method was improved: now is possible to specify the maximum dimensions for a constraint box defined by $w and $h parameters, and setting the $resize parameter to null.
    +	-  tag indent problem was fixed.
    +	- $y parameter was added to checkPageBreak() method.
    +	- Bug n. 2791773 "writeHTML" was fixed.
    +
    +4.6.009 (2009-05-13)
    +	- xref table for embedded files was fixed.
    +
    +4.6.008 (2009-05-07)
    +	- setSignature() method was improved (but is still experimental).
    +	- Example n. 52 was added.
    +
    +4.6.007 (2009-05-05)
    +	- Bug #2786685 "writeHtmlCell and 
    in custom footer" was fixed. + - Table header repeating bug was fixed. + - Some newlines and tabs are now automatically removed from HTML strings. + +4.6.006 (2009-04-28) + - Support for "..." was added. + - By default TCPDF requires PCRE Unicode support turned on but now works also without it (with limited ability to detect some Unicode blank spaces). + +4.6.005 (2009-04-25) + - Points (pt) conversion in getHTMLUnitToUnits() was fixed. + - Default tcpdf.pem certificate file was added. + - Experimental support for signing document was added but it is not yet completed (some help is needed - I think that the calculation of the ByteRange is OK and the problem is on the signature calculation). + +4.6.004 (2009-04-23) + - Method deletePage() was added to delete pages (see example n. 44). + +4.6.003 (2009-04-21) + - The caching mechanism of the UTF8StringToArray() method was fixed. + +4.6.002 (2009-04-20) + - Documentation of rollbackTransaction() method was fixed. + - The setImageScale() and getImageScale() methods now set and get the adjusting parameter used by pixelsToUnits() method. + - HTML images now support other units of measure than pixels (getHTMLUnitToUnits() is now used instead of pixelsToUnits()). + - WARNING: PDF_IMAGE_SCALE_RATIO has been changed by default to 1. + +4.6.001 (2009-04-17) + - Spaces between HTML block tags are now automatically removed. + - The bug related to cMargin changes between tables was fixed. + +4.6.000 (2009-04-16) + - WARNING: THIS VERSION CHANGES THE BEHAVIOUR OF $x and $y parameters for several TCPDF methods: + zero coordinates for $x and $y are now valid coordinates; + set $x and $y as empty strings to get the current value. + - Some error caused by 'empty' funtion were fixed. + - Default color for convertHTMLColorToDec() method was changed to white and the return value for invalid color is false. + - HTML on footer bug was fixed. + - The following examples were fixed: 5,7,10,17,19,20,21,33,42,43. + +4.5.043 (2009-04-15) + - Barcode class (barcode.php) was extended to include new linear barcode types (see example n. 27): + C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9 + C39+ : CODE 39 with checksum + C39E : CODE 39 EXTENDED + C39E+ : CODE 39 EXTENDED + CHECKSUM + C93 : CODE 93 - USS-93 + S25 : Standard 2 of 5 + S25+ : Standard 2 of 5 + CHECKSUM + I25 : Interleaved 2 of 5 + I25+ : Interleaved 2 of 5 + CHECKSUM + C128A : CODE 128 A + C128B : CODE 128 B + C128C : CODE 128 C + EAN2 : 2-Digits UPC-Based Extention + EAN5 : 5-Digits UPC-Based Extention + EAN8 : EAN 8 + EAN13 : EAN 13 + UPCA : UPC-A + UPCE : UPC-E + MSI : MSI (Variation of Plessey code) + MSI+ : MSI + CHECKSUM (modulo 11) + POSTNET : POSTNET + PLANET : PLANET + RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) + KIX : KIX (Klant index - Customer index) + IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200 (NOTE: requires BCMath PHP extension) + CODABAR : CODABAR + CODE11 : CODE 11 + PHARMA : PHARMACODE + PHARMA2T : PHARMACODE TWO-TRACKS + +4.5.042 (2009-04-15) + - Method Write() was fixed for the strings containing only zero value. + +4.5.041 (2009-04-14) + - Barcode methods were fixed. + +4.5.040 (2009-04-14) + - Method Write() was fixed to handle empty strings. + +4.5.039 (2009-04-11) + - Support for linear barcodes was extended (see example n. 27 and barcodes.php documentation). + +4.5.038 (2009-04-10) + - Write() method was improved to support separators for Japanese, Korean, Chinese Traditional and Chinese Simplified. + +4.5.037 (2009-04-09) + - General performances were improved. + - The signature of the method utf8Bidi() was changed. + - The method UniArrSubString() was added. + - Experimental support for 2D barcodes were added (see example n. 50 and 2dbarcodes.php class). + +4.5.036 (2009-04-03) + - TCPDF methods can be called inside the HTML code (see example n. 49). + - All tag attributes, such as

    must be enclosed within double quotes. + +4.5.035 (2009-03-28) + - Bug #2717436 "writeHTML rowspan problem (continued)" was fixed. + - Bug #2719090 "writeHTML fix follow up" was fixed. + - The method _putuserrights() was changed to avoid Adobe Reader 9.1 crash. This broken the 'trick' that was used to display forms in Acrobat Reader. + +4.5.034 (2009-03-27) + - Bug #2716914 "Bug writeHTML of a table in body and footer related with pb" was fixed. + - Bug #2717056 ] "writeHTML problem when setting tr style" was fixed. + - The signature of the Cell() method was changed. + +4.5.033 (2009-03-27) + - The support for rowspan/colspan on HTML tables was improved (see example n. 48). + +4.5.032 (2009-03-23) + - setPrintFooter(false) bug was fixed. + +4.5.031 (2009-03-20) + - Table header support was extended to multiple pages. + +4.5.030 (2009-03-20) + - thead tag is now supported on HTML tables (header rows are repeated after page breaks). + - The startTransaction() was improved to autocommit. + - List bullets now uses the foreground color (putHtmlListBullet()). + +4.5.029 (2009-03-19) + - The following methods were added to UNDO commands (see example 47): startTransaction(), commitTransaction(), rollbackTransaction(). + - All examples were updated. + +4.5.028 (2009-03-18) + - Bug #2690945 "List Bugs" was fixed. + - HTML text alignment on lists was fixed. + - The constant PDF_FONT_MONOSPACED was added to the configuration file to define the default monospaced font. + - The following methods were fixed: getPageWidth(), getPageHeight(), getBreakMargin(). + - All examples were updated. + +4.5.027 (2009-03-16) + - Method getPageDimensions() was added to get page dimensions. + - The signature of the following methos were changed: getPageWidth(), getPageHeight(), getBreakMargin(). + - _parsepng() method was fixed for PNG URL images (fread bug). + +4.5.026 (2009-03-11) + - Bug #2681793 affecting URL images with spaces was fixed. + +4.5.025 (2009-03-10) + - A small bug affecting hyphenation support was fixed. + - The method SetDefaultMonospacedFont() was added to define the default monospaced font. + +4.5.024 (2009-03-07) + - The bug #2666493 was fixed "Footer corrupts document". + +4.5.023 (2009-03-06) + - The bug #2666688 was fixed "Rowspan in tables". + +4.5.022 (2009-03-05) + - The bug #2659676 was fixed "refer to #2157099 test 4 < BR > problem still not fixed". + - addTOC() function bug was fixed. + +4.5.020 (2009-03-03) + - The following bug was fixed: "function removeSHY corrupts unicode". + +4.5.019 (2009-02-28) + - The problem of decimal separator using different locale was fixed. + - The text hyphenation is now supported (see example n. 46). + +4.5.018 (2009-02-26) + - The _destroy() method was added to unset all class variables and frees memory. + - Now it's possible to call Output() method multiple times. + +4.5.017 (2009-02-24) + - A minor bug that raises a PHP warning was fixed. + +4.5.016 (2009-02-24) + - Bug item #2631200 "getNumLines() counts wrong" was fixed. + - Multiple attachments bug was fixed. + - All class variables are now cleared on Output() for memory otpimization. + +4.5.015 (2009-02-18) + - Bug item #2612553 "function Write() must not break a line on   character" was fixed. + +4.5.014 (2009-02-13) + - Bug item #2595015 "POSTNET Barcode Checksum Error" was fixed (on barcode.php). + - Pagebreak bug for barcode was fixed. + +4.5.013 (2009-02-12) + - border attribute is now supported on HTML images (only accepts the same values accepted by Cell()). + +4.5.012 (2009-02-12) + - An error on image border feature was fixed. + +4.5.011 (2009-02-12) + - HTML links for images are now supported. + - height attribute is now supported on HTML cells. + - $border parameter was added to Image() and ImageEps() methods. + - The method getNumLines() was added to estimate the number of lines required for the specified text. + +4.5.010 (2009-01-29) + - Bug n. 2546108 "BarCode Y position" was fixed. + +4.5.009 (2009-01-26) + - Bug n. 2538094 "Empty pdf file created" was fixed. + +4.5.008 (2009-01-26) + - setPage() method was fixed to correctly restore graphic states. + - Source code was cleaned up for performances. + +4.5.007 (2009-01-24) + - checkPageBreak() and write1DBarcode() methods were fixed. + - Source code was cleaned up for performances. + - barcodes.php was updated. + +4.5.006 (2009-01-23) + - getHTMLUnitToPoints() method was replaced by getHTMLUnitToUnits() to fix HTML units bugs. + +4.5.005 (2009-01-23) + - Page closing bug was fixed. + +4.5.004 (2009-01-21) + - The access of convertHTMLColorToDec() method was changed to public + - Fixed bug on UL tag. + +4.5.003 (2009-01-19) + - Fonts on different folders are now supported. + +4.5.002 (2009-01-07) + - addTOC() function was improved (see example n. 45). + +4.5.001 (2009-01-04) + - The signature of startPageGroup() function was changed. + - Method Footer() was improved to automatically print page or page-group number (see example n. 23). + - Protected method formatTOCPageNumber() was added to customize the format of page numbers on the Table Of Content. + - The signature of addTOC() was changed to include the font used for page numbers. + +4.5.000 (2009-01-03) + - A new $diskcache parameter was added to class constructor to enable disk caching and reduce RAM memory usage (see example n. 43). + - The method movePageTo() was added to move pages to previous positions (see example n. 44). + - The methods getAliasNumPage() and getPageNumGroupAlias() were added to get the alias for page number (needed when using movepageTo()). + - The methods addTOC() was added to print a Table Of Content (see example n. 45). + - Imagick class constant was removed for better compatibility with PHP4. + - All existing examples were updated and new examples were added. + +4.4.009 (2008-12-29) + - Examples 1 and 35 were fixed. + +4.4.008 (2008-12-28) + - Bug #2472169 "Unordered bullet size not adjusted for unit type" was fixed. + +4.4.007 (2008-12-23) + - Bug #2459935 "no unit conversion for header line" was fixed. + - Example n. 42 for image alpha channel was added. + - All examples were updated. + +4.4.006 (2008-12-11) + - Method setLIsymbol() was changed to reflect latest changes in HTML list handling. + +4.4.005 (2008-12-10) + - Bug item #2413870 "ordered list override value" was fixed. + +4.4.004 (2008-12-10) + - The protected method getHTMLUnitToPoints() was added to accept various HTML units of measure (em, ex, px, in, cm, mm, pt, pc, %). + - The method intToRoman() was added to convert integer number to Roman representation. + - Support fot HTML lists was improved: the CSS property list-style-type is now supported. + +4.4.003 (2008-12-09) + - Bug item #2412147 "Warning on line 3367" was fixed. + - Method setHtmlLinksStyle() was added to set default HTML link colors and font style. + - Method addHtmlLink() was changed to use color and style defined on the inline CSS. + +4.4.002 (2008-12-09) + - Borders on Multicell() were fixed. + - Problem of Multicell() on Header function (Bug item #2407579) was fixed. + - Problem on graphics tranformations applied to Multicell() was fixed. + - Support for ImageMagick was added. + - Width calculation for nested tables was fixed. + +4.4.001 (2008-12-08) + - Some missing core fonts were added on fonts directory. + - CID0 fonts rendering was fixed. + - HTML support was improved (

     and  tags are now supported).
    +	- Bug item #2406022 "Left padding bug in MultiCell with maxh" was fixed.
    +
    +4.4.000 (2008-12-07)
    +	- File attachments are now supported (see example n. 41).
    +	- Font functions were optimized to reduce document size.
    +	- makefont.php was updated.
    +	- Linux binaries were added on /fonts/utils
    +	- All fonts were updated.
    +	- $autopadding parameter was added to Multicell() to disable automatic padding features.
    +	- $maxh parameter was added to Multicell() and Write() to set a maximum height.
    +
    +4.3.009 (2008-12-05)
    +	- Bug item #2392989 (Custom header + setlinewidth + cell border bug) was fixed.
    +
    +4.3.008 (2008-12-05)
    +	- Bug item #2390566 "rect bug" was fixed.
    +	- File path was fixed for font embedded files.
    +	- SetFont() method signature was changed to include the font filename.
    +	- Some font-related methods were improved.
    +	- Methods getFontFamily() and getFontStyle() were added.
    +
    +4.3.007 (2008-12-03)
    +	- PNG alpha channel is now supported (GD library is required).
    +	- AddFont() function now support custom font file path on $file parameter.
    +	- The default width variable ($dw) is now always defined for any font.
    +	- The 'Style' attribute on CID-0 fonts was removed because of protection bug.
    +
    +4.3.006 (2008-12-01)
    +	- A regular expression on getHtmlDomArray() to find HTML tags was fixed.
    +
    +4.3.005 (2008-11-25)
    +	- makefont.php was fixed.
    +	- Bug item #2339877 was fixed (false loop condition detected on WriteHTML()).
    +	- Bug item #2336733 was fixed (lasth value update on Multicell() when border and fill are disabled).
    +	- Bug item #2342303 was fixed (automatic page-break on Image() and ImageEPS()).
    +
    +4.3.004 (2008-11-19)
    +	- Function _textstring() was fixed (bug 2309051).
    +	- All examples were updated.
    +
    +4.3.003 (2008-11-18)
    +	- CID-0 font bug was fixed.
    +	- Some functions were optimized.
    +	- Function getGroupPageNoFormatted() was added.
    +	- Example n. 23 was updated.
    +
    +4.3.002 (2008-11-17)
    +	- Bug item #2305518 "CID-0 font don't work with encryption" was fixed.
    +
    +4.3.001 (2008-11-17)
    +	- Bug item #2300007 "download mimetype pdf" was fixed.
    +	- Double quotes were replaced by single quotes to improve PHP performances.
    +	- A bug relative to HTML cell borders was fixed.
    +
    +4.3.000 (2008-11-14)
    +	- The function setOpenCell() was added to set the top/bottom cell sides to be open or closed when the cell cross the page.
    +	- A bug relative to list items indentation was fixed.
    +	- A bug relative to borders on HTML tables and Multicell was fixed.
    +	- A bug relative to rowspanned cells was fixed.
    +	- A bug relative to html images across pages was fixed.
    +
    +4.2.009 (2008-11-13)
    +	- Spaces between li tags are now automatically removed.
    +
    +4.2.008 (2008-11-12)
    +	- A bug relative to fill color on next page was fixed.
    +
    +4.2.007 (2008-11-12)
    +	- The function setListIndentWidth() was added to set custom indentation widht for HTML lists.
    +
    +4.2.006 (2008-11-06)
    +	- A bug relative to HTML justification was fixed.
    +
    +4.2.005 (2008-11-06)
    +	- A bug relative to HTML justification was fixed.
    +	- The methods formatPageNumber() and PageNoFormatted() were added to format page numbers.
    +	- Default Footer() method was changed to use PageNoFormatted() instead of PageNo().
    +	- Example 6 was updated.
    +
    +4.2.004 (2008-11-04)
    +	- Bug item n. 2217039 "filename handling improvement" was fixed.
    +
    +4.2.003 (2008-10-31)
    +	- Font style bug was fixed.
    +
    +4.2.002 (2008-10-31)
    +	- Bug item #2210922 (htm element br not work) was fixed.
    +	- Write() function was improved to support margin changes.
    +
    +4.2.001 (2008-10-30)
    +	- setHtmlVSpace($tagvs) function was added to set custom vertical spaces for HTML tags.
    +	- writeHTML() function now support margin changes during execution.
    +	- Signature of addHTMLVertSpace() function is changed.
    +
    +4.2.000 (2008-10-29)
    +	- htmlcolors.php was changed to support class-loaders.
    +	- ImageEps() function was improved in performances.
    +	- Signature of Link() And Annotation() functions were changed.
    +	- (Bug item #2198926) Links and Annotations alignment were fixed (support for geometric tranformations was added).
    +	- rowspan mode for HTML table cells was improved and fixed.
    +	- Booklet mode for double-sided pages was added; see SetBooklet() function and example n. 40.
    +	- lastPage() signature is changed.
    +	- Signature of Write() function is changed.
    +	- Some HTML justification problems were fixed.
    +	- Some functions were fixed to better support RTL mode.
    +	- Example n. 10 was changed to support RTL mode.
    +	- All examples were updated.
    +
    +4.1.004 (2008-10-23)
    +	- unicode_data.php was changed to support class-loaders.
    +	- Bug item #2186040/2 (writeHTML margin problem) was fixed.
    +
    +4.1.003 (2008-10-22)
    +	- Bug item #2185399 was fixed (rowspan and page break).
    +	- Bugs item #2186040 was fixed (writeHTML margin problem).
    +	- Newline after table was removed.
    +
    +4.1.002 (2008-10-21)
    +	- Bug item #2184525 was fixed (rowspan on HTML cell).
    +
    +4.1.001 (2008-10-21)
    +	- Support for "start" attribute was added to HTML ordered list.
    +	- unicode_data.php file was changed to include UTF-8 to ASCII table.
    +	- Some functions were modified to better support UTF-8 extensions to core fonts.
    +	- Support for images on HTML lists was improved.
    +	- Examples n. 1 and 6 were updated.
    +
    +4.1.000 (2008-10-18)
    +	- Page-break bug using HTML content was fixed.
    +	- The "false" parameter was reintroduced to class_exists function on PHP5 version to avoid autoload.
    +	- addHtmlLink() function was improved to support internal links (i.e.: link to page 23).
    +	- Justification alignment is now supported on HTML (see example n. 39).
    +	- example_006.php was updated.
    +
    +4.0.033 (2008-10-13)
    +	- Bug n. 2157099 was fixed.
    +	- SetX() and SetY() functions were improved.
    +	- SetY() includes a new parameter to avoid the X reset.
    +
    +4.0.032 (2008-10-10)
    +	- Bug n. 2156926 was fixed (bold, italic, underlined, linethrough).
    +	- setStyle() method was removed.
    +	- Configuration file was changed to use helvetica (non-unicode) font by default.
    +	- The use of mixed font types was improved.
    +	- All examples were updated.
    +
    +4.0.031 (2008-10-09)
    +	- _putannots() and _putbookmarks() links alignments were fixed.
    +
    +4.0.030 (2008-10-07)
    +	- _putbookmarks() function was fixed.
    +	- _putannots() was fixed to include internal links.
    +
    +4.0.029 (2008-09-27)
    +	- Infinite loop bug was fixed [Bug item #130309].
    +	- Multicell() problem on Header() was fixed.
    +
    +4.0.028 (2008-09-26)
    +	- setLIsymbol() was added to set the LI symbol used on UL lists.
    +	- Missing $padding and $encryption_key variables declarations were added [Bug item #2129058].
    +
    +4.0.027 (2008-09-19)
    +	- Bug #2118588 "Undefined offset in tcpdf.php on line 9581" was fixed.
    +	- arailunicid0.php font was updated.
    +	- The problem of javascript form fields duplication after saving was fixed.
    +
    +4.0.026 (2008-09-17)
    +	- convertHTMLColorToDec() function was improved to support rgb(RR,GG,BB) notation.
    +	- The following inline CSS attributes are now supported: text-decoration, color, background-color and font-size names: xx-small, x-small, small, medium, large, x-large, xx-large
    +	- Example n. 6 was updated.
    +
    +4.0.025 (2008-09-15)
    +	- _putcidfont0 function was improved to include CJK fonts (Chinese, Japanese, Korean, CJK, Asian fonts) without embedding.
    +	- arialunicid0 font was added (see the new example n. 38).
    +	- The following Unicode to CID-0 tables were added on fonts folder: uni2cid_ak12.php, uni2cid_aj16.php, uni2cid_ag15.php, uni2cid_ac15.php.
    +
    +4.0.024 (2008-09-12)
    +	- "stripos" function was replaced with "strpos + strtolower" for backward compatibility with PHP4.
    +	- support for Spot Colors were added. Check the new example n. 37 and the following new functions:
    +		AddSpotColor()
    +		SetDrawSpotColor()
    +		SetFillSpotColor()
    +		SetTextSpotColor()
    +		_putspotcolors()
    +	- Bookmark() function was improved to fix wrong levels.
    +	- $lasth changes after header/footer calls were fixed.
    +
    +4.0.023 (2008-09-05)
    +	- Some HTML related problems were fixed.
    +	- Image alignment on HTML was changed, now it always defaults to the normal mode (see example_006.php).
    +
    +4.0.022 (2008-08-28)
    +	- Line height on HTML was fixed.
    +	- Image inside an HTML cell problem was fixed.
    +	- A new "zarbold" persian font was added.
    +
    +4.0.021 (2008-08-24)
    +	- HTTP headers were fixed on Output function().
    +	- getAliasNbPages() and getPageGroupAlias() functions were changed to support non-unicode fonts on unicode documents.
    +	- Function Write() was fixed.
    +	- The problem of additional vertical spaces on HTML was fixed.
    +	- The problem of frame around HTML links was fixed.
    +
    +4.0.020 (2008-08-15)
    +	- "[2052259] WriteHTML  & " bug was fixed.
    +
    +4.0.019 (2008-08-13)
    +	- "Rowspan on first cell" bug was fixed.
    +
    +4.0.018 (2008-08-08)
    +	- Default cellpadding for HTML tables was fixed.
    +	- Annotation() function was added to support some PDF annotations (see example_036.php and section 8.4 of PDF reference 1.7).
    +	- HTML links are now correclty shifted during line alignments.
    +	- function getAliasNbPages() was added and Footer() was updated.
    +	- RowSpan mode for HTML tables was fixed.
    +	- Bugs item #2043610 "Multiple sizes vertical align wrong" was fixed.
    +	- ImageEPS() function was improved and RTL alignment was fixed (see example_032.php).
    +
    +4.0.017 (2008-08-05)
    +	- Missing CNZ and CEO style modes were added to Rect() function.
    +	- Fonts utils were updated to include support for OpenType fonts.
    +	- getLastH() function was added.
    +
    +4.0.016 (2008-07-30)
    +	- setPageMark() function was added. This function must be called after calling Image() function for a background image.
    +
    +4.0.015 (2008-07-29)
    +	- Some functions were changed to support different page formats (see example_028.php).
    +	- The signature of setPage() function is changed.
    +
    +4.0.014 (2008-07-29)
    +	- K_PATH_MAIN calculation on tcpdf_config.php was fixed.
    +	- HTML support for EPS/AI images was added (see example_006.php).
    +	- Bugs item #2030807 "Truncated text on multipage html fields" was fixed.
    +	- PDF header bug was fixed.
    +	- helvetica was added as default font family.
    +	- Stroke mode was fixed on Text function.
    +	- several minor bugs were fixed.
    +
    +4.0.013 (2008-07-27)
    +	- Bugs item #2027799 " Big spaces between lines after page break" was fixed.
    +	- K_PATH_MAIN calculation on tcpdf_config.php was changed.
    +	- Function setVisibility() was fixed to avoid the "Incorrect PDEObject type" error message.
    +
    +4.0.012 (2008-07-24)
    +	- Addpage(), Header() and Footer() functions were changed to simplify the implementation of external header/footer functions.
    +	- The following functions were added:
    +			setHeader()
    +			setFooter()
    +			getImageRBX()
    +			getImageRBY()
    +			getCellHeightRatio()
    +			getHeaderFont()
    +			getFooterFont()
    +			getRTL()
    +			getBarcode()
    +			getHeaderData()
    +			getHeaderMargin()
    +			getFooterMargin()
    +
    +4.0.011 (2008-07-23)
    +	- Font support was improved.
    +	- The folder /fonts/utils contains new utilities and instructions for embedd font files.
    +	- Documentation was updated.
    +
    +4.0.010 (2008-07-22)
    +	- HTML tables were fixed to work across pages.
    +	- Header() and Footer() functions were updated to preserve previous settings.
    +	- example_035.php was added.
    +
    +4.0.009 (2008-07-21)
    +	- UTF8StringToArray() function was fixed for non-unicode mode.
    +
    +4.0.008 (2008-07-21)
    +	- Barcodes alignment was fixed (see example_027.php).
    +	- unicode_data.php was updated.
    +	- Arabic shaping for "Zero-Width Non-Joiner" character (U+200C) was fixed.
    +
    +4.0.007 (2008-07-18)
    +	- str_split was replaced by preg_split for compatibility with PHP4 version.
    +	- Clipping mode was added to all graphic functions by using parameter $style = "CNZ" or "CEO" (see example_034.php).
    +
    +4.0.006 (2008-07-16)
    +	- HTML rowspan bug was fixed.
    +	- Line style for MultiCell() was fixed.
    +	- WriteHTML() function was improved.
    +	- CODE128C barcode was fixed (barcodes.php).
    +
    +4.0.005 (2008-07-11)
    +	- Bug [2015715] "PHP Error/Warning" was fixed.
    +
    +4.0.004 (2008-07-09)
    +	- HTML cell internal padding was fixed.
    +
    +4.0.003 (2008-07-08)
    +	- Removed URL encoding when F option is selected on Output() function.
    +	- fixed some minor bugs in html tables.
    +
    +4.0.002 (2008-07-07)
    +	- Bug [2000861] was still unfixed and has been fixed.
    +
    +4.0.001 (2008-07-05)
    +	- Bug [2000861] was fixed.
    +
    +4.0.000 (2008-07-03)
    +	- THIS IS A MAIN RELEASE THAT INCLUDES SEVERAL NEW FEATURES AND BUGFIXES
    +	- Signature fo SetTextColor() and SetFillColor() functions was changed (parameter $storeprev was removed).
    +	- HTML support was completely rewritten and improved (see example 6).
    +	- Alignments parameters were fixed.
    +	- Functions GetArrStringWidth() and GetStringWidth() now include font parameters.
    +	- Fonts support was improved.
    +	- All core fonts were replaced and moved to fonts/ directory.
    +	- The following functions were added: getMargins(), getFontSize(), getFontSizePt().
    +	- File config/tcpdf_config_old.php was renamed tcpdf_config_alt.php and updated.
    +	- Multicell and WriteHTMLCell fill function was fixed.
    +	- Several minor bugs were fixed.
    +	- barcodes.php was updated.
    +	- All examples were updated.
    +
    +------------------------------------------------------------
    +
    +3.1.001 (2008-06-13)
    +	- Bug [1992515] "K_PATH_FONTS default value wrong" was fixed.
    +	- Vera font was removed, DejaVu font and Free fonts were updated.
    +	- Image handling was improved.
    +	- All examples were updated.
    +
    +3.1.000 (2008-06-11)
    +	- setPDFVersion() was added to change the default PDF version (currently 1.7).
    +	- setViewerPreferences() was added to control the way the document is to be presented on the screen or printed (see example 29).
    +	- SetDisplayMode() signature was changed (new options were added).
    +	- LinearGradient(), RadialGradient(), CoonsPatchMesh() functions were added to print various color gradients (see example 30).
    +	- PieSector() function was added to render render pie charts (see example 31).
    +	- ImageEps() was added to display EPS and AI images with limited support (see example 32).
    +	- writeBarcode() function is now depracated, a new write1DBarcode() function was added. The barcode directory was removed and a new barcodes.php file was added.
    +	- The new write1DBarcode() function support more barcodes and do not need the GD library (see example 027). All barcodes are directly written to PDF using graphic functions.
    +	- HTML lists were improved and could be nested (you may now represent trees).
    +	- AddFont() bug was fixed.
    +	- _putfonts() bug was fixed.
    +	- graphics functions were fixed.
    +	- unicode_data.php file was updated (fixed).
    +	- almohanad font was updated.
    +	- example 18 was updated (Farsi and Arabic languages).
    +	- source code cleanup.
    +	- All examples were updated and new examples were added.
    +
    +3.0.015 (2008-06-06)
    +	- AddPage() function signature is changed to include page format.
    +	- example 28 was added to show page format changes.
    +	- setPageUnit() function was added to change the page units of measure.
    +	- setPageFormat() function was added to change the page format and orientation between pages.
    +	- setPageOrientation() function was added to change the page orientation.
    +	- Arabic font shaping was fixed for laa letter and square boxes (see the example 18).
    +
    +3.0.014 (2008-06-04)
    +	- Arabic font shaping was fixed.
    +	- setDefaultTableColumns() function was added.
    +	- $cell_height_ratio variable was added.
    +	- setCellHeightRatio() function was added to define the default height of cell repect font height.
    +
    +3.0.013 (2008-06-03)
    +	- Multicell height parameter was fixed.
    +	- Arabic font shaping was improved.
    +	- unicode_data.php was updated.
    +
    +3.0.012 (2008-05-30)
    +	- K_PATH_MAIN and K_PATH_URL constants are now automatically set on config file.
    +	- DOCUMENT_ROOT constant was fixed for IIS Webserver (config file was updated).
    +	- Arabic font shaping was improved.
    +	- TranslateY() function was fixed (bug [1977962]).
    +	- setVisibility() function was fixed.
    +	- writeBarcode() function was fixed to scale using $xref parameter.
    +	- All examples were updated.
    +
    +3.0.011 (2008-05-23)
    +	- CMYK color support was added to all graphic functions.
    +	- HTML table support was improved:
    +	  -- now it's possible to include additional html tags inside a cell;
    +	  -- colspan attribute was added.
    +	- example 006 was updated.
    +
    +3.0.010 (2008-05-21)
    +	- fixed $laa_array inclusion on utf8Bidi() function.
    +
    +3.0.009 (2008-05-20)
    +	- unicode_data.php was updated.
    +	- Arabic laa letter problem was fixed.
    +
    +3.0.008 (2008-05-12)
    +	- Arabic support was fixed and improved (unicode_data.php was updated).
    +	- Polycurve() function was added to draw a poly-Bezier curve.
    +	- list items alignment was fixed.
    +	- example 6 was updated.
    +
    +3.0.007 (2008-05-06)
    +	- Arabic support was fixed and improved.
    +	- AlMohanad (arabic) font was added.
    +	- C128 barcode bugs were fixed.
    +
    +3.0.006 (2008-04-21)
    +	- Condition to check negative width values was added.
    +
    +3.0.005 (2008-04-18)
    +	- back-Slash character escape was fixed on writeHTML() function.
    +	- Exampe 6 was updated.
    +
    +3.0.004 (2008-04-11)
    +	- Bug [1939304] (Right to Left Issue) was fixed.
    +
    +3.0.003 (2008-04-07)
    +	- Bug [1934523](Words between HTML tags in cell not kept on one line) was fixed.
    +	- "face" attribute of "font" tag is now fully supported.
    +
    +3.0.002 (2008-04-01)
    +	- Write() functions now return the number of cells and not the number of lines.
    +	- TCPDF is released under LGPL 2.1, or any later version.
    +
    +3.0.001 (2008-05-28)
    +	- _legacyparsejpeg() and _legacyparsepng() were renamed _parsejpeg() and _parsepng().
    +	- function writeBarcode() was fixed.
    +	- all examples were updated.
    +	- example 27 was added to show various barcodes.
    +
    +3.0.000 (2008-03-27)
    +	- private function pixelsToMillimeters() was changed to public function pixelsToUnits() to fix html image size bug.
    +	- Image-related functions were rewritten.
    +	- resize parameter was added to Image() signature to reduce the image size and fit width and height (see example 9).
    +	- TCPDF now supports all images supported by GD library: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM.
    +	- CMYK support was added to SetDrawColor(), SetFillColor(), SetTextColor() (see example 22).
    +	- Page Groups were added (see example 23).
    +	- setVisibility() function was added to restrict the rendering of some elements to screen or printout (see example 24).
    +	- All private variables and functions were changed to protected.
    +	- setAlpha() function was added to give transparency support for all objects (see example 25).
    +	- Clipping and stroke modes were added to Text() function (see example 26).
    +	- All examples were moved to "examples" directory.
    +	- function setJPEGQuality() was added to set the JPEG image comrpession (see example 9).
    +
    +2.9.000 (2008-03-26)
    +	- htmlcolors.php file was added to include html colors.
    +	- Support for HTML color names and three-digit hexadecimal color codes was added.
    +	- private function convertColorHexToDec() was renamed convertHTMLColorToDec().
    +	- color and bgcolor attributes are now supported on all HTML tags (color nesting is also supported).
    +	- Write() function were fixed.
    +	- example_006.php was updated.
    +	- private function setUserRights() was added to release user rights on Acrobat Reader (this allows to display forms, see example 14)
    +
    +2.8.000 (2008-03-20)
    +	- Private variables were changed to protected.
    +	- Function Write() was fixed and improved.
    +	- Support for dl, dt, dd, del HTML tags was introduced.
    +	- Line-trought mode was added for HTML and text.
    +	- Text vertical alignment on cells were fixed.
    +	- Examples were updated to reflect changes.
    +
    +2.7.002 (2008-03-13)
    +	- Bug "[1912142] Encrypted PDF created/modified date" was fixed.
    +
    +2.7.001 (2008-03-10)
    +	- Cell justification was fixed for non-unicode mode.
    +
    +2.7.000 (2008-03-09)
    +	- Cell() stretching mode 4 (forced character spacing) was fixed.
    +	- writeHTMLCell() now uses Multicell() to write.
    +	- Multicell() has a new parameter $ishtml to act as writeHTMLCell().
    +	- Write() speed was improved for non-arabic strings.
    +	- Example n. 20 was changed.
    +
    +2.6.000 (2008-03-07)
    +	- various alignments bugs were fixed.
    +
    +2.5.000 (2008-03-07)
    +	- Several bugs were fixed.
    +	- example_019.php was added to test non-unicode mode using old fonts.
    +
    +2.4.000 (2008-03-06)
    +	- RTL support was deeply improved.
    +	- GetStringWidth() was fixed to support RTL languages.
    +	- Text() RTL alignment was fixed.
    +	- Some functions were added: GetArrStringWidth(), GetCharWidth(), uniord(), utf8Bidi().
    +	- example_018.php was added and test_unicode.php was removed.
    +
    +2.3.000 (2008-03-05)
    +	- MultiCell() signature is changed. Now support multiple columns across pages (see example_017).
    +	- Write() signature is changed. Now support the cell mode to be used with MultiCell.
    +	- Header() and Footer() were changed.
    +	- The following functions were added: UTF8ArrSubString() and unichr().
    +	- Examples were updated to reflect last changes.
    +
    +2.2.004 (2008-03-04)
    +	- Several examples were added.
    +	- AddPage() Header() and Footer() were fixed.
    +	- Documentation is now available on http://www.tcpdf.org
    +
    +2.2.003 (2008-03-03)
    +	- [1894853] Performance of MultiCell() was improved.
    +	- RadioButton and ListBox functions were added.
    +	- javascript form functions were rewritten and properties names are changed. The properties function supported by form fields are listed on Possible values are listed on http://www.adobe.com/devnet/acrobat/pdfs/js_developer_guide.pdf.
    +
    +2.2.002 (2008-02-28)
    +	- [1900495] html images path was fixed.
    +	- Legacy image functions were reintroduced to allow PNG and JPEG support without GD library.
    +
    +2.2.001 (2008-02-16)
    +	- The bug "[1894700] bug with replace relative path" was fixed
    +	- Justification was fixed
    +
    +2.2.000 (2008-02-12)
    +	- fixed javascript bug introduced with latest release
    +
    +2.1.002 (2008-02-12)
    +	- Justify function was fixed on PHP4 version.
    +	- Bookmank function was added ([1578250] Table of contents).
    +	- Javascript and Form fields support was added ([1796359] Form fields).
    +
    +2.1.001 (2008-02-10)
    +	- The bug "[1885776] Race Condition in function justitfy" was fixed.
    +	- The bug "[1890217] xpdf complains that pdf is incorrect" was fixed.
    +
    +2.1.000 (2008-01-07)
    +	- FPDF_FONTPATH constant was changed to K_PATH_FONTS on config file
    +	- Bidirectional Algorithm to correctly reverse bidirectional languages was added.
    +	- SetLeftMargin, SetTopMargin, SetRightMargin functions were fixed.
    +	- SetCellPadding function was added.
    +	- writeHTML was updated with new parameters.
    +	- Text function was fixed.
    +	- MultiCell function was fixed, now works also across multiple pages.
    +	- Line width was fixed on Header and Footer functions and 
    tag. + - "GetImageSize" was renamed "getimagesize". + - Document version was changed from 1.3 to 1.5. + - _begindoc() function was fixed. + - ChangeDate was fixed and ModDate was added. + - The following functions were added: + setPage() : Move pointer to the specified document page. + getPage() : Get current document page number. + lastpage() : Reset pointer to the last document page. + getNumPages() : Get the total number of inserted pages. + GetNumChars() : count the number of (UTF-8) characters in a string. + - $stretch parameter was added to Cell() function to fit text on cell: + 0 = disabled + 1 = horizontal scaling only if necessary + 2 = forced horizontal scaling + 3 = character spacing only if necessary + 4 = forced character spacing + - Line function was fixed for RTL. + - Graphic transformation functions were added [1811158]: + StartTransform() + StopTransform() + ScaleX() + ScaleY() + ScaleXY() + Scale() + MirrorH() + MirrorV() + MirrorP() + MirrorL() + TranslateX() + TranslateY() + Translate() + Rotate() + SkewX() + SkewY() + Skew() + - Graphic function were added/updated [1688549]: + SetLineStyle() + _outPoint() + _outLine() + _outRect() + _outCurve() + Line() + Rect() + Curve + Ellipse + Circle + Polygon + RegularPolygon + +2.0.000 (2008-01-04) + - RTL (Right-To-Left) languages support was added. Language direction is set using the $l['a_meta_dir'] setting on /configure/language/xxx.php language files. + - setRTL($enable) method was added to manually enable/disable the RTL text direction. + - The attribute "dir" was added to support custom text direction on HTML tags. Possible values are: ltr - for Left-To-Right and RTL for Right-To-Left. + - RC4 40bit encryption was added. Check the SetProtection method. + - [1815213] Improved image support for GIF, JPEG, PNG formats. + - [1800094] Attribute "value" was added to ordered list items
  • . + - Image function now has a new "align" parameter that indicates the alignment of the pointer next to image insertion and relative to image height. The value can be: + T: top-right for LTR or top-left for RTL + M: middle-right for LTR or middle-left for RTL + B: bottom-right for LTR or bottom-left for RTL + N: next line + - Attribute "align" was added to html tag to set the above image "align" parameter. Possible values are: + top: top-right for LTR or top-left for RTL + middle: middle-right for LTR or middle-left for RTL + bottom: bottom-right for LTR or bottom-left for RTL + - [1798103] newline was added after , and

    tages. + - [1816393] Documentation was updated. + - 'ln' parameter was fixed on writeHTMLCell. Now it's possible to print two or more columns across several pages; + - The method lastPage() was added to move the pointer on the last page; + +------------------------------------------------------------ + +1.53.0.TC034 (2007-07-30) + - fixed htmlentities conversion. + - MultiCell() function returns the number of cells. + +1.53.0.TC033 (2007-07-30) + - fixed bug 1762550: case sensitive for font files + - NOTE: all fonts files names must be in lowercase! + +1.53.0.TC032 (2007-07-27) + - setLastH method was added to resolve bug 1689071. + - all fonts names were converted in lowercase (bug 1713005). + - bug 1740954 was fixed. + - justification was added as Cell option. + +1.53.0.TC031 (2007-03-20) + - ToUnicode CMap were added on _puttruetypeunicode function. Now you may search and copy unicode text. + +1.53.0.TC030 (2007-03-06) + - fixed bug on PHP4 version. + +1.53.0.TC029 (2007-03-06) + - DejaVu Fonts were added. + +1.53.0.TC028 (2007-03-03) + - MultiCell function signature were changed: the $ln parameter were added. Check documentation for further information. + - Greek language were added on example sentences. + - setPrintHeader() and setPrintFooter() functions were added to enable or disable page header and footer. + +1.53.0.TC027 (2006-12-14) + - $attr['face'] bug were fixed. + - K_TCPDF_EXTERNAL_CONFIG control where introduced on /config/tcpdf_config.php to use external configuration files. + +1.53.0.TC026 (2006-10-28) + - writeHTML function call were fixed on examples. + +1.53.0.TC025 (2006-10-27) + - Bugs item #1421290 were fixed (0D - 0A substitution in some characters) + - Bugs item #1573174 were fixed (MultiCell documentation) + +1.53.0.TC024 (2006-09-26) + - getPageHeight() function were fixed (bug 1543476). + - fixed missing breaks on closedHTMLTagHandler function (bug 1535263). + - fixed extra spaces on Write function (bug 1535262). + +1.53.0.TC023 (2006-08-04) + - paths to barcode directory were fixed. + - documentation were updated. + +1.53.0.TC022 (2006-07-16) + - fixed bug: [ 1516858 ] Probs with PHP autoloader and class_exists() + +1.53.0.TC021 (2006-07-01) + - HTML attributes with whitespaces are now supported (thanks to Nelson Benitez for his support) + +1.53.0.TC020 (2006-06-23) + - code cleanup + +1.53.0.TC019 (2006-05-21) + - fixed and closing tags + +1.53.0.TC018 (2006-05-18) + - fixed font names bug + +1.53.0.TC017 (2006-05-18) + - the TTF2UFM utility to convert True Type fonts for TCPDF were included on fonts folder. + - new free unicode fonts were included on /fonts/freefont. + - test_unicode.php example were exended. + - parameter $fill were added on Write, writeHTML and writeHTMLCell functions. + - documentation were updated. + +1.53.0.TC016 (2006-03-09) + - fixed closing tag on html parser. + +1.53.0.TC016 (2005-08-28) + - fpdf.php and tcpdf.php files were joined in one single class (you can still extend TCPDF with your own class). + - fixed problem when mb_internal_encoding is set. + +1.53.0.TC014 (2005-05-29) + - fixed WriteHTMLCell new page issue. + +1.53.0.TC013 (2005-05-29) + - fixed WriteHTMLCell across pages. + +1.53.0.TC012 (2005-05-29) + - font color attribute bug were fixed. + +1.53.0.TC011 (2005-03-31) + - SetFont function were fixed (thank Sjaak Lauwers for bug notice). + +1.53.0.TC010 (2005-03-22) + - the html functions were improved (thanks to Manfred Vervuert for bug reporting). + +1.53.0.TC009 (2005-03-19) + - a wrong reference to convertColorHexToDec were fixed. + +1.53.0.TC008 (2005-02-07) + - removed some extra bytes from PHP files. + +1.53.0.TC007 (2005-01-08) + - fill attribute were removed from writeHTMLCell method. + +1.53.0.TC006 (2005-01-08) + - the documentation were updated. + +1.53.0.TC005 (2005-01-05) + - Steven Wittens's unicode methods were removed. + - All unicode methods were rewritten from scratch. + - TCPDF is now licensed as LGPL. + +1.53.0.TC004 (2005-01-04) + - this changelog were added. + - removed commercial fonts for licensing issue. + - Bitstream Vera Fonts were added (http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html). + - Now the AddFont and SetFont functions returns the basic font if the styled version do not exist. + +EOF -------------------------------------------------------- diff --git a/phplib/tcpdf/LICENSE.TXT b/phplib/tcpdf/LICENSE.TXT new file mode 100644 index 0000000..daf21f7 --- /dev/null +++ b/phplib/tcpdf/LICENSE.TXT @@ -0,0 +1,858 @@ +********************************************************************** +* TCPDF LICENSE +********************************************************************** + + TCPDF is free software: you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + +********************************************************************** +********************************************************************** + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + +********************************************************************** +********************************************************************** + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +********************************************************************** +********************************************************************** diff --git a/phplib/tcpdf/README.TXT b/phplib/tcpdf/README.TXT new file mode 100644 index 0000000..54db72f --- /dev/null +++ b/phplib/tcpdf/README.TXT @@ -0,0 +1,97 @@ +TCPDF - README +============================================================ + +I WISH TO IMPROVE AND EXPAND TCPDF BUT I NEED YOUR SUPPORT. +PLEASE MAKE A DONATION: +http://sourceforge.net/donate/index.php?group_id=128076 + +------------------------------------------------------------ + +Name: TCPDF +Version: 5.9.207 +Release date: 2013-03-04 +Author: Nicola Asuni + +Copyright (c) 2002-2013: + Nicola Asuni + Tecnick.com LTD + Manor Coach House, Church Hill + Aldershot, Hants, GU12 4RQ + UK + www.tecnick.com + +URLs: + http: www.tcpdf.org + http: www.sourceforge.net/projects/tcpdf + +Description: + TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions. + +Main Features: + * no external libraries are required for the basic functions; + * all standard page formats, custom page formats, custom margins and units of measure; + * UTF-8 Unicode and Right-To-Left languages; + * TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts; + * font subsetting; + * methods to publish some XHTML + CSS code, Javascript and Forms; + * images, graphic (geometric figures) and transformation methods; + * supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http: www.imagemagick.org/www/formats.html) + * 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417; + * JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies; + * automatic page header and footer management; + * document encryption up to 256 bit and digital signature certifications; + * transactions to UNDO commands; + * PDF annotations, including links, text and file attachments; + * text rendering modes (fill, stroke and clipping); + * multiple columns mode; + * no-write page regions; + * bookmarks, named destinations and table of content; + * text hyphenation; + * text stretching and spacing (tracking); + * automatic page break, line break and text alignments including justification; + * automatic page numbering and page groups; + * move and delete pages; + * page compression (requires php-zlib extension); + * XOBject Templates; + * Layers and object visibility. + * PDF/A-1b support. + +Installation (full instructions on http: www.tcpdf.org): + 1. copy the folder on your Web server + 2. set your installation path and other parameters on the config/tcpdf_config.php + 3. call the examples/example_001.php page with your browser to see an example + +Source Code Documentation: + http://www.tcpdf.org + +Additional Documentation: + http://www.tcpdf.org + +License + Copyright (C) 2002-2013 Nicola Asuni - Tecnick.com LTD + + TCPDF is free software: you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + TCPDF is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + + You should have received a copy of the License + along with TCPDF. If not, see + . + + See LICENSE.TXT file for more information. + +Third party fonts + This library includes third party font files released with different licenses. + These fonts are not required by TCPDF but have been included as you convenience. + The original TTF font files have been renamed for compatibility with TCPDF and compressed using the gzcompress PHP function that uses the ZLIB data format (.z files). + To get the original distribution archives please check the information on fonts subfolders: + - DejaVu fonts 2.33 (Bitstream) - Copyright, License and other info: fonts/dejavu-fonts-ttf-2.33 + - GNU FreeFont (GNU-GPLv3) - Copyright, License and other info: fonts/freefont-20100919 + +============================================================ diff --git a/phplib/tcpdf/barcodes.php b/phplib/tcpdf/barcodes.php new file mode 100644 index 0000000..a820d3f --- /dev/null +++ b/phplib/tcpdf/barcodes.php @@ -0,0 +1,2287 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : PHP class to creates array representations for +// common 1D barcodes to be used with TCPDF. +// +//============================================================+ + +/** + * @file + * PHP class to creates array representations for common 1D barcodes to be used with TCPDF. + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.025 + */ + +/** + * @class TCPDFBarcode + * PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).
    + * @package com.tecnick.tcpdf + * @version 1.0.025 + * @author Nicola Asuni + */ +class TCPDFBarcode { + + /** + * Array representation of barcode. + * @protected + */ + protected $barcode_array; + + /** + * This is the class constructor. + * Return an array representations for common 1D barcodes:
      + *
    • $arrcode['code'] code to be printed on text label
    • + *
    • $arrcode['maxh'] max barcode height
    • + *
    • $arrcode['maxw'] max barcode width
    • + *
    • $arrcode['bcode'][$k] single bar or space in $k position
    • + *
    • $arrcode['bcode'][$k]['t'] bar type: true = bar, false = space.
    • + *
    • $arrcode['bcode'][$k]['w'] bar width in units.
    • + *
    • $arrcode['bcode'][$k]['h'] bar height in units.
    • + *
    • $arrcode['bcode'][$k]['p'] bar top position (0 = top, 1 = middle)
    + * @param $code (string) code to print + * @param $type (string) type of barcode:
    • C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
    • C39+ : CODE 39 with checksum
    • C39E : CODE 39 EXTENDED
    • C39E+ : CODE 39 EXTENDED + CHECKSUM
    • C93 : CODE 93 - USS-93
    • S25 : Standard 2 of 5
    • S25+ : Standard 2 of 5 + CHECKSUM
    • I25 : Interleaved 2 of 5
    • I25+ : Interleaved 2 of 5 + CHECKSUM
    • C128 : CODE 128
    • C128A : CODE 128 A
    • C128B : CODE 128 B
    • C128C : CODE 128 C
    • EAN2 : 2-Digits UPC-Based Extention
    • EAN5 : 5-Digits UPC-Based Extention
    • EAN8 : EAN 8
    • EAN13 : EAN 13
    • UPCA : UPC-A
    • UPCE : UPC-E
    • MSI : MSI (Variation of Plessey code)
    • MSI+ : MSI + CHECKSUM (modulo 11)
    • POSTNET : POSTNET
    • PLANET : PLANET
    • RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
    • KIX : KIX (Klant index - Customer index)
    • IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200
    • CODABAR : CODABAR
    • CODE11 : CODE 11
    • PHARMA : PHARMACODE
    • PHARMA2T : PHARMACODE TWO-TRACKS
    + * @public + */ + public function __construct($code, $type) { + $this->setBarcode($code, $type); + } + + /** + * Return an array representations of barcode. + * @return array + * @public + */ + public function getBarcodeArray() { + return $this->barcode_array; + } + + /** + * Send barcode as SVG image object to the standard output. + * @param $w (int) Minimum width of a single bar in user units. + * @param $h (int) Height of barcode in user units. + * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). + * @public + */ + public function getBarcodeSVG($w=2, $h=30, $color='black') { + // send headers + $code = $this->getBarcodeSVGcode($w, $h, $color); + header('Content-Type: application/svg+xml'); + header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 + header('Pragma: public'); + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); + header('Content-Disposition: inline; filename="'.md5($code).'.svg";'); + //header('Content-Length: '.strlen($code)); + echo $code; + } + + /** + * Return a SVG string representation of barcode. + * @param $w (int) Minimum width of a single bar in user units. + * @param $h (int) Height of barcode in user units. + * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). + * @return string SVG code. + * @public + */ + public function getBarcodeSVGcode($w=2, $h=30, $color='black') { + // replace table for special characters + $repstr = array("\0" => '', '&' => '&', '<' => '<', '>' => '>'); + $svg = '<'.'?'.'xml version="1.0" standalone="no"'.'?'.'>'."\n"; + $svg .= ''."\n"; + $svg .= ''."\n"; + $svg .= "\t".''.strtr($this->barcode_array['code'], $repstr).''."\n"; + $svg .= "\t".''."\n"; + // print bars + $x = 0; + foreach ($this->barcode_array['bcode'] as $k => $v) { + $bw = round(($v['w'] * $w), 3); + $bh = round(($v['h'] * $h / $this->barcode_array['maxh']), 3); + if ($v['t']) { + $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); + // draw a vertical bar + $svg .= "\t\t".''."\n"; + } + $x += $bw; + } + $svg .= "\t".''."\n"; + $svg .= ''."\n"; + return $svg; + } + + /** + * Return an HTML representation of barcode. + * @param $w (int) Width of a single bar element in pixels. + * @param $h (int) Height of a single bar element in pixels. + * @param $color (string) Foreground color for bar elements (background is transparent). + * @return string HTML code. + * @public + */ + public function getBarcodeHTML($w=2, $h=30, $color='black') { + $html = '
    '."\n"; + // print bars + $x = 0; + foreach ($this->barcode_array['bcode'] as $k => $v) { + $bw = round(($v['w'] * $w), 3); + $bh = round(($v['h'] * $h / $this->barcode_array['maxh']), 3); + if ($v['t']) { + $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); + // draw a vertical bar + $html .= '
     
    '."\n"; + } + $x += $bw; + } + $html .= '
    '."\n"; + return $html; + } + + /** + * Return a PNG image representation of barcode (requires GD or Imagick library). + * @param $w (int) Width of a single bar element in pixels. + * @param $h (int) Height of a single bar element in pixels. + * @param $color (array) RGB (0-255) foreground color for bar elements (background is transparent). + * @return image or false in case of error. + * @public + */ + public function getBarcodePNG($w=2, $h=30, $color=array(0,0,0)) { + // calculate image size + $width = ($this->barcode_array['maxw'] * $w); + $height = $h; + if (function_exists('imagecreate')) { + // GD library + $imagick = false; + $png = imagecreate($width, $height); + $bgcol = imagecolorallocate($png, 255, 255, 255); + imagecolortransparent($png, $bgcol); + $fgcol = imagecolorallocate($png, $color[0], $color[1], $color[2]); + } elseif (extension_loaded('imagick')) { + $imagick = true; + $bgcol = new imagickpixel('rgb(255,255,255'); + $fgcol = new imagickpixel('rgb('.$color[0].','.$color[1].','.$color[2].')'); + $png = new Imagick(); + $png->newImage($width, $height, 'none', 'png'); + $bar = new imagickdraw(); + $bar->setfillcolor($fgcol); + } else { + return false; + } + // print bars + $x = 0; + foreach ($this->barcode_array['bcode'] as $k => $v) { + $bw = round(($v['w'] * $w), 3); + $bh = round(($v['h'] * $h / $this->barcode_array['maxh']), 3); + if ($v['t']) { + $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); + // draw a vertical bar + if ($imagick) { + $bar->rectangle($x, $y, ($x + $bw - 1), ($y + $bh - 1)); + } else { + imagefilledrectangle($png, $x, $y, ($x + $bw - 1), ($y + $bh - 1), $fgcol); + } + } + $x += $bw; + } + // send headers + header('Content-Type: image/png'); + header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 + header('Pragma: public'); + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); + if ($imagick) { + $png->drawimage($bar); + echo $png; + } else { + imagepng($png); + imagedestroy($png); + } + } + + /** + * Set the barcode. + * @param $code (string) code to print + * @param $type (string) type of barcode:
    • C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
    • C39+ : CODE 39 with checksum
    • C39E : CODE 39 EXTENDED
    • C39E+ : CODE 39 EXTENDED + CHECKSUM
    • C93 : CODE 93 - USS-93
    • S25 : Standard 2 of 5
    • S25+ : Standard 2 of 5 + CHECKSUM
    • I25 : Interleaved 2 of 5
    • I25+ : Interleaved 2 of 5 + CHECKSUM
    • C128 : CODE 128
    • C128A : CODE 128 A
    • C128B : CODE 128 B
    • C128C : CODE 128 C
    • EAN2 : 2-Digits UPC-Based Extention
    • EAN5 : 5-Digits UPC-Based Extention
    • EAN8 : EAN 8
    • EAN13 : EAN 13
    • UPCA : UPC-A
    • UPCE : UPC-E
    • MSI : MSI (Variation of Plessey code)
    • MSI+ : MSI + CHECKSUM (modulo 11)
    • POSTNET : POSTNET
    • PLANET : PLANET
    • RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
    • KIX : KIX (Klant index - Customer index)
    • IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200
    • CODABAR : CODABAR
    • CODE11 : CODE 11
    • PHARMA : PHARMACODE
    • PHARMA2T : PHARMACODE TWO-TRACKS
    + * @return array barcode array + * @public + */ + public function setBarcode($code, $type) { + switch (strtoupper($type)) { + case 'C39': { // CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. + $arrcode = $this->barcode_code39($code, false, false); + break; + } + case 'C39+': { // CODE 39 with checksum + $arrcode = $this->barcode_code39($code, false, true); + break; + } + case 'C39E': { // CODE 39 EXTENDED + $arrcode = $this->barcode_code39($code, true, false); + break; + } + case 'C39E+': { // CODE 39 EXTENDED + CHECKSUM + $arrcode = $this->barcode_code39($code, true, true); + break; + } + case 'C93': { // CODE 93 - USS-93 + $arrcode = $this->barcode_code93($code); + break; + } + case 'S25': { // Standard 2 of 5 + $arrcode = $this->barcode_s25($code, false); + break; + } + case 'S25+': { // Standard 2 of 5 + CHECKSUM + $arrcode = $this->barcode_s25($code, true); + break; + } + case 'I25': { // Interleaved 2 of 5 + $arrcode = $this->barcode_i25($code, false); + break; + } + case 'I25+': { // Interleaved 2 of 5 + CHECKSUM + $arrcode = $this->barcode_i25($code, true); + break; + } + case 'C128': { // CODE 128 + $arrcode = $this->barcode_c128($code, ''); + break; + } + case 'C128A': { // CODE 128 A + $arrcode = $this->barcode_c128($code, 'A'); + break; + } + case 'C128B': { // CODE 128 B + $arrcode = $this->barcode_c128($code, 'B'); + break; + } + case 'C128C': { // CODE 128 C + $arrcode = $this->barcode_c128($code, 'C'); + break; + } + case 'EAN2': { // 2-Digits UPC-Based Extention + $arrcode = $this->barcode_eanext($code, 2); + break; + } + case 'EAN5': { // 5-Digits UPC-Based Extention + $arrcode = $this->barcode_eanext($code, 5); + break; + } + case 'EAN8': { // EAN 8 + $arrcode = $this->barcode_eanupc($code, 8); + break; + } + case 'EAN13': { // EAN 13 + $arrcode = $this->barcode_eanupc($code, 13); + break; + } + case 'UPCA': { // UPC-A + $arrcode = $this->barcode_eanupc($code, 12); + break; + } + case 'UPCE': { // UPC-E + $arrcode = $this->barcode_eanupc($code, 6); + break; + } + case 'MSI': { // MSI (Variation of Plessey code) + $arrcode = $this->barcode_msi($code, false); + break; + } + case 'MSI+': { // MSI + CHECKSUM (modulo 11) + $arrcode = $this->barcode_msi($code, true); + break; + } + case 'POSTNET': { // POSTNET + $arrcode = $this->barcode_postnet($code, false); + break; + } + case 'PLANET': { // PLANET + $arrcode = $this->barcode_postnet($code, true); + break; + } + case 'RMS4CC': { // RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) + $arrcode = $this->barcode_rms4cc($code, false); + break; + } + case 'KIX': { // KIX (Klant index - Customer index) + $arrcode = $this->barcode_rms4cc($code, true); + break; + } + case 'IMB': { // IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 + $arrcode = $this->barcode_imb($code); + break; + } + case 'CODABAR': { // CODABAR + $arrcode = $this->barcode_codabar($code); + break; + } + case 'CODE11': { // CODE 11 + $arrcode = $this->barcode_code11($code); + break; + } + case 'PHARMA': { // PHARMACODE + $arrcode = $this->barcode_pharmacode($code); + break; + } + case 'PHARMA2T': { // PHARMACODE TWO-TRACKS + $arrcode = $this->barcode_pharmacode2t($code); + break; + } + default: { + $this->barcode_array = false; + $arrcode = false; + break; + } + } + $this->barcode_array = $arrcode; + } + + /** + * CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. + * General-purpose code in very wide use world-wide + * @param $code (string) code to represent. + * @param $extended (boolean) if true uses the extended mode. + * @param $checksum (boolean) if true add a checksum to the code. + * @return array barcode representation. + * @protected + */ + protected function barcode_code39($code, $extended=false, $checksum=false) { + $chr['0'] = '111331311'; + $chr['1'] = '311311113'; + $chr['2'] = '113311113'; + $chr['3'] = '313311111'; + $chr['4'] = '111331113'; + $chr['5'] = '311331111'; + $chr['6'] = '113331111'; + $chr['7'] = '111311313'; + $chr['8'] = '311311311'; + $chr['9'] = '113311311'; + $chr['A'] = '311113113'; + $chr['B'] = '113113113'; + $chr['C'] = '313113111'; + $chr['D'] = '111133113'; + $chr['E'] = '311133111'; + $chr['F'] = '113133111'; + $chr['G'] = '111113313'; + $chr['H'] = '311113311'; + $chr['I'] = '113113311'; + $chr['J'] = '111133311'; + $chr['K'] = '311111133'; + $chr['L'] = '113111133'; + $chr['M'] = '313111131'; + $chr['N'] = '111131133'; + $chr['O'] = '311131131'; + $chr['P'] = '113131131'; + $chr['Q'] = '111111333'; + $chr['R'] = '311111331'; + $chr['S'] = '113111331'; + $chr['T'] = '111131331'; + $chr['U'] = '331111113'; + $chr['V'] = '133111113'; + $chr['W'] = '333111111'; + $chr['X'] = '131131113'; + $chr['Y'] = '331131111'; + $chr['Z'] = '133131111'; + $chr['-'] = '131111313'; + $chr['.'] = '331111311'; + $chr[' '] = '133111311'; + $chr['$'] = '131313111'; + $chr['/'] = '131311131'; + $chr['+'] = '131113131'; + $chr['%'] = '111313131'; + $chr['*'] = '131131311'; + $code = strtoupper($code); + if ($extended) { + // extended mode + $code = $this->encode_code39_ext($code); + } + if ($code === false) { + return false; + } + if ($checksum) { + // checksum + $code .= $this->checksum_code39($code); + } + // add start and stop codes + $code = '*'.$code.'*'; + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $k = 0; + $clen = strlen($code); + for ($i = 0; $i < $clen; ++$i) { + $char = $code{$i}; + if(!isset($chr[$char])) { + // invalid character + return false; + } + for ($j = 0; $j < 9; ++$j) { + if (($j % 2) == 0) { + $t = true; // bar + } else { + $t = false; // space + } + $w = $chr[$char]{$j}; + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + } + // intercharacter gap + $bararray['bcode'][$k] = array('t' => false, 'w' => 1, 'h' => 1, 'p' => 0); + $bararray['maxw'] += 1; + ++$k; + } + return $bararray; + } + + /** + * Encode a string to be used for CODE 39 Extended mode. + * @param $code (string) code to represent. + * @return encoded string. + * @protected + */ + protected function encode_code39_ext($code) { + $encode = array( + chr(0) => '%U', chr(1) => '$A', chr(2) => '$B', chr(3) => '$C', + chr(4) => '$D', chr(5) => '$E', chr(6) => '$F', chr(7) => '$G', + chr(8) => '$H', chr(9) => '$I', chr(10) => '$J', chr(11) => '£K', + chr(12) => '$L', chr(13) => '$M', chr(14) => '$N', chr(15) => '$O', + chr(16) => '$P', chr(17) => '$Q', chr(18) => '$R', chr(19) => '$S', + chr(20) => '$T', chr(21) => '$U', chr(22) => '$V', chr(23) => '$W', + chr(24) => '$X', chr(25) => '$Y', chr(26) => '$Z', chr(27) => '%A', + chr(28) => '%B', chr(29) => '%C', chr(30) => '%D', chr(31) => '%E', + chr(32) => ' ', chr(33) => '/A', chr(34) => '/B', chr(35) => '/C', + chr(36) => '/D', chr(37) => '/E', chr(38) => '/F', chr(39) => '/G', + chr(40) => '/H', chr(41) => '/I', chr(42) => '/J', chr(43) => '/K', + chr(44) => '/L', chr(45) => '-', chr(46) => '.', chr(47) => '/O', + chr(48) => '0', chr(49) => '1', chr(50) => '2', chr(51) => '3', + chr(52) => '4', chr(53) => '5', chr(54) => '6', chr(55) => '7', + chr(56) => '8', chr(57) => '9', chr(58) => '/Z', chr(59) => '%F', + chr(60) => '%G', chr(61) => '%H', chr(62) => '%I', chr(63) => '%J', + chr(64) => '%V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C', + chr(68) => 'D', chr(69) => 'E', chr(70) => 'F', chr(71) => 'G', + chr(72) => 'H', chr(73) => 'I', chr(74) => 'J', chr(75) => 'K', + chr(76) => 'L', chr(77) => 'M', chr(78) => 'N', chr(79) => 'O', + chr(80) => 'P', chr(81) => 'Q', chr(82) => 'R', chr(83) => 'S', + chr(84) => 'T', chr(85) => 'U', chr(86) => 'V', chr(87) => 'W', + chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => '%K', + chr(92) => '%L', chr(93) => '%M', chr(94) => '%N', chr(95) => '%O', + chr(96) => '%W', chr(97) => '+A', chr(98) => '+B', chr(99) => '+C', + chr(100) => '+D', chr(101) => '+E', chr(102) => '+F', chr(103) => '+G', + chr(104) => '+H', chr(105) => '+I', chr(106) => '+J', chr(107) => '+K', + chr(108) => '+L', chr(109) => '+M', chr(110) => '+N', chr(111) => '+O', + chr(112) => '+P', chr(113) => '+Q', chr(114) => '+R', chr(115) => '+S', + chr(116) => '+T', chr(117) => '+U', chr(118) => '+V', chr(119) => '+W', + chr(120) => '+X', chr(121) => '+Y', chr(122) => '+Z', chr(123) => '%P', + chr(124) => '%Q', chr(125) => '%R', chr(126) => '%S', chr(127) => '%T'); + $code_ext = ''; + $clen = strlen($code); + for ($i = 0 ; $i < $clen; ++$i) { + if (ord($code{$i}) > 127) { + return false; + } + $code_ext .= $encode[$code{$i}]; + } + return $code_ext; + } + + /** + * Calculate CODE 39 checksum (modulo 43). + * @param $code (string) code to represent. + * @return char checksum. + * @protected + */ + protected function checksum_code39($code) { + $chars = array( + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', + 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', + 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%'); + $sum = 0; + $clen = strlen($code); + for ($i = 0 ; $i < $clen; ++$i) { + $k = array_keys($chars, $code{$i}); + $sum += $k[0]; + } + $j = ($sum % 43); + return $chars[$j]; + } + + /** + * CODE 93 - USS-93 + * Compact code similar to Code 39 + * @param $code (string) code to represent. + * @return array barcode representation. + * @protected + */ + protected function barcode_code93($code) { + $chr[48] = '131112'; // 0 + $chr[49] = '111213'; // 1 + $chr[50] = '111312'; // 2 + $chr[51] = '111411'; // 3 + $chr[52] = '121113'; // 4 + $chr[53] = '121212'; // 5 + $chr[54] = '121311'; // 6 + $chr[55] = '111114'; // 7 + $chr[56] = '131211'; // 8 + $chr[57] = '141111'; // 9 + $chr[65] = '211113'; // A + $chr[66] = '211212'; // B + $chr[67] = '211311'; // C + $chr[68] = '221112'; // D + $chr[69] = '221211'; // E + $chr[70] = '231111'; // F + $chr[71] = '112113'; // G + $chr[72] = '112212'; // H + $chr[73] = '112311'; // I + $chr[74] = '122112'; // J + $chr[75] = '132111'; // K + $chr[76] = '111123'; // L + $chr[77] = '111222'; // M + $chr[78] = '111321'; // N + $chr[79] = '121122'; // O + $chr[80] = '131121'; // P + $chr[81] = '212112'; // Q + $chr[82] = '212211'; // R + $chr[83] = '211122'; // S + $chr[84] = '211221'; // T + $chr[85] = '221121'; // U + $chr[86] = '222111'; // V + $chr[87] = '112122'; // W + $chr[88] = '112221'; // X + $chr[89] = '122121'; // Y + $chr[90] = '123111'; // Z + $chr[45] = '121131'; // - + $chr[46] = '311112'; // . + $chr[32] = '311211'; // + $chr[36] = '321111'; // $ + $chr[47] = '112131'; // / + $chr[43] = '113121'; // + + $chr[37] = '211131'; // % + $chr[128] = '121221'; // ($) + $chr[129] = '311121'; // (/) + $chr[130] = '122211'; // (+) + $chr[131] = '312111'; // (%) + $chr[42] = '111141'; // start-stop + $code = strtoupper($code); + $encode = array( + chr(0) => chr(131).'U', chr(1) => chr(128).'A', chr(2) => chr(128).'B', chr(3) => chr(128).'C', + chr(4) => chr(128).'D', chr(5) => chr(128).'E', chr(6) => chr(128).'F', chr(7) => chr(128).'G', + chr(8) => chr(128).'H', chr(9) => chr(128).'I', chr(10) => chr(128).'J', chr(11) => '£K', + chr(12) => chr(128).'L', chr(13) => chr(128).'M', chr(14) => chr(128).'N', chr(15) => chr(128).'O', + chr(16) => chr(128).'P', chr(17) => chr(128).'Q', chr(18) => chr(128).'R', chr(19) => chr(128).'S', + chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W', + chr(24) => chr(128).'X', chr(25) => chr(128).'Y', chr(26) => chr(128).'Z', chr(27) => chr(131).'A', + chr(28) => chr(131).'B', chr(29) => chr(131).'C', chr(30) => chr(131).'D', chr(31) => chr(131).'E', + chr(32) => ' ', chr(33) => chr(129).'A', chr(34) => chr(129).'B', chr(35) => chr(129).'C', + chr(36) => chr(129).'D', chr(37) => chr(129).'E', chr(38) => chr(129).'F', chr(39) => chr(129).'G', + chr(40) => chr(129).'H', chr(41) => chr(129).'I', chr(42) => chr(129).'J', chr(43) => chr(129).'K', + chr(44) => chr(129).'L', chr(45) => '-', chr(46) => '.', chr(47) => chr(129).'O', + chr(48) => '0', chr(49) => '1', chr(50) => '2', chr(51) => '3', + chr(52) => '4', chr(53) => '5', chr(54) => '6', chr(55) => '7', + chr(56) => '8', chr(57) => '9', chr(58) => chr(129).'Z', chr(59) => chr(131).'F', + chr(60) => chr(131).'G', chr(61) => chr(131).'H', chr(62) => chr(131).'I', chr(63) => chr(131).'J', + chr(64) => chr(131).'V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C', + chr(68) => 'D', chr(69) => 'E', chr(70) => 'F', chr(71) => 'G', + chr(72) => 'H', chr(73) => 'I', chr(74) => 'J', chr(75) => 'K', + chr(76) => 'L', chr(77) => 'M', chr(78) => 'N', chr(79) => 'O', + chr(80) => 'P', chr(81) => 'Q', chr(82) => 'R', chr(83) => 'S', + chr(84) => 'T', chr(85) => 'U', chr(86) => 'V', chr(87) => 'W', + chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => chr(131).'K', + chr(92) => chr(131).'L', chr(93) => chr(131).'M', chr(94) => chr(131).'N', chr(95) => chr(131).'O', + chr(96) => chr(131).'W', chr(97) => chr(130).'A', chr(98) => chr(130).'B', chr(99) => chr(130).'C', + chr(100) => chr(130).'D', chr(101) => chr(130).'E', chr(102) => chr(130).'F', chr(103) => chr(130).'G', + chr(104) => chr(130).'H', chr(105) => chr(130).'I', chr(106) => chr(130).'J', chr(107) => chr(130).'K', + chr(108) => chr(130).'L', chr(109) => chr(130).'M', chr(110) => chr(130).'N', chr(111) => chr(130).'O', + chr(112) => chr(130).'P', chr(113) => chr(130).'Q', chr(114) => chr(130).'R', chr(115) => chr(130).'S', + chr(116) => chr(130).'T', chr(117) => chr(130).'U', chr(118) => chr(130).'V', chr(119) => chr(130).'W', + chr(120) => chr(130).'X', chr(121) => chr(130).'Y', chr(122) => chr(130).'Z', chr(123) => chr(131).'P', + chr(124) => chr(131).'Q', chr(125) => chr(131).'R', chr(126) => chr(131).'S', chr(127) => chr(131).'T'); + $code_ext = ''; + $clen = strlen($code); + for ($i = 0 ; $i < $clen; ++$i) { + if (ord($code{$i}) > 127) { + return false; + } + $code_ext .= $encode[$code{$i}]; + } + // checksum + $code_ext .= $this->checksum_code93($code_ext); + // add start and stop codes + $code = '*'.$code_ext.'*'; + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $k = 0; + $clen = strlen($code); + for ($i = 0; $i < $clen; ++$i) { + $char = ord($code{$i}); + if(!isset($chr[$char])) { + // invalid character + return false; + } + for ($j = 0; $j < 6; ++$j) { + if (($j % 2) == 0) { + $t = true; // bar + } else { + $t = false; // space + } + $w = $chr[$char]{$j}; + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + } + } + $bararray['bcode'][$k] = array('t' => true, 'w' => 1, 'h' => 1, 'p' => 0); + $bararray['maxw'] += 1; + ++$k; + return $bararray; + } + + /** + * Calculate CODE 93 checksum (modulo 47). + * @param $code (string) code to represent. + * @return string checksum code. + * @protected + */ + protected function checksum_code93($code) { + $chars = array( + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', + 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', + 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%', + '<', '=', '>', '?'); + // translate special characters + $code = strtr($code, chr(128).chr(131).chr(129).chr(130), '<=>?'); + $len = strlen($code); + // calculate check digit C + $p = 1; + $check = 0; + for ($i = ($len - 1); $i >= 0; --$i) { + $k = array_keys($chars, $code{$i}); + $check += ($k[0] * $p); + ++$p; + if ($p > 20) { + $p = 1; + } + } + $check %= 47; + $c = $chars[$check]; + $code .= $c; + // calculate check digit K + $p = 1; + $check = 0; + for ($i = $len; $i >= 0; --$i) { + $k = array_keys($chars, $code{$i}); + $check += ($k[0] * $p); + ++$p; + if ($p > 15) { + $p = 1; + } + } + $check %= 47; + $k = $chars[$check]; + $checksum = $c.$k; + // resto respecial characters + $checksum = strtr($checksum, '<=>?', chr(128).chr(131).chr(129).chr(130)); + return $checksum; + } + + /** + * Checksum for standard 2 of 5 barcodes. + * @param $code (string) code to process. + * @return int checksum. + * @protected + */ + protected function checksum_s25($code) { + $len = strlen($code); + $sum = 0; + for ($i = 0; $i < $len; $i+=2) { + $sum += $code{$i}; + } + $sum *= 3; + for ($i = 1; $i < $len; $i+=2) { + $sum += ($code{$i}); + } + $r = $sum % 10; + if($r > 0) { + $r = (10 - $r); + } + return $r; + } + + /** + * MSI. + * Variation of Plessey code, with similar applications + * Contains digits (0 to 9) and encodes the data only in the width of bars. + * @param $code (string) code to represent. + * @param $checksum (boolean) if true add a checksum to the code (modulo 11) + * @return array barcode representation. + * @protected + */ + protected function barcode_msi($code, $checksum=false) { + $chr['0'] = '100100100100'; + $chr['1'] = '100100100110'; + $chr['2'] = '100100110100'; + $chr['3'] = '100100110110'; + $chr['4'] = '100110100100'; + $chr['5'] = '100110100110'; + $chr['6'] = '100110110100'; + $chr['7'] = '100110110110'; + $chr['8'] = '110100100100'; + $chr['9'] = '110100100110'; + $chr['A'] = '110100110100'; + $chr['B'] = '110100110110'; + $chr['C'] = '110110100100'; + $chr['D'] = '110110100110'; + $chr['E'] = '110110110100'; + $chr['F'] = '110110110110'; + if ($checksum) { + // add checksum + $clen = strlen($code); + $p = 2; + $check = 0; + for ($i = ($clen - 1); $i >= 0; --$i) { + $check += (hexdec($code{$i}) * $p); + ++$p; + if ($p > 7) { + $p = 2; + } + } + $check %= 11; + if ($check > 0) { + $check = 11 - $check; + } + $code .= $check; + } + $seq = '110'; // left guard + $clen = strlen($code); + for ($i = 0; $i < $clen; ++$i) { + $digit = $code{$i}; + if (!isset($chr[$digit])) { + // invalid character + return false; + } + $seq .= $chr[$digit]; + } + $seq .= '1001'; // right guard + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + return $this->binseq_to_array($seq, $bararray); + } + + /** + * Standard 2 of 5 barcodes. + * Used in airline ticket marking, photofinishing + * Contains digits (0 to 9) and encodes the data only in the width of bars. + * @param $code (string) code to represent. + * @param $checksum (boolean) if true add a checksum to the code + * @return array barcode representation. + * @protected + */ + protected function barcode_s25($code, $checksum=false) { + $chr['0'] = '10101110111010'; + $chr['1'] = '11101010101110'; + $chr['2'] = '10111010101110'; + $chr['3'] = '11101110101010'; + $chr['4'] = '10101110101110'; + $chr['5'] = '11101011101010'; + $chr['6'] = '10111011101010'; + $chr['7'] = '10101011101110'; + $chr['8'] = '10101110111010'; + $chr['9'] = '10111010111010'; + if ($checksum) { + // add checksum + $code .= $this->checksum_s25($code); + } + if((strlen($code) % 2) != 0) { + // add leading zero if code-length is odd + $code = '0'.$code; + } + $seq = '11011010'; + $clen = strlen($code); + for ($i = 0; $i < $clen; ++$i) { + $digit = $code{$i}; + if (!isset($chr[$digit])) { + // invalid character + return false; + } + $seq .= $chr[$digit]; + } + $seq .= '1101011'; + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + return $this->binseq_to_array($seq, $bararray); + } + + /** + * Convert binary barcode sequence to TCPDF barcode array. + * @param $seq (string) barcode as binary sequence. + * @param $bararray (array) barcode array. + * òparam array $bararray TCPDF barcode array to fill up + * @return array barcode representation. + * @protected + */ + protected function binseq_to_array($seq, $bararray) { + $len = strlen($seq); + $w = 0; + $k = 0; + for ($i = 0; $i < $len; ++$i) { + $w += 1; + if (($i == ($len - 1)) OR (($i < ($len - 1)) AND ($seq{$i} != $seq{($i+1)}))) { + if ($seq{$i} == '1') { + $t = true; // bar + } else { + $t = false; // space + } + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + $w = 0; + } + } + return $bararray; + } + + /** + * Interleaved 2 of 5 barcodes. + * Compact numeric code, widely used in industry, air cargo + * Contains digits (0 to 9) and encodes the data in the width of both bars and spaces. + * @param $code (string) code to represent. + * @param $checksum (boolean) if true add a checksum to the code + * @return array barcode representation. + * @protected + */ + protected function barcode_i25($code, $checksum=false) { + $chr['0'] = '11221'; + $chr['1'] = '21112'; + $chr['2'] = '12112'; + $chr['3'] = '22111'; + $chr['4'] = '11212'; + $chr['5'] = '21211'; + $chr['6'] = '12211'; + $chr['7'] = '11122'; + $chr['8'] = '21121'; + $chr['9'] = '12121'; + $chr['A'] = '11'; + $chr['Z'] = '21'; + if ($checksum) { + // add checksum + $code .= $this->checksum_s25($code); + } + if((strlen($code) % 2) != 0) { + // add leading zero if code-length is odd + $code = '0'.$code; + } + // add start and stop codes + $code = 'AA'.strtolower($code).'ZA'; + + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $k = 0; + $clen = strlen($code); + for ($i = 0; $i < $clen; $i = ($i + 2)) { + $char_bar = $code{$i}; + $char_space = $code{$i+1}; + if((!isset($chr[$char_bar])) OR (!isset($chr[$char_space]))) { + // invalid character + return false; + } + // create a bar-space sequence + $seq = ''; + $chrlen = strlen($chr[$char_bar]); + for ($s = 0; $s < $chrlen; $s++){ + $seq .= $chr[$char_bar]{$s} . $chr[$char_space]{$s}; + } + $seqlen = strlen($seq); + for ($j = 0; $j < $seqlen; ++$j) { + if (($j % 2) == 0) { + $t = true; // bar + } else { + $t = false; // space + } + $w = $seq{$j}; + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + } + } + return $bararray; + } + + /** + * C128 barcodes. + * Very capable code, excellent density, high reliability; in very wide use world-wide + * @param $code (string) code to represent. + * @param $type (string) barcode type: A, B, C or empty for automatic switch (AUTO mode) + * @return array barcode representation. + * @protected + */ + protected function barcode_c128($code, $type='') { + $chr = array( + '212222', /* 00 */ + '222122', /* 01 */ + '222221', /* 02 */ + '121223', /* 03 */ + '121322', /* 04 */ + '131222', /* 05 */ + '122213', /* 06 */ + '122312', /* 07 */ + '132212', /* 08 */ + '221213', /* 09 */ + '221312', /* 10 */ + '231212', /* 11 */ + '112232', /* 12 */ + '122132', /* 13 */ + '122231', /* 14 */ + '113222', /* 15 */ + '123122', /* 16 */ + '123221', /* 17 */ + '223211', /* 18 */ + '221132', /* 19 */ + '221231', /* 20 */ + '213212', /* 21 */ + '223112', /* 22 */ + '312131', /* 23 */ + '311222', /* 24 */ + '321122', /* 25 */ + '321221', /* 26 */ + '312212', /* 27 */ + '322112', /* 28 */ + '322211', /* 29 */ + '212123', /* 30 */ + '212321', /* 31 */ + '232121', /* 32 */ + '111323', /* 33 */ + '131123', /* 34 */ + '131321', /* 35 */ + '112313', /* 36 */ + '132113', /* 37 */ + '132311', /* 38 */ + '211313', /* 39 */ + '231113', /* 40 */ + '231311', /* 41 */ + '112133', /* 42 */ + '112331', /* 43 */ + '132131', /* 44 */ + '113123', /* 45 */ + '113321', /* 46 */ + '133121', /* 47 */ + '313121', /* 48 */ + '211331', /* 49 */ + '231131', /* 50 */ + '213113', /* 51 */ + '213311', /* 52 */ + '213131', /* 53 */ + '311123', /* 54 */ + '311321', /* 55 */ + '331121', /* 56 */ + '312113', /* 57 */ + '312311', /* 58 */ + '332111', /* 59 */ + '314111', /* 60 */ + '221411', /* 61 */ + '431111', /* 62 */ + '111224', /* 63 */ + '111422', /* 64 */ + '121124', /* 65 */ + '121421', /* 66 */ + '141122', /* 67 */ + '141221', /* 68 */ + '112214', /* 69 */ + '112412', /* 70 */ + '122114', /* 71 */ + '122411', /* 72 */ + '142112', /* 73 */ + '142211', /* 74 */ + '241211', /* 75 */ + '221114', /* 76 */ + '413111', /* 77 */ + '241112', /* 78 */ + '134111', /* 79 */ + '111242', /* 80 */ + '121142', /* 81 */ + '121241', /* 82 */ + '114212', /* 83 */ + '124112', /* 84 */ + '124211', /* 85 */ + '411212', /* 86 */ + '421112', /* 87 */ + '421211', /* 88 */ + '212141', /* 89 */ + '214121', /* 90 */ + '412121', /* 91 */ + '111143', /* 92 */ + '111341', /* 93 */ + '131141', /* 94 */ + '114113', /* 95 */ + '114311', /* 96 */ + '411113', /* 97 */ + '411311', /* 98 */ + '113141', /* 99 */ + '114131', /* 100 */ + '311141', /* 101 */ + '411131', /* 102 */ + '211412', /* 103 START A */ + '211214', /* 104 START B */ + '211232', /* 105 START C */ + '233111', /* STOP */ + '200000' /* END */ + ); + // ASCII characters for code A (ASCII 00 - 95) + $keys_a = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_'; + $keys_a .= chr(0).chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8).chr(9); + $keys_a .= chr(10).chr(11).chr(12).chr(13).chr(14).chr(15).chr(16).chr(17).chr(18).chr(19); + $keys_a .= chr(20).chr(21).chr(22).chr(23).chr(24).chr(25).chr(26).chr(27).chr(28).chr(29); + $keys_a .= chr(30).chr(31); + // ASCII characters for code B (ASCII 32 - 127) + $keys_b = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'.chr(127); + // special codes + $fnc_a = array(241 => 102, 242 => 97, 243 => 96, 244 => 101); + $fnc_b = array(241 => 102, 242 => 97, 243 => 96, 244 => 100); + // array of symbols + $code_data = array(); + // lenght of the code + $len = strlen($code); + switch(strtoupper($type)) { + case 'A': { // MODE A + $startid = 103; + for ($i = 0; $i < $len; ++$i) { + $char = $code{$i}; + $char_id = ord($char); + if (($char_id >= 241) AND ($char_id <= 244)) { + $code_data[] = $fnc_a[$char_id]; + } elseif (($char_id >= 0) AND ($char_id <= 95)) { + $code_data[] = strpos($keys_a, $char); + } else { + return false; + } + } + break; + } + case 'B': { // MODE B + $startid = 104; + for ($i = 0; $i < $len; ++$i) { + $char = $code{$i}; + $char_id = ord($char); + if (($char_id >= 241) AND ($char_id <= 244)) { + $code_data[] = $fnc_b[$char_id]; + } elseif (($char_id >= 32) AND ($char_id <= 127)) { + $code_data[] = strpos($keys_b, $char); + } else { + return false; + } + } + break; + } + case 'C': { // MODE C + $startid = 105; + if (ord($code{0}) == 241) { + $code_data[] = 102; + $code = substr($code, 1); + --$len; + } + if (($len % 2) != 0) { + // the length must be even + return false; + } + for ($i = 0; $i < $len; $i+=2) { + $chrnum = $code{$i}.$code{$i+1}; + if (preg_match('/([0-9]{2})/', $chrnum) > 0) { + $code_data[] = intval($chrnum); + } else { + return false; + } + } + break; + } + default: { // MODE AUTO + // split code into sequences + $sequence = array(); + // get numeric sequences (if any) + $numseq = array(); + preg_match_all('/([0-9]{4,})/', $code, $numseq, PREG_OFFSET_CAPTURE); + if (isset($numseq[1]) AND !empty($numseq[1])) { + $end_offset = 0; + foreach ($numseq[1] as $val) { + $offset = $val[1]; + if ($offset > $end_offset) { + // non numeric sequence + $sequence = array_merge($sequence, $this->get128ABsequence(substr($code, $end_offset, ($offset - $end_offset)))); + } + // numeric sequence + $slen = strlen($val[0]); + if (($slen % 2) != 0) { + // the length must be even + --$slen; + } + $sequence[] = array('C', substr($code, $offset, $slen), $slen); + $end_offset = $offset + $slen; + } + if ($end_offset < $len) { + $sequence = array_merge($sequence, $this->get128ABsequence(substr($code, $end_offset))); + } + } else { + // text code (non C mode) + $sequence = array_merge($sequence, $this->get128ABsequence($code)); + } + // process the sequence + foreach ($sequence as $key => $seq) { + switch($seq[0]) { + case 'A': { + if ($key == 0) { + $startid = 103; + } elseif ($sequence[($key - 1)][0] != 'A') { + if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'B') AND (!isset($sequence[($key - 1)][3]))) { + // single character shift + $code_data[] = 98; + // mark shift + $sequence[$key][3] = true; + } elseif (!isset($sequence[($key - 1)][3])) { + $code_data[] = 101; + } + } + for ($i = 0; $i < $seq[2]; ++$i) { + $char = $seq[1]{$i}; + $char_id = ord($char); + if (($char_id >= 241) AND ($char_id <= 244)) { + $code_data[] = $fnc_a[$char_id]; + } else { + $code_data[] = strpos($keys_a, $char); + } + } + break; + } + case 'B': { + if ($key == 0) { + $tmpchr = ord($seq[1]{0}); + if (($seq[2] == 1) AND ($tmpchr >= 241) AND ($tmpchr <= 244) AND isset($sequence[($key + 1)]) AND ($sequence[($key + 1)][0] != 'B')) { + switch ($sequence[($key + 1)][0]) { + case 'A': { + $startid = 103; + $sequence[$key][0] = 'A'; + $code_data[] = $fnc_a[$tmpchr]; + break; + } + case 'C': { + $startid = 105; + $sequence[$key][0] = 'C'; + $code_data[] = $fnc_a[$tmpchr]; + break; + } + } + break; + } else { + $startid = 104; + } + } elseif ($sequence[($key - 1)][0] != 'B') { + if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'A') AND (!isset($sequence[($key - 1)][3]))) { + // single character shift + $code_data[] = 98; + // mark shift + $sequence[$key][3] = true; + } elseif (!isset($sequence[($key - 1)][3])) { + $code_data[] = 100; + } + } + for ($i = 0; $i < $seq[2]; ++$i) { + $char = $seq[1]{$i}; + $char_id = ord($char); + if (($char_id >= 241) AND ($char_id <= 244)) { + $code_data[] = $fnc_b[$char_id]; + } else { + $code_data[] = strpos($keys_b, $char); + } + } + break; + } + case 'C': { + if ($key == 0) { + $startid = 105; + } elseif ($sequence[($key - 1)][0] != 'C') { + $code_data[] = 99; + } + for ($i = 0; $i < $seq[2]; $i+=2) { + $chrnum = $seq[1]{$i}.$seq[1]{$i+1}; + $code_data[] = intval($chrnum); + } + break; + } + } + } + } + } + // calculate check character + $sum = $startid; + foreach ($code_data as $key => $val) { + $sum += ($val * ($key + 1)); + } + // add check character + $code_data[] = ($sum % 103); + // add stop sequence + $code_data[] = 106; + $code_data[] = 107; + // add start code at the beginning + array_unshift($code_data, $startid); + // build barcode array + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + foreach ($code_data as $val) { + $seq = $chr[$val]; + for ($j = 0; $j < 6; ++$j) { + if (($j % 2) == 0) { + $t = true; // bar + } else { + $t = false; // space + } + $w = $seq{$j}; + $bararray['bcode'][] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + } + } + return $bararray; + } + + /** + * Split text code in A/B sequence for 128 code + * @param $code (string) code to split. + * @return array sequence + * @protected + */ + protected function get128ABsequence($code) { + $len = strlen($code); + $sequence = array(); + // get A sequences (if any) + $numseq = array(); + preg_match_all('/([\0-\31])/', $code, $numseq, PREG_OFFSET_CAPTURE); + if (isset($numseq[1]) AND !empty($numseq[1])) { + $end_offset = 0; + foreach ($numseq[1] as $val) { + $offset = $val[1]; + if ($offset > $end_offset) { + // B sequence + $sequence[] = array('B', substr($code, $end_offset, ($offset - $end_offset)), ($offset - $end_offset)); + } + // A sequence + $slen = strlen($val[0]); + $sequence[] = array('A', substr($code, $offset, $slen), $slen); + $end_offset = $offset + $slen; + } + if ($end_offset < $len) { + $sequence[] = array('B', substr($code, $end_offset), ($len - $end_offset)); + } + } else { + // only B sequence + $sequence[] = array('B', $code, $len); + } + return $sequence; + } + + /** + * EAN13 and UPC-A barcodes. + * EAN13: European Article Numbering international retail product code + * UPC-A: Universal product code seen on almost all retail products in the USA and Canada + * UPC-E: Short version of UPC symbol + * @param $code (string) code to represent. + * @param $len (string) barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A + * @return array barcode representation. + * @protected + */ + protected function barcode_eanupc($code, $len=13) { + $upce = false; + if ($len == 6) { + $len = 12; // UPC-A + $upce = true; // UPC-E mode + } + $data_len = $len - 1; + //Padding + $code = str_pad($code, $data_len, '0', STR_PAD_LEFT); + $code_len = strlen($code); + // calculate check digit + $sum_a = 0; + for ($i = 1; $i < $data_len; $i+=2) { + $sum_a += $code{$i}; + } + if ($len > 12) { + $sum_a *= 3; + } + $sum_b = 0; + for ($i = 0; $i < $data_len; $i+=2) { + $sum_b += ($code{$i}); + } + if ($len < 13) { + $sum_b *= 3; + } + $r = ($sum_a + $sum_b) % 10; + if($r > 0) { + $r = (10 - $r); + } + if ($code_len == $data_len) { + // add check digit + $code .= $r; + } elseif ($r !== intval($code{$data_len})) { + // wrong checkdigit + return false; + } + if ($len == 12) { + // UPC-A + $code = '0'.$code; + ++$len; + } + if ($upce) { + // convert UPC-A to UPC-E + $tmp = substr($code, 4, 3); + if (($tmp == '000') OR ($tmp == '100') OR ($tmp == '200')) { + // manufacturer code ends in 000, 100, or 200 + $upce_code = substr($code, 2, 2).substr($code, 9, 3).substr($code, 4, 1); + } else { + $tmp = substr($code, 5, 2); + if ($tmp == '00') { + // manufacturer code ends in 00 + $upce_code = substr($code, 2, 3).substr($code, 10, 2).'3'; + } else { + $tmp = substr($code, 6, 1); + if ($tmp == '0') { + // manufacturer code ends in 0 + $upce_code = substr($code, 2, 4).substr($code, 11, 1).'4'; + } else { + // manufacturer code does not end in zero + $upce_code = substr($code, 2, 5).substr($code, 11, 1); + } + } + } + } + //Convert digits to bars + $codes = array( + 'A'=>array( // left odd parity + '0'=>'0001101', + '1'=>'0011001', + '2'=>'0010011', + '3'=>'0111101', + '4'=>'0100011', + '5'=>'0110001', + '6'=>'0101111', + '7'=>'0111011', + '8'=>'0110111', + '9'=>'0001011'), + 'B'=>array( // left even parity + '0'=>'0100111', + '1'=>'0110011', + '2'=>'0011011', + '3'=>'0100001', + '4'=>'0011101', + '5'=>'0111001', + '6'=>'0000101', + '7'=>'0010001', + '8'=>'0001001', + '9'=>'0010111'), + 'C'=>array( // right + '0'=>'1110010', + '1'=>'1100110', + '2'=>'1101100', + '3'=>'1000010', + '4'=>'1011100', + '5'=>'1001110', + '6'=>'1010000', + '7'=>'1000100', + '8'=>'1001000', + '9'=>'1110100') + ); + $parities = array( + '0'=>array('A','A','A','A','A','A'), + '1'=>array('A','A','B','A','B','B'), + '2'=>array('A','A','B','B','A','B'), + '3'=>array('A','A','B','B','B','A'), + '4'=>array('A','B','A','A','B','B'), + '5'=>array('A','B','B','A','A','B'), + '6'=>array('A','B','B','B','A','A'), + '7'=>array('A','B','A','B','A','B'), + '8'=>array('A','B','A','B','B','A'), + '9'=>array('A','B','B','A','B','A') + ); + $upce_parities = array(); + $upce_parities[0] = array( + '0'=>array('B','B','B','A','A','A'), + '1'=>array('B','B','A','B','A','A'), + '2'=>array('B','B','A','A','B','A'), + '3'=>array('B','B','A','A','A','B'), + '4'=>array('B','A','B','B','A','A'), + '5'=>array('B','A','A','B','B','A'), + '6'=>array('B','A','A','A','B','B'), + '7'=>array('B','A','B','A','B','A'), + '8'=>array('B','A','B','A','A','B'), + '9'=>array('B','A','A','B','A','B') + ); + $upce_parities[1] = array( + '0'=>array('A','A','A','B','B','B'), + '1'=>array('A','A','B','A','B','B'), + '2'=>array('A','A','B','B','A','B'), + '3'=>array('A','A','B','B','B','A'), + '4'=>array('A','B','A','A','B','B'), + '5'=>array('A','B','B','A','A','B'), + '6'=>array('A','B','B','B','A','A'), + '7'=>array('A','B','A','B','A','B'), + '8'=>array('A','B','A','B','B','A'), + '9'=>array('A','B','B','A','B','A') + ); + $k = 0; + $seq = '101'; // left guard bar + if ($upce) { + $bararray = array('code' => $upce_code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $p = $upce_parities[$code{1}][$r]; + for ($i = 0; $i < 6; ++$i) { + $seq .= $codes[$p[$i]][$upce_code{$i}]; + } + $seq .= '010101'; // right guard bar + } else { + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $half_len = intval(ceil($len / 2)); + if ($len == 8) { + for ($i = 0; $i < $half_len; ++$i) { + $seq .= $codes['A'][$code{$i}]; + } + } else { + $p = $parities[$code{0}]; + for ($i = 1; $i < $half_len; ++$i) { + $seq .= $codes[$p[$i-1]][$code{$i}]; + } + } + $seq .= '01010'; // center guard bar + for ($i = $half_len; $i < $len; ++$i) { + $seq .= $codes['C'][$code{$i}]; + } + $seq .= '101'; // right guard bar + } + $clen = strlen($seq); + $w = 0; + for ($i = 0; $i < $clen; ++$i) { + $w += 1; + if (($i == ($clen - 1)) OR (($i < ($clen - 1)) AND ($seq{$i} != $seq{($i+1)}))) { + if ($seq{$i} == '1') { + $t = true; // bar + } else { + $t = false; // space + } + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + $w = 0; + } + } + return $bararray; + } + + /** + * UPC-Based Extentions + * 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers + * 5-Digit Ext.: Used to mark suggested retail price of books + * @param $code (string) code to represent. + * @param $len (string) barcode type: 2 = 2-Digit, 5 = 5-Digit + * @return array barcode representation. + * @protected + */ + protected function barcode_eanext($code, $len=5) { + //Padding + $code = str_pad($code, $len, '0', STR_PAD_LEFT); + // calculate check digit + if ($len == 2) { + $r = $code % 4; + } elseif ($len == 5) { + $r = (3 * ($code{0} + $code{2} + $code{4})) + (9 * ($code{1} + $code{3})); + $r %= 10; + } else { + return false; + } + //Convert digits to bars + $codes = array( + 'A'=>array( // left odd parity + '0'=>'0001101', + '1'=>'0011001', + '2'=>'0010011', + '3'=>'0111101', + '4'=>'0100011', + '5'=>'0110001', + '6'=>'0101111', + '7'=>'0111011', + '8'=>'0110111', + '9'=>'0001011'), + 'B'=>array( // left even parity + '0'=>'0100111', + '1'=>'0110011', + '2'=>'0011011', + '3'=>'0100001', + '4'=>'0011101', + '5'=>'0111001', + '6'=>'0000101', + '7'=>'0010001', + '8'=>'0001001', + '9'=>'0010111') + ); + $parities = array(); + $parities[2] = array( + '0'=>array('A','A'), + '1'=>array('A','B'), + '2'=>array('B','A'), + '3'=>array('B','B') + ); + $parities[5] = array( + '0'=>array('B','B','A','A','A'), + '1'=>array('B','A','B','A','A'), + '2'=>array('B','A','A','B','A'), + '3'=>array('B','A','A','A','B'), + '4'=>array('A','B','B','A','A'), + '5'=>array('A','A','B','B','A'), + '6'=>array('A','A','A','B','B'), + '7'=>array('A','B','A','B','A'), + '8'=>array('A','B','A','A','B'), + '9'=>array('A','A','B','A','B') + ); + $p = $parities[$len][$r]; + $seq = '1011'; // left guard bar + $seq .= $codes[$p[0]][$code{0}]; + for ($i = 1; $i < $len; ++$i) { + $seq .= '01'; // separator + $seq .= $codes[$p[$i]][$code{$i}]; + } + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + return $this->binseq_to_array($seq, $bararray); + } + + /** + * POSTNET and PLANET barcodes. + * Used by U.S. Postal Service for automated mail sorting + * @param $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD. + * @param $planet (boolean) if true print the PLANET barcode, otherwise print POSTNET + * @return array barcode representation. + * @protected + */ + protected function barcode_postnet($code, $planet=false) { + // bar lenght + if ($planet) { + $barlen = Array( + 0 => Array(1,1,2,2,2), + 1 => Array(2,2,2,1,1), + 2 => Array(2,2,1,2,1), + 3 => Array(2,2,1,1,2), + 4 => Array(2,1,2,2,1), + 5 => Array(2,1,2,1,2), + 6 => Array(2,1,1,2,2), + 7 => Array(1,2,2,2,1), + 8 => Array(1,2,2,1,2), + 9 => Array(1,2,1,2,2) + ); + } else { + $barlen = Array( + 0 => Array(2,2,1,1,1), + 1 => Array(1,1,1,2,2), + 2 => Array(1,1,2,1,2), + 3 => Array(1,1,2,2,1), + 4 => Array(1,2,1,1,2), + 5 => Array(1,2,1,2,1), + 6 => Array(1,2,2,1,1), + 7 => Array(2,1,1,1,2), + 8 => Array(2,1,1,2,1), + 9 => Array(2,1,2,1,1) + ); + } + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 2, 'bcode' => array()); + $k = 0; + $code = str_replace('-', '', $code); + $code = str_replace(' ', '', $code); + $len = strlen($code); + // calculate checksum + $sum = 0; + for ($i = 0; $i < $len; ++$i) { + $sum += intval($code{$i}); + } + $chkd = ($sum % 10); + if($chkd > 0) { + $chkd = (10 - $chkd); + } + $code .= $chkd; + $len = strlen($code); + // start bar + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 2; + for ($i = 0; $i < $len; ++$i) { + for ($j = 0; $j < 5; ++$j) { + $h = $barlen[$code{$i}][$j]; + $p = floor(1 / $h); + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); + $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 2; + } + } + // end bar + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 1; + return $bararray; + } + + /** + * RMS4CC - CBC - KIX + * RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index) + * RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service. + * @param $code (string) code to print + * @param $kix (boolean) if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code. + * @return array barcode representation. + * @protected + */ + protected function barcode_rms4cc($code, $kix=false) { + $notkix = !$kix; + // bar mode + // 1 = pos 1, length 2 + // 2 = pos 1, length 3 + // 3 = pos 2, length 1 + // 4 = pos 2, length 2 + $barmode = array( + '0' => array(3,3,2,2), + '1' => array(3,4,1,2), + '2' => array(3,4,2,1), + '3' => array(4,3,1,2), + '4' => array(4,3,2,1), + '5' => array(4,4,1,1), + '6' => array(3,1,4,2), + '7' => array(3,2,3,2), + '8' => array(3,2,4,1), + '9' => array(4,1,3,2), + 'A' => array(4,1,4,1), + 'B' => array(4,2,3,1), + 'C' => array(3,1,2,4), + 'D' => array(3,2,1,4), + 'E' => array(3,2,2,3), + 'F' => array(4,1,1,4), + 'G' => array(4,1,2,3), + 'H' => array(4,2,1,3), + 'I' => array(1,3,4,2), + 'J' => array(1,4,3,2), + 'K' => array(1,4,4,1), + 'L' => array(2,3,3,2), + 'M' => array(2,3,4,1), + 'N' => array(2,4,3,1), + 'O' => array(1,3,2,4), + 'P' => array(1,4,1,4), + 'Q' => array(1,4,2,3), + 'R' => array(2,3,1,4), + 'S' => array(2,3,2,3), + 'T' => array(2,4,1,3), + 'U' => array(1,1,4,4), + 'V' => array(1,2,3,4), + 'W' => array(1,2,4,3), + 'X' => array(2,1,3,4), + 'Y' => array(2,1,4,3), + 'Z' => array(2,2,3,3) + ); + $code = strtoupper($code); + $len = strlen($code); + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array()); + if ($notkix) { + // table for checksum calculation (row,col) + $checktable = array( + '0' => array(1,1), + '1' => array(1,2), + '2' => array(1,3), + '3' => array(1,4), + '4' => array(1,5), + '5' => array(1,0), + '6' => array(2,1), + '7' => array(2,2), + '8' => array(2,3), + '9' => array(2,4), + 'A' => array(2,5), + 'B' => array(2,0), + 'C' => array(3,1), + 'D' => array(3,2), + 'E' => array(3,3), + 'F' => array(3,4), + 'G' => array(3,5), + 'H' => array(3,0), + 'I' => array(4,1), + 'J' => array(4,2), + 'K' => array(4,3), + 'L' => array(4,4), + 'M' => array(4,5), + 'N' => array(4,0), + 'O' => array(5,1), + 'P' => array(5,2), + 'Q' => array(5,3), + 'R' => array(5,4), + 'S' => array(5,5), + 'T' => array(5,0), + 'U' => array(0,1), + 'V' => array(0,2), + 'W' => array(0,3), + 'X' => array(0,4), + 'Y' => array(0,5), + 'Z' => array(0,0) + ); + $row = 0; + $col = 0; + for ($i = 0; $i < $len; ++$i) { + $row += $checktable[$code{$i}][0]; + $col += $checktable[$code{$i}][1]; + } + $row %= 6; + $col %= 6; + $chk = array_keys($checktable, array($row,$col)); + $code .= $chk[0]; + ++$len; + } + $k = 0; + if ($notkix) { + // start bar + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 2; + } + for ($i = 0; $i < $len; ++$i) { + for ($j = 0; $j < 4; ++$j) { + switch ($barmode[$code{$i}][$j]) { + case 1: { + $p = 0; + $h = 2; + break; + } + case 2: { + $p = 0; + $h = 3; + break; + } + case 3: { + $p = 1; + $h = 1; + break; + } + case 4: { + $p = 1; + $h = 2; + break; + } + } + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); + $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 2; + } + } + if ($notkix) { + // stop bar + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 3, 'p' => 0); + $bararray['maxw'] += 1; + } + return $bararray; + } + + /** + * CODABAR barcodes. + * Older code often used in library systems, sometimes in blood banks + * @param $code (string) code to represent. + * @return array barcode representation. + * @protected + */ + protected function barcode_codabar($code) { + $chr = array( + '0' => '11111221', + '1' => '11112211', + '2' => '11121121', + '3' => '22111111', + '4' => '11211211', + '5' => '21111211', + '6' => '12111121', + '7' => '12112111', + '8' => '12211111', + '9' => '21121111', + '-' => '11122111', + '$' => '11221111', + ':' => '21112121', + '/' => '21211121', + '.' => '21212111', + '+' => '11222221', + 'A' => '11221211', + 'B' => '12121121', + 'C' => '11121221', + 'D' => '11122211' + ); + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $k = 0; + $w = 0; + $seq = ''; + $code = 'A'.strtoupper($code).'A'; + $len = strlen($code); + for ($i = 0; $i < $len; ++$i) { + if (!isset($chr[$code{$i}])) { + return false; + } + $seq = $chr[$code{$i}]; + for ($j = 0; $j < 8; ++$j) { + if (($j % 2) == 0) { + $t = true; // bar + } else { + $t = false; // space + } + $w = $seq{$j}; + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + } + } + return $bararray; + } + + /** + * CODE11 barcodes. + * Used primarily for labeling telecommunications equipment + * @param $code (string) code to represent. + * @return array barcode representation. + * @protected + */ + protected function barcode_code11($code) { + $chr = array( + '0' => '111121', + '1' => '211121', + '2' => '121121', + '3' => '221111', + '4' => '112121', + '5' => '212111', + '6' => '122111', + '7' => '111221', + '8' => '211211', + '9' => '211111', + '-' => '112111', + 'S' => '112211' + ); + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + $k = 0; + $w = 0; + $seq = ''; + $len = strlen($code); + // calculate check digit C + $p = 1; + $check = 0; + for ($i = ($len - 1); $i >= 0; --$i) { + $digit = $code{$i}; + if ($digit == '-') { + $dval = 10; + } else { + $dval = intval($digit); + } + $check += ($dval * $p); + ++$p; + if ($p > 10) { + $p = 1; + } + } + $check %= 11; + if ($check == 10) { + $check = '-'; + } + $code .= $check; + if ($len > 10) { + // calculate check digit K + $p = 1; + $check = 0; + for ($i = $len; $i >= 0; --$i) { + $digit = $code{$i}; + if ($digit == '-') { + $dval = 10; + } else { + $dval = intval($digit); + } + $check += ($dval * $p); + ++$p; + if ($p > 9) { + $p = 1; + } + } + $check %= 11; + $code .= $check; + ++$len; + } + $code = 'S'.$code.'S'; + $len += 3; + for ($i = 0; $i < $len; ++$i) { + if (!isset($chr[$code{$i}])) { + return false; + } + $seq = $chr[$code{$i}]; + for ($j = 0; $j < 6; ++$j) { + if (($j % 2) == 0) { + $t = true; // bar + } else { + $t = false; // space + } + $w = $seq{$j}; + $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); + $bararray['maxw'] += $w; + ++$k; + } + } + return $bararray; + } + + /** + * Pharmacode + * Contains digits (0 to 9) + * @param $code (string) code to represent. + * @return array barcode representation. + * @protected + */ + protected function barcode_pharmacode($code) { + $seq = ''; + $code = intval($code); + while ($code > 0) { + if (($code % 2) == 0) { + $seq .= '11100'; + $code -= 2; + } else { + $seq .= '100'; + $code -= 1; + } + $code /= 2; + } + $seq = substr($seq, 0, -2); + $seq = strrev($seq); + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); + return $this->binseq_to_array($seq, $bararray); + } + + /** + * Pharmacode two-track + * Contains digits (0 to 9) + * @param $code (string) code to represent. + * @return array barcode representation. + * @protected + */ + protected function barcode_pharmacode2t($code) { + $seq = ''; + $code = intval($code); + do { + switch ($code % 3) { + case 0: { + $seq .= '3'; + $code = ($code - 3) / 3; + break; + } + case 1: { + $seq .= '1'; + $code = ($code - 1) / 3; + break; + } + case 2: { + $seq .= '2'; + $code = ($code - 2) / 3; + break; + } + } + } while($code != 0); + $seq = strrev($seq); + $k = 0; + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 2, 'bcode' => array()); + $len = strlen($seq); + for ($i = 0; $i < $len; ++$i) { + switch ($seq{$i}) { + case '1': { + $p = 1; + $h = 1; + break; + } + case '2': { + $p = 0; + $h = 1; + break; + } + case '3': { + $p = 0; + $h = 2; + break; + } + } + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); + $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 2; + } + unset($bararray['bcode'][($k - 1)]); + --$bararray['maxw']; + return $bararray; + } + + + /** + * IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 + * (requires PHP bcmath extension) + * Intelligent Mail barcode is a 65-bar code for use on mail in the United States. + * The fields are described as follows:
    • The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.
    • The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.
    • The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.
    • The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999, 000000000–999999999, and 00000000000–99999999999.
    + * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode) + * @return array barcode representation. + * @protected + */ + protected function barcode_imb($code) { + $asc_chr = array(4,0,2,6,3,5,1,9,8,7,1,2,0,6,4,8,2,9,5,3,0,1,3,7,4,6,8,9,2,0,5,1,9,4,3,8,6,7,1,2,4,3,9,5,7,8,3,0,2,1,4,0,9,1,7,0,2,4,6,3,7,1,9,5,8); + $dsc_chr = array(7,1,9,5,8,0,2,4,6,3,5,8,9,7,3,0,6,1,7,4,6,8,9,2,5,1,7,5,4,3,8,7,6,0,2,5,4,9,3,0,1,6,8,2,0,4,5,9,6,7,5,2,6,3,8,5,1,9,8,7,4,0,2,6,3); + $asc_pos = array(3,0,8,11,1,12,8,11,10,6,4,12,2,7,9,6,7,9,2,8,4,0,12,7,10,9,0,7,10,5,7,9,6,8,2,12,1,4,2,0,1,5,4,6,12,1,0,9,4,7,5,10,2,6,9,11,2,12,6,7,5,11,0,3,2); + $dsc_pos = array(2,10,12,5,9,1,5,4,3,9,11,5,10,1,6,3,4,1,10,0,2,11,8,6,1,12,3,8,6,4,4,11,0,6,1,9,11,5,3,7,3,10,7,11,8,2,10,3,5,8,0,3,12,11,8,4,5,1,3,0,7,12,9,8,10); + $code_arr = explode('-', $code); + $tracking_number = $code_arr[0]; + if (isset($code_arr[1])) { + $routing_code = $code_arr[1]; + } else { + $routing_code = ''; + } + // Conversion of Routing Code + switch (strlen($routing_code)) { + case 0: { + $binary_code = 0; + break; + } + case 5: { + $binary_code = bcadd($routing_code, '1'); + break; + } + case 9: { + $binary_code = bcadd($routing_code, '100001'); + break; + } + case 11: { + $binary_code = bcadd($routing_code, '1000100001'); + break; + } + default: { + return false; + break; + } + } + $binary_code = bcmul($binary_code, 10); + $binary_code = bcadd($binary_code, $tracking_number{0}); + $binary_code = bcmul($binary_code, 5); + $binary_code = bcadd($binary_code, $tracking_number{1}); + $binary_code .= substr($tracking_number, 2, 18); + // convert to hexadecimal + $binary_code = $this->dec_to_hex($binary_code); + // pad to get 13 bytes + $binary_code = str_pad($binary_code, 26, '0', STR_PAD_LEFT); + // convert string to array of bytes + $binary_code_arr = chunk_split($binary_code, 2, "\r"); + $binary_code_arr = substr($binary_code_arr, 0, -1); + $binary_code_arr = explode("\r", $binary_code_arr); + // calculate frame check sequence + $fcs = $this->imb_crc11fcs($binary_code_arr); + // exclude first 2 bits from first byte + $first_byte = sprintf('%2s', dechex((hexdec($binary_code_arr[0]) << 2) >> 2)); + $binary_code_102bit = $first_byte.substr($binary_code, 2); + // convert binary data to codewords + $codewords = array(); + $data = $this->hex_to_dec($binary_code_102bit); + $codewords[0] = bcmod($data, 636) * 2; + $data = bcdiv($data, 636); + for ($i = 1; $i < 9; ++$i) { + $codewords[$i] = bcmod($data, 1365); + $data = bcdiv($data, 1365); + } + $codewords[9] = $data; + if (($fcs >> 10) == 1) { + $codewords[9] += 659; + } + // generate lookup tables + $table2of13 = $this->imb_tables(2, 78); + $table5of13 = $this->imb_tables(5, 1287); + // convert codewords to characters + $characters = array(); + $bitmask = 512; + foreach($codewords as $k => $val) { + if ($val <= 1286) { + $chrcode = $table5of13[$val]; + } else { + $chrcode = $table2of13[($val - 1287)]; + } + if (($fcs & $bitmask) > 0) { + // bitwise invert + $chrcode = ((~$chrcode) & 8191); + } + $characters[] = $chrcode; + $bitmask /= 2; + } + $characters = array_reverse($characters); + // build bars + $k = 0; + $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array()); + for ($i = 0; $i < 65; ++$i) { + $asc = (($characters[$asc_chr[$i]] & pow(2, $asc_pos[$i])) > 0); + $dsc = (($characters[$dsc_chr[$i]] & pow(2, $dsc_pos[$i])) > 0); + if ($asc AND $dsc) { + // full bar (F) + $p = 0; + $h = 3; + } elseif ($asc) { + // ascender (A) + $p = 0; + $h = 2; + } elseif ($dsc) { + // descender (D) + $p = 1; + $h = 2; + } else { + // tracker (T) + $p = 1; + $h = 1; + } + $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); + $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); + $bararray['maxw'] += 2; + } + unset($bararray['bcode'][($k - 1)]); + --$bararray['maxw']; + return $bararray; + } + + /** + * Convert large integer number to hexadecimal representation. + * (requires PHP bcmath extension) + * @param $number (string) number to convert specified as a string + * @return string hexadecimal representation + */ + public function dec_to_hex($number) { + $i = 0; + $hex = array(); + if($number == 0) { + return '00'; + } + while($number > 0) { + if($number == 0) { + array_push($hex, '0'); + } else { + array_push($hex, strtoupper(dechex(bcmod($number, '16')))); + $number = bcdiv($number, '16', 0); + } + } + $hex = array_reverse($hex); + return implode($hex); + } + + /** + * Convert large hexadecimal number to decimal representation (string). + * (requires PHP bcmath extension) + * @param $hex (string) hexadecimal number to convert specified as a string + * @return string hexadecimal representation + */ + public function hex_to_dec($hex) { + $dec = 0; + $bitval = 1; + $len = strlen($hex); + for($pos = ($len - 1); $pos >= 0; --$pos) { + $dec = bcadd($dec, bcmul(hexdec($hex{$pos}), $bitval)); + $bitval = bcmul($bitval, 16); + } + return $dec; + } + + /** + * Intelligent Mail Barcode calculation of Frame Check Sequence + * @param $code_arr (string) array of hexadecimal values (13 bytes holding 102 bits right justified). + * @return int 11 bit Frame Check Sequence as integer (decimal base) + * @protected + */ + protected function imb_crc11fcs($code_arr) { + $genpoly = 0x0F35; // generator polynomial + $fcs = 0x07FF; // Frame Check Sequence + // do most significant byte skipping the 2 most significant bits + $data = hexdec($code_arr[0]) << 5; + for ($bit = 2; $bit < 8; ++$bit) { + if (($fcs ^ $data) & 0x400) { + $fcs = ($fcs << 1) ^ $genpoly; + } else { + $fcs = ($fcs << 1); + } + $fcs &= 0x7FF; + $data <<= 1; + } + // do rest of bytes + for ($byte = 1; $byte < 13; ++$byte) { + $data = hexdec($code_arr[$byte]) << 3; + for ($bit = 0; $bit < 8; ++$bit) { + if (($fcs ^ $data) & 0x400) { + $fcs = ($fcs << 1) ^ $genpoly; + } else { + $fcs = ($fcs << 1); + } + $fcs &= 0x7FF; + $data <<= 1; + } + } + return $fcs; + } + + /** + * Reverse unsigned short value + * @param $num (int) value to reversr + * @return int reversed value + * @protected + */ + protected function imb_reverse_us($num) { + $rev = 0; + for ($i = 0; $i < 16; ++$i) { + $rev <<= 1; + $rev |= ($num & 1); + $num >>= 1; + } + return $rev; + } + + /** + * generate Nof13 tables used for Intelligent Mail Barcode + * @param $n (int) is the type of table: 2 for 2of13 table, 5 for 5of13table + * @param $size (int) size of table (78 for n=2 and 1287 for n=5) + * @return array requested table + * @protected + */ + protected function imb_tables($n, $size) { + $table = array(); + $lli = 0; // LUT lower index + $lui = $size - 1; // LUT upper index + for ($count = 0; $count < 8192; ++$count) { + $bit_count = 0; + for ($bit_index = 0; $bit_index < 13; ++$bit_index) { + $bit_count += intval(($count & (1 << $bit_index)) != 0); + } + // if we don't have the right number of bits on, go on to the next value + if ($bit_count == $n) { + $reverse = ($this->imb_reverse_us($count) >> 3); + // if the reverse is less than count, we have already visited this pair before + if ($reverse >= $count) { + // If count is symmetric, place it at the first free slot from the end of the list. + // Otherwise, place it at the first free slot from the beginning of the list AND place $reverse ath the next free slot from the beginning of the list + if ($reverse == $count) { + $table[$lui] = $count; + --$lui; + } else { + $table[$lli] = $count; + ++$lli; + $table[$lli] = $reverse; + ++$lli; + } + } + } + } + return $table; + } + +} // end of class +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/cache/chapter_demo_1.txt b/phplib/tcpdf/cache/chapter_demo_1.txt new file mode 100644 index 0000000..4025de9 --- /dev/null +++ b/phplib/tcpdf/cache/chapter_demo_1.txt @@ -0,0 +1,19 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa. + +Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu. + +Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra. + +Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa. + +Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu. + +Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra. + +Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat. diff --git a/phplib/tcpdf/cache/chapter_demo_2.txt b/phplib/tcpdf/cache/chapter_demo_2.txt new file mode 100644 index 0000000..cd7bfe6 --- /dev/null +++ b/phplib/tcpdf/cache/chapter_demo_2.txt @@ -0,0 +1,23 @@ +

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.

    + + + +

    Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.

    + +

    Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.

    + +

    Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.

    + +

    Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.

    + +

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.

    + + + +

    Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.

    + +

    Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.

    + +

    Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.

    + +

    Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.

    diff --git a/phplib/tcpdf/cache/table_data_demo.txt b/phplib/tcpdf/cache/table_data_demo.txt new file mode 100644 index 0000000..5a48a42 --- /dev/null +++ b/phplib/tcpdf/cache/table_data_demo.txt @@ -0,0 +1,15 @@ +Austria;Vienna;83859;8075 +Belgium;Brussels;30518;10192 +Denmark;Copenhagen;43094;5295 +Finland;Helsinki;304529;5147 +France;Paris;543965;58728 +Germany;Berlin;357022;82057 +Greece;Athens;131625;10511 +Ireland;Dublin;70723;3694 +Italy;Roma;301316;57563 +Luxembourg;Luxembourg;2586;424 +Netherlands;Amsterdam;41526;15654 +Portugal;Lisbon;91906;9957 +Spain;Madrid;504790;39348 +Sweden;Stockholm;410934;8839 +United Kingdom;London;243820;58862 diff --git a/phplib/tcpdf/cache/utf8test.txt b/phplib/tcpdf/cache/utf8test.txt new file mode 100644 index 0000000..291d4e7 --- /dev/null +++ b/phplib/tcpdf/cache/utf8test.txt @@ -0,0 +1,128 @@ +Sentences that contain all letters commonly used in a language +-------------------------------------------------------------- + +This file is UTF-8 encoded. + +Czech (cz) +--------- + + Příšerně žluťoučký kůň úpěl ďábelské ódy. + Hleď, toť přízračný kůň v mátožné póze šíleně úpí. + Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + Loď čeří kýlem tůň obzvlášť v Grónské úžině. + Ó, náhlý déšť již zvířil prach a čilá laň teď běží s houfcem gazel k úkrytům. + +Danish (da) +--------- + + Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen + Wolther spillede på xylofon. + (= Quiz contestants were eating strawbery with cream while Wolther + the circus clown played on xylophone.) + +German (de) +----------- + + Falsches Üben von Xylophonmusik quält jeden größeren Zwerg + (= Wrongful practicing of xylophone music tortures every larger dwarf) + + Zwölf Boxkämpfer jagten Eva quer über den Sylter Deich + (= Twelve boxing fighters hunted Eva across the dike of Sylt) + + Heizölrückstoßabdämpfung + (= fuel oil recoil absorber) + (jqvwxy missing, but all non-ASCII letters in one word) + +English (en) +------------ + + The quick brown fox jumps over the lazy dog + +Spanish (es) +------------ + + El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y + frío, añoraba a su querido cachorro. + (Contains every letter and every accent, but not every combination + of vowel + acute.) + +French (fr) +----------- + + Portez ce vieux whisky au juge blond qui fume sur son île intérieure, à + côté de l'alcôve ovoïde, où les bûches se consument dans l'âtre, ce + qui lui permet de penser à la cænogenèse de l'être dont il est question + dans la cause ambiguë entendue à Moÿ, dans un capharnaüm qui, + pense-t-il, diminue çà et là la qualité de son œuvre. + + l'île exiguë + Où l'obèse jury mûr + Fête l'haï volapük, + Âne ex aéquo au whist, + Ôtez ce vœu déçu. + + Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en + canoë au delà des îles, près du mälström où brûlent les novæ. + +Irish Gaelic (ga) +----------------- + + D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh + +Hungarian (hu) +-------------- + + Árvíztűrő tükörfúrógép + (= flood-proof mirror-drilling machine, only all non-ASCII letters) + +Icelandic (is) +-------------- + + Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa + + Sævör grét áðan því úlpan var ónýt + (some ASCII letters missing) + +Greek (el) +------------- + + Γαζέες καὶ μυρτιὲς δὲν θὰ βρῶ πιὰ στὸ χρυσαφὶ ξέφωτο + (= No more shall I see acacias or myrtles in the golden clearing) + + Ξεσκεπάζω τὴν ψυχοφθόρα βδελυγμία + (= I uncover the soul-destroying abhorrence) + +Hebrew (iw) +----------- + + ? דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה + +Polish (pl) +----------- + + Pchnąć w tę łódź jeża lub osiem skrzyń fig + (= To push a hedgehog or eight bins of figs in this boat) + + Zażółć gęślą jaźń + +Russian (ru) +------------ + + В чащах юга жил бы цитрус? Да, но фальшивый экземпляр! + (= Would a citrus live in the bushes of south? Yes, but only a fake one!) + +Thai (th) +--------- + + [--------------------------|------------------------] + ๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า กว่าบรรดาฝูงสัตว์เดรัจฉาน + จงฝ่าฟันพัฒนาวิชาการ อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร + ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า หัดอภัยเหมือนกีฬาอัชฌาสัย + ปฏิบัติประพฤติกฎกำหนดใจ พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ + + [The copyright for the Thai example is owned by The Computer + Association of Thailand under the Royal Patronage of His Majesty the + King.] + +Please let me know if you find others! Special thanks to the people +from all over the world who contributed these sentences. diff --git a/phplib/tcpdf/composer.json b/phplib/tcpdf/composer.json new file mode 100644 index 0000000..8233ecb --- /dev/null +++ b/phplib/tcpdf/composer.json @@ -0,0 +1,38 @@ +{ + "name": "tecnick.com/tcpdf", + "version": "5.9.207", + "homepage": "http://www.tcpdf.org/", + "type": "library", + "description": "TCPDF is a PHP class for generating PDF documents.", + "keywords": ["pdf","tcpdf","PDFD32000-2008","qrcode","datamatrix","pdf417","barcodes"], + "license": "LGPLv3", + "authors": [ + { + "name": "Nicola Asuni", + "email": "info@tecnick.com", + "homepage": "http://nicolaasuni.tecnick.com" + } + ], + "require": { + "php": ">=5.3.0" + }, + "autoload": { + "classmap": [ + "fonts", + "config/lang", + "config", + "2dbarcodes.php", + "barcodes.php", + "datamatrix.php", + "encodings_maps.php", + "htmlcolors.php", + "pdf417.php", + "qrcode.php", + "spotcolors.php", + "tcpdf.php", + "tcpdf_filters.php", + "tcpdf_parser.php", + "unicode_data.php" + ] + } +} diff --git a/phplib/tcpdf/config/lang/afr.php b/phplib/tcpdf/config/lang/afr.php new file mode 100644 index 0000000..76462f0 --- /dev/null +++ b/phplib/tcpdf/config/lang/afr.php @@ -0,0 +1,47 @@ +. +// +// See LICENSE.TXT file for more information. +//============================================================+ + +/** + * Configuration file for TCPDF. + * @author Nicola Asuni + * @package com.tecnick.tcpdf + * @version 4.9.005 + * @since 2004-10-27 + */ + +// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored. + +if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { + + // DOCUMENT_ROOT fix for IIS Webserver + if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { + if(isset($_SERVER['SCRIPT_FILENAME'])) { + $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); + } elseif(isset($_SERVER['PATH_TRANSLATED'])) { + $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); + } else { + // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www') + $_SERVER['DOCUMENT_ROOT'] = '/'; + } + } + + // be sure that the end slash is present + $_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/'); + + // Automatic calculation for the following K_PATH_MAIN constant + $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); + if (substr($k_path_main, -1) != '/') { + $k_path_main .= '/'; + } + + /** + * Installation path (/var/www/tcpdf/). + * By default it is automatically calculated but you can also set it as a fixed string to improve performances. + */ + define ('K_PATH_MAIN', $k_path_main); + + // Automatic calculation for the following K_PATH_URL constant + $k_path_url = $k_path_main; // default value for console mode + if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { + if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { + $k_path_url = 'https://'; + } else { + $k_path_url = 'http://'; + } + $k_path_url .= $_SERVER['HTTP_HOST']; + $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1))); + } + + /** + * URL path to tcpdf installation folder (http://localhost/tcpdf/). + * By default it is automatically calculated but you can also set it as a fixed string to improve performances. + */ + define ('K_PATH_URL', $k_path_url); + + /** + * path for PDF fonts + * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts + */ + define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); + + /** + * cache directory for temporary files (full path) + */ + define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); + + /** + * cache directory for temporary files (url path) + */ + define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); + + /** + *images directory + */ + define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); + + /** + * blank image + */ + define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png'); + + /** + * page format + */ + define ('PDF_PAGE_FORMAT', 'A4'); + + /** + * page orientation (P=portrait, L=landscape) + */ + define ('PDF_PAGE_ORIENTATION', 'P'); + + /** + * document creator + */ + define ('PDF_CREATOR', 'TCPDF'); + + /** + * document author + */ + define ('PDF_AUTHOR', 'TCPDF'); + + /** + * header title + */ + define ('PDF_HEADER_TITLE', 'TCPDF Example'); + + /** + * header description string + */ + define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); + + /** + * image logo + */ + define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); + + /** + * header logo image width [mm] + */ + define ('PDF_HEADER_LOGO_WIDTH', 30); + + /** + * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch] + */ + define ('PDF_UNIT', 'mm'); + + /** + * header margin + */ + define ('PDF_MARGIN_HEADER', 5); + + /** + * footer margin + */ + define ('PDF_MARGIN_FOOTER', 10); + + /** + * top margin + */ + define ('PDF_MARGIN_TOP', 27); + + /** + * bottom margin + */ + define ('PDF_MARGIN_BOTTOM', 25); + + /** + * left margin + */ + define ('PDF_MARGIN_LEFT', 15); + + /** + * right margin + */ + define ('PDF_MARGIN_RIGHT', 15); + + /** + * default main font name + */ + define ('PDF_FONT_NAME_MAIN', 'helvetica'); + + /** + * default main font size + */ + define ('PDF_FONT_SIZE_MAIN', 10); + + /** + * default data font name + */ + define ('PDF_FONT_NAME_DATA', 'helvetica'); + + /** + * default data font size + */ + define ('PDF_FONT_SIZE_DATA', 8); + + /** + * default monospaced font name + */ + define ('PDF_FONT_MONOSPACED', 'courier'); + + /** + * ratio used to adjust the conversion of pixels to user units + */ + define ('PDF_IMAGE_SCALE_RATIO', 1.25); + + /** + * magnification factor for titles + */ + define('HEAD_MAGNIFICATION', 1.1); + + /** + * height of cell respect font height + */ + define('K_CELL_HEIGHT_RATIO', 1.25); + + /** + * title magnification respect main font size + */ + define('K_TITLE_MAGNIFICATION', 1.3); + + /** + * reduction factor for small font + */ + define('K_SMALL_RATIO', 2/3); + + /** + * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language + */ + define('K_THAI_TOPCHARS', true); + + /** + * if true allows to call TCPDF methods using HTML syntax + * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. + */ + define('K_TCPDF_CALLS_IN_HTML', true); + + /** + * if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. + */ + define('K_TCPDF_THROW_EXCEPTION_ERROR', false); +} + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/config/tcpdf_config_alt.php b/phplib/tcpdf/config/tcpdf_config_alt.php new file mode 100644 index 0000000..d5460e5 --- /dev/null +++ b/phplib/tcpdf/config/tcpdf_config_alt.php @@ -0,0 +1,252 @@ +. +// +// See LICENSE.TXT file for more information. +//============================================================+ + +/** + * Alternative configuration file for TCPDF. + * @author Nicola Asuni + * @package com.tecnick.tcpdf + * @version 4.9.005 + * @since 2004-10-27 + */ + +// DOCUMENT_ROOT fix for IIS Webserver +if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { + if(isset($_SERVER['SCRIPT_FILENAME'])) { + $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); + } elseif(isset($_SERVER['PATH_TRANSLATED'])) { + $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); + } else { + // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www') + $_SERVER['DOCUMENT_ROOT'] = '/'; + } +} + +// be sure that the end slash is present +$_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/'); + +// Automatic calculation for the following K_PATH_MAIN constant +$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); +if (substr($k_path_main, -1) != '/') { + $k_path_main .= '/'; +} + +/** + * Installation path (/var/www/tcpdf/). + * By default it is automatically calculated but you can also set it as a fixed string to improve performances. + */ +define ('K_PATH_MAIN', $k_path_main); + +// Automatic calculation for the following K_PATH_URL constant +if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { + if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { + $k_path_url = 'https://'; + } else { + $k_path_url = 'http://'; + } + $k_path_url .= $_SERVER['HTTP_HOST']; + $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1))); +} + +/** + * URL path to tcpdf installation folder (http://localhost/tcpdf/). + * By default it is automatically calculated but you can also set it as a fixed string to improve performances.. + */ +define ('K_PATH_URL', $k_path_url); + +/** + * path for PDF fonts + * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts + */ +define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); + +/** + * cache directory for temporary files (full path) + */ +define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); + +/** + * cache directory for temporary files (url path) + */ +define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); + +/** + *images directory + */ +define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); + +/** + * blank image + */ +define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png'); + +/** + * page format + */ +define ('PDF_PAGE_FORMAT', 'A4'); + +/** + * page orientation (P=portrait, L=landscape) + */ +define ('PDF_PAGE_ORIENTATION', 'P'); + +/** + * document creator + */ +define ('PDF_CREATOR', 'TCPDF'); + +/** + * document author + */ +define ('PDF_AUTHOR', 'TCPDF'); + +/** + * header title + */ +define ('PDF_HEADER_TITLE', 'TCPDF Example'); + +/** + * header description string + */ +define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); + +/** + * image logo + */ +define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); + +/** + * header logo image width [mm] + */ +define ('PDF_HEADER_LOGO_WIDTH', 30); + +/** + * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch] + */ +define ('PDF_UNIT', 'mm'); + +/** + * header margin + */ +define ('PDF_MARGIN_HEADER', 5); + +/** + * footer margin + */ +define ('PDF_MARGIN_FOOTER', 10); + +/** + * top margin + */ +define ('PDF_MARGIN_TOP', 27); + +/** + * bottom margin + */ +define ('PDF_MARGIN_BOTTOM', 25); + +/** + * left margin + */ +define ('PDF_MARGIN_LEFT', 15); + +/** + * right margin + */ +define ('PDF_MARGIN_RIGHT', 15); + +/** + * default main font name + */ +define ('PDF_FONT_NAME_MAIN', 'helvetica'); + +/** + * default main font size + */ +define ('PDF_FONT_SIZE_MAIN', 10); + +/** + * default data font name + */ +define ('PDF_FONT_NAME_DATA', 'helvetica'); + +/** + * default data font size + */ +define ('PDF_FONT_SIZE_DATA', 8); + +/** + * default monospaced font name + */ +define ('PDF_FONT_MONOSPACED', 'courier'); + +/** + * ratio used to adjust the conversion of pixels to user units + */ +define ('PDF_IMAGE_SCALE_RATIO', 1.25); + +/** + * magnification factor for titles + */ +define('HEAD_MAGNIFICATION', 1.1); + +/** + * height of cell repect font height + */ +define('K_CELL_HEIGHT_RATIO', 1.25); + +/** + * title magnification respect main font size + */ +define('K_TITLE_MAGNIFICATION', 1.3); + +/** + * reduction factor for small font + */ +define('K_SMALL_RATIO', 2/3); + +/** + * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language + */ +define('K_THAI_TOPCHARS', true); + +/** + * if true allows to call TCPDF methods using HTML syntax + * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. + */ +define('K_TCPDF_CALLS_IN_HTML', true); + +/** + * if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. + */ +define('K_TCPDF_THROW_EXCEPTION_ERROR', false); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/datamatrix.php b/phplib/tcpdf/datamatrix.php new file mode 100644 index 0000000..fe140e6 --- /dev/null +++ b/phplib/tcpdf/datamatrix.php @@ -0,0 +1,1149 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// DESCRIPTION : +// +// Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. +// DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. +//============================================================+ + +/** +* @file +* Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. +* DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. +* +* @package com.tecnick.tcpdf +* @author Nicola Asuni +* @version 1.0.004 +*/ + +// custom definitions +if (!defined('DATAMATRIXDEFS')) { + + /** + * Indicate that definitions for this class are set + */ + define('DATAMATRIXDEFS', true); + + // ----------------------------------------------------- + +} // end of custom definitions + +// #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# + + +/** +* ASCII encoding: ASCII character 0 to 127 (1 byte per CW) +*/ +define('ENC_ASCII', 0); + +/** +* C40 encoding: Upper-case alphanumeric (3/2 bytes per CW) +*/ +define('ENC_C40', 1); + +/** +* TEXT encoding: Lower-case alphanumeric (3/2 bytes per CW) +*/ +define('ENC_TXT', 2); + +/** +* X12 encoding: ANSI X12 (3/2 byte per CW) +*/ +define('ENC_X12', 3); + +/** +* EDIFACT encoding: ASCII character 32 to 94 (4/3 bytes per CW) +*/ +define('ENC_EDF', 4); + +/** +* BASE 256 encoding: ASCII character 0 to 255 (1 byte per CW) +*/ +define('ENC_BASE256', 5); + +/** +* ASCII extended encoding: ASCII character 128 to 255 (1/2 byte per CW) +*/ +define('ENC_ASCII_EXT', 6); + +/** +* ASCII number encoding: ASCII digits (2 bytes per CW) +*/ +define('ENC_ASCII_NUM', 7); + +/** +* @class Datamatrix +* Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. +* DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. +* +* @package com.tecnick.tcpdf +* @author Nicola Asuni +* @version 1.0.004 +*/ +class Datamatrix { + + /** + * Barcode array to be returned which is readable by TCPDF. + * @protected + */ + protected $barcode_array = array(); + + /** + * Store last used encoding for data codewords. + * @protected + */ + protected $last_enc = ENC_ASCII; + + /** + * Table of Data Matrix ECC 200 Symbol Attributes:
      + *
    • total matrix rows (including finder pattern)
    • + *
    • total matrix cols (including finder pattern)
    • + *
    • total matrix rows (without finder pattern)
    • + *
    • total matrix cols (without finder pattern)
    • + *
    • region data rows (with finder pattern)
    • + *
    • region data col (with finder pattern)
    • + *
    • region data rows (without finder pattern)
    • + *
    • region data col (without finder pattern)
    • + *
    • horizontal regions
    • + *
    • vertical regions
    • + *
    • regions
    • + *
    • data codewords
    • + *
    • error codewords
    • + *
    • blocks
    • + *
    • data codewords per block
    • + *
    • error codewords per block
    • + *
    + * @protected + */ + protected $symbattr = array( + // square form --------------------------------------------------------------------------------------- + array(0x00a,0x00a,0x008,0x008,0x00a,0x00a,0x008,0x008,0x001,0x001,0x001,0x003,0x005,0x001,0x003,0x005), // 10x10 + array(0x00c,0x00c,0x00a,0x00a,0x00c,0x00c,0x00a,0x00a,0x001,0x001,0x001,0x005,0x007,0x001,0x005,0x007), // 12x12 + array(0x00e,0x00e,0x00c,0x00c,0x00e,0x00e,0x00c,0x00c,0x001,0x001,0x001,0x008,0x00a,0x001,0x008,0x00a), // 14x14 + array(0x010,0x010,0x00e,0x00e,0x010,0x010,0x00e,0x00e,0x001,0x001,0x001,0x00c,0x00c,0x001,0x00c,0x00c), // 16x16 + array(0x012,0x012,0x010,0x010,0x012,0x012,0x010,0x010,0x001,0x001,0x001,0x012,0x00e,0x001,0x012,0x00e), // 18x18 + array(0x014,0x014,0x012,0x012,0x014,0x014,0x012,0x012,0x001,0x001,0x001,0x016,0x012,0x001,0x016,0x012), // 20x20 + array(0x016,0x016,0x014,0x014,0x016,0x016,0x014,0x014,0x001,0x001,0x001,0x01e,0x014,0x001,0x01e,0x014), // 22x22 + array(0x018,0x018,0x016,0x016,0x018,0x018,0x016,0x016,0x001,0x001,0x001,0x024,0x018,0x001,0x024,0x018), // 24x24 + array(0x01a,0x01a,0x018,0x018,0x01a,0x01a,0x018,0x018,0x001,0x001,0x001,0x02c,0x01c,0x001,0x02c,0x01c), // 26x26 + array(0x020,0x020,0x01c,0x01c,0x010,0x010,0x00e,0x00e,0x002,0x002,0x004,0x03e,0x024,0x001,0x03e,0x024), // 32x32 + array(0x024,0x024,0x020,0x020,0x012,0x012,0x010,0x010,0x002,0x002,0x004,0x056,0x02a,0x001,0x056,0x02a), // 36x36 + array(0x028,0x028,0x024,0x024,0x014,0x014,0x012,0x012,0x002,0x002,0x004,0x072,0x030,0x001,0x072,0x030), // 40x40 + array(0x02c,0x02c,0x028,0x028,0x016,0x016,0x014,0x014,0x002,0x002,0x004,0x090,0x038,0x001,0x090,0x038), // 44x44 + array(0x030,0x030,0x02c,0x02c,0x018,0x018,0x016,0x016,0x002,0x002,0x004,0x0ae,0x044,0x001,0x0ae,0x044), // 48x48 + array(0x034,0x034,0x030,0x030,0x01a,0x01a,0x018,0x018,0x002,0x002,0x004,0x0cc,0x054,0x002,0x066,0x02a), // 52x52 + array(0x040,0x040,0x038,0x038,0x010,0x010,0x00e,0x00e,0x004,0x004,0x010,0x118,0x070,0x002,0x08c,0x038), // 64x64 + array(0x048,0x048,0x040,0x040,0x012,0x012,0x010,0x010,0x004,0x004,0x010,0x170,0x090,0x004,0x05c,0x024), // 72x72 + array(0x050,0x050,0x048,0x048,0x014,0x014,0x012,0x012,0x004,0x004,0x010,0x1c8,0x0c0,0x004,0x072,0x030), // 80x80 + array(0x058,0x058,0x050,0x050,0x016,0x016,0x014,0x014,0x004,0x004,0x010,0x240,0x0e0,0x004,0x090,0x038), // 88x88 + array(0x060,0x060,0x058,0x058,0x018,0x018,0x016,0x016,0x004,0x004,0x010,0x2b8,0x110,0x004,0x0ae,0x044), // 96x96 + array(0x068,0x068,0x060,0x060,0x01a,0x01a,0x018,0x018,0x004,0x004,0x010,0x330,0x150,0x006,0x088,0x038), // 104x104 + array(0x078,0x078,0x06c,0x06c,0x014,0x014,0x012,0x012,0x006,0x006,0x024,0x41a,0x198,0x006,0x0af,0x044), // 120x120 + array(0x084,0x084,0x078,0x078,0x016,0x016,0x014,0x014,0x006,0x006,0x024,0x518,0x1f0,0x008,0x0a3,0x03e), // 132x132 + array(0x090,0x090,0x084,0x084,0x018,0x018,0x016,0x016,0x006,0x006,0x024,0x616,0x26c,0x00a,0x09c,0x03e), // 144x144 + // rectangular form (currently unused) --------------------------------------------------------------------------- + array(0x008,0x012,0x006,0x010,0x008,0x012,0x006,0x010,0x001,0x001,0x001,0x005,0x007,0x001,0x005,0x007), // 8x18 + array(0x008,0x020,0x006,0x01c,0x008,0x010,0x006,0x00e,0x001,0x002,0x002,0x00a,0x00b,0x001,0x00a,0x00b), // 8x32 + array(0x00c,0x01a,0x00a,0x018,0x00c,0x01a,0x00a,0x018,0x001,0x001,0x001,0x010,0x00e,0x001,0x010,0x00e), // 12x26 + array(0x00c,0x024,0x00a,0x020,0x00c,0x012,0x00a,0x010,0x001,0x002,0x002,0x00c,0x012,0x001,0x00c,0x012), // 12x36 + array(0x010,0x024,0x00e,0x020,0x010,0x012,0x00e,0x010,0x001,0x002,0x002,0x020,0x018,0x001,0x020,0x018), // 16x36 + array(0x010,0x030,0x00e,0x02c,0x010,0x018,0x00e,0x016,0x001,0x002,0x002,0x031,0x01c,0x001,0x031,0x01c) // 16x48 + ); + + /** + * Map encodation modes whit character sets. + * @protected + */ + protected $chset_id = array(ENC_C40 => 'C40', ENC_TXT => 'TXT', ENC_X12 =>'X12'); + + /** + * Basic set of characters for each encodation mode. + * @protected + */ + protected $chset = array( + 'C40' => array( // Basic set for C40 ---------------------------------------------------------------------------- + 'S1'=>0x00,'S2'=>0x01,'S3'=>0x02,0x20=>0x03,0x30=>0x04,0x31=>0x05,0x32=>0x06,0x33=>0x07,0x34=>0x08,0x35=>0x09, // + 0x36=>0x0a,0x37=>0x0b,0x38=>0x0c,0x39=>0x0d,0x41=>0x0e,0x42=>0x0f,0x43=>0x10,0x44=>0x11,0x45=>0x12,0x46=>0x13, // + 0x47=>0x14,0x48=>0x15,0x49=>0x16,0x4a=>0x17,0x4b=>0x18,0x4c=>0x19,0x4d=>0x1a,0x4e=>0x1b,0x4f=>0x1c,0x50=>0x1d, // + 0x51=>0x1e,0x52=>0x1f,0x53=>0x20,0x54=>0x21,0x55=>0x22,0x56=>0x23,0x57=>0x24,0x58=>0x25,0x59=>0x26,0x5a=>0x27),// + 'TXT' => array( // Basic set for TEXT --------------------------------------------------------------------------- + 'S1'=>0x00,'S2'=>0x01,'S3'=>0x02,0x20=>0x03,0x30=>0x04,0x31=>0x05,0x32=>0x06,0x33=>0x07,0x34=>0x08,0x35=>0x09, // + 0x36=>0x0a,0x37=>0x0b,0x38=>0x0c,0x39=>0x0d,0x61=>0x0e,0x62=>0x0f,0x63=>0x10,0x64=>0x11,0x65=>0x12,0x66=>0x13, // + 0x67=>0x14,0x68=>0x15,0x69=>0x16,0x6a=>0x17,0x6b=>0x18,0x6c=>0x19,0x6d=>0x1a,0x6e=>0x1b,0x6f=>0x1c,0x70=>0x1d, // + 0x71=>0x1e,0x72=>0x1f,0x73=>0x20,0x74=>0x21,0x75=>0x22,0x76=>0x23,0x77=>0x24,0x78=>0x25,0x79=>0x26,0x7a=>0x27),// + 'SH1' => array( // Shift 1 set ---------------------------------------------------------------------------------- + 0x00=>0x00,0x01=>0x01,0x02=>0x02,0x03=>0x03,0x04=>0x04,0x05=>0x05,0x06=>0x06,0x07=>0x07,0x08=>0x08,0x09=>0x09, // + 0x0a=>0x0a,0x0b=>0x0b,0x0c=>0x0c,0x0d=>0x0d,0x0e=>0x0e,0x0f=>0x0f,0x10=>0x10,0x11=>0x11,0x12=>0x12,0x13=>0x13, // + 0x14=>0x14,0x15=>0x15,0x16=>0x16,0x17=>0x17,0x18=>0x18,0x19=>0x19,0x1a=>0x1a,0x1b=>0x1b,0x1c=>0x1c,0x1d=>0x1d, // + 0x1e=>0x1e,0x1f=>0x1f), // + 'SH2' => array( // Shift 2 set ---------------------------------------------------------------------------------- + 0x21=>0x00,0x22=>0x01,0x23=>0x02,0x24=>0x03,0x25=>0x04,0x26=>0x05,0x27=>0x06,0x28=>0x07,0x29=>0x08,0x2a=>0x09, // + 0x2b=>0x0a,0x2c=>0x0b,0x2d=>0x0c,0x2e=>0x0d,0x2f=>0x0e,0x3a=>0x0f,0x3b=>0x10,0x3c=>0x11,0x3d=>0x12,0x3e=>0x13, // + 0x3f=>0x14,0x40=>0x15,0x5b=>0x16,0x5c=>0x17,0x5d=>0x18,0x5e=>0x19,0x5f=>0x1a,'F1'=>0x1b,'US'=>0x1e), // + 'S3C' => array( // Shift 3 set for C40 -------------------------------------------------------------------------- + 0x60=>0x00,0x61=>0x01,0x62=>0x02,0x63=>0x03,0x64=>0x04,0x65=>0x05,0x66=>0x06,0x67=>0x07,0x68=>0x08,0x69=>0x09, // + 0x6a=>0x0a,0x6b=>0x0b,0x6c=>0x0c,0x6d=>0x0d,0x6e=>0x0e,0x6f=>0x0f,0x70=>0x10,0x71=>0x11,0x72=>0x12,0x73=>0x13, // + 0x74=>0x14,0x75=>0x15,0x76=>0x16,0x77=>0x17,0x78=>0x18,0x79=>0x19,0x7a=>0x1a,0x7b=>0x1b,0x7c=>0x1c,0x7d=>0x1d, // + 0x7e=>0x1e,0x7f=>0x1f), + 'S3T' => array( // Shift 3 set for TEXT ------------------------------------------------------------------------- + 0x60=>0x00,0x41=>0x01,0x42=>0x02,0x43=>0x03,0x44=>0x04,0x45=>0x05,0x46=>0x06,0x47=>0x07,0x48=>0x08,0x49=>0x09, // + 0x4a=>0x0a,0x4b=>0x0b,0x4c=>0x0c,0x4d=>0x0d,0x4e=>0x0e,0x4f=>0x0f,0x50=>0x10,0x51=>0x11,0x52=>0x12,0x53=>0x13, // + 0x54=>0x14,0x55=>0x15,0x56=>0x16,0x57=>0x17,0x58=>0x18,0x59=>0x19,0x5a=>0x1a,0x7b=>0x1b,0x7c=>0x1c,0x7d=>0x1d, // + 0x7e=>0x1e,0x7f=>0x1f), // + 'X12' => array( // Set for X12 ---------------------------------------------------------------------------------- + 0x0d=>0x00,0x2a=>0x01,0x3e=>0x02,0x20=>0x03,0x30=>0x04,0x31=>0x05,0x32=>0x06,0x33=>0x07,0x34=>0x08,0x35=>0x09, // + 0x36=>0x0a,0x37=>0x0b,0x38=>0x0c,0x39=>0x0d,0x41=>0x0e,0x42=>0x0f,0x43=>0x10,0x44=>0x11,0x45=>0x12,0x46=>0x13, // + 0x47=>0x14,0x48=>0x15,0x49=>0x16,0x4a=>0x17,0x4b=>0x18,0x4c=>0x19,0x4d=>0x1a,0x4e=>0x1b,0x4f=>0x1c,0x50=>0x1d, // + 0x51=>0x1e,0x52=>0x1f,0x53=>0x20,0x54=>0x21,0x55=>0x22,0x56=>0x23,0x57=>0x24,0x58=>0x25,0x59=>0x26,0x5a=>0x27) // + ); + +// ----------------------------------------------------------------------------- + + /** + * This is the class constructor. + * Creates a datamatrix object + * @param $code (string) Code to represent using Datamatrix. + * @public + */ + public function __construct($code) { + $barcode_array = array(); + if ((is_null($code)) OR ($code == '\0') OR ($code == '')) { + return false; + } + // get data codewords + $cw = $this->getHighLevelEncoding($code); + // number of data codewords + $nd = count($cw); + // check size + if ($nd > 1558) { + return false; + } + // get minimum required matrix size. + foreach ($this->symbattr as $params) { + if ($params[11] >= $nd) { + break; + } + } + if ($params[11] < $nd) { + // too much data + return false; + } elseif ($params[11] > $nd) { + // add padding + if ($this->last_enc == ENC_EDF) { + // switch to ASCII encoding + $cw[] = 124; + ++$nd; + } elseif (($this->last_enc != ENC_ASCII) AND ($this->last_enc != ENC_BASE256)) { + // switch to ASCII encoding + $cw[] = 254; + ++$nd; + } + if ($params[11] > $nd) { + // add first pad + $cw[] = 129; + ++$nd; + // add remaining pads + for ($i = $nd; $i < $params[11]; ++$i) { + $cw[] = $this->get253StateCodeword(129, $i); + } + } + } + // add error correction codewords + $cw = $this->getErrorCorrection($cw, $params[13], $params[14], $params[15]); + // initialize empty arrays + $grid = array_fill(0, ($params[2] * $params[3]), 0); + // get placement map + $places = $this->getPlacementMap($params[2], $params[3]); + // fill the grid with data + $grid = array(); + $i = 0; + // region data row max index + $rdri = ($params[4] - 1); + // region data column max index + $rdci = ($params[5] - 1); + // for each vertical region + for ($vr = 0; $vr < $params[9]; ++$vr) { + // for each row on region + for ($r = 0; $r < $params[4]; ++$r) { + // get row + $row = (($vr * $params[4]) + $r); + // for each horizontal region + for ($hr = 0; $hr < $params[8]; ++$hr) { + // for each column on region + for ($c = 0; $c < $params[5]; ++$c) { + // get column + $col = (($hr * $params[5]) + $c); + // braw bits by case + if ($r == 0) { + // top finder pattern + if ($c % 2) { + $grid[$row][$col] = 0; + } else { + $grid[$row][$col] = 1; + } + } elseif ($r == $rdri) { + // bottom finder pattern + $grid[$row][$col] = 1; + } elseif ($c == 0) { + // left finder pattern + $grid[$row][$col] = 1; + } elseif ($c == $rdci) { + // right finder pattern + if ($r % 2) { + $grid[$row][$col] = 1; + } else { + $grid[$row][$col] = 0; + } + } else { // data bit + if ($places[$i] < 2) { + $grid[$row][$col] = $places[$i]; + } else { + // codeword ID + $cw_id = (floor($places[$i] / 10) - 1); + // codeword BIT mask + $cw_bit = pow(2, (8 - ($places[$i] % 10))); + $grid[$row][$col] = (($cw[$cw_id] & $cw_bit) == 0) ? 0 : 1; + } + ++$i; + } + } + } + } + } + $this->barcode_array['num_rows'] = $params[0]; + $this->barcode_array['num_cols'] = $params[1]; + $this->barcode_array['bcode'] = $grid; + } + + /** + * Returns a barcode array which is readable by TCPDF + * @return array barcode array readable by TCPDF; + * @public + */ + public function getBarcodeArray() { + return $this->barcode_array; + } + + /** + * Product of two numbers in a Power-of-Two Galois Field + * @param $a (int) first number to multiply. + * @param $b (int) second number to multiply. + * @param $log (array) Log table. + * @param $alog (array) Anti-Log table. + * @param $gf (array) Number of Factors of the Reed-Solomon polynomial. + * @return int product + * @protected + */ + protected function getGFProduct($a, $b, $log, $alog, $gf) { + if (($a == 0) OR ($b == 0)) { + return 0; + } + return ($alog[($log[$a] + $log[$b]) % ($gf - 1)]); + } + + /** + * Add error correction codewords to data codewords array (ANNEX E). + * @param $wd (array) Array of datacodewords. + * @param $nb (int) Number of blocks. + * @param $nd (int) Number of data codewords per block. + * @param $nc (int) Number of correction codewords per block. + * @param $gf (int) numner of fields on log/antilog table (power of 2). + * @param $pp (int) The value of its prime modulus polynomial (301 for ECC200). + * @return array data codewords + error codewords + * @protected + */ + protected function getErrorCorrection($wd, $nb, $nd, $nc, $gf=256, $pp=301) { + // generate the log ($log) and antilog ($alog) tables + $log[0] = 0; + $alog[0] = 1; + for ($i = 1; $i < $gf; ++$i) { + $alog[$i] = ($alog[($i - 1)] * 2); + if ($alog[$i] >= $gf) { + $alog[$i] ^= $pp; + } + $log[$alog[$i]] = $i; + } + ksort($log); + // generate the polynomial coefficients (c) + $c = array_fill(0, ($nc + 1), 0); + $c[0] = 1; + for ($i = 1; $i <= $nc; ++$i) { + $c[$i] = $c[($i-1)]; + for ($j = ($i - 1); $j >= 1; --$j) { + $c[$j] = $c[($j - 1)] ^ $this->getGFProduct($c[$j], $alog[$i], $log, $alog, $gf); + } + $c[0] = $this->getGFProduct($c[0], $alog[$i], $log, $alog, $gf); + } + ksort($c); + // total number of data codewords + $num_wd = ($nb * $nd); + // total number of error codewords + $num_we = ($nb * $nc); + // for each block + for ($b = 0; $b < $nb; ++$b) { + // create interleaved data block + $block = array(); + for ($n = $b; $n < $num_wd; $n += $nb) { + $block[] = $wd[$n]; + } + // initialize error codewords + $we = array_fill(0, ($nc + 1), 0); + // calculate error correction codewords for this block + for ($i = 0; $i < $nd; ++$i) { + $k = ($we[0] ^ $block[$i]); + for ($j = 0; $j < $nc; ++$j) { + $we[$j] = ($we[($j + 1)] ^ $this->getGFProduct($k, $c[($nc - $j - 1)], $log, $alog, $gf)); + } + } + // add error codewords at the end of data codewords + $j = 0; + for ($i = $b; $i < $num_we; $i += $nb) { + $wd[($num_wd + $i)] = $we[$j]; + ++$j; + } + } + // reorder codewords + ksort($wd); + return $wd; + } + + /** + * Return the 253-state codeword + * @param $cwpad (int) Pad codeword. + * @param $cwpos (int) Number of data codewords from the beginning of encoded data. + * @return pad codeword + * @protected + */ + protected function get253StateCodeword($cwpad, $cwpos) { + $pad = ($cwpad + (((149 * $cwpos) % 253) + 1)); + if ($pad > 254) { + $pad -= 254; + } + return $pad; + } + + /** + * Return the 255-state codeword + * @param $cwpad (int) Pad codeword. + * @param $cwpos (int) Number of data codewords from the beginning of encoded data. + * @return pad codeword + * @protected + */ + protected function get255StateCodeword($cwpad, $cwpos) { + $pad = ($cwpad + (((149 * $cwpos) % 255) + 1)); + if ($pad > 255) { + $pad -= 256; + } + return $pad; + } + + /** + * Returns true if the char belongs to the selected mode + * @param $chr (int) Character (byte) to check. + * @param $mode (int) Current encoding mode. + * @return boolean true if the char is of the selected mode. + * @protected + */ + protected function isCharMode($chr, $mode) { + $status = false; + switch ($mode) { + case ENC_ASCII: { // ASCII character 0 to 127 + $status = (($chr >= 0) AND ($chr <= 127)); + break; + } + case ENC_C40: { // Upper-case alphanumeric + $status = (($chr == 32) OR (($chr >= 48) AND ($chr <= 57)) OR (($chr >= 65) AND ($chr <= 90))); + break; + } + case ENC_TXT: { // Lower-case alphanumeric + $status = (($chr == 32) OR (($chr >= 48) AND ($chr <= 57)) OR (($chr >= 97) AND ($chr <= 122))); + break; + } + case ENC_X12: { // ANSI X12 + $status = (($chr == 13) OR ($chr == 42) OR ($chr == 62)); + break; + } + case ENC_EDF: { // ASCII character 32 to 94 + $status = (($chr >= 32) AND ($chr <= 94)); + break; + } + case ENC_BASE256: { // Function character (FNC1, Structured Append, Reader Program, or Code Page) + $status = (($chr == 232) OR ($chr == 233) OR ($chr == 234) OR ($chr == 241)); + break; + } + case ENC_ASCII_EXT: { // ASCII character 128 to 255 + $status = (($chr >= 128) AND ($chr <= 255)); + break; + } + case ENC_ASCII_NUM: { // ASCII digits + $status = (($chr >= 48) AND ($chr <= 57)); + break; + } + } + return $status; + } + + /** + * The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S). + * @param $data (string) data to encode + * @param $pos (int) current position + * @param $mode (int) current encoding mode + * @return int encoding mode + * @protected + */ + protected function lookAheadTest($data, $pos, $mode) { + $data_length = strlen($data); + if ($pos >= $data_length) { + return $mode; + } + $charscount = 0; // count processed chars + // STEP J + if ($mode == ENC_ASCII) { + $numch = array(0, 1, 1, 1, 1, 1.25); + } else { + $numch = array(1, 2, 2, 2, 2, 2.25); + $numch[$mode] = 0; + } + while (true) { + // STEP K + if (($pos + $charscount) == $data_length) { + if ($numch[ENC_ASCII] <= ceil(min($numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256]))) { + return ENC_ASCII; + } + if ($numch[ENC_BASE256] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF]))) { + return ENC_BASE256; + } + if ($numch[ENC_EDF] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_BASE256]))) { + return ENC_EDF; + } + if ($numch[ENC_TXT] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256]))) { + return ENC_TXT; + } + if ($numch[ENC_X12] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_EDF], $numch[ENC_BASE256]))) { + return ENC_X12; + } + return ENC_C40; + } + // get char + $chr = ord($data[$pos + $charscount]); + $charscount++; + // STEP L + if ($this->isCharMode($chr, ENC_ASCII_NUM)) { + $numch[ENC_ASCII] += (1 / 2); + } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { + $numch[ENC_ASCII] = ceil($numch[ENC_ASCII]); + $numch[ENC_ASCII] += 2; + } else { + $numch[ENC_ASCII] = ceil($numch[ENC_ASCII]); + $numch[ENC_ASCII] += 1; + } + // STEP M + if ($this->isCharMode($chr, ENC_C40)) { + $numch[ENC_C40] += (2 / 3); + } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { + $numch[ENC_C40] += (8 / 3); + } else { + $numch[ENC_C40] += (4 / 3); + } + // STEP N + if ($this->isCharMode($chr, ENC_TXT)) { + $numch[ENC_TXT] += (2 / 3); + } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { + $numch[ENC_TXT] += (8 / 3); + } else { + $numch[ENC_TXT] += (4 / 3); + } + // STEP O + if ($this->isCharMode($chr, ENC_X12) OR $this->isCharMode($chr, ENC_C40)) { + $numch[ENC_X12] += (2 / 3); + } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { + $numch[ENC_X12] += (13 / 3); + } else { + $numch[ENC_X12] += (10 / 3); + } + // STEP P + if ($this->isCharMode($chr, ENC_EDF)) { + $numch[ENC_EDF] += (3 / 4); + } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { + $numch[ENC_EDF] += (17 / 4); + } else { + $numch[ENC_EDF] += (13 / 4); + } + // STEP Q + if ($this->isCharMode($chr, ENC_BASE256)) { + $numch[ENC_BASE256] += 4; + } else { + $numch[ENC_BASE256] += 1; + } + // STEP R + if ($charscount >= 4) { + if (($numch[ENC_ASCII] + 1) <= min($numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256])) { + return ENC_ASCII; + } + if ((($numch[ENC_BASE256] + 1) <= $numch[ENC_ASCII]) + OR (($numch[ENC_BASE256] + 1) < min($numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF]))) { + return ENC_BASE256; + } + if (($numch[ENC_EDF] + 1) < min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_BASE256])) { + return ENC_EDF; + } + if (($numch[ENC_TXT] + 1) < min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256])) { + return ENC_TXT; + } + if (($numch[ENC_X12] + 1) < min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_EDF], $numch[ENC_BASE256])) { + return ENC_X12; + } + if (($numch[ENC_C40] + 1) < min($numch[ENC_ASCII], $numch[ENC_TXT], $numch[ENC_EDF], $numch[ENC_BASE256])) { + if ($numch[ENC_C40] < $numch[ENC_X12]) { + return ENC_C40; + } + if ($numch[ENC_C40] == $numch[ENC_X12]) { + $k = ($pos + $charscount + 1); + while ($k < $data_length) { + $tmpchr = ord($data{$k}); + if ($this->isCharMode($tmpchr, ENC_X12)) { + return ENC_X12; + } elseif (!($this->isCharMode($tmpchr, ENC_X12) OR $this->isCharMode($tmpchr, ENC_C40))) { + break; + } + ++$k; + } + return ENC_C40; + } + } + } + } // end of while + } + + /** + * Get the switching codeword to a new encoding mode (latch codeword) + * @param $mode (int) New encoding mode. + * @return (int) Switch codeword. + * @protected + */ + protected function getSwitchEncodingCodeword($mode) { + switch ($mode) { + case ENC_ASCII: { // ASCII character 0 to 127 + $cw = 254; + break; + } + case ENC_C40: { // Upper-case alphanumeric + $cw = 230; + break; + } + case ENC_TXT: { // Lower-case alphanumeric + $cw = 239; + break; + } + case ENC_X12: { // ANSI X12 + $cw = 238; + break; + } + case ENC_EDF: { // ASCII character 32 to 94 + $cw = 240; + break; + } + case ENC_BASE256: { // Function character (FNC1, Structured Append, Reader Program, or Code Page) + $cw = 231; + break; + } + } + return $cw; + } + + /** + * Choose the minimum matrix size and return the max number of data codewords. + * @param $numcw (int) Number of current codewords. + * @return number of data codewords in matrix + * @protected + */ + protected function getMaxDataCodewords($numcw) { + foreach ($this->symbattr as $key => $matrix) { + if ($matrix[11] >= $numcw) { + return $matrix[11]; + } + } + return 0; + } + + /** + * Get high level encoding using the minimum symbol data characters for ECC 200 + * @param $data (string) data to encode + * @return array of codewords + * @protected + */ + protected function getHighLevelEncoding($data) { + // STEP A. Start in ASCII encodation. + $enc = ENC_ASCII; // current encoding mode + $pos = 0; // current position + $cw = array(); // array of codewords to be returned + $cw_num = 0; // number of data codewords + $data_lenght = strlen($data); // number of chars + while ($pos < $data_lenght) { + switch ($enc) { + case ENC_ASCII: { // STEP B. While in ASCII encodation + if (($data_lenght > 1) AND ($pos < ($data_lenght - 1)) AND ($this->isCharMode(ord($data[$pos]), ENC_ASCII_NUM) AND $this->isCharMode(ord($data[$pos + 1]), ENC_ASCII_NUM))) { + // 1. If the next data sequence is at least 2 consecutive digits, encode the next two digits as a double digit in ASCII mode. + $cw[] = (intval(substr($data, $pos, 2)) + 130); + ++$cw_num; + $pos += 2; + } else { + // 2. If the look-ahead test (starting at step J) indicates another mode, switch to that mode. + $newenc = $this->lookAheadTest($data, $pos, $enc); + if ($newenc != $enc) { + // switch to new encoding + $enc = $newenc; + $cw[] = $this->getSwitchEncodingCodeword($enc); + ++$cw_num; + } else { + // get new byte + $chr = ord($data[$pos]); + ++$pos; + if ($this->isCharMode($chr, ENC_ASCII_EXT)) { + // 3. If the next data character is extended ASCII (greater than 127) encode it in ASCII mode first using the Upper Shift (value 235) character. + $cw[] = 235; + $cw[] = ($chr - 127); + $cw_num += 2; + } else { + // 4. Otherwise process the next data character in ASCII encodation. + $cw[] = ($chr + 1); + ++$cw_num; + } + } + } + break; + } + case ENC_C40 : // Upper-case alphanumeric + case ENC_TXT : // Lower-case alphanumeric + case ENC_X12 : { // ANSI X12 + $temp_cw = array(); + $p = 0; + $epos = $pos; + // get charset ID + $set_id = $this->chset_id[$enc]; + // get basic charset for current encoding + $charset = $this->chset[$set_id]; + do { + // 2. process the next character in C40 encodation. + $chr = ord($data[$epos]); + ++$epos; + // check for extended character + if ($chr & 0x80) { + if ($enc == ENC_X12) { + return false; + } + $chr = ($chr & 0x7f); + $temp_cw[] = 1; // shift 2 + $temp_cw[] = 30; // upper shift + $p += 2; + } + if (isset($charset[$chr])) { + $temp_cw[] = $charset[$chr]; + ++$p; + } else { + if (isset($this->chset['SH1'][$chr])) { + $temp_cw[] = 0; // shift 1 + $shiftset = $this->chset['SH1']; + } elseif (isset($chr, $this->chset['SH2'][$chr])) { + $temp_cw[] = 1; // shift 2 + $shiftset = $this->chset['SH2']; + } elseif (($enc == ENC_C40) AND isset($this->chset['S3C'][$chr])) { + $temp_cw[] = 2; // shift 3 + $shiftset = $this->chset['S3C']; + } elseif (($enc == ENC_TXT) AND isset($this->chset['S3T'][$chr])) { + $temp_cw[] = 2; // shift 3 + $shiftset = $this->chset['S3T']; + } else { + return false; + } + $temp_cw[] = $shiftset[$chr]; + $p += 2; + } + if ($p >= 3) { + $c1 = array_shift($temp_cw); + $c2 = array_shift($temp_cw); + $c3 = array_shift($temp_cw); + $p -= 3; + $tmp = ((1600 * $c1) + (40 * $c2) + $c3 + 1); + $cw[] = ($tmp >> 8); + $cw[] = ($tmp % 256); + $cw_num += 2; + $pos = $epos; + // 1. If the C40 encoding is at the point of starting a new double symbol character and if the look-ahead test (starting at step J) indicates another mode, switch to that mode. + $newenc = $this->lookAheadTest($data, $pos, $enc); + if ($newenc != $enc) { + $enc = $newenc; + $cw[] = $this->getSwitchEncodingCodeword($enc); + ++$cw_num; + $pos -= $p; + $p = 0; + break; + } + } + } while (($p > 0) AND ($epos < $data_lenght)); + // process last data (if any) + if ($p > 0) { + // get remaining number of data symbols + $cwr = ($this->getMaxDataCodewords($cw_num + 2) - $cw_num); + if (($cwr == 1) AND ($p == 1)) { + // d. If one symbol character remains and one C40 value (data character) remains to be encoded + $c1 = array_shift($temp_cw); + --$p; + $cw[] = ($c1 + 1); + ++$cw_num; + } elseif (($cwr == 2) AND ($p == 1)) { + // c. If two symbol characters remain and only one C40 value (data character) remains to be encoded + $c1 = array_shift($temp_cw); + --$p; + $cw[] = 254; + $cw[] = ($c1 + 1); + $cw_num += 2; + } elseif (($cwr == 2) AND ($p == 2)) { + // b. If two symbol characters remain and two C40 values remain to be encoded + $c1 = array_shift($temp_cw); + $c2 = array_shift($temp_cw); + $p -= 2; + $tmp = ((1600 * $c1) + (40 * $c2) + 1); + $cw[] = ($tmp >> 8); + $cw[] = ($tmp % 256); + $cw_num += 2; + } else { + // switch to ASCII encoding + if ($enc != ENC_ASCII) { + $enc = ENC_ASCII; + $cw[] = $this->getSwitchEncodingCodeword($enc); + ++$cw_num; + } + } + } + break; + } + case ENC_EDF: { // F. While in EDIFACT (EDF) encodation + // initialize temporary array with 0 lenght + $temp_cw = array(); + $epos = $pos; + $field_lenght = 0; + $newenc = $enc; + do { + // 2. process the next character in EDIFACT encodation. + $chr = ord($data[$epos]); + if ($this->isCharMode($chr, ENC_EDF)) { + ++$epos; + $temp_cw[] = $chr; + ++$field_lenght; + } + if (($field_lenght == 4) OR ($epos == $data_lenght) OR !$this->isCharMode($chr, ENC_EDF)) { + if ($field_lenght < 4) { + // set unlatch character + $temp_cw[] = 0x1f; + ++$field_lenght; + // fill empty characters + for ($i = $field_lenght; $i < 4; ++$i) { + $temp_cw[] = 0; + } + $enc = ENC_ASCII; + } + // encodes four data characters in three codewords + $tcw = (($temp_cw[0] & 0x3F) << 2) + (($temp_cw[1] & 0x30) >> 4); + if ($tcw > 0) { + $cw[] = $tcw; + $cw_num++; + } + $tcw= (($temp_cw[1] & 0x0F) << 4) + (($temp_cw[2] & 0x3C) >> 2); + if ($tcw > 0) { + $cw[] = $tcw; + $cw_num++; + } + $tcw = (($temp_cw[2] & 0x03) << 6) + ($temp_cw[3] & 0x3F); + if ($tcw > 0) { + $cw[] = $tcw; + $cw_num++; + } + $temp_cw = array(); + $pos = $epos; + $field_lenght = 0; + if ($enc == ENC_ASCII) { + break; // exit from EDIFACT mode + } + } + } while ($epos < $data_lenght); + break; + } + case ENC_BASE256: { // G. While in Base 256 (B256) encodation + // initialize temporary array with 0 lenght + $temp_cw = array(); + $field_lenght = 0; + while (($pos < $data_lenght) AND ($field_lenght <= 1555)) { + $newenc = $this->lookAheadTest($data, $pos, $enc); + if ($newenc != $enc) { + // 1. If the look-ahead test (starting at step J) indicates another mode, switch to that mode. + $enc = $newenc; + $cw[] = $this->getSwitchEncodingCodeword($enc); + ++$cw_num; + break; // exit from B256 mode + } else { + // 2. Otherwise, process the next character in Base 256 encodation. + $chr = ord($data[$pos]); + ++$pos; + $temp_cw[] = $chr; + ++$field_lenght; + } + } + // set field lenght + if ($field_lenght <= 249) { + $cw[] = $field_lenght; + ++$cw_num; + } else { + $cw[] = (floor($field_lenght / 250) + 249); + $cw[] = ($field_lenght % 250); + $cw_num += 2; + } + if (!empty($temp_cw)) { + // add B256 field + foreach ($temp_cw as $p => $cht) { + $cw[] = $this->get255StateCodeword($chr, ($cw_num + $p)); + } + } + break; + } + } // end of switch enc + } // end of while + // set last used encoding + $this->last_enc = $enc; + return $cw; + } + + /** + * Places "chr+bit" with appropriate wrapping within array[]. + * (Annex F - ECC 200 symbol character placement) + * @param $marr (array) Array of symbols. + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @param $row (int) Row number. + * @param $col (int) Column number. + * @param $chr (int) Char byte. + * @param $bit (int) Bit. + * @return array + * @protected + */ + protected function placeModule($marr, $nrow, $ncol, $row, $col, $chr, $bit) { + if ($row < 0) { + $row += $nrow; + $col += (4 - (($nrow + 4) % 8)); + } + if ($col < 0) { + $col += $ncol; + $row += (4 - (($ncol + 4) % 8)); + } + $marr[(($row * $ncol) + $col)] = ((10 * $chr) + $bit); + return $marr; + } + + /** + * Places the 8 bits of a utah-shaped symbol character. + * (Annex F - ECC 200 symbol character placement) + * @param $marr (array) Array of symbols. + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @param $row (int) Row number. + * @param $col (int) Column number. + * @param $chr (int) Char byte. + * @return array + * @protected + */ + protected function placeUtah($marr, $nrow, $ncol, $row, $col, $chr) { + $marr = $this->placeModule($marr, $nrow, $ncol, $row-2, $col-2, $chr, 1); + $marr = $this->placeModule($marr, $nrow, $ncol, $row-2, $col-1, $chr, 2); + $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col-2, $chr, 3); + $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col-1, $chr, 4); + $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col, $chr, 5); + $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col-2, $chr, 6); + $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col-1, $chr, 7); + $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col, $chr, 8); + return $marr; + } + + /** + * Places the 8 bits of the first special corner case. + * (Annex F - ECC 200 symbol character placement) + * @param $marr (array) Array of symbols. + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @param $chr (int) Char byte. + * @return array + * @protected + */ + protected function placeCornerA($marr, $nrow, $ncol, $chr) { + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 1); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 1, $chr, 2); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 2, $chr, 3); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 4); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 5); + $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 6); + $marr = $this->placeModule($marr, $nrow, $ncol, 2, $ncol-1, $chr, 7); + $marr = $this->placeModule($marr, $nrow, $ncol, 3, $ncol-1, $chr, 8); + return $marr; + } + + /** + * Places the 8 bits of the second special corner case. + * (Annex F - ECC 200 symbol character placement) + * @param $marr (array) Array of symbols. + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @param $chr (int) Char byte. + * @return array + * @protected + */ + protected function placeCornerB($marr, $nrow, $ncol, $chr) { + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-3, 0, $chr, 1); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-2, 0, $chr, 2); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 3); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-4, $chr, 4); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-3, $chr, 5); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 6); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 7); + $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 8); + return $marr; + } + + /** + * Places the 8 bits of the third special corner case. + * (Annex F - ECC 200 symbol character placement) + * @param $marr (array) Array of symbols. + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @param $chr (int) Char byte. + * @return array + * @protected + */ + protected function placeCornerC($marr, $nrow, $ncol, $chr) { + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-3, 0, $chr, 1); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-2, 0, $chr, 2); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 3); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 4); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 5); + $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 6); + $marr = $this->placeModule($marr, $nrow, $ncol, 2, $ncol-1, $chr, 7); + $marr = $this->placeModule($marr, $nrow, $ncol, 3, $ncol-1, $chr, 8); + return $marr; + } + + /** + * Places the 8 bits of the fourth special corner case. + * (Annex F - ECC 200 symbol character placement) + * @param $marr (array) Array of symbols. + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @param $chr (int) Char byte. + * @return array + * @protected + */ + protected function placeCornerD($marr, $nrow, $ncol, $chr) { + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 1); + $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, $ncol-1, $chr, 2); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-3, $chr, 3); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 4); + $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 5); + $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-3, $chr, 6); + $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-2, $chr, 7); + $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 8); + return $marr; + } + + /** + * Build a placement map. + * (Annex F - ECC 200 symbol character placement) + * @param $nrow (int) Number of rows. + * @param $ncol (int) Number of columns. + * @return array + * @protected + */ + protected function getPlacementMap($nrow, $ncol) { + // initialize array with zeros + $marr = array_fill(0, ($nrow * $ncol), 0); + // set starting values + $chr = 1; + $row = 4; + $col = 0; + do { + // repeatedly first check for one of the special corner cases, then + if (($row == $nrow) AND ($col == 0)) { + $marr = $this->placeCornerA($marr, $nrow, $ncol, $chr); + ++$chr; + } + if (($row == ($nrow - 2)) AND ($col == 0) AND ($ncol % 4)) { + $marr = $this->placeCornerB($marr, $nrow, $ncol, $chr); + ++$chr; + } + if (($row == ($nrow - 2)) AND ($col == 0) AND (($ncol % 8) == 4)) { + $marr = $this->placeCornerC($marr, $nrow, $ncol, $chr); + ++$chr; + } + if (($row == ($nrow + 4)) AND ($col == 2) AND (!($ncol % 8))) { + $marr = $this->placeCornerD($marr, $nrow, $ncol, $chr); + ++$chr; + } + // sweep upward diagonally, inserting successive characters, + do { + if (($row < $nrow) AND ($col >= 0) AND (!$marr[(($row * $ncol) + $col)])) { + $marr = $this->placeUtah($marr, $nrow, $ncol, $row, $col, $chr); + ++$chr; + } + $row -= 2; + $col += 2; + } while (($row >= 0) AND ($col < $ncol)); + ++$row; + $col += 3; + // & then sweep downward diagonally, inserting successive characters,... + do { + if (($row >= 0) AND ($col < $ncol) AND (!$marr[(($row * $ncol) + $col)])) { + $marr = $this->placeUtah($marr, $nrow, $ncol, $row, $col, $chr); + ++$chr; + } + $row += 2; + $col -= 2; + } while (($row < $nrow) AND ($col >= 0)); + $row += 3; + ++$col; + // ... until the entire array is scanned + } while (($row < $nrow) OR ($col < $ncol)); + // lastly, if the lower righthand corner is untouched, fill in fixed pattern + if (!$marr[(($nrow * $ncol) - 1)]) { + $marr[(($nrow * $ncol) - 1)] = 1; + $marr[(($nrow * $ncol) - $ncol - 2)] = 1; + } + return $marr; + } + +} // end DataMatrix class +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/doc/index.html b/phplib/tcpdf/doc/index.html new file mode 100644 index 0000000..095c1eb --- /dev/null +++ b/phplib/tcpdf/doc/index.html @@ -0,0 +1,11 @@ + + + + +TCPDF DOCUMENTATION + + + +TCPDF Documentation + + diff --git a/phplib/tcpdf/encodings_maps.php b/phplib/tcpdf/encodings_maps.php new file mode 100644 index 0000000..414f8b6 --- /dev/null +++ b/phplib/tcpdf/encodings_maps.php @@ -0,0 +1,846 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Unicode data for TCPDF library. +// +//============================================================+ + +/** + * @file + * Font encodings maps class for TCPDF library. + * @author Nicola Asuni + * @package com.tecnick.tcpdf + * @since 5.9.123 (2011-10-01) + */ + +/** + * @class TCPDF_ENCODING_MAPS + * This is a PHP class containing Font encodings maps class for TCPDF library. + * @package com.tecnick.tcpdf + * @version 1.0.000 + * @author Nicola Asuni - info@tecnick.com + */ +class TCPDF_ENCODING_MAPS { + +/** + * Array of Encoding Maps. + * @public + */ +public $encmap = array( + +// encoding map for: cp1251 +'cp1251' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'afii10051',129=>'afii10052',130=>'quotesinglbase',131=>'afii10100',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'Euro',137=>'perthousand',138=>'afii10058',139=>'guilsinglleft',140=>'afii10059',141=>'afii10061',142=>'afii10060',143=>'afii10145', +144=>'afii10099',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'.notdef',153=>'trademark',154=>'afii10106',155=>'guilsinglright',156=>'afii10107',157=>'afii10109',158=>'afii10108',159=>'afii10193', +160=>'space',161=>'afii10062',162=>'afii10110',163=>'afii10057',164=>'currency',165=>'afii10050',166=>'brokenbar',167=>'section', +168=>'afii10023',169=>'copyright',170=>'afii10053',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'afii10056', +176=>'degree',177=>'plusminus',178=>'afii10055',179=>'afii10103',180=>'afii10098',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'afii10071',185=>'afii61352',186=>'afii10101',187=>'guillemotright',188=>'afii10105',189=>'afii10054',190=>'afii10102',191=>'afii10104', +192=>'afii10017',193=>'afii10018',194=>'afii10019',195=>'afii10020',196=>'afii10021',197=>'afii10022',198=>'afii10024',199=>'afii10025', +200=>'afii10026',201=>'afii10027',202=>'afii10028',203=>'afii10029',204=>'afii10030',205=>'afii10031',206=>'afii10032',207=>'afii10033', +208=>'afii10034',209=>'afii10035',210=>'afii10036',211=>'afii10037',212=>'afii10038',213=>'afii10039',214=>'afii10040',215=>'afii10041', +216=>'afii10042',217=>'afii10043',218=>'afii10044',219=>'afii10045',220=>'afii10046',221=>'afii10047',222=>'afii10048',223=>'afii10049', +224=>'afii10065',225=>'afii10066',226=>'afii10067',227=>'afii10068',228=>'afii10069',229=>'afii10070',230=>'afii10072',231=>'afii10073', +232=>'afii10074',233=>'afii10075',234=>'afii10076',235=>'afii10077',236=>'afii10078',237=>'afii10079',238=>'afii10080',239=>'afii10081', +240=>'afii10082',241=>'afii10083',242=>'afii10084',243=>'afii10085',244=>'afii10086',245=>'afii10087',246=>'afii10088',247=>'afii10089', +248=>'afii10090',249=>'afii10091',250=>'afii10092',251=>'afii10093',252=>'afii10094',253=>'afii10095',254=>'afii10096',255=>'afii10097'), + +// encoding map for: iso-8859-4 +'iso-8859-4' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'Aogonek',162=>'kgreenlandic',163=>'Rcommaaccent',164=>'currency',165=>'Itilde',166=>'Lcommaaccent',167=>'section', +168=>'dieresis',169=>'Scaron',170=>'Emacron',171=>'Gcommaaccent',172=>'Tbar',173=>'hyphen',174=>'Zcaron',175=>'macron', +176=>'degree',177=>'aogonek',178=>'ogonek',179=>'rcommaaccent',180=>'acute',181=>'itilde',182=>'lcommaaccent',183=>'caron', +184=>'cedilla',185=>'scaron',186=>'emacron',187=>'gcommaaccent',188=>'tbar',189=>'Eng',190=>'zcaron',191=>'eng', +192=>'Amacron',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Iogonek', +200=>'Ccaron',201=>'Eacute',202=>'Eogonek',203=>'Edieresis',204=>'Edotaccent',205=>'Iacute',206=>'Icircumflex',207=>'Imacron', +208=>'Dcroat',209=>'Ncommaaccent',210=>'Omacron',211=>'Kcommaaccent',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Uogonek',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Utilde',222=>'Umacron',223=>'germandbls', +224=>'amacron',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'iogonek', +232=>'ccaron',233=>'eacute',234=>'eogonek',235=>'edieresis',236=>'edotaccent',237=>'iacute',238=>'icircumflex',239=>'imacron', +240=>'dcroat',241=>'ncommaaccent',242=>'omacron',243=>'kcommaaccent',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'uogonek',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'utilde',254=>'umacron',255=>'dotaccent'), + +// encoding map for: cp1255 +'cp1255' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'circumflex',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'tilde',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'afii57636',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'multiply',171=>'guillemotleft',172=>'logicalnot',173=>'sfthyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'middot', +184=>'cedilla',185=>'onesuperior',186=>'divide',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', +192=>'afii57799',193=>'afii57801',194=>'afii57800',195=>'afii57802',196=>'afii57793',197=>'afii57794',198=>'afii57795',199=>'afii57798', +200=>'afii57797',201=>'afii57806',202=>'.notdef',203=>'afii57796',204=>'afii57807',205=>'afii57839',206=>'afii57645',207=>'afii57841', +208=>'afii57842',209=>'afii57804',210=>'afii57803',211=>'afii57658',212=>'afii57716',213=>'afii57717',214=>'afii57718',215=>'gereshhebrew', +216=>'gershayimhebrew',217=>'.notdef',218=>'.notdef',219=>'.notdef',220=>'.notdef',221=>'.notdef',222=>'.notdef',223=>'.notdef', +224=>'afii57664',225=>'afii57665',226=>'afii57666',227=>'afii57667',228=>'afii57668',229=>'afii57669',230=>'afii57670',231=>'afii57671', +232=>'afii57672',233=>'afii57673',234=>'afii57674',235=>'afii57675',236=>'afii57676',237=>'afii57677',238=>'afii57678',239=>'afii57679', +240=>'afii57680',241=>'afii57681',242=>'afii57682',243=>'afii57683',244=>'afii57684',245=>'afii57685',246=>'afii57686',247=>'afii57687', +248=>'afii57688',249=>'afii57689',250=>'afii57690',251=>'.notdef',252=>'.notdef',253=>'afii299',254=>'afii300',255=>'.notdef'), + +// encoding map for: iso-8859-11 +'iso-8859-11' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'kokaithai',162=>'khokhaithai',163=>'khokhuatthai',164=>'khokhwaithai',165=>'khokhonthai',166=>'khorakhangthai',167=>'ngonguthai', +168=>'chochanthai',169=>'chochingthai',170=>'chochangthai',171=>'sosothai',172=>'chochoethai',173=>'yoyingthai',174=>'dochadathai',175=>'topatakthai', +176=>'thothanthai',177=>'thonangmonthothai',178=>'thophuthaothai',179=>'nonenthai',180=>'dodekthai',181=>'totaothai',182=>'thothungthai',183=>'thothahanthai', +184=>'thothongthai',185=>'nonuthai',186=>'bobaimaithai',187=>'poplathai',188=>'phophungthai',189=>'fofathai',190=>'phophanthai',191=>'fofanthai', +192=>'phosamphaothai',193=>'momathai',194=>'yoyakthai',195=>'roruathai',196=>'ruthai',197=>'lolingthai',198=>'luthai',199=>'wowaenthai', +200=>'sosalathai',201=>'sorusithai',202=>'sosuathai',203=>'hohipthai',204=>'lochulathai',205=>'oangthai',206=>'honokhukthai',207=>'paiyannoithai', +208=>'saraathai',209=>'maihanakatthai',210=>'saraaathai',211=>'saraamthai',212=>'saraithai',213=>'saraiithai',214=>'sarauethai',215=>'saraueethai', +216=>'sarauthai',217=>'sarauuthai',218=>'phinthuthai',219=>'.notdef',220=>'.notdef',221=>'.notdef',222=>'.notdef',223=>'bahtthai', +224=>'saraethai',225=>'saraaethai',226=>'saraothai',227=>'saraaimaimuanthai',228=>'saraaimaimalaithai',229=>'lakkhangyaothai',230=>'maiyamokthai',231=>'maitaikhuthai', +232=>'maiekthai',233=>'maithothai',234=>'maitrithai',235=>'maichattawathai',236=>'thanthakhatthai',237=>'nikhahitthai',238=>'yamakkanthai',239=>'fongmanthai', +240=>'zerothai',241=>'onethai',242=>'twothai',243=>'threethai',244=>'fourthai',245=>'fivethai',246=>'sixthai',247=>'seventhai', +248=>'eightthai',249=>'ninethai',250=>'angkhankhuthai',251=>'khomutthai',252=>'.notdef',253=>'.notdef',254=>'.notdef',255=>'.notdef'), + +// encoding map for: cp1257 +'cp1257' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'.notdef',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'.notdef',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'.notdef',141=>'dieresis',142=>'caron',143=>'cedilla', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'.notdef',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'.notdef',157=>'macron',158=>'ogonek',159=>'.notdef', +160=>'space',161=>'.notdef',162=>'cent',163=>'sterling',164=>'currency',165=>'.notdef',166=>'brokenbar',167=>'section', +168=>'Oslash',169=>'copyright',170=>'Rcommaaccent',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'AE', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'oslash',185=>'onesuperior',186=>'rcommaaccent',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'ae', +192=>'Aogonek',193=>'Iogonek',194=>'Amacron',195=>'Cacute',196=>'Adieresis',197=>'Aring',198=>'Eogonek',199=>'Emacron', +200=>'Ccaron',201=>'Eacute',202=>'Zacute',203=>'Edotaccent',204=>'Gcommaaccent',205=>'Kcommaaccent',206=>'Imacron',207=>'Lcommaaccent', +208=>'Scaron',209=>'Nacute',210=>'Ncommaaccent',211=>'Oacute',212=>'Omacron',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Uogonek',217=>'Lslash',218=>'Sacute',219=>'Umacron',220=>'Udieresis',221=>'Zdotaccent',222=>'Zcaron',223=>'germandbls', +224=>'aogonek',225=>'iogonek',226=>'amacron',227=>'cacute',228=>'adieresis',229=>'aring',230=>'eogonek',231=>'emacron', +232=>'ccaron',233=>'eacute',234=>'zacute',235=>'edotaccent',236=>'gcommaaccent',237=>'kcommaaccent',238=>'imacron',239=>'lcommaaccent', +240=>'scaron',241=>'nacute',242=>'ncommaaccent',243=>'oacute',244=>'omacron',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'uogonek',249=>'lslash',250=>'sacute',251=>'umacron',252=>'udieresis',253=>'zdotaccent',254=>'zcaron',255=>'dotaccent'), + +// encoding map for: cp1258 +'cp1258' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'circumflex',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'OE',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'tilde',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'oe',157=>'.notdef',158=>'.notdef',159=>'Ydieresis', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'gravecomb',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Dcroat',209=>'Ntilde',210=>'hookabovecomb',211=>'Oacute',212=>'Ocircumflex',213=>'Ohorn',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Uhorn',222=>'tildecomb',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'acutecomb',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'dcroat',241=>'ntilde',242=>'dotbelowcomb',243=>'oacute',244=>'ocircumflex',245=>'ohorn',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'uhorn',254=>'dong',255=>'ydieresis'), + +// encoding map for: cp1253 +'cp1253' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'.notdef',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'.notdef',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'dieresistonos',162=>'Alphatonos',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'.notdef',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'afii00208', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'tonos',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'Epsilontonos',185=>'Etatonos',186=>'Iotatonos',187=>'guillemotright',188=>'Omicrontonos',189=>'onehalf',190=>'Upsilontonos',191=>'Omegatonos', +192=>'iotadieresistonos',193=>'Alpha',194=>'Beta',195=>'Gamma',196=>'Delta',197=>'Epsilon',198=>'Zeta',199=>'Eta', +200=>'Theta',201=>'Iota',202=>'Kappa',203=>'Lambda',204=>'Mu',205=>'Nu',206=>'Xi',207=>'Omicron', +208=>'Pi',209=>'Rho',210=>'.notdef',211=>'Sigma',212=>'Tau',213=>'Upsilon',214=>'Phi',215=>'Chi', +216=>'Psi',217=>'Omega',218=>'Iotadieresis',219=>'Upsilondieresis',220=>'alphatonos',221=>'epsilontonos',222=>'etatonos',223=>'iotatonos', +224=>'upsilondieresistonos',225=>'alpha',226=>'beta',227=>'gamma',228=>'delta',229=>'epsilon',230=>'zeta',231=>'eta', +232=>'theta',233=>'iota',234=>'kappa',235=>'lambda',236=>'mu',237=>'nu',238=>'xi',239=>'omicron', +240=>'pi',241=>'rho',242=>'sigma1',243=>'sigma',244=>'tau',245=>'upsilon',246=>'phi',247=>'chi', +248=>'psi',249=>'omega',250=>'iotadieresis',251=>'upsilondieresis',252=>'omicrontonos',253=>'upsilontonos',254=>'omegatonos',255=>'.notdef'), + +// encoding map for: cp874 +'cp874' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'ellipsis',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'kokaithai',162=>'khokhaithai',163=>'khokhuatthai',164=>'khokhwaithai',165=>'khokhonthai',166=>'khorakhangthai',167=>'ngonguthai', +168=>'chochanthai',169=>'chochingthai',170=>'chochangthai',171=>'sosothai',172=>'chochoethai',173=>'yoyingthai',174=>'dochadathai',175=>'topatakthai', +176=>'thothanthai',177=>'thonangmonthothai',178=>'thophuthaothai',179=>'nonenthai',180=>'dodekthai',181=>'totaothai',182=>'thothungthai',183=>'thothahanthai', +184=>'thothongthai',185=>'nonuthai',186=>'bobaimaithai',187=>'poplathai',188=>'phophungthai',189=>'fofathai',190=>'phophanthai',191=>'fofanthai', +192=>'phosamphaothai',193=>'momathai',194=>'yoyakthai',195=>'roruathai',196=>'ruthai',197=>'lolingthai',198=>'luthai',199=>'wowaenthai', +200=>'sosalathai',201=>'sorusithai',202=>'sosuathai',203=>'hohipthai',204=>'lochulathai',205=>'oangthai',206=>'honokhukthai',207=>'paiyannoithai', +208=>'saraathai',209=>'maihanakatthai',210=>'saraaathai',211=>'saraamthai',212=>'saraithai',213=>'saraiithai',214=>'sarauethai',215=>'saraueethai', +216=>'sarauthai',217=>'sarauuthai',218=>'phinthuthai',219=>'.notdef',220=>'.notdef',221=>'.notdef',222=>'.notdef',223=>'bahtthai', +224=>'saraethai',225=>'saraaethai',226=>'saraothai',227=>'saraaimaimuanthai',228=>'saraaimaimalaithai',229=>'lakkhangyaothai',230=>'maiyamokthai',231=>'maitaikhuthai', +232=>'maiekthai',233=>'maithothai',234=>'maitrithai',235=>'maichattawathai',236=>'thanthakhatthai',237=>'nikhahitthai',238=>'yamakkanthai',239=>'fongmanthai', +240=>'zerothai',241=>'onethai',242=>'twothai',243=>'threethai',244=>'fourthai',245=>'fivethai',246=>'sixthai',247=>'seventhai', +248=>'eightthai',249=>'ninethai',250=>'angkhankhuthai',251=>'khomutthai',252=>'.notdef',253=>'.notdef',254=>'.notdef',255=>'.notdef'), + +// encoding map for: iso-8859-2 +'iso-8859-2' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'Aogonek',162=>'breve',163=>'Lslash',164=>'currency',165=>'Lcaron',166=>'Sacute',167=>'section', +168=>'dieresis',169=>'Scaron',170=>'Scedilla',171=>'Tcaron',172=>'Zacute',173=>'hyphen',174=>'Zcaron',175=>'Zdotaccent', +176=>'degree',177=>'aogonek',178=>'ogonek',179=>'lslash',180=>'acute',181=>'lcaron',182=>'sacute',183=>'caron', +184=>'cedilla',185=>'scaron',186=>'scedilla',187=>'tcaron',188=>'zacute',189=>'hungarumlaut',190=>'zcaron',191=>'zdotaccent', +192=>'Racute',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Lacute',198=>'Cacute',199=>'Ccedilla', +200=>'Ccaron',201=>'Eacute',202=>'Eogonek',203=>'Edieresis',204=>'Ecaron',205=>'Iacute',206=>'Icircumflex',207=>'Dcaron', +208=>'Dcroat',209=>'Nacute',210=>'Ncaron',211=>'Oacute',212=>'Ocircumflex',213=>'Ohungarumlaut',214=>'Odieresis',215=>'multiply', +216=>'Rcaron',217=>'Uring',218=>'Uacute',219=>'Uhungarumlaut',220=>'Udieresis',221=>'Yacute',222=>'Tcommaaccent',223=>'germandbls', +224=>'racute',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'lacute',230=>'cacute',231=>'ccedilla', +232=>'ccaron',233=>'eacute',234=>'eogonek',235=>'edieresis',236=>'ecaron',237=>'iacute',238=>'icircumflex',239=>'dcaron', +240=>'dcroat',241=>'nacute',242=>'ncaron',243=>'oacute',244=>'ocircumflex',245=>'ohungarumlaut',246=>'odieresis',247=>'divide', +248=>'rcaron',249=>'uring',250=>'uacute',251=>'uhungarumlaut',252=>'udieresis',253=>'yacute',254=>'tcommaaccent',255=>'dotaccent'), + +// encoding map for: cp1250 +'cp1250' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'.notdef',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'.notdef',137=>'perthousand',138=>'Scaron',139=>'guilsinglleft',140=>'Sacute',141=>'Tcaron',142=>'Zcaron',143=>'Zacute', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'.notdef',153=>'trademark',154=>'scaron',155=>'guilsinglright',156=>'sacute',157=>'tcaron',158=>'zcaron',159=>'zacute', +160=>'space',161=>'caron',162=>'breve',163=>'Lslash',164=>'currency',165=>'Aogonek',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'Scedilla',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'Zdotaccent', +176=>'degree',177=>'plusminus',178=>'ogonek',179=>'lslash',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'cedilla',185=>'aogonek',186=>'scedilla',187=>'guillemotright',188=>'Lcaron',189=>'hungarumlaut',190=>'lcaron',191=>'zdotaccent', +192=>'Racute',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Lacute',198=>'Cacute',199=>'Ccedilla', +200=>'Ccaron',201=>'Eacute',202=>'Eogonek',203=>'Edieresis',204=>'Ecaron',205=>'Iacute',206=>'Icircumflex',207=>'Dcaron', +208=>'Dcroat',209=>'Nacute',210=>'Ncaron',211=>'Oacute',212=>'Ocircumflex',213=>'Ohungarumlaut',214=>'Odieresis',215=>'multiply', +216=>'Rcaron',217=>'Uring',218=>'Uacute',219=>'Uhungarumlaut',220=>'Udieresis',221=>'Yacute',222=>'Tcommaaccent',223=>'germandbls', +224=>'racute',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'lacute',230=>'cacute',231=>'ccedilla', +232=>'ccaron',233=>'eacute',234=>'eogonek',235=>'edieresis',236=>'ecaron',237=>'iacute',238=>'icircumflex',239=>'dcaron', +240=>'dcroat',241=>'nacute',242=>'ncaron',243=>'oacute',244=>'ocircumflex',245=>'ohungarumlaut',246=>'odieresis',247=>'divide', +248=>'rcaron',249=>'uring',250=>'uacute',251=>'uhungarumlaut',252=>'udieresis',253=>'yacute',254=>'tcommaaccent',255=>'dotaccent'), + +// encoding map for: iso-8859-7 +'iso-8859-7' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'quoteleft',162=>'quoteright',163=>'sterling',164=>'.notdef',165=>'.notdef',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'.notdef',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'.notdef',175=>'afii00208', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'tonos',181=>'dieresistonos',182=>'Alphatonos',183=>'periodcentered', +184=>'Epsilontonos',185=>'Etatonos',186=>'Iotatonos',187=>'guillemotright',188=>'Omicrontonos',189=>'onehalf',190=>'Upsilontonos',191=>'Omegatonos', +192=>'iotadieresistonos',193=>'Alpha',194=>'Beta',195=>'Gamma',196=>'Delta',197=>'Epsilon',198=>'Zeta',199=>'Eta', +200=>'Theta',201=>'Iota',202=>'Kappa',203=>'Lambda',204=>'Mu',205=>'Nu',206=>'Xi',207=>'Omicron', +208=>'Pi',209=>'Rho',210=>'.notdef',211=>'Sigma',212=>'Tau',213=>'Upsilon',214=>'Phi',215=>'Chi', +216=>'Psi',217=>'Omega',218=>'Iotadieresis',219=>'Upsilondieresis',220=>'alphatonos',221=>'epsilontonos',222=>'etatonos',223=>'iotatonos', +224=>'upsilondieresistonos',225=>'alpha',226=>'beta',227=>'gamma',228=>'delta',229=>'epsilon',230=>'zeta',231=>'eta', +232=>'theta',233=>'iota',234=>'kappa',235=>'lambda',236=>'mu',237=>'nu',238=>'xi',239=>'omicron', +240=>'pi',241=>'rho',242=>'sigma1',243=>'sigma',244=>'tau',245=>'upsilon',246=>'phi',247=>'chi', +248=>'psi',249=>'omega',250=>'iotadieresis',251=>'upsilondieresis',252=>'omicrontonos',253=>'upsilontonos',254=>'omegatonos',255=>'.notdef'), + +// encoding map for: iso-8859-9 +'iso-8859-9' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Gbreve',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Idotaccent',222=>'Scedilla',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'gbreve',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'dotlessi',254=>'scedilla',255=>'ydieresis'), + +// encoding map for: cp1252 +'cp1252' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'circumflex',137=>'perthousand',138=>'Scaron',139=>'guilsinglleft',140=>'OE',141=>'.notdef',142=>'Zcaron',143=>'.notdef', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'tilde',153=>'trademark',154=>'scaron',155=>'guilsinglright',156=>'oe',157=>'.notdef',158=>'zcaron',159=>'Ydieresis', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Eth',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Yacute',222=>'Thorn',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'eth',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'yacute',254=>'thorn',255=>'ydieresis'), + +// encoding map for: cp1254 +'cp1254' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', +136=>'circumflex',137=>'perthousand',138=>'Scaron',139=>'guilsinglleft',140=>'OE',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', +152=>'tilde',153=>'trademark',154=>'scaron',155=>'guilsinglright',156=>'oe',157=>'.notdef',158=>'.notdef',159=>'Ydieresis', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Gbreve',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Idotaccent',222=>'Scedilla',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'gbreve',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'dotlessi',254=>'scedilla',255=>'ydieresis'), + +// encoding map for: iso-8859-1 +'iso-8859-1' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', +168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Eth',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Yacute',222=>'Thorn',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'eth',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'yacute',254=>'thorn',255=>'ydieresis'), + +// encoding map for: iso-8859-15 +'iso-8859-15' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'Euro',165=>'yen',166=>'Scaron',167=>'section', +168=>'scaron',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', +176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'Zcaron',181=>'mu',182=>'paragraph',183=>'periodcentered', +184=>'zcaron',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'OE',189=>'oe',190=>'Ydieresis',191=>'questiondown', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Eth',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', +216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Yacute',222=>'Thorn',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'eth',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', +248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'yacute',254=>'thorn',255=>'ydieresis'), + +// encoding map for: iso-8859-5 +'iso-8859-5' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'afii10023',162=>'afii10051',163=>'afii10052',164=>'afii10053',165=>'afii10054',166=>'afii10055',167=>'afii10056', +168=>'afii10057',169=>'afii10058',170=>'afii10059',171=>'afii10060',172=>'afii10061',173=>'hyphen',174=>'afii10062',175=>'afii10145', +176=>'afii10017',177=>'afii10018',178=>'afii10019',179=>'afii10020',180=>'afii10021',181=>'afii10022',182=>'afii10024',183=>'afii10025', +184=>'afii10026',185=>'afii10027',186=>'afii10028',187=>'afii10029',188=>'afii10030',189=>'afii10031',190=>'afii10032',191=>'afii10033', +192=>'afii10034',193=>'afii10035',194=>'afii10036',195=>'afii10037',196=>'afii10038',197=>'afii10039',198=>'afii10040',199=>'afii10041', +200=>'afii10042',201=>'afii10043',202=>'afii10044',203=>'afii10045',204=>'afii10046',205=>'afii10047',206=>'afii10048',207=>'afii10049', +208=>'afii10065',209=>'afii10066',210=>'afii10067',211=>'afii10068',212=>'afii10069',213=>'afii10070',214=>'afii10072',215=>'afii10073', +216=>'afii10074',217=>'afii10075',218=>'afii10076',219=>'afii10077',220=>'afii10078',221=>'afii10079',222=>'afii10080',223=>'afii10081', +224=>'afii10082',225=>'afii10083',226=>'afii10084',227=>'afii10085',228=>'afii10086',229=>'afii10087',230=>'afii10088',231=>'afii10089', +232=>'afii10090',233=>'afii10091',234=>'afii10092',235=>'afii10093',236=>'afii10094',237=>'afii10095',238=>'afii10096',239=>'afii10097', +240=>'afii61352',241=>'afii10071',242=>'afii10099',243=>'afii10100',244=>'afii10101',245=>'afii10102',246=>'afii10103',247=>'afii10104', +248=>'afii10105',249=>'afii10106',250=>'afii10107',251=>'afii10108',252=>'afii10109',253=>'section',254=>'afii10110',255=>'afii10193'), + +// encoding map for: iso-8859-5 +'iso-8859-5' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'afii10023',162=>'afii10051',163=>'afii10052',164=>'afii10053',165=>'afii10054',166=>'afii10055',167=>'afii10056', +168=>'afii10057',169=>'afii10058',170=>'afii10059',171=>'afii10060',172=>'afii10061',173=>'hyphen',174=>'afii10062',175=>'afii10145', +176=>'afii10017',177=>'afii10018',178=>'afii10019',179=>'afii10020',180=>'afii10021',181=>'afii10022',182=>'afii10024',183=>'afii10025', +184=>'afii10026',185=>'afii10027',186=>'afii10028',187=>'afii10029',188=>'afii10030',189=>'afii10031',190=>'afii10032',191=>'afii10033', +192=>'afii10034',193=>'afii10035',194=>'afii10036',195=>'afii10037',196=>'afii10038',197=>'afii10039',198=>'afii10040',199=>'afii10041', +200=>'afii10042',201=>'afii10043',202=>'afii10044',203=>'afii10045',204=>'afii10046',205=>'afii10047',206=>'afii10048',207=>'afii10049', +208=>'afii10065',209=>'afii10066',210=>'afii10067',211=>'afii10068',212=>'afii10069',213=>'afii10070',214=>'afii10072',215=>'afii10073', +216=>'afii10074',217=>'afii10075',218=>'afii10076',219=>'afii10077',220=>'afii10078',221=>'afii10079',222=>'afii10080',223=>'afii10081', +224=>'afii10082',225=>'afii10083',226=>'afii10084',227=>'afii10085',228=>'afii10086',229=>'afii10087',230=>'afii10088',231=>'afii10089', +232=>'afii10090',233=>'afii10091',234=>'afii10092',235=>'afii10093',236=>'afii10094',237=>'afii10095',238=>'afii10096',239=>'afii10097', +240=>'afii61352',241=>'afii10071',242=>'afii10099',243=>'afii10100',244=>'afii10101',245=>'afii10102',246=>'afii10103',247=>'afii10104', +248=>'afii10105',249=>'afii10106',250=>'afii10107',251=>'afii10108',252=>'afii10109',253=>'section',254=>'afii10110',255=>'afii10193'), + +// encoding map for: koi8-r +'koi8-r' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'SF100000',129=>'SF110000',130=>'SF010000',131=>'SF030000',132=>'SF020000',133=>'SF040000',134=>'SF080000',135=>'SF090000', +136=>'SF060000',137=>'SF070000',138=>'SF050000',139=>'upblock',140=>'dnblock',141=>'block',142=>'lfblock',143=>'rtblock', +144=>'ltshade',145=>'shade',146=>'dkshade',147=>'integraltp',148=>'filledbox',149=>'periodcentered',150=>'radical',151=>'approxequal', +152=>'lessequal',153=>'greaterequal',154=>'space',155=>'integralbt',156=>'degree',157=>'twosuperior',158=>'periodcentered',159=>'divide', +160=>'SF430000',161=>'SF240000',162=>'SF510000',163=>'afii10071',164=>'SF520000',165=>'SF390000',166=>'SF220000',167=>'SF210000', +168=>'SF250000',169=>'SF500000',170=>'SF490000',171=>'SF380000',172=>'SF280000',173=>'SF270000',174=>'SF260000',175=>'SF360000', +176=>'SF370000',177=>'SF420000',178=>'SF190000',179=>'afii10023',180=>'SF200000',181=>'SF230000',182=>'SF470000',183=>'SF480000', +184=>'SF410000',185=>'SF450000',186=>'SF460000',187=>'SF400000',188=>'SF540000',189=>'SF530000',190=>'SF440000',191=>'copyright', +192=>'afii10096',193=>'afii10065',194=>'afii10066',195=>'afii10088',196=>'afii10069',197=>'afii10070',198=>'afii10086',199=>'afii10068', +200=>'afii10087',201=>'afii10074',202=>'afii10075',203=>'afii10076',204=>'afii10077',205=>'afii10078',206=>'afii10079',207=>'afii10080', +208=>'afii10081',209=>'afii10097',210=>'afii10082',211=>'afii10083',212=>'afii10084',213=>'afii10085',214=>'afii10072',215=>'afii10067', +216=>'afii10094',217=>'afii10093',218=>'afii10073',219=>'afii10090',220=>'afii10095',221=>'afii10091',222=>'afii10089',223=>'afii10092', +224=>'afii10048',225=>'afii10017',226=>'afii10018',227=>'afii10040',228=>'afii10021',229=>'afii10022',230=>'afii10038',231=>'afii10020', +232=>'afii10039',233=>'afii10026',234=>'afii10027',235=>'afii10028',236=>'afii10029',237=>'afii10030',238=>'afii10031',239=>'afii10032', +240=>'afii10033',241=>'afii10049',242=>'afii10034',243=>'afii10035',244=>'afii10036',245=>'afii10037',246=>'afii10024',247=>'afii10019', +248=>'afii10046',249=>'afii10045',250=>'afii10025',251=>'afii10042',252=>'afii10047',253=>'afii10043',254=>'afii10041',255=>'afii10044'), + +// encoding map for: koi8-r +'koi8-r' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'SF100000',129=>'SF110000',130=>'SF010000',131=>'SF030000',132=>'SF020000',133=>'SF040000',134=>'SF080000',135=>'SF090000', +136=>'SF060000',137=>'SF070000',138=>'SF050000',139=>'upblock',140=>'dnblock',141=>'block',142=>'lfblock',143=>'rtblock', +144=>'ltshade',145=>'shade',146=>'dkshade',147=>'integraltp',148=>'filledbox',149=>'periodcentered',150=>'radical',151=>'approxequal', +152=>'lessequal',153=>'greaterequal',154=>'space',155=>'integralbt',156=>'degree',157=>'twosuperior',158=>'periodcentered',159=>'divide', +160=>'SF430000',161=>'SF240000',162=>'SF510000',163=>'afii10071',164=>'SF520000',165=>'SF390000',166=>'SF220000',167=>'SF210000', +168=>'SF250000',169=>'SF500000',170=>'SF490000',171=>'SF380000',172=>'SF280000',173=>'SF270000',174=>'SF260000',175=>'SF360000', +176=>'SF370000',177=>'SF420000',178=>'SF190000',179=>'afii10023',180=>'SF200000',181=>'SF230000',182=>'SF470000',183=>'SF480000', +184=>'SF410000',185=>'SF450000',186=>'SF460000',187=>'SF400000',188=>'SF540000',189=>'SF530000',190=>'SF440000',191=>'copyright', +192=>'afii10096',193=>'afii10065',194=>'afii10066',195=>'afii10088',196=>'afii10069',197=>'afii10070',198=>'afii10086',199=>'afii10068', +200=>'afii10087',201=>'afii10074',202=>'afii10075',203=>'afii10076',204=>'afii10077',205=>'afii10078',206=>'afii10079',207=>'afii10080', +208=>'afii10081',209=>'afii10097',210=>'afii10082',211=>'afii10083',212=>'afii10084',213=>'afii10085',214=>'afii10072',215=>'afii10067', +216=>'afii10094',217=>'afii10093',218=>'afii10073',219=>'afii10090',220=>'afii10095',221=>'afii10091',222=>'afii10089',223=>'afii10092', +224=>'afii10048',225=>'afii10017',226=>'afii10018',227=>'afii10040',228=>'afii10021',229=>'afii10022',230=>'afii10038',231=>'afii10020', +232=>'afii10039',233=>'afii10026',234=>'afii10027',235=>'afii10028',236=>'afii10029',237=>'afii10030',238=>'afii10031',239=>'afii10032', +240=>'afii10033',241=>'afii10049',242=>'afii10034',243=>'afii10035',244=>'afii10036',245=>'afii10037',246=>'afii10024',247=>'afii10019', +248=>'afii10046',249=>'afii10045',250=>'afii10025',251=>'afii10042',252=>'afii10047',253=>'afii10043',254=>'afii10041',255=>'afii10044'), + +// encoding map for: iso-8859-16 +'iso-8859-16' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'space',161=>'Aogonek',162=>'aogonek',163=>'Lslash',164=>'Euro',165=>'quotedblbase',166=>'Scaron',167=>'section', +168=>'scaron',169=>'copyright',170=>'Scommaaccent',171=>'guillemotleft',172=>'Zacute',173=>'hyphen',174=>'zacute',175=>'Zdotaccent', +176=>'degree',177=>'plusminus',178=>'Ccaron',179=>'lslash',180=>'Zcaron',181=>'quotedblright',182=>'paragraph',183=>'periodcentered', +184=>'zcaron',185=>'ccaron',186=>'scommaaccent',187=>'guillemotright',188=>'OE',189=>'oe',190=>'Ydieresis',191=>'zdotaccent', +192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Cacute',198=>'AE',199=>'Ccedilla', +200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', +208=>'Dcroat',209=>'Nacute',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Ohungarumlaut',214=>'Odieresis',215=>'Sacute', +216=>'Uhungarumlaut',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Eogonek',222=>'Tcommaaccent',223=>'germandbls', +224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'cacute',230=>'ae',231=>'ccedilla', +232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', +240=>'dcroat',241=>'nacute',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'ohungarumlaut',246=>'odieresis',247=>'sacute', +248=>'uhungarumlaut',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'eogonek',254=>'tcommaaccent',255=>'ydieresis'), + +// encoding map for: koi8-u +'koi8-u' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', +40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', +72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', +80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', +88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', +96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', +104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', +112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', +120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', +128=>'SF100000',129=>'SF110000',130=>'SF010000',131=>'SF030000',132=>'SF020000',133=>'SF040000',134=>'SF080000',135=>'SF090000', +136=>'SF060000',137=>'SF070000',138=>'SF050000',139=>'upblock',140=>'dnblock',141=>'block',142=>'lfblock',143=>'rtblock', +144=>'ltshade',145=>'shade',146=>'dkshade',147=>'integraltp',148=>'filledbox',149=>'bullet',150=>'radical',151=>'approxequal', +152=>'lessequal',153=>'greaterequal',154=>'space',155=>'integralbt',156=>'degree',157=>'twosuperior',158=>'periodcentered',159=>'divide', +160=>'SF430000',161=>'SF240000',162=>'SF510000',163=>'afii10071',164=>'afii10101',165=>'SF390000',166=>'afii10103',167=>'afii10104', +168=>'SF250000',169=>'SF500000',170=>'SF490000',171=>'SF380000',172=>'SF280000',173=>'afii10098',174=>'SF260000',175=>'SF360000', +176=>'SF370000',177=>'SF420000',178=>'SF190000',179=>'afii10023',180=>'afii10053',181=>'SF230000',182=>'afii10055',183=>'afii10056', +184=>'SF410000',185=>'SF450000',186=>'SF460000',187=>'SF400000',188=>'SF540000',189=>'afii10050',190=>'SF440000',191=>'copyright', +192=>'afii10096',193=>'afii10065',194=>'afii10066',195=>'afii10088',196=>'afii10069',197=>'afii10070',198=>'afii10086',199=>'afii10068', +200=>'afii10087',201=>'afii10074',202=>'afii10075',203=>'afii10076',204=>'afii10077',205=>'afii10078',206=>'afii10079',207=>'afii10080', +208=>'afii10081',209=>'afii10097',210=>'afii10082',211=>'afii10083',212=>'afii10084',213=>'afii10085',214=>'afii10072',215=>'afii10067', +216=>'afii10094',217=>'afii10093',218=>'afii10073',219=>'afii10090',220=>'afii10095',221=>'afii10091',222=>'afii10089',223=>'afii10092', +224=>'afii10048',225=>'afii10017',226=>'afii10018',227=>'afii10040',228=>'afii10021',229=>'afii10022',230=>'afii10038',231=>'afii10020', +232=>'afii10039',233=>'afii10026',234=>'afii10027',235=>'afii10028',236=>'afii10029',237=>'afii10030',238=>'afii10031',239=>'afii10032', +240=>'afii10033',241=>'afii10049',242=>'afii10034',243=>'afii10035',244=>'afii10036',245=>'afii10037',246=>'afii10024',247=>'afii10019', +248=>'afii10046',249=>'afii10045',250=>'afii10025',251=>'afii10042',252=>'afii10047',253=>'afii10043',254=>'afii10041',255=>'afii10044'), + +// encoding map for: symbol +'symbol' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', +8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', +16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', +24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', +32=>'space',33=>'exclam',34=>'universal',35=>'numbersign',36=>'existential',37=>'percent',38=>'ampersand',39=>'suchthat', +40=>'parenleft',41=>'parenright',42=>'asteriskmath',43=>'plus',44=>'comma',45=>'minus',46=>'period',47=>'slash', +48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', +56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', +64=>'congruent',65=>'Alpha',66=>'Beta',67=>'Chi',68=>'Delta',69=>'Epsilon',70=>'Phi',71=>'Gamma', +72=>'Eta',73=>'Iota',74=>'theta1',75=>'Kappa',76=>'Lambda',77=>'Mu',78=>'Nu',79=>'Omicron', +80=>'Pi',81=>'Theta',82=>'Rho',83=>'Sigma',84=>'Tau',85=>'Upsilon',86=>'sigma1',87=>'Omega', +88=>'Xi',89=>'Psi',90=>'Zeta',91=>'bracketleft',92=>'therefore',93=>'bracketright',94=>'perpendicular',95=>'underscore', +96=>'radicalex',97=>'alpha',98=>'beta',99=>'chi',100=>'delta',101=>'epsilon',102=>'phi',103=>'gamma', +104=>'eta',105=>'iota',106=>'phi1',107=>'kappa',108=>'lambda',109=>'mu',110=>'nu',111=>'omicron', +112=>'pi',113=>'theta',114=>'rho',115=>'sigma',116=>'tau',117=>'upsilon',118=>'omega1',119=>'omega', +120=>'xi',121=>'psi',122=>'zeta',123=>'braceleft',124=>'bar',125=>'braceright',126=>'similar',127=>'.notdef', +128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', +136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', +144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', +152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', +160=>'Euro',161=>'Upsilon1',162=>'minute',163=>'lessequal',164=>'fraction',165=>'infinity',166=>'florin',167=>'club', +168=>'diamond',169=>'heart',170=>'spade',171=>'arrowboth',172=>'arrowleft',173=>'arrowup',174=>'arrowright',175=>'arrowdown', +176=>'degree',177=>'plusminus',178=>'second',179=>'greaterequal',180=>'multiply',181=>'proportional',182=>'partialdiff',183=>'bullet', +184=>'divide',185=>'notequal',186=>'equivalence',187=>'approxequal',188=>'ellipsis',189=>'arrowvertex',190=>'arrowhorizex',191=>'carriagereturn', +192=>'aleph',193=>'Ifraktur',194=>'Rfraktur',195=>'weierstrass',196=>'circlemultiply',197=>'circleplus',198=>'emptyset',199=>'intersection', +200=>'union',201=>'propersuperset',202=>'reflexsuperset',203=>'notsubset',204=>'propersubset',205=>'reflexsubset',206=>'element',207=>'notelement', +208=>'angle',209=>'gradient',210=>'registerserif',211=>'copyrightserif',212=>'trademarkserif',213=>'product',214=>'radical',215=>'dotmath', +216=>'logicalnot',217=>'logicaland',218=>'logicalor',219=>'arrowdblboth',220=>'arrowdblleft',221=>'arrowdblup',222=>'arrowdblright',223=>'arrowdbldown', +224=>'lozenge',225=>'angleleft',226=>'registersans',227=>'copyrightsans',228=>'trademarksans',229=>'summation',230=>'parenlefttp',231=>'parenleftex', +232=>'parenleftbt',233=>'bracketlefttp',234=>'bracketleftex',235=>'bracketleftbt',236=>'bracelefttp',237=>'braceleftmid',238=>'braceleftbt',239=>'braceex', +240=>'.notdef',241=>'angleright',242=>'integral',243=>'integraltp',244=>'integralex',245=>'integralbt',246=>'parenrighttp',247=>'parenrightex', +248=>'parenrightbt',249=>'bracketrighttp',250=>'bracketrightex',251=>'bracketrightbt',252=>'bracerighttp',253=>'bracerightmid',254=>'bracerightbt',255=>'.notdef', +1226=>'registered',1227=>'copyright',1228=>'trademark') + +); // end of encoding maps + +} // --- END OF CLASS --- + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/examples/example_001.php b/phplib/tcpdf/examples/example_001.php new file mode 100644 index 0000000..e4ecd6f --- /dev/null +++ b/phplib/tcpdf/examples/example_001.php @@ -0,0 +1,106 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 001'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128)); +$pdf->setFooterData($tc=array(0,64,0), $lc=array(0,64,128)); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set default font subsetting mode +$pdf->setFontSubsetting(true); + +// Set font +// dejavusans is a UTF-8 Unicode font, if you only need to +// print standard ASCII chars, you can use core fonts like +// helvetica or times to reduce file size. +$pdf->SetFont('dejavusans', '', 14, '', true); + +// Add a page +// This method has several options, check the source code documentation for more information. +$pdf->AddPage(); + +// set text shadow effect +$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal')); + +// Set some content to print +$html = <<Welcome to  TCPDF ! +This is the first example of TCPDF library. +

    This text is printed using the writeHTMLCell() method but you can also use: Multicell(), writeHTML(), Write(), Cell() and Text().

    +

    Please check the source code documentation and other examples for further information.

    +

    TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE MAKE A DONATION!

    +EOD; + +// Print text using writeHTMLCell() +$pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); + +// --------------------------------------------------------- + +// Close and output PDF document +// This method has several options, check the source code documentation for more information. +$pdf->Output('example_001.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/examples/example_002.php b/phplib/tcpdf/examples/example_002.php new file mode 100644 index 0000000..e938f28 --- /dev/null +++ b/phplib/tcpdf/examples/example_002.php @@ -0,0 +1,87 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 002'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// remove default header/footer +$pdf->setPrintHeader(false); +$pdf->setPrintFooter(false); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'BI', 20); + +// add a page +$pdf->AddPage(); + +// set some text to print +$txt = <<Write($h=0, $txt, $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_002.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/examples/example_003.php b/phplib/tcpdf/examples/example_003.php new file mode 100644 index 0000000..20a6709 --- /dev/null +++ b/phplib/tcpdf/examples/example_003.php @@ -0,0 +1,118 @@ +Image($image_file, 10, 10, 15, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false); + // Set font + $this->SetFont('helvetica', 'B', 20); + // Title + $this->Cell(0, 15, '<< TCPDF Example 003 >>', 0, false, 'C', 0, '', 0, false, 'M', 'M'); + } + + // Page footer + public function Footer() { + // Position at 15 mm from bottom + $this->SetY(-15); + // Set font + $this->SetFont('helvetica', 'I', 8); + // Page number + $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); + } +} + +// create new PDF document +$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 003'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'BI', 12); + +// add a page +$pdf->AddPage(); + +// set some text to print +$txt = <<Write($h=0, $txt, $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_003.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/examples/example_004.php b/phplib/tcpdf/examples/example_004.php new file mode 100644 index 0000000..269a5e7 --- /dev/null +++ b/phplib/tcpdf/examples/example_004.php @@ -0,0 +1,121 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 004'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 004', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 11); + +// add a page +$pdf->AddPage(); + +//Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M') + +// test Cell stretching +$pdf->Cell(0, 0, 'TEST CELL STRETCH: no stretch', 1, 1, 'C', 0, '', 0); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4); + +$pdf->Ln(5); + +$pdf->Cell(45, 0, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1); +$pdf->Cell(45, 0, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2); +$pdf->Cell(45, 0, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3); +$pdf->Cell(45, 0, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4); + +$pdf->AddPage(); + +// example using general stretching and spacing + +for ($stretching = 90; $stretching <= 110; $stretching += 10) { + for ($spacing = -0.254; $spacing <= 0.254; $spacing += 0.254) { + + // set general stretching (scaling) value + $pdf->setFontStretching($stretching); + + // set general spacing value + $pdf->setFontSpacing($spacing); + + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, no stretch', 1, 1, 'C', 0, '', 0); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, scaling', 1, 1, 'C', 0, '', 1); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, force scaling', 1, 1, 'C', 0, '', 2); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, spacing', 1, 1, 'C', 0, '', 3); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, force spacing', 1, 1, 'C', 0, '', 4); + + $pdf->Ln(2); + } +} + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_004.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/examples/example_005.php b/phplib/tcpdf/examples/example_005.php new file mode 100644 index 0000000..387e158 --- /dev/null +++ b/phplib/tcpdf/examples/example_005.php @@ -0,0 +1,158 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 005'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 005', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 10); + +// add a page +$pdf->AddPage(); + +// set cell padding +$pdf->setCellPaddings(1, 1, 1, 1); + +// set cell margins +$pdf->setCellMargins(1, 1, 1, 1); + +// set color for background +$pdf->SetFillColor(255, 255, 127); + +// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0) + +// set some text for example +$txt = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'; + +// Multicell test +$pdf->MultiCell(55, 5, '[LEFT] '.$txt, 1, 'L', 1, 0, '', '', true); +$pdf->MultiCell(55, 5, '[RIGHT] '.$txt, 1, 'R', 0, 1, '', '', true); +$pdf->MultiCell(55, 5, '[CENTER] '.$txt, 1, 'C', 0, 0, '', '', true); +$pdf->MultiCell(55, 5, '[JUSTIFY] '.$txt."\n", 1, 'J', 1, 2, '' ,'', true); +$pdf->MultiCell(55, 5, '[DEFAULT] '.$txt, 1, '', 0, 1, '', '', true); + +$pdf->Ln(4); + +// set color for background +$pdf->SetFillColor(220, 255, 220); + +// Vertical alignment +$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - TOP] '.$txt, 1, 'J', 1, 0, '', '', true, 0, false, true, 40, 'T'); +$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - MIDDLE] '.$txt, 1, 'J', 1, 0, '', '', true, 0, false, true, 40, 'M'); +$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - BOTTOM] '.$txt, 1, 'J', 1, 1, '', '', true, 0, false, true, 40, 'B'); + +$pdf->Ln(4); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// set color for background +$pdf->SetFillColor(215, 235, 255); + +// set some text for example +$txt = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.'; + +// print a blox of text using multicell() +$pdf->MultiCell(80, 5, $txt."\n", 1, 'J', 1, 1, '' ,'', true); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// AUTO-FITTING + +// set color for background +$pdf->SetFillColor(255, 235, 235); + +// Fit text on cell by reducing font size +$pdf->MultiCell(55, 60, '[FIT CELL] '.$txt."\n", 1, 'J', 1, 1, 125, 145, true, 0, false, true, 60, 'M', true); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// CUSTOM PADDING + +// set color for background +$pdf->SetFillColor(255, 255, 215); + +// set font +$pdf->SetFont('helvetica', '', 8); + +// set cell padding +$pdf->setCellPaddings(2, 4, 6, 8); + +$txt = "CUSTOM PADDING:\nLeft=2, Top=4, Right=6, Bottom=8\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue.\n"; + +$pdf->MultiCell(55, 5, $txt, 1, 'J', 1, 2, 125, 210, true); + +// move pointer to last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_005.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/phplib/tcpdf/examples/example_006.php b/phplib/tcpdf/examples/example_006.php new file mode 100644 index 0000000..5820b73 --- /dev/null +++ b/phplib/tcpdf/examples/example_006.php @@ -0,0 +1,332 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 006'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 006', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('dejavusans', '', 10); + +// add a page +$pdf->AddPage(); + +// writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='') +// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true) + +// create some HTML content +$html = '

    HTML Example

    +Some special characters: < € € € & è è © > \\slash \\\\double-slash \\\\\\triple-slash +

    List

    +List example: +
      +
    1. test alt attribute test image
    2. +
    3. bold text
    4. +
    5. italic text
    6. +
    7. underlined text
    8. +
    9. bbibiubib
    10. +
    11. link to http://www.tecnick.com
    12. +
    13. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
      Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
    14. +
    15. SUBLIST +
        +
      1. row one +
          +
        • sublist
        • +
        +
      2. +
      3. row two
      4. +
      +
    16. +
    17. TEST line through
    18. +
    19. font + 3
    20. +
    21. small text normal small text normal subscript normal superscript normal
    22. +
    +
    +
    Coffee
    +
    Black hot drink
    +
    Milk
    +
    White cold drink
    +
    +
    IMAGES
    +test alt attributetest alt attributetest alt attribute +
    '; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + + +// output some RTL HTML content +$html = '
    The words “מזל [mazel] טוב [tov]” mean “Congratulations!”
    '; +$pdf->writeHTML($html, true, false, true, false, ''); + +// test some inline CSS +$html = '

    This is just an example of html code to demonstrate some supported CSS inline styles. +bold text +line-trough +underline and line-trough +color +background color +bold +xx-small +x-small +small +medium +large +x-large +xx-large +

    '; + +$pdf->writeHTML($html, true, false, true, false, ''); + +// reset pointer to the last page +$pdf->lastPage(); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// Print a table + +// add a page +$pdf->AddPage(); + +// create some HTML content +$subtable = '
  • ab
    cd
    '; + +$html = '

    HTML TABLE:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #RIGHT alignLEFT align4A
    1A1 example link column span. One two tree four five six seven eight nine ten.
    line after br
    small text normal subscript normal superscript normal bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
    1. first
      1. sublist
      2. sublist
    2. second
    small small small small small small small small small small small small small small small small small small small small
    4B
    '.$subtable.'A2 € € € & è è
    A2 € € € & è è
    Red Yellow BG4C
    1A2AA
    2AB
    2AC
    4D
    1B4E
    1C2C3C4F
    '; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// Print some HTML Cells + +$html = 'red green blue
    red green blue'; + +$pdf->SetFillColor(255,255,0); + +$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 0, true, 'L', true); +$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 1, true, 'C', true); +$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 0, true, 'R', true); + +// reset pointer to the last page +$pdf->lastPage(); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// Print a table + +// add a page +$pdf->AddPage(); + +// create some HTML content +$html = '

    Image alignments on HTML table

    + + + + + + + + +
    '; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// reset pointer to the last page +$pdf->lastPage(); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// Print all HTML colors + +// add a page +$pdf->AddPage(); + +require('../htmlcolors.php'); + +$textcolors = '

    HTML Text Colors

    '; +$bgcolors = '

    HTML Background Colors

    '; + +foreach($webcolor as $k => $v) { + $textcolors .= ''.$v.' '; + $bgcolors .= ''.$v.' '; +} + +// output the HTML content +$pdf->writeHTML($textcolors, true, false, true, false, ''); +$pdf->writeHTML($bgcolors, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// Test word-wrap + +// create some HTML content +$html = '
    +

    Various tests

    +link to page 2
    +thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword'; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// Test fonts nesting +$html1 = 'Default Courier Helvetica Times dejavusans Times Helvetica Courier Default'; +$html2 = 'small text normal small text normal subscript normal superscript normal'; +$html3 = 'The quick brown fox jumps over the lazy dog.'; + +$html = $html1.'
    '.$html2.'
    '.$html3.'
    '.$html3.'
    '.$html2; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// test pre tag + +// add a page +$pdf->AddPage(); + +$html = << +Hello World!
    +Hello +
    +
    +int main() {
    +    printf("HelloWorld");
    +    return 0;
    +}
    +
    +Monospace font, normal font, monospace font, normal font. +
    +
    DIV LEVEL 1
    DIV LEVEL 2
    DIV LEVEL 1
    +
    +SPAN LEVEL 1 SPAN LEVEL 2 SPAN LEVEL 1 +EOF; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// test custom bullet points for list + +// add a page +$pdf->AddPage(); + +$html = <<Test custom bullet image for list items +