├── PhpWord ├── Autoloader.php ├── Collection │ ├── AbstractCollection.php │ ├── Bookmarks.php │ ├── Charts.php │ ├── Endnotes.php │ ├── Footnotes.php │ └── Titles.php ├── Element │ ├── AbstractContainer.php │ ├── AbstractElement.php │ ├── Bookmark.php │ ├── Cell.php │ ├── Chart.php │ ├── CheckBox.php │ ├── Endnote.php │ ├── Field.php │ ├── Footer.php │ ├── Footnote.php │ ├── FormField.php │ ├── Header.php │ ├── Image.php │ ├── Line.php │ ├── Link.php │ ├── ListItem.php │ ├── ListItemRun.php │ ├── Object.php │ ├── PageBreak.php │ ├── PreserveText.php │ ├── Row.php │ ├── SDT.php │ ├── Section.php │ ├── Shape.php │ ├── TOC.php │ ├── Table.php │ ├── Text.php │ ├── TextBox.php │ ├── TextBreak.php │ ├── TextRun.php │ └── Title.php ├── Exception │ ├── CopyFileException.php │ ├── CreateTemporaryFileException.php │ ├── Exception.php │ ├── InvalidImageException.php │ ├── InvalidObjectException.php │ ├── InvalidStyleException.php │ └── UnsupportedImageTypeException.php ├── IOFactory.php ├── Media.php ├── Metadata │ ├── Compatibility.php │ ├── DocInfo.php │ └── Protection.php ├── PhpWord.php ├── Reader │ ├── AbstractReader.php │ ├── HTML.php │ ├── MsDoc.php │ ├── ODText.php │ ├── ODText │ │ ├── AbstractPart.php │ │ ├── Content.php │ │ └── Meta.php │ ├── RTF.php │ ├── RTF │ │ └── Document.php │ ├── ReaderInterface.php │ ├── Word2007.php │ └── Word2007 │ │ ├── AbstractPart.php │ │ ├── DocPropsApp.php │ │ ├── DocPropsCore.php │ │ ├── DocPropsCustom.php │ │ ├── Document.php │ │ ├── Endnotes.php │ │ ├── Footnotes.php │ │ ├── Numbering.php │ │ └── Styles.php ├── Settings.php ├── Shared │ ├── Converter.php │ ├── Drawing.php │ ├── Font.php │ ├── Html.php │ ├── OLERead.php │ ├── PCLZip │ │ └── pclzip.lib.php │ ├── String.php │ ├── XMLReader.php │ ├── XMLWriter.php │ └── ZipArchive.php ├── Style.php ├── Style │ ├── AbstractStyle.php │ ├── Alignment.php │ ├── Border.php │ ├── Cell.php │ ├── Chart.php │ ├── Extrusion.php │ ├── Fill.php │ ├── Font.php │ ├── Frame.php │ ├── Image.php │ ├── Indentation.php │ ├── Line.php │ ├── LineNumbering.php │ ├── ListItem.php │ ├── Numbering.php │ ├── NumberingLevel.php │ ├── Outline.php │ ├── Paper.php │ ├── Paragraph.php │ ├── Row.php │ ├── Section.php │ ├── Shading.php │ ├── Shadow.php │ ├── Shape.php │ ├── Spacing.php │ ├── TOC.php │ ├── Tab.php │ ├── Table.php │ └── TextBox.php ├── Template.php ├── TemplateProcessor.php ├── Writer │ ├── AbstractWriter.php │ ├── HTML.php │ ├── HTML │ │ ├── Element │ │ │ ├── AbstractElement.php │ │ │ ├── Container.php │ │ │ ├── Endnote.php │ │ │ ├── Footnote.php │ │ │ ├── Image.php │ │ │ ├── Link.php │ │ │ ├── ListItem.php │ │ │ ├── PageBreak.php │ │ │ ├── Table.php │ │ │ ├── Text.php │ │ │ ├── TextBreak.php │ │ │ ├── TextRun.php │ │ │ └── Title.php │ │ ├── Part │ │ │ ├── AbstractPart.php │ │ │ ├── Body.php │ │ │ └── Head.php │ │ └── Style │ │ │ ├── AbstractStyle.php │ │ │ ├── Font.php │ │ │ ├── Generic.php │ │ │ ├── Image.php │ │ │ └── Paragraph.php │ ├── ODText.php │ ├── ODText │ │ ├── Element │ │ │ ├── AbstractElement.php │ │ │ ├── Container.php │ │ │ ├── Image.php │ │ │ ├── Link.php │ │ │ ├── Table.php │ │ │ ├── Text.php │ │ │ ├── TextBreak.php │ │ │ ├── TextRun.php │ │ │ └── Title.php │ │ ├── Part │ │ │ ├── AbstractPart.php │ │ │ ├── Content.php │ │ │ ├── Manifest.php │ │ │ ├── Meta.php │ │ │ ├── Mimetype.php │ │ │ └── Styles.php │ │ └── Style │ │ │ ├── AbstractStyle.php │ │ │ ├── Font.php │ │ │ ├── Image.php │ │ │ ├── Paragraph.php │ │ │ ├── Section.php │ │ │ └── Table.php │ ├── PDF.php │ ├── PDF │ │ ├── AbstractRenderer.php │ │ ├── DomPDF.php │ │ ├── MPDF.php │ │ └── TCPDF.php │ ├── RTF.php │ ├── RTF │ │ ├── Element │ │ │ ├── AbstractElement.php │ │ │ ├── Container.php │ │ │ ├── Image.php │ │ │ ├── Link.php │ │ │ ├── ListItem.php │ │ │ ├── PageBreak.php │ │ │ ├── Table.php │ │ │ ├── Text.php │ │ │ ├── TextBreak.php │ │ │ ├── TextRun.php │ │ │ └── Title.php │ │ ├── Part │ │ │ ├── AbstractPart.php │ │ │ ├── Document.php │ │ │ └── Header.php │ │ └── Style │ │ │ ├── AbstractStyle.php │ │ │ ├── Border.php │ │ │ ├── Font.php │ │ │ ├── Paragraph.php │ │ │ └── Section.php │ ├── Word2007.php │ ├── Word2007 │ │ ├── Element │ │ │ ├── AbstractElement.php │ │ │ ├── Bookmark.php │ │ │ ├── Chart.php │ │ │ ├── CheckBox.php │ │ │ ├── Container.php │ │ │ ├── Endnote.php │ │ │ ├── Field.php │ │ │ ├── Footnote.php │ │ │ ├── FormField.php │ │ │ ├── Image.php │ │ │ ├── Line.php │ │ │ ├── Link.php │ │ │ ├── ListItem.php │ │ │ ├── ListItemRun.php │ │ │ ├── Object.php │ │ │ ├── PageBreak.php │ │ │ ├── PreserveText.php │ │ │ ├── SDT.php │ │ │ ├── Shape.php │ │ │ ├── TOC.php │ │ │ ├── Table.php │ │ │ ├── Text.php │ │ │ ├── TextBox.php │ │ │ ├── TextBreak.php │ │ │ ├── TextRun.php │ │ │ └── Title.php │ │ ├── Part │ │ │ ├── AbstractPart.php │ │ │ ├── Chart.php │ │ │ ├── ContentTypes.php │ │ │ ├── DocPropsApp.php │ │ │ ├── DocPropsCore.php │ │ │ ├── DocPropsCustom.php │ │ │ ├── Document.php │ │ │ ├── Endnotes.php │ │ │ ├── FontTable.php │ │ │ ├── Footer.php │ │ │ ├── Footnotes.php │ │ │ ├── Header.php │ │ │ ├── Numbering.php │ │ │ ├── Rels.php │ │ │ ├── RelsDocument.php │ │ │ ├── RelsPart.php │ │ │ ├── Settings.php │ │ │ ├── Styles.php │ │ │ ├── Theme.php │ │ │ └── WebSettings.php │ │ └── Style │ │ │ ├── AbstractStyle.php │ │ │ ├── Alignment.php │ │ │ ├── Cell.php │ │ │ ├── Extrusion.php │ │ │ ├── Fill.php │ │ │ ├── Font.php │ │ │ ├── Frame.php │ │ │ ├── Image.php │ │ │ ├── Indentation.php │ │ │ ├── Line.php │ │ │ ├── LineNumbering.php │ │ │ ├── MarginBorder.php │ │ │ ├── Outline.php │ │ │ ├── Paragraph.php │ │ │ ├── Row.php │ │ │ ├── Section.php │ │ │ ├── Shading.php │ │ │ ├── Shadow.php │ │ │ ├── Shape.php │ │ │ ├── Spacing.php │ │ │ ├── Tab.php │ │ │ ├── Table.php │ │ │ └── TextBox.php │ └── WriterInterface.php └── resources │ ├── doc.png │ ├── ppt.png │ └── xls.png ├── README.md ├── core ├── autoload.php ├── controller │ ├── Action.php │ ├── Bootload.php │ ├── Cookie.php │ ├── Core.php │ ├── Database.php │ ├── Executor.php │ ├── Form.php │ ├── Get.php │ ├── Lb.php │ ├── Model.php │ ├── Module.php │ ├── Post.php │ ├── Request.php │ ├── RequestData.php │ ├── Session.php │ ├── View.php │ └── forms │ │ ├── lbForm.php │ │ ├── lbInputPassword.php │ │ ├── lbInputText.php │ │ └── lbValidator.php └── modules │ └── index │ ├── action │ ├── actiontest │ │ └── action-default.php │ ├── addauthor │ │ └── action-default.php │ ├── addbook │ │ └── action-default.php │ ├── addcategory │ │ └── action-default.php │ ├── addclient │ │ └── action-default.php │ ├── addeditorial │ │ └── action-default.php │ ├── additem │ │ └── action-default.php │ ├── addtocart │ │ └── action-default.php │ ├── adduser │ │ └── action-default.php │ ├── delauthor │ │ └── action-default.php │ ├── delbook │ │ └── action-default.php │ ├── delcategory │ │ └── action-default.php │ ├── delclient │ │ └── action-default.php │ ├── deleditorial │ │ └── action-default.php │ ├── delitem │ │ └── action-default.php │ ├── deloperation │ │ └── action-default.php │ ├── finalize │ │ └── action-default.php │ ├── process │ │ └── action-default.php │ ├── searchbook │ │ └── action-default.php │ ├── updateauthor │ │ └── action-default.php │ ├── updatebook │ │ └── action-default.php │ ├── updatecategory │ │ └── action-default.php │ ├── updateclient │ │ └── action-default.php │ ├── updateeditorial │ │ └── action-default.php │ ├── updateitem │ │ └── action-default.php │ └── updateuser │ │ └── action-default.php │ ├── autoload.php │ ├── init.php │ ├── model.xml │ ├── model │ ├── AuthorData.php │ ├── BookData.php │ ├── CategoryData.php │ ├── ClientData.php │ ├── EditorialData.php │ ├── ItemData.php │ ├── OperationData.php │ ├── PostData.php │ ├── StatusData.php │ ├── UserData.php │ └── blog.sql │ ├── superboot.php │ └── view │ ├── adduser │ └── widget-default.php │ ├── authors │ └── widget-default.php │ ├── books │ └── widget-default.php │ ├── categories │ └── widget-default.php │ ├── changelog │ └── widget-default.php │ ├── changepasswd │ └── widget-default.php │ ├── clienthistory │ └── widget-default.php │ ├── clients │ └── widget-default.php │ ├── configuration │ └── widget-default.php │ ├── editauthor │ └── widget-default.php │ ├── editbook │ └── widget-default.php │ ├── editcategory │ └── widget-default.php │ ├── editclient │ └── widget-default.php │ ├── editeditorial │ └── widget-default.php │ ├── edititem │ └── widget-default.php │ ├── editorials │ └── widget-default.php │ ├── edituser │ └── widget-default.php │ ├── home │ └── widget-default.php │ ├── index │ └── widget-default.php │ ├── itemhistory │ └── widget-default.php │ ├── items │ └── widget-default.php │ ├── layout.php │ ├── login │ └── widget-default.php │ ├── newauthor │ └── widget-default.php │ ├── newbook │ └── widget-default.php │ ├── newcategory │ └── widget-default.php │ ├── newclient │ └── widget-default.php │ ├── neweditorial │ └── widget-default.php │ ├── newitem │ └── widget-default.php │ ├── newuser │ └── widget-default.php │ ├── processlogin │ └── widget-default.php │ ├── rent │ └── widget-default.php │ ├── rents │ └── widget-default.php │ ├── reports │ └── widget-default.php │ ├── updateuser │ └── widget-default.php │ └── users │ └── widget-default.php ├── css ├── bootstrap.css ├── bootstrap.min.css └── sb-admin.css ├── font-awesome ├── css │ ├── font-awesome.css │ └── font-awesome.min.css └── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── index.php ├── js ├── bootstrap.js ├── bootstrap.min.js ├── flot │ ├── chart-data-flot.js │ ├── excanvas.min.js │ ├── jquery.flot.js │ ├── jquery.flot.pie.js │ ├── jquery.flot.resize.js │ └── jquery.flot.tooltip.min.js ├── jquery-1.10.2.js ├── morris │ └── chart-data-morris.js └── tablesorter │ ├── jquery.tablesorter.js │ └── tables.js ├── logout.php ├── report ├── report-word.php └── reservation-word.php ├── res ├── bootstrap3 │ ├── css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap.css │ │ └── bootstrap.min.css │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regulard41d.eot │ └── js │ │ ├── bootstrap.js │ │ └── bootstrap.min.js ├── chosen.jquery.min.js ├── chosen.min.css ├── css │ └── micss.css ├── fullcalendar.min.css ├── fullcalendar.min.js ├── fullcalendar.print.css ├── jquery.min.js ├── js │ ├── funciones.js │ └── moment.min.js └── select2 │ ├── select2-bootstrap.css │ ├── select2-full.js │ ├── select2-spinner.gif │ ├── select2.css │ ├── select2.min.js │ ├── select2.png │ ├── select2_locale_es.js │ └── select2x2.png └── schema.sql /PhpWord/Autoloader.php: -------------------------------------------------------------------------------- 1 | name = String::toUTF8($name); 51 | return $this; 52 | } 53 | 54 | /** 55 | * Get Bookmark name 56 | * 57 | * @return string 58 | */ 59 | public function getName() 60 | { 61 | return $this->name; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /PhpWord/Element/Cell.php: -------------------------------------------------------------------------------- 1 | width = $width; 55 | $this->style = $this->setNewStyle(new CellStyle(), $style, true); 56 | } 57 | 58 | /** 59 | * Get cell style 60 | * 61 | * @return \PhpOffice\PhpWord\Style\Cell 62 | */ 63 | public function getStyle() 64 | { 65 | return $this->style; 66 | } 67 | 68 | /** 69 | * Get cell width 70 | * 71 | * @return int 72 | */ 73 | public function getWidth() 74 | { 75 | return $this->width; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /PhpWord/Element/CheckBox.php: -------------------------------------------------------------------------------- 1 | setName($name); 48 | parent::__construct($text, $fontStyle, $paragraphStyle); 49 | } 50 | 51 | /** 52 | * Set name content 53 | * 54 | * @param string $name 55 | * @return self 56 | */ 57 | public function setName($name) 58 | { 59 | $this->name = String::toUTF8($name); 60 | 61 | return $this; 62 | } 63 | 64 | /** 65 | * Get name content 66 | * 67 | * @return string 68 | */ 69 | public function getName() 70 | { 71 | return $this->name; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /PhpWord/Element/Endnote.php: -------------------------------------------------------------------------------- 1 | paragraphStyle = $this->setNewStyle(new Paragraph(), $paragraphStyle); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhpWord/Element/Header.php: -------------------------------------------------------------------------------- 1 | addImage($src, $style, true); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /PhpWord/Element/Line.php: -------------------------------------------------------------------------------- 1 | style = $this->setNewStyle(new LineStyle(), $style); 42 | } 43 | 44 | /** 45 | * Get line style 46 | * 47 | * @return \PhpOffice\PhpWord\Style\Line 48 | */ 49 | public function getStyle() 50 | { 51 | return $this->style; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /PhpWord/Element/PageBreak.php: -------------------------------------------------------------------------------- 1 | style = $this->setNewStyle(new TextBoxStyle(), $style); 49 | } 50 | 51 | /** 52 | * Get textbox style 53 | * 54 | * @return \PhpOffice\PhpWord\Style\TextBox 55 | */ 56 | public function getStyle() 57 | { 58 | return $this->style; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /PhpWord/Element/TextRun.php: -------------------------------------------------------------------------------- 1 | paragraphStyle = $this->setNewStyle(new Paragraph(), $paragraphStyle); 47 | } 48 | 49 | /** 50 | * Get Paragraph style 51 | * 52 | * @return string|\PhpOffice\PhpWord\Style\Paragraph 53 | */ 54 | public function getParagraphStyle() 55 | { 56 | return $this->paragraphStyle; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /PhpWord/Exception/CopyFileException.php: -------------------------------------------------------------------------------- 1 | ooxmlVersion; 48 | } 49 | 50 | /** 51 | * Set OOXML version 52 | * 53 | * @param int $value 54 | * @return self 55 | */ 56 | public function setOoxmlVersion($value) 57 | { 58 | $this->ooxmlVersion = $value; 59 | 60 | return $this; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /PhpWord/Metadata/Protection.php: -------------------------------------------------------------------------------- 1 | setEditing($editing); 45 | } 46 | 47 | /** 48 | * Get editing protection 49 | * 50 | * @return string 51 | */ 52 | public function getEditing() 53 | { 54 | return $this->editing; 55 | } 56 | 57 | /** 58 | * Set editing protection 59 | * 60 | * @param string $editing 61 | * @return self 62 | */ 63 | public function setEditing($editing = null) 64 | { 65 | $this->editing = $editing; 66 | 67 | return $this; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /PhpWord/Reader/HTML.php: -------------------------------------------------------------------------------- 1 | canRead($docFile)) { 42 | $section = $phpWord->addSection(); 43 | HTMLParser::addHtml($section, file_get_contents($docFile), true); 44 | } else { 45 | throw new \Exception("Cannot read {$docFile}."); 46 | } 47 | 48 | return $phpWord; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PhpWord/Reader/ODText/AbstractPart.php: -------------------------------------------------------------------------------- 1 | canRead($docFile)) { 42 | $doc = new Document(); 43 | $doc->rtf = file_get_contents($docFile); 44 | $doc->read($phpWord); 45 | } else { 46 | throw new \Exception("Cannot read {$docFile}."); 47 | } 48 | 49 | return $phpWord; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /PhpWord/Reader/ReaderInterface.php: -------------------------------------------------------------------------------- 1 | 'setCompany', 'Manager' => 'setManager'); 33 | 34 | /** 35 | * Callback functions 36 | * 37 | * @var array 38 | */ 39 | protected $callbacks = array(); 40 | } 41 | -------------------------------------------------------------------------------- /PhpWord/Reader/Word2007/Endnotes.php: -------------------------------------------------------------------------------- 1 | setStyleByArray($style); 45 | } 46 | 47 | /** 48 | * Get color 49 | * 50 | * @return string 51 | */ 52 | public function getColor() 53 | { 54 | return $this->color; 55 | } 56 | 57 | /** 58 | * Set color 59 | * 60 | * @param string $value 61 | * @return self 62 | */ 63 | public function setColor($value = null) 64 | { 65 | $this->color = $value; 66 | 67 | return $this; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /PhpWord/Template.php: -------------------------------------------------------------------------------- 1 | element instanceof \PhpOffice\PhpWord\Element\Footnote) { 42 | return ''; 43 | } 44 | /** @var \PhpOffice\PhpWord\Writer\HTML $parentWriter Type hint */ 45 | $parentWriter = $this->parentWriter; 46 | 47 | $noteId = count($parentWriter->getNotes()) + 1; 48 | $noteMark = $this->noteType . '-' . $this->element->getRelationId(); 49 | $content = "{$noteId}"; 50 | 51 | $parentWriter->addNote($noteId, $noteMark); 52 | 53 | return $content; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Element/Link.php: -------------------------------------------------------------------------------- 1 | element instanceof \PhpOffice\PhpWord\Element\Link) { 35 | return ''; 36 | } 37 | 38 | $content = ''; 39 | $content .= $this->writeOpening(); 40 | $content .= "element->getSource()}\">{$this->element->getText()}"; 41 | $content .= $this->writeClosing(); 42 | 43 | return $content; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Element/ListItem.php: -------------------------------------------------------------------------------- 1 | element instanceof \PhpOffice\PhpWord\Element\ListItem) { 35 | return ''; 36 | } 37 | 38 | $text = $this->element->getTextObject()->getText(); 39 | $content = '

' . $text . '

' . PHP_EOL; 40 | 41 | return $content; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Element/PageBreak.php: -------------------------------------------------------------------------------- 1 | parentWriter; 38 | if ($parentWriter->isPdf()) { 39 | return ''; 40 | } 41 | 42 | return ""; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Element/TextBreak.php: -------------------------------------------------------------------------------- 1 | withoutP) { 35 | $content = '
' . PHP_EOL; 36 | } else { 37 | $content = '

 

' . PHP_EOL; 38 | } 39 | 40 | return $content; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Element/TextRun.php: -------------------------------------------------------------------------------- 1 | writeOpening(); 37 | $writer = new Container($this->parentWriter, $this->element); 38 | $content .= $writer->write(); 39 | $content .= $this->writeClosing(); 40 | 41 | return $content; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Element/Title.php: -------------------------------------------------------------------------------- 1 | element instanceof \PhpOffice\PhpWord\Element\Title) { 35 | return ''; 36 | } 37 | 38 | $tag = 'h' . $this->element->getDepth(); 39 | $text = $this->element->getText(); 40 | $content = "<{$tag}>{$text}" . PHP_EOL; 41 | 42 | return $content; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Part/AbstractPart.php: -------------------------------------------------------------------------------- 1 | parentWriter = $writer; 53 | } 54 | 55 | /** 56 | * Get parent writer 57 | * 58 | * @return \PhpOffice\PhpWord\Writer\AbstractWriter 59 | * @throws \PhpOffice\PhpWord\Exception\Exception 60 | */ 61 | public function getParentWriter() 62 | { 63 | if ($this->parentWriter !== null) { 64 | return $this->parentWriter; 65 | } else { 66 | throw new Exception('No parent WriterInterface assigned.'); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Style/Generic.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | $css = array(); 36 | 37 | if (is_array($style) && !empty($style)) { 38 | $css = $style; 39 | } 40 | 41 | return $this->assembleCss($css); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Style/Image.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Image) { 36 | return ''; 37 | } 38 | $css = array(); 39 | 40 | $width = $style->getWidth(); 41 | $height = $style->getHeight(); 42 | $css['width'] = $this->getValueIf(is_numeric($width), $width . 'px'); 43 | $css['height'] = $this->getValueIf(is_numeric($height), $height . 'px'); 44 | 45 | return $this->assembleCss($css); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PhpWord/Writer/HTML/Style/Paragraph.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Paragraph) { 36 | return ''; 37 | } 38 | $css = array(); 39 | 40 | // Alignment 41 | $align = $style->getAlign(); 42 | $css['text-align'] = $this->getValueIf(!is_null($align), $align); 43 | 44 | // Spacing 45 | $spacing = $style->getSpace(); 46 | if (!is_null($spacing)) { 47 | $before = $spacing->getBefore(); 48 | $after = $spacing->getAfter(); 49 | $css['margin-top'] = $this->getValueIf(!is_null($before), ($before / 20) . 'pt'); 50 | $css['margin-bottom'] = $this->getValueIf(!is_null($after), ($after / 20) . 'pt'); 51 | } 52 | 53 | return $this->assembleCss($css); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Element/AbstractElement.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 33 | $element = $this->getElement(); 34 | if (!$element instanceof \PhpOffice\PhpWord\Element\Link) { 35 | return; 36 | } 37 | 38 | if (!$this->withoutP) { 39 | $xmlWriter->startElement('text:p'); // text:p 40 | } 41 | 42 | $xmlWriter->startElement('text:a'); 43 | $xmlWriter->writeAttribute('xlink:type', 'simple'); 44 | $xmlWriter->writeAttribute('xlink:href', $element->getSource()); 45 | $xmlWriter->writeRaw($element->getText()); 46 | $xmlWriter->endElement(); // text:a 47 | 48 | if (!$this->withoutP) { 49 | $xmlWriter->endElement(); // text:p 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Element/TextBreak.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 33 | 34 | $xmlWriter->startElement('text:p'); 35 | $xmlWriter->writeAttribute('text:style-name', 'Standard'); 36 | $xmlWriter->endElement(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Element/TextRun.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 33 | $element = $this->getElement(); 34 | 35 | $xmlWriter->startElement('text:p'); 36 | 37 | $containerWriter = new Container($xmlWriter, $element); 38 | $containerWriter->write(); 39 | 40 | $xmlWriter->endElement(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Element/Title.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 33 | $element = $this->getElement(); 34 | if (!$element instanceof \PhpOffice\PhpWord\Element\Title) { 35 | return; 36 | } 37 | 38 | $xmlWriter->startElement('text:h'); 39 | $xmlWriter->writeAttribute('text:outline-level', $element->getDepth()); 40 | $xmlWriter->writeRaw($element->getText()); 41 | $xmlWriter->endElement(); // text:h 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Part/Mimetype.php: -------------------------------------------------------------------------------- 1 | getStyle(); 36 | if (!$style instanceof \PhpOffice\PhpWord\Style\Image) { 37 | return; 38 | } 39 | $xmlWriter = $this->getXmlWriter(); 40 | 41 | $xmlWriter->startElement('style:style'); 42 | $xmlWriter->writeAttribute('style:name', $style->getStyleName()); 43 | $xmlWriter->writeAttribute('style:family', 'graphic'); 44 | $xmlWriter->writeAttribute('style:parent-style-name', 'Graphics'); 45 | $xmlWriter->startElement('style:graphic-properties'); 46 | $xmlWriter->writeAttribute('style:vertical-pos', 'top'); 47 | $xmlWriter->writeAttribute('style:vertical-rel', 'baseline'); 48 | $xmlWriter->endElement(); // style:graphic-properties 49 | $xmlWriter->endElement(); // style:style 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Style/Section.php: -------------------------------------------------------------------------------- 1 | getStyle(); 36 | if (!$style instanceof \PhpOffice\PhpWord\Style\Section) { 37 | return; 38 | } 39 | $xmlWriter = $this->getXmlWriter(); 40 | 41 | $xmlWriter->startElement('style:style'); 42 | $xmlWriter->writeAttribute('style:name', $style->getStyleName()); 43 | $xmlWriter->writeAttribute('style:family', "section"); 44 | $xmlWriter->startElement('style:section-properties'); 45 | 46 | $xmlWriter->startElement('style:columns'); 47 | $xmlWriter->writeAttribute('fo:column-count', $style->getColsNum()); 48 | $xmlWriter->endElement(); // style:columns 49 | 50 | $xmlWriter->endElement(); // style:section-properties 51 | $xmlWriter->endElement(); // style:style 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /PhpWord/Writer/ODText/Style/Table.php: -------------------------------------------------------------------------------- 1 | getStyle(); 36 | if (!$style instanceof \PhpOffice\PhpWord\Style\Table) { 37 | return; 38 | } 39 | $xmlWriter = $this->getXmlWriter(); 40 | 41 | $xmlWriter->startElement('style:style'); 42 | $xmlWriter->writeAttribute('style:name', $style->getStyleName()); 43 | $xmlWriter->writeAttribute('style:family', 'table'); 44 | $xmlWriter->startElement('style:table-properties'); 45 | //$xmlWriter->writeAttribute('style:width', 'table'); 46 | $xmlWriter->writeAttribute('style:rel-width', 100); 47 | $xmlWriter->writeAttribute('table:align', 'center'); 48 | $xmlWriter->endElement(); // style:table-properties 49 | $xmlWriter->endElement(); // style:style 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /PhpWord/Writer/PDF/DomPDF.php: -------------------------------------------------------------------------------- 1 | set_paper(strtolower($paperSize), $orientation); 54 | $pdf->load_html($this->getContent()); 55 | $pdf->render(); 56 | 57 | // Write to file 58 | fwrite($fileHandle, $pdf->output()); 59 | 60 | parent::restoreStateAfterSave($fileHandle); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /PhpWord/Writer/RTF/Element/Container.php: -------------------------------------------------------------------------------- 1 | element instanceof ImageElement) { 38 | return ''; 39 | } 40 | 41 | $this->getStyles(); 42 | $style = $this->element->getStyle(); 43 | 44 | $content = ''; 45 | $content .= $this->writeOpening(); 46 | $content .= '{\*\shppict {\pict'; 47 | $content .= '\pngblip\picscalex100\picscaley100'; 48 | $content .= '\picwgoal' . round(Converter::pixelToTwip($style->getWidth())); 49 | $content .= '\pichgoal' . round(Converter::pixelToTwip($style->getHeight())); 50 | $content .= PHP_EOL; 51 | $content .= $this->element->getImageStringData(); 52 | $content .= '}}'; 53 | $content .= $this->writeClosing(); 54 | 55 | return $content; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /PhpWord/Writer/RTF/Element/Link.php: -------------------------------------------------------------------------------- 1 | element instanceof \PhpOffice\PhpWord\Element\Link) { 35 | return ''; 36 | } 37 | 38 | $this->getStyles(); 39 | 40 | $content = ''; 41 | $content .= $this->writeOpening(); 42 | $content .= '{\field {\*\fldinst {HYPERLINK "' . $this->element->getSource() . '"}}{\\fldrslt {'; 43 | $content .= $this->writeFontStyle(); 44 | $content .= $this->writeText($this->element->getText()); 45 | $content .= '}}}'; 46 | $content .= $this->writeClosing(); 47 | 48 | return $content; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PhpWord/Writer/RTF/Element/ListItem.php: -------------------------------------------------------------------------------- 1 | element; 36 | $elementClass = str_replace('\\Writer\\RTF', '', get_class($this)); 37 | if (!$element instanceof $elementClass) { 38 | return ''; 39 | } 40 | 41 | $this->getStyles(); 42 | 43 | $content = ''; 44 | $content .= $this->writeOpening(); 45 | $content .= '{'; 46 | $content .= $this->writeFontStyle(); 47 | $content .= $this->writeText($element->getText()); 48 | $content .= '}'; 49 | $content .= $this->writeClosing(); 50 | 51 | return $content; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /PhpWord/Writer/RTF/Element/TextBreak.php: -------------------------------------------------------------------------------- 1 | parentWriter; 36 | $parentWriter->setLastParagraphStyle(); 37 | 38 | return '\pard\par' . PHP_EOL; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /PhpWord/Writer/RTF/Element/TextRun.php: -------------------------------------------------------------------------------- 1 | parentWriter, $this->element); 35 | 36 | $content = ''; 37 | $content .= $this->writeOpening(); 38 | $content .= '{'; 39 | $content .= $writer->write(); 40 | $content .= '}'; 41 | $content .= $this->writeClosing(); 42 | 43 | return $content; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /PhpWord/Writer/RTF/Element/Title.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 33 | $element = $this->getElement(); 34 | if (!$element instanceof \PhpOffice\PhpWord\Element\Bookmark) { 35 | return; 36 | } 37 | 38 | $rId = $element->getRelationId(); 39 | 40 | $xmlWriter->startElement('w:bookmarkStart'); 41 | $xmlWriter->writeAttribute('w:id', $rId); 42 | $xmlWriter->writeAttribute('w:name', $element->getName()); 43 | $xmlWriter->endElement(); 44 | 45 | $xmlWriter->startElement('w:bookmarkEnd'); 46 | $xmlWriter->writeAttribute('w:id', $rId); 47 | $xmlWriter->endElement(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Element/Endnote.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 36 | 37 | $xmlWriter->startElement('w:p'); 38 | $xmlWriter->startElement('w:r'); 39 | $xmlWriter->startElement('w:br'); 40 | $xmlWriter->writeAttribute('w:type', 'page'); 41 | $xmlWriter->endElement(); // w:br 42 | $xmlWriter->endElement(); // w:r 43 | $xmlWriter->endElement(); // w:p 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Element/Text.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 35 | $element = $this->getElement(); 36 | if (!$element instanceof \PhpOffice\PhpWord\Element\Text) { 37 | return; 38 | } 39 | 40 | $this->startElementP(); 41 | 42 | $xmlWriter->startElement('w:r'); 43 | 44 | $this->writeFontStyle(); 45 | 46 | $xmlWriter->startElement('w:t'); 47 | $xmlWriter->writeAttribute('xml:space', 'preserve'); 48 | $xmlWriter->writeRaw($this->getText($element->getText())); 49 | $xmlWriter->endElement(); 50 | $xmlWriter->endElement(); // w:r 51 | 52 | $this->endElementP(); // w:p 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Element/TextBreak.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 35 | $element = $this->getElement(); 36 | if (!$element instanceof \PhpOffice\PhpWord\Element\TextBreak) { 37 | return; 38 | } 39 | 40 | if (!$this->withoutP) { 41 | $hasStyle = $element->hasStyle(); 42 | $this->startElementP(); 43 | 44 | if ($hasStyle) { 45 | $xmlWriter->startElement('w:pPr'); 46 | $this->writeFontStyle(); 47 | $xmlWriter->endElement(); // w:pPr 48 | } 49 | 50 | $this->endElementP(); // w:p 51 | } else { 52 | $xmlWriter->writeElement('w:br'); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Element/TextRun.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 35 | $element = $this->getElement(); 36 | 37 | $this->startElementP(); 38 | 39 | $containerWriter = new Container($xmlWriter, $element); 40 | $containerWriter->write(); 41 | 42 | $this->endElementP(); // w:p 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Part/DocPropsApp.php: -------------------------------------------------------------------------------- 1 | getParentWriter()->getPhpWord(); 35 | $xmlWriter = $this->getXmlWriter(); 36 | $schema = 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties'; 37 | 38 | $xmlWriter->startDocument('1.0', 'UTF-8', 'yes'); 39 | $xmlWriter->startElement('Properties'); 40 | $xmlWriter->writeAttribute('xmlns', $schema); 41 | $xmlWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); 42 | 43 | $xmlWriter->writeElement('Application', 'PHPWord'); 44 | $xmlWriter->writeElement('Company', $phpWord->getDocInfo()->getCompany()); 45 | $xmlWriter->writeElement('Manager', $phpWord->getDocInfo()->getManager()); 46 | 47 | $xmlWriter->endElement(); // Properties 48 | 49 | return $xmlWriter->getData(); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Part/Endnotes.php: -------------------------------------------------------------------------------- 1 | 'officeDocument/2006/relationships/styles', 36 | 'numbering.xml' => 'officeDocument/2006/relationships/numbering', 37 | 'settings.xml' => 'officeDocument/2006/relationships/settings', 38 | 'theme/theme1.xml' => 'officeDocument/2006/relationships/theme', 39 | 'webSettings.xml' => 'officeDocument/2006/relationships/webSettings', 40 | 'fontTable.xml' => 'officeDocument/2006/relationships/fontTable', 41 | ); 42 | $xmlWriter = $this->getXmlWriter(); 43 | 44 | /** @var \PhpOffice\PhpWord\Writer\Word2007 $parentWriter Type hint */ 45 | $parentWriter = $this->getParentWriter(); 46 | $this->writeRels($xmlWriter, $xmlRels, $parentWriter->getRelationships()); 47 | 48 | return $xmlWriter->getData(); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Part/RelsPart.php: -------------------------------------------------------------------------------- 1 | getXmlWriter(); 42 | $this->writeRels($xmlWriter, array(), $this->media); 43 | 44 | return $xmlWriter->getData(); 45 | } 46 | 47 | /** 48 | * Set media 49 | * 50 | * @param array $media 51 | * @return self 52 | */ 53 | public function setMedia($media) 54 | { 55 | $this->media = $media; 56 | 57 | return $this; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Part/WebSettings.php: -------------------------------------------------------------------------------- 1 | '', 34 | ); 35 | 36 | $xmlWriter = $this->getXmlWriter(); 37 | 38 | $xmlWriter->startDocument('1.0', 'UTF-8', 'yes'); 39 | $xmlWriter->startElement('w:webSettings'); 40 | $xmlWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); 41 | $xmlWriter->writeAttribute('xmlns:w', 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'); 42 | 43 | foreach ($settings as $settingKey => $settingValue) { 44 | $this->writeSetting($xmlWriter, $settingKey, $settingValue); 45 | } 46 | 47 | $xmlWriter->endElement(); // w:settings 48 | 49 | return $xmlWriter->getData(); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Alignment.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Alignment) { 36 | return; 37 | } 38 | $value = $style->getValue(); 39 | if ($value !== null) { 40 | $xmlWriter = $this->getXmlWriter(); 41 | $xmlWriter->startElement('w:jc'); 42 | $xmlWriter->writeAttribute('w:val', $value); 43 | $xmlWriter->endElement(); // w:jc 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Extrusion.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Extrusion) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->startElement("o:extrusion"); 41 | $xmlWriter->writeAttribute('on', 't'); 42 | $xmlWriter->writeAttributeIf($style->getType() !== null, 'type', $style->getType()); 43 | $xmlWriter->writeAttributeIf($style->getColor() !== null, 'color', $style->getColor()); 44 | $xmlWriter->endElement(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Fill.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Fill) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->writeAttribute('on', 't'); 41 | $xmlWriter->writeAttributeIf($style->getColor() !== null, 'fillcolor', $style->getColor()); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Image.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Indentation) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->startElement('w:ind'); 41 | 42 | $xmlWriter->writeAttribute('w:left', $this->convertTwip($style->getLeft())); 43 | $xmlWriter->writeAttribute('w:right', $this->convertTwip($style->getRight())); 44 | 45 | $firstLine = $style->getFirstLine(); 46 | $xmlWriter->writeAttributeIf(!is_null($firstLine), 'w:firstLine', $this->convertTwip($firstLine)); 47 | 48 | $hanging = $style->getHanging(); 49 | $xmlWriter->writeAttributeIf(!is_null($hanging), 'w:hanging', $this->convertTwip($hanging)); 50 | 51 | $xmlWriter->endElement(); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/LineNumbering.php: -------------------------------------------------------------------------------- 1 | getStyle(); 37 | if (!$style instanceof \PhpOffice\PhpWord\Style\LineNumbering) { 38 | return; 39 | } 40 | $xmlWriter = $this->getXmlWriter(); 41 | 42 | $xmlWriter->startElement('w:lnNumType'); 43 | $xmlWriter->writeAttribute('w:start', $style->getStart() - 1); 44 | $xmlWriter->writeAttribute('w:countBy', $style->getIncrement()); 45 | $xmlWriter->writeAttribute('w:distance', $style->getDistance()); 46 | $xmlWriter->writeAttribute('w:restart', $style->getRestart()); 47 | $xmlWriter->endElement(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Shading.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Shading) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->startElement('w:shd'); 41 | $xmlWriter->writeAttribute('w:val', $style->getPattern()); 42 | $xmlWriter->writeAttribute('w:color', $style->getColor()); 43 | $xmlWriter->writeAttribute('w:fill', $style->getFill()); 44 | $xmlWriter->endElement(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Shadow.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Shadow) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->startElement("v:shadow"); 41 | $xmlWriter->writeAttribute('on', 't'); 42 | $xmlWriter->writeAttributeIf($style->getColor() !== null, 'color', $style->getColor()); 43 | $xmlWriter->writeAttributeIf($style->getOffset() !== null, 'offset', $style->getOffset()); 44 | $xmlWriter->endElement(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Shape.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Shape) { 36 | return; 37 | } 38 | 39 | $xmlWriter = $this->getXmlWriter(); 40 | 41 | $childStyles = array('Frame', 'Fill', 'Outline', 'Shadow', 'Extrusion'); 42 | foreach ($childStyles as $childStyle) { 43 | $method = "get{$childStyle}"; 44 | $this->writeChildStyle($xmlWriter, $childStyle, $style->$method()); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Spacing.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Spacing) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->startElement('w:spacing'); 41 | 42 | $before = $style->getBefore(); 43 | $xmlWriter->writeAttributeIf(!is_null($before), 'w:before', $this->convertTwip($before)); 44 | 45 | $after = $style->getAfter(); 46 | $xmlWriter->writeAttributeIf(!is_null($after), 'w:after', $this->convertTwip($after)); 47 | 48 | $line = $style->getLine(); 49 | $xmlWriter->writeAttributeIf(!is_null($line), 'w:line', $line); 50 | 51 | $xmlWriter->writeAttributeIf(!is_null($line), 'w:lineRule', $style->getRule()); 52 | 53 | $xmlWriter->endElement(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /PhpWord/Writer/Word2007/Style/Tab.php: -------------------------------------------------------------------------------- 1 | getStyle(); 35 | if (!$style instanceof \PhpOffice\PhpWord\Style\Tab) { 36 | return; 37 | } 38 | $xmlWriter = $this->getXmlWriter(); 39 | 40 | $xmlWriter->startElement("w:tab"); 41 | $xmlWriter->writeAttribute("w:val", $style->getType()); 42 | $xmlWriter->writeAttribute("w:leader", $style->getLeader()); 43 | $xmlWriter->writeAttribute('w:pos', $this->convertTwip($style->getPosition())); 44 | $xmlWriter->endElement(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /PhpWord/Writer/WriterInterface.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/controller/Action.php: -------------------------------------------------------------------------------- 1 | 404 NOT FOUND Action ".$_GET['action']." folder !!"); 25 | } 26 | 27 | 28 | 29 | } 30 | } 31 | 32 | /** 33 | * @function isValid 34 | * @brief valida la existencia de una vista 35 | **/ 36 | public static function isValid(){ 37 | $valid=false; 38 | if(file_exists($file = "core/modules/".Module::$module."/action/".$_GET['action']."/action-default.php")){ 39 | $valid = true; 40 | } 41 | return $valid; 42 | } 43 | 44 | public static function Error($message){ 45 | print $message; 46 | } 47 | 48 | public function execute($action,$params){ 49 | $fullpath = "core/modules/".Module::$module."/action/".$action."/action-default.php"; 50 | if(file_exists($fullpath)){ 51 | include $fullpath; 52 | }else{ 53 | assert("wtf"); 54 | } 55 | } 56 | 57 | } 58 | 59 | 60 | 61 | ?> -------------------------------------------------------------------------------- /core/controller/Bootload.php: -------------------------------------------------------------------------------- 1 | 404 NOT FOUND Boot ".$_GET['view']." folder !!"); 25 | } 26 | 27 | } 28 | } 29 | 30 | /** 31 | * @function isValid 32 | * @brief valida la existencia de una vista 33 | **/ 34 | public static function isValid(){ 35 | $valid=false; 36 | if(file_exists($file = "core/modules/".Module::$module."/boot/".$_GET['view']."/boot-default.php")){ 37 | $valid = true; 38 | } 39 | return $valid; 40 | } 41 | 42 | public static function Error($message){ 43 | print $message; 44 | } 45 | 46 | } 47 | 48 | 49 | 50 | 51 | ?> -------------------------------------------------------------------------------- /core/controller/Cookie.php: -------------------------------------------------------------------------------- 1 | exist($value)){ 11 | print "COOKIE ERROR El parametro $value que intentas llamar no existe!"; 12 | die(); 13 | } 14 | return $_COOKIE[$value]; 15 | } 16 | 17 | function exist($value){ 18 | $found = false; 19 | if(isset($_COOKIE[$value])){ 20 | $found=true; 21 | } 22 | return $found; 23 | } 24 | } 25 | 26 | 27 | 28 | ?> -------------------------------------------------------------------------------- /core/controller/Core.php: -------------------------------------------------------------------------------- 1 | "; 19 | 20 | } 21 | } 22 | } 23 | closedir($handle); 24 | } 25 | 26 | } 27 | 28 | public static function redir($url){ 29 | echo ""; 30 | } 31 | 32 | public static function alert($text){ 33 | echo ""; 34 | } 35 | 36 | public static function includeJS(){ 37 | $path = "res/js/"; 38 | $handle=opendir($path); 39 | if($handle){ 40 | while (false !== ($entry = readdir($handle))) { 41 | if($entry!="." && $entry!=".."){ 42 | $fullpath = $path.$entry; 43 | if(!is_dir($fullpath)){ 44 | echo ""; 45 | 46 | } 47 | } 48 | } 49 | closedir($handle); 50 | } 51 | 52 | } 53 | 54 | } 55 | 56 | 57 | 58 | ?> -------------------------------------------------------------------------------- /core/controller/Database.php: -------------------------------------------------------------------------------- 1 | user="root";$this->pass="";$this->host="localhost";$this->ddbb="library2"; 7 | } 8 | 9 | function connect(){ 10 | $con = new mysqli($this->host,$this->user,$this->pass,$this->ddbb); 11 | return $con; 12 | } 13 | 14 | public static function getCon(){ 15 | if(self::$con==null && self::$db==null){ 16 | self::$db = new Database(); 17 | self::$con = self::$db->connect(); 18 | } 19 | return self::$con; 20 | } 21 | 22 | } 23 | ?> 24 | -------------------------------------------------------------------------------- /core/controller/Executor.php: -------------------------------------------------------------------------------- 1 | query($sql),$con->insert_id); 8 | } 9 | } 10 | ?> -------------------------------------------------------------------------------- /core/controller/Form.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/controller/Get.php: -------------------------------------------------------------------------------- 1 | exist($value)){ 11 | print "GET ERROR El parametro $value que intentas llamar no existe!"; 12 | die(); 13 | } 14 | return $_GET[$value]; 15 | } 16 | 17 | function exist($value){ 18 | $found = false; 19 | if(isset($_GET[$value])){ 20 | $found=true; 21 | } 22 | return $found; 23 | } 24 | } 25 | 26 | 27 | 28 | ?> -------------------------------------------------------------------------------- /core/controller/Lb.php: -------------------------------------------------------------------------------- 1 | get = new Get(); 12 | $this->post = new Post(); 13 | $this->request = new Request(); 14 | $this->cookie = new Cookie(); 15 | $this->session = new Session(); 16 | } 17 | 18 | public function loadModule($module){ 19 | if(!isset($_GET['module'])){ 20 | Module::setModule($module); 21 | include "core/modules/".$module."/autoload.php"; 22 | include "core/modules/".$module."/superboot.php"; 23 | include "core/modules/".$module."/init.php"; 24 | }else{ 25 | Module::setModule($_GET['module']); 26 | if(Module::isValid()){ 27 | include "core/modules/".$_GET['module']."/init.php"; 28 | }else { 29 | Module::Error(); 30 | } 31 | } 32 | 33 | } 34 | 35 | } 36 | 37 | ?> -------------------------------------------------------------------------------- /core/controller/Model.php: -------------------------------------------------------------------------------- 1 | fetch_array()){ 28 | $array[$cnt] = new $aclass; 29 | $cnt2=1; 30 | foreach ($r as $key => $v) { 31 | if($cnt2>0 && $cnt2%2==0){ 32 | $array[$cnt]->$key = $v; 33 | } 34 | $cnt2++; 35 | } 36 | $cnt++; 37 | } 38 | return $array; 39 | } 40 | ////////////////////////////////// 41 | public static function one($query,$aclass){ 42 | $cnt = 0; 43 | $found = null; 44 | $data = new $aclass; 45 | while($r = $query->fetch_array()){ 46 | $cnt=1; 47 | foreach ($r as $key => $v) { 48 | if($cnt>0 && $cnt%2==0){ 49 | $data->$key = $v; 50 | } 51 | $cnt++; 52 | } 53 | 54 | $found = $data; 55 | break; 56 | } 57 | return $found; 58 | } 59 | 60 | } 61 | 62 | 63 | 64 | ?> -------------------------------------------------------------------------------- /core/controller/Module.php: -------------------------------------------------------------------------------- 1 | 404 NOT FOUND Module ".Module::$module." folder !!"; } 30 | 31 | 32 | return $valid; 33 | } 34 | 35 | public static function Error(){ 36 | echo self::$message; 37 | die(); 38 | } 39 | 40 | } 41 | 42 | 43 | 44 | ?> -------------------------------------------------------------------------------- /core/controller/Post.php: -------------------------------------------------------------------------------- 1 | exist($value)){ 11 | print "POST ERROR El parametro $value que intentas llamar no existe!"; 12 | die(); 13 | } 14 | return $_POST[$value]; 15 | } 16 | 17 | function exist($value){ 18 | $found = false; 19 | if(isset($_POST[$value])){ 20 | $found=true; 21 | } 22 | return $found; 23 | } 24 | } 25 | 26 | 27 | 28 | ?> -------------------------------------------------------------------------------- /core/controller/Request.php: -------------------------------------------------------------------------------- 1 | exist($value)){ 11 | print "REQUEST ERROR El parametro $value que intentas llamar no existe!"; 12 | die(); 13 | } 14 | return $_REQUEST[$value]; 15 | } 16 | 17 | function exist($value){ 18 | $found = false; 19 | if(isset($_REQUEST[$value])){ 20 | $found=true; 21 | } 22 | return $found; 23 | } 24 | } 25 | 26 | 27 | 28 | ?> -------------------------------------------------------------------------------- /core/controller/RequestData.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/core/controller/RequestData.php -------------------------------------------------------------------------------- /core/controller/Session.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/controller/View.php: -------------------------------------------------------------------------------- 1 | 404 NOT FOUND View ".$_GET['view']." folder !!"); 24 | } 25 | 26 | 27 | 28 | } 29 | } 30 | 31 | /** 32 | * @function isValid 33 | * @brief valida la existencia de una vista 34 | **/ 35 | public static function isValid(){ 36 | $valid=false; 37 | if(isset($_GET["view"])){ 38 | if(file_exists($file = "core/modules/".Module::$module."/view/".$_GET['view']."/widget-default.php")){ 39 | $valid = true; 40 | } 41 | } 42 | return $valid; 43 | } 44 | 45 | public static function Error($message){ 46 | print $message; 47 | } 48 | 49 | } 50 | 51 | 52 | 53 | ?> -------------------------------------------------------------------------------- /core/controller/forms/lbForm.php: -------------------------------------------------------------------------------- 1 | field = array(); 6 | } 7 | 8 | public function addField($name,$field){ 9 | $this->field[$name] = $field; 10 | } 11 | 12 | public function render($field){ 13 | return $this->getField($field)->render(); 14 | 15 | } 16 | 17 | public function label($field){ 18 | return $this->getField($field)->renderLabel(); 19 | 20 | } 21 | 22 | 23 | public function getField($name){ 24 | $field = $this->field[$name]['type']; 25 | $field->setName($name); 26 | return $field; 27 | } 28 | } 29 | 30 | ?> -------------------------------------------------------------------------------- /core/controller/forms/lbInputPassword.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/controller/forms/lbInputText.php: -------------------------------------------------------------------------------- 1 | config = $config; 6 | 7 | } 8 | public function setName($name){ $this->name = $name;} 9 | public function render(){ return ""; } 10 | public function renderLabel(){ return $this->config['label']; } 11 | } 12 | 13 | ?> -------------------------------------------------------------------------------- /core/controller/forms/lbValidator.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/modules/index/action/actiontest/action-default.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/modules/index/action/addauthor/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = new AuthorData(); 5 | $user->name = $_POST["name"]; 6 | $user->lastname = $_POST["lastname"]; 7 | $user->add(); 8 | 9 | print ""; 10 | 11 | 12 | } 13 | 14 | 15 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/addbook/action-default.php: -------------------------------------------------------------------------------- 1 | title = $_POST["title"]; 6 | $r->subtitle = $_POST["subtitle"]; 7 | $r->description = $_POST["description"]; 8 | $r->isbn = $_POST["isbn"]; 9 | $r->n_pag = $_POST["n_pag"]; 10 | $r->year = $_POST["year"]; 11 | $r->category_id = $_POST["category_id"]!="" ? $_POST["category_id"] : "NULL"; 12 | $r->editorial_id = $_POST["editorial_id"]!="" ? $_POST["editorial_id"] : "NULL"; 13 | $r->author_id = $_POST["author_id"]!="" ? $_POST["author_id"] : "NULL"; 14 | $r->add(); 15 | } 16 | //Core::alert("Agregado exitosamente!"); 17 | Core::redir("./index.php?view=books"); 18 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/addcategory/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = new CategoryData(); 5 | $user->name = $_POST["name"]; 6 | $user->add(); 7 | 8 | print ""; 9 | 10 | 11 | } 12 | 13 | 14 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/addclient/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = new ClientData(); 5 | $user->name = $_POST["name"]; 6 | $user->lastname = $_POST["lastname"]; 7 | 8 | 9 | $user->address = $_POST["address"]; 10 | $user->email = $_POST["email"]; 11 | $user->phone = $_POST["phone"]; 12 | $user->add(); 13 | 14 | print ""; 15 | 16 | 17 | } 18 | 19 | 20 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/addeditorial/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = new EditorialData(); 5 | $user->name = $_POST["name"]; 6 | $user->add(); 7 | 8 | print ""; 9 | 10 | 11 | } 12 | 13 | 14 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/additem/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = new ItemData(); 5 | $user->code = $_POST["code"]; 6 | $user->book_id = $_POST["book_id"]; 7 | $user->status_id = $_POST["status_id"]; 8 | $user->add(); 9 | 10 | print ""; 11 | 12 | 13 | } 14 | 15 | 16 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/addtocart/action-default.php: -------------------------------------------------------------------------------- 1 | $_POST["book_id"],"item_id"=>$_POST["item_id"]); 9 | $_SESSION["cart"] = array($product); 10 | 11 | 12 | $cart = $_SESSION["cart"]; 13 | 14 | 15 | 16 | }else { 17 | 18 | $found = false; 19 | $cart = $_SESSION["cart"]; 20 | $index=0; 21 | 22 | 23 | 24 | 25 | 26 | 27 | $can = true; 28 | ?> 29 | 30 | "; 41 | } 42 | 43 | if($found==false){ 44 | $nc = count($cart); 45 | $product = array("book_id"=>$_POST["book_id"],"item_id"=>$_POST["item_id"]); 46 | $cart[$nc] = $product; 47 | // print_r($cart); 48 | $_SESSION["cart"] = $cart; 49 | }else{ 50 | print ""; 51 | 52 | } 53 | 54 | } 55 | } 56 | print ""; 57 | // unset($_SESSION["cart"]); 58 | 59 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/adduser/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $is_admin=0; 5 | if(isset($_POST["is_admin"])){$is_admin=1;} 6 | $user = new UserData(); 7 | $user->name = $_POST["name"]; 8 | $user->lastname = $_POST["lastname"]; 9 | $user->username = $_POST["username"]; 10 | $user->email = $_POST["email"]; 11 | $user->is_admin=$is_admin; 12 | $user->password = sha1(md5($_POST["password"])); 13 | $user->add(); 14 | 15 | print ""; 16 | 17 | 18 | } 19 | 20 | 21 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/delauthor/action-default.php: -------------------------------------------------------------------------------- 1 | del(); 8 | Core::redir("./index.php?view=authors"); 9 | 10 | 11 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/delbook/action-default.php: -------------------------------------------------------------------------------- 1 | del(); 4 | print ""; 5 | 6 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/delcategory/action-default.php: -------------------------------------------------------------------------------- 1 | del(); 6 | Core::redir("./index.php?view=categories"); 7 | 8 | 9 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/delclient/action-default.php: -------------------------------------------------------------------------------- 1 | del(); 5 | Core::redir("./index.php?view=clients"); 6 | 7 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/deleditorial/action-default.php: -------------------------------------------------------------------------------- 1 | del(); 8 | Core::redir("./index.php?view=editorials"); 9 | 10 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/delitem/action-default.php: -------------------------------------------------------------------------------- 1 | book_id; 5 | $item->del(); 6 | Core::redir("./index.php?view=items&id=$book_id"); 7 | 8 | 9 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/deloperation/action-default.php: -------------------------------------------------------------------------------- 1 | item_id); 6 | $item->avaiable(); 7 | $operation->del(); 8 | Core::redir("./?view=rents"); 9 | 10 | } 11 | 12 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/finalize/action-default.php: -------------------------------------------------------------------------------- 1 | item_id); 6 | $item->avaiable(); 7 | $operation->finalize(); 8 | Core::redir("./?view=rents"); 9 | 10 | } 11 | 12 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/process/action-default.php: -------------------------------------------------------------------------------- 1 | strtotime($_POST["finish_at"])){ 4 | $go=false; 5 | } 6 | if( $go && isset($_SESSION["cart"])){ 7 | $cart = $_SESSION["cart"]; 8 | if(count($cart)>0){ 9 | /* $sell = new SellData(); 10 | $sell->user_id = $_SESSION["user_id"]; 11 | $sell->total = $_POST["total"]; 12 | $sell->discount = $_POST["discount"]; 13 | $s = $sell->add(); 14 | */ 15 | 16 | foreach($cart as $c){ 17 | 18 | 19 | $op = new OperationData(); 20 | $op->item_id = $c["item_id"] ; 21 | $op->client_id = $_POST["client_id"]; 22 | $op->start_at = $_POST["start_at"]; 23 | $op->finish_at = $_POST["finish_at"]; 24 | $op->user_id=$_SESSION["user_id"]; 25 | $add = $op->add(); 26 | 27 | $item = ItemData::getById($c["item_id"]); 28 | $item->unavaiable(); 29 | 30 | unset($_SESSION["cart"]); 31 | setcookie("selled","selled"); 32 | } 33 | //////////////////// 34 | } 35 | } 36 | if($go){ 37 | print ""; 38 | }else{ 39 | print ""; 40 | print ""; 41 | } 42 | 43 | 44 | 45 | ?> 46 | -------------------------------------------------------------------------------- /core/modules/index/action/searchbook/action-default.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0){ 6 | ?> 7 |

Resultados de la Busqueda

8 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 19 | 20 | 21 | 22 | 39 | 40 | 41 | 42 |
ISBNTituloCantidad
isbn; ?>title; ?>
23 | 24 | id);?> 25 |
26 | 32 | 33 | 34 | 35 |
36 | 37 | 38 |
43 | 44 |

No se encontro el producto

"; 47 | } 48 | ?> 49 |

50 | 52 | -------------------------------------------------------------------------------- /core/modules/index/action/updateauthor/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = AuthorData::getById($_POST["user_id"]); 5 | $user->name = $_POST["name"]; 6 | $user->lastname = $_POST["lastname"]; 7 | $user->update(); 8 | print ""; 9 | 10 | 11 | } 12 | 13 | 14 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/updatebook/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $r = BookData::getById($_POST["id"]); 5 | $r->title = $_POST["title"]; 6 | $r->subtitle = $_POST["subtitle"]; 7 | $r->description = $_POST["description"]; 8 | $r->isbn = $_POST["isbn"]; 9 | $r->n_pag = $_POST["n_pag"]; 10 | $r->year = $_POST["year"]; 11 | $r->category_id = $_POST["category_id"]!="" ? $_POST["category_id"] : "NULL"; 12 | $r->editorial_id = $_POST["editorial_id"]!="" ? $_POST["editorial_id"] : "NULL"; 13 | $r->author_id = $_POST["author_id"]!="" ? $_POST["author_id"] : "NULL"; 14 | $r->update(); 15 | 16 | 17 | Core::alert("Actualizado exitosamente!"); 18 | print ""; 19 | 20 | } 21 | 22 | 23 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/updatecategory/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = CategoryData::getById($_POST["user_id"]); 5 | $user->name = $_POST["name"]; 6 | $user->update(); 7 | print ""; 8 | 9 | 10 | } 11 | 12 | 13 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/updateclient/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = ClientData::getById($_POST["id"]); 5 | $user->name = $_POST["name"]; 6 | $user->lastname = $_POST["lastname"]; 7 | 8 | $user->address = $_POST["address"]; 9 | $user->email = $_POST["email"]; 10 | $user->phone = $_POST["phone"]; 11 | $user->update(); 12 | 13 | Core::alert("Actualizado exitosamente!"); 14 | print ""; 15 | 16 | 17 | } 18 | 19 | 20 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/updateeditorial/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = EditorialData::getById($_POST["user_id"]); 5 | $user->name = $_POST["name"]; 6 | $user->update(); 7 | print ""; 8 | 9 | 10 | } 11 | 12 | 13 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/updateitem/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $user = ItemData::getById($_POST["item_id"]); 5 | $user->code = $_POST["code"]; 6 | $user->status_id = $_POST["status_id"]; 7 | $user->update(); 8 | 9 | print ""; 10 | 11 | 12 | } 13 | 14 | 15 | ?> -------------------------------------------------------------------------------- /core/modules/index/action/updateuser/action-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $is_admin=0; 5 | if(isset($_POST["is_admin"])){$is_admin=1;} 6 | $is_active=0; 7 | if(isset($_POST["is_active"])){$is_active=1;} 8 | $user = UserData::getById($_POST["user_id"]); 9 | $user->name = $_POST["name"]; 10 | $user->lastname = $_POST["lastname"]; 11 | $user->username = $_POST["username"]; 12 | $user->email = $_POST["email"]; 13 | $user->is_admin=$is_admin; 14 | $user->is_active=$is_active; 15 | $user->update(); 16 | 17 | if($_POST["password"]!=""){ 18 | $user->password = sha1(md5($_POST["password"])); 19 | $user->update_passwd(); 20 | print ""; 21 | 22 | } 23 | 24 | print ""; 25 | 26 | 27 | } 28 | 29 | 30 | ?> -------------------------------------------------------------------------------- /core/modules/index/autoload.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/modules/index/init.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/modules/index/model.xml: -------------------------------------------------------------------------------- 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 | 26 | 27 |
28 |
29 | -------------------------------------------------------------------------------- /core/modules/index/model/AuthorData.php: -------------------------------------------------------------------------------- 1 | name = ""; 8 | $this->lastname = ""; 9 | $this->email = ""; 10 | $this->password = ""; 11 | $this->created_at = "NOW()"; 12 | } 13 | 14 | public function add(){ 15 | $sql = "insert into author (name,lastname) "; 16 | $sql .= "value (\"$this->name\",\"$this->lastname\")"; 17 | return Executor::doit($sql); 18 | } 19 | 20 | public static function delById($id){ 21 | $sql = "delete from ".self::$tablename." where id=$id"; 22 | Executor::doit($sql); 23 | } 24 | public function del(){ 25 | $sql = "delete from ".self::$tablename." where id=$this->id"; 26 | Executor::doit($sql); 27 | } 28 | 29 | // partiendo de que ya tenemos creado un objecto AuthorData previamente utilizamos el contexto 30 | public function update(){ 31 | $sql = "update ".self::$tablename." set name=\"$this->name\",lastname=\"$this->lastname\" where id=$this->id"; 32 | Executor::doit($sql); 33 | } 34 | 35 | public static function getById($id){ 36 | $sql = "select * from ".self::$tablename." where id=$id"; 37 | $query = Executor::doit($sql); 38 | return Model::one($query[0],new AuthorData()); 39 | } 40 | 41 | public static function getAll(){ 42 | $sql = "select * from ".self::$tablename; 43 | $query = Executor::doit($sql); 44 | return Model::many($query[0],new AuthorData()); 45 | 46 | } 47 | 48 | public static function getLike($q){ 49 | $sql = "select * from ".self::$tablename." where name like '%$q%'"; 50 | $query = Executor::doit($sql); 51 | return Model::many($query[0],new AuthorData()); 52 | } 53 | 54 | 55 | } 56 | 57 | ?> -------------------------------------------------------------------------------- /core/modules/index/model/CategoryData.php: -------------------------------------------------------------------------------- 1 | name = ""; 8 | $this->lastname = ""; 9 | $this->email = ""; 10 | $this->password = ""; 11 | $this->created_at = "NOW()"; 12 | } 13 | 14 | public function add(){ 15 | $sql = "insert into category (name) "; 16 | $sql .= "value (\"$this->name\")"; 17 | return Executor::doit($sql); 18 | } 19 | 20 | public static function delById($id){ 21 | $sql = "delete from ".self::$tablename." where id=$id"; 22 | Executor::doit($sql); 23 | } 24 | public function del(){ 25 | $sql = "delete from ".self::$tablename." where id=$this->id"; 26 | Executor::doit($sql); 27 | } 28 | 29 | // partiendo de que ya tenemos creado un objecto CategoryData previamente utilizamos el contexto 30 | public function update(){ 31 | $sql = "update ".self::$tablename." set name=\"$this->name\" where id=$this->id"; 32 | Executor::doit($sql); 33 | } 34 | 35 | public static function getById($id){ 36 | $sql = "select * from ".self::$tablename." where id=$id"; 37 | $query = Executor::doit($sql); 38 | return Model::one($query[0],new CategoryData()); 39 | } 40 | 41 | public static function getAll(){ 42 | $sql = "select * from ".self::$tablename; 43 | $query = Executor::doit($sql); 44 | return Model::many($query[0],new CategoryData()); 45 | 46 | } 47 | 48 | public static function getLike($q){ 49 | $sql = "select * from ".self::$tablename." where name like '%$q%'"; 50 | $query = Executor::doit($sql); 51 | return Model::many($query[0],new CategoryData()); 52 | } 53 | 54 | 55 | } 56 | 57 | ?> -------------------------------------------------------------------------------- /core/modules/index/model/EditorialData.php: -------------------------------------------------------------------------------- 1 | name = ""; 8 | $this->lastname = ""; 9 | $this->email = ""; 10 | $this->password = ""; 11 | $this->created_at = "NOW()"; 12 | } 13 | 14 | public function add(){ 15 | $sql = "insert into editorial (name) "; 16 | $sql .= "value (\"$this->name\")"; 17 | return Executor::doit($sql); 18 | } 19 | 20 | public static function delById($id){ 21 | $sql = "delete from ".self::$tablename." where id=$id"; 22 | Executor::doit($sql); 23 | } 24 | public function del(){ 25 | $sql = "delete from ".self::$tablename." where id=$this->id"; 26 | Executor::doit($sql); 27 | } 28 | 29 | // partiendo de que ya tenemos creado un objecto EditorialData previamente utilizamos el contexto 30 | public function update(){ 31 | $sql = "update ".self::$tablename." set name=\"$this->name\" where id=$this->id"; 32 | Executor::doit($sql); 33 | } 34 | 35 | public static function getById($id){ 36 | $sql = "select * from ".self::$tablename." where id=$id"; 37 | $query = Executor::doit($sql); 38 | return Model::one($query[0],new EditorialData()); 39 | } 40 | 41 | public static function getAll(){ 42 | $sql = "select * from ".self::$tablename; 43 | $query = Executor::doit($sql); 44 | return Model::many($query[0],new EditorialData()); 45 | 46 | } 47 | 48 | public static function getLike($q){ 49 | $sql = "select * from ".self::$tablename." where name like '%$q%'"; 50 | $query = Executor::doit($sql); 51 | return Model::many($query[0],new EditorialData()); 52 | } 53 | 54 | 55 | } 56 | 57 | ?> -------------------------------------------------------------------------------- /core/modules/index/model/PostData.php: -------------------------------------------------------------------------------- 1 | title = ""; 8 | $this->content = ""; 9 | $this->image = ""; 10 | $this->user_id = ""; 11 | $this->is_public = "0"; 12 | $this->created_at = "NOW()"; 13 | } 14 | 15 | public function add(){ 16 | $sql = "insert into ".self::$tablename." (title,content,image,user_id,is_public,created_at) "; 17 | $sql .= "value (\"$this->title\",\"$this->content\",\"$this->image\",$this->user_id,$this->is_public,$this->created_at)"; 18 | Executor::doit($sql); 19 | } 20 | 21 | public static function delById($id){ 22 | $sql = "delete from ".self::$tablename." where id=$id"; 23 | Executor::doit($sql); 24 | } 25 | public function del(){ 26 | $sql = "delete from ".self::$tablename." where id=$this->id"; 27 | Executor::doit($sql); 28 | } 29 | 30 | // partiendo de que ya tenemos creado un objecto PostData previamente utilizamos el contexto 31 | public function update(){ 32 | $sql = "update ".self::$tablename." set title=\"$this->title\",content=\"$this->content\",image=\"$this->image\",is_public=\"$this->is_public\" where id=$this->id"; 33 | Executor::doit($sql); 34 | } 35 | 36 | public static function getById($id){ 37 | $sql = "select * from ".self::$tablename." where id=$id"; 38 | $query = Executor::doit($sql); 39 | return Model::one($query[0],new PostData()); 40 | } 41 | 42 | 43 | 44 | public static function getAll(){ 45 | $sql = "select * from ".self::$tablename." order by created_at desc"; 46 | $query = Executor::doit($sql); 47 | return Model::many($query[0],new PostData()); 48 | } 49 | 50 | 51 | public static function getLike($q){ 52 | $sql = "select * from ".self::$tablename." where title like '%$q%' or content like '%$q%'"; 53 | $query = Executor::doit($sql); 54 | return Model::many($query[0],new PostData()); 55 | } 56 | 57 | 58 | } 59 | 60 | ?> -------------------------------------------------------------------------------- /core/modules/index/model/StatusData.php: -------------------------------------------------------------------------------- 1 | name = ""; 8 | $this->lastname = ""; 9 | $this->email = ""; 10 | $this->password = ""; 11 | $this->created_at = "NOW()"; 12 | } 13 | 14 | public function add(){ 15 | $sql = "insert into status (name) "; 16 | $sql .= "value (\"$this->name\")"; 17 | return Executor::doit($sql); 18 | } 19 | 20 | public static function delById($id){ 21 | $sql = "delete from ".self::$tablename." where id=$id"; 22 | Executor::doit($sql); 23 | } 24 | public function del(){ 25 | $sql = "delete from ".self::$tablename." where id=$this->id"; 26 | Executor::doit($sql); 27 | } 28 | 29 | // partiendo de que ya tenemos creado un objecto StatusData previamente utilizamos el contexto 30 | public function update(){ 31 | $sql = "update ".self::$tablename." set name=\"$this->name\" where id=$this->id"; 32 | Executor::doit($sql); 33 | } 34 | 35 | public static function getById($id){ 36 | $sql = "select * from ".self::$tablename." where id=$id"; 37 | $query = Executor::doit($sql); 38 | return Model::one($query[0],new StatusData()); 39 | } 40 | 41 | public static function getAll(){ 42 | $sql = "select * from ".self::$tablename; 43 | $query = Executor::doit($sql); 44 | return Model::many($query[0],new StatusData()); 45 | 46 | } 47 | 48 | public static function getLike($q){ 49 | $sql = "select * from ".self::$tablename." where name like '%$q%'"; 50 | $query = Executor::doit($sql); 51 | return Model::many($query[0],new StatusData()); 52 | } 53 | 54 | 55 | } 56 | 57 | ?> -------------------------------------------------------------------------------- /core/modules/index/model/blog.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/core/modules/index/model/blog.sql -------------------------------------------------------------------------------- /core/modules/index/superboot.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/modules/index/view/adduser/widget-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $is_admin=0; 5 | if(isset($_POST["is_admin"])){$is_admin=1;} 6 | $user = new UserData(); 7 | $user->name = $_POST["name"]; 8 | $user->lastname = $_POST["lastname"]; 9 | $user->username = $_POST["username"]; 10 | $user->email = $_POST["email"]; 11 | $user->is_admin=$is_admin; 12 | $user->password = sha1(md5($_POST["password"])); 13 | $user->add(); 14 | 15 | print ""; 16 | 17 | 18 | } 19 | 20 | 21 | ?> -------------------------------------------------------------------------------- /core/modules/index/view/authors/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | Nuevo Autor 5 |
6 |

Autores

7 |
8 | 0){ 12 | // si hay usuarios 13 | ?> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 31 |
Nombre
name." ".$user->lastname; ?>Editar Eliminar
32 | No hay Autores

"; 35 | } 36 | 37 | 38 | ?> 39 | 40 | 41 |
42 |
-------------------------------------------------------------------------------- /core/modules/index/view/books/widget-default.php: -------------------------------------------------------------------------------- 1 | 3 |
4 |
5 | Nuevo Libro 6 | 7 |

Libros

8 | 9 | 10 | 0){ 13 | // si hay usuarios 14 | ?> 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | getCategory(); 28 | ?> 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 41 | 42 | 48 |
ISBNTituloSubtituloEjemplaresDisponiblesCategoria
isbn; ?>title; ?>subtitle; ?>id)->c; ?>id)->c; ?>name; } ?> 37 | Ejemplares 38 | Editar 39 | Eliminar 40 |
49 | No hay Libros

"; 53 | } 54 | 55 | 56 | ?> 57 | 58 | 59 |
60 |
-------------------------------------------------------------------------------- /core/modules/index/view/categories/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 6 |

Categorias

7 |
8 | 0){ 12 | // si hay usuarios 13 | ?> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 31 |
Nombre
name; ?>Editar Eliminar
32 | No hay Categorias

"; 35 | } 36 | 37 | 38 | ?> 39 | 40 | 41 |
42 |
43 | -------------------------------------------------------------------------------- /core/modules/index/view/changelog/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Sistema de Citas Medicas

4 |

Bienvenido a BookMedik un Sistema de Citas Medicas util para consultorios medicos y/o medicos independientes.

5 |

v2.5

6 | 9 | 10 | 11 |

v2.0

12 | 18 |

v1.5

19 | 24 |

v1.0

25 | 34 |

Evilnapsis © 2015

35 |
36 |
37 | -------------------------------------------------------------------------------- /core/modules/index/view/changepasswd/widget-default.php: -------------------------------------------------------------------------------- 1 | password){ 8 | $user->password = sha1(md5($_POST["newpassword"])); 9 | $user->update(); 10 | setcookie("password_updated","true"); 11 | print ""; 12 | }else{ 13 | print ""; 14 | } 15 | 16 | }else { 17 | print ""; 18 | } 19 | 20 | 21 | ?> -------------------------------------------------------------------------------- /core/modules/index/view/clients/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | Nuevo Cliente 5 | 14 |
15 |

Clientes

16 |
17 | 0){ 21 | // si hay usuarios 22 | ?> 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 37 | 38 | 39 | 40 | 45 | 46 | 50 |
Nombre completoDireccionEmailTelefono
name." ".$user->lastname; ?>address; ?>email; ?>phone; ?> 41 | Historial 42 | Editar 43 | Eliminar 44 |
51 | No hay Clientes

"; 56 | } 57 | 58 | 59 | ?> 60 | 61 | 62 |
63 |
-------------------------------------------------------------------------------- /core/modules/index/view/configuration/widget-default.php: -------------------------------------------------------------------------------- 1 |



2 |
3 | 4 |
5 |
6 |

Cambiar Contraseña

7 |
8 |
9 | 10 |
11 | 12 |
13 |
14 | 15 |
16 | 17 |
18 | 19 |
20 |
21 | 22 |
23 | 24 |
25 | 26 |
27 |
28 | 29 | 30 | 31 |
32 |
33 | 34 |
35 |
36 |
37 | 38 | 55 |
56 |
57 |








-------------------------------------------------------------------------------- /core/modules/index/view/editauthor/widget-default.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Editar Autor

5 |
6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 |
14 |
15 | 16 |
17 | 18 |
19 | 20 |
21 |
22 | 23 |
24 |
25 | 26 | 27 |
28 |
29 |
30 |
31 |
-------------------------------------------------------------------------------- /core/modules/index/view/editcategory/widget-default.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Editar Categoria

5 |
6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 | 19 | 20 |
21 |
22 |
23 |
24 |
-------------------------------------------------------------------------------- /core/modules/index/view/editeditorial/widget-default.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Editar Editorial

5 |
6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 | 19 | 20 |
21 |
22 |
23 |
24 |
-------------------------------------------------------------------------------- /core/modules/index/view/edititem/widget-default.php: -------------------------------------------------------------------------------- 1 | book_id); ?> 4 |
5 |
6 |

title; ?> Editar Ejemplar

7 |
8 |
9 | 10 | 11 |
12 | 13 |
14 | 15 |
16 |
17 |
18 | 19 |
20 | 25 |
26 |
27 | 28 | 29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 |
37 |
38 |
39 |
40 |
-------------------------------------------------------------------------------- /core/modules/index/view/editorials/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 6 |

Editoriales

7 |
8 | 0){ 12 | // si hay usuarios 13 | ?> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 30 |
Nombre
name; ?>Editar Eliminar
31 | No hay Editoriales

"; 34 | } 35 | 36 | 37 | ?> 38 | 39 | 40 |
41 |
-------------------------------------------------------------------------------- /core/modules/index/view/home/widget-default.php: -------------------------------------------------------------------------------- 1 | item_id); 7 | $book = $item->getBook(); 8 | 9 | $thejson[] = array("title"=>$item->code." - ".$book->title,"url"=>"","start"=>$event->start_at,"end"=>$event->finish_at); 10 | 11 | } 12 | // print_r(json_encode($thejson)); 13 | 14 | ?> 15 | 35 | 36 | 37 |
38 |
39 |

Calendario

40 |
41 | 42 |
43 |
44 | -------------------------------------------------------------------------------- /core/modules/index/view/index/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

LegoBox

5 |
6 |
7 |
8 | -------------------------------------------------------------------------------- /core/modules/index/view/items/widget-default.php: -------------------------------------------------------------------------------- 1 | 4 |
5 |
6 | 9 |

title;?> Ejemplares

10 |
11 | id); 14 | if(count($users)>0){ 15 | // si hay usuarios 16 | ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 33 | 34 | 38 |
CodigoEstado
code; ?>getStatus()->name; ?> 31 | Historial 32 | Editar Eliminar
39 | No hay Ejemlpares

"; 42 | } 43 | 44 | 45 | ?> 46 | 47 | 48 |
49 |
50 | -------------------------------------------------------------------------------- /core/modules/index/view/login/widget-default.php: -------------------------------------------------------------------------------- 1 | window.location='index.php?view=home';"; 5 | } 6 | 7 | ?> 8 |




9 |
10 |
11 | 12 |
13 |

Se ha cambiado la contraseña exitosamente !!

14 |

Pruebe iniciar sesion con su nueva contraseña.

15 | 16 |
17 | 19 |
20 |
21 |

Iniciar Sesion

22 |
23 |
24 |
25 |
26 |
27 | 28 |
29 |
30 | 31 |
32 | 33 |
34 |
35 |
36 |
37 |
38 |
39 |











-------------------------------------------------------------------------------- /core/modules/index/view/newauthor/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Nuevo Autor

4 |
5 |
6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 |
14 |
15 | 16 |
17 | 18 |
19 |
20 |
21 |
22 | 23 |
24 |
25 |
26 |
27 |
-------------------------------------------------------------------------------- /core/modules/index/view/newcategory/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Nueva Categoria

4 |
5 |
6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 |
14 | 15 |
16 |
17 | 18 |
19 |
20 |
21 |
22 |
-------------------------------------------------------------------------------- /core/modules/index/view/newclient/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Nuevo Cliente

4 |
5 |
6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 |
14 |
15 | 16 |
17 | 18 |
19 |
20 | 21 | 22 | 23 |
24 | 25 |
26 | 27 |
28 |
29 |
30 | 31 |
32 | 33 |
34 |
35 | 36 |
37 | 38 |
39 | 40 |
41 |
42 |

* Campos obligatorios

43 | 44 |
45 |
46 | 47 |
48 |
49 |
50 |
51 |
-------------------------------------------------------------------------------- /core/modules/index/view/neweditorial/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Nueva Editorial

4 |
5 |
6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 |
14 | 15 |
16 |
17 | 18 |
19 |
20 |
21 |
22 |
-------------------------------------------------------------------------------- /core/modules/index/view/newitem/widget-default.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

title; ?> Nuevo Ejemplar

5 |
6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 |
14 |
15 |
16 | 17 |
18 | 23 |
24 |
25 | 26 | 27 | 28 | 29 | 30 |
31 |
32 | 33 | 34 |
35 |
36 |
37 |
38 |
-------------------------------------------------------------------------------- /core/modules/index/view/processlogin/widget-default.php: -------------------------------------------------------------------------------- 1 | connect(); 12 | $sql = "select * from user where (email= \"".$user."\" or username= \"".$user."\") and password= \"".$pass."\" and is_active=1"; 13 | //print $sql; 14 | $query = $con->query($sql); 15 | $found = false; 16 | $userid = null; 17 | while($r = $query->fetch_array()){ 18 | $found = true ; 19 | $userid = $r['id']; 20 | } 21 | 22 | if($found==true) { 23 | // session_start(); 24 | // print $userid; 25 | $_SESSION['user_id']=$userid ; 26 | // setcookie('userid',$userid); 27 | // print $_SESSION['userid']; 28 | print "Cargando ... $user"; 29 | print ""; 30 | }else { 31 | print ""; 32 | } 33 | 34 | }else{ 35 | print ""; 36 | 37 | } 38 | ?> -------------------------------------------------------------------------------- /core/modules/index/view/updateuser/widget-default.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | $is_admin=0; 5 | if(isset($_POST["is_admin"])){$is_admin=1;} 6 | $is_active=0; 7 | if(isset($_POST["is_active"])){$is_active=1;} 8 | $user = UserData::getById($_POST["user_id"]); 9 | $user->name = $_POST["name"]; 10 | $user->lastname = $_POST["lastname"]; 11 | $user->username = $_POST["username"]; 12 | $user->email = $_POST["email"]; 13 | $user->is_admin=$is_admin; 14 | $user->is_active=$is_active; 15 | $user->update(); 16 | 17 | if($_POST["password"]!=""){ 18 | $user->password = sha1(md5($_POST["password"])); 19 | $user->update_passwd(); 20 | print ""; 21 | 22 | } 23 | 24 | print ""; 25 | 26 | 27 | } 28 | 29 | 30 | ?> -------------------------------------------------------------------------------- /core/modules/index/view/users/widget-default.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | Nuevo Usuario 4 |

Lista de Usuarios

5 |
6 | name = "Agustin"; 11 | $u->lastname = "Ramos"; 12 | $u->email = "evilnapsis@gmail.com"; 13 | $u->password = sha1(md5("l00lapal00za")); 14 | $u->add(); 15 | 16 | 17 | $f = $u->createForm(); 18 | print_r($f); 19 | echo $f->label("name")." ".$f->render("name"); 20 | */ 21 | ?> 22 | 0){ 26 | // si hay usuarios 27 | ?> 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | 47 | 52 | 53 | 54 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | loadModule("index"); 20 | 21 | 22 | ?> -------------------------------------------------------------------------------- /js/tablesorter/tables.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $("table").tablesorter({debug: true}); 3 | }); 4 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | window.location='index.php';"; 15 | ?> -------------------------------------------------------------------------------- /res/bootstrap3/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/bootstrap3/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /res/bootstrap3/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/bootstrap3/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /res/bootstrap3/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/bootstrap3/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /res/bootstrap3/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/bootstrap3/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /res/css/micss.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/css/micss.css -------------------------------------------------------------------------------- /res/js/funciones.js: -------------------------------------------------------------------------------- 1 | // $(function(){ 2 | // alert("alerta de prueba!"); 3 | // }); -------------------------------------------------------------------------------- /res/select2/select2-spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/select2/select2-spinner.gif -------------------------------------------------------------------------------- /res/select2/select2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/select2/select2.png -------------------------------------------------------------------------------- /res/select2/select2_locale_es.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Select2 Spanish translation 3 | */ 4 | (function ($) { 5 | "use strict"; 6 | 7 | $.fn.select2.locales['es'] = { 8 | formatMatches: function (matches) { if (matches === 1) { return "Un resultado disponible, presione enter para seleccionarlo."; } return matches + " resultados disponibles, use las teclas de dirección para navegar."; }, 9 | formatNoMatches: function () { return "No se encontraron resultados"; }, 10 | formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "ácter" : "acteres"); }, 11 | formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "ácter" : "acteres"); }, 12 | formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, 13 | formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; }, 14 | formatSearching: function () { return "Buscando…"; }, 15 | formatAjaxError: function() { return "La carga falló"; } 16 | }; 17 | 18 | $.extend($.fn.select2.defaults, $.fn.select2.locales['es']); 19 | })(jQuery); 20 | -------------------------------------------------------------------------------- /res/select2/select2x2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilnapsis/library-php/0c93016ce8b7bae48f235946f01c92b403be316d/res/select2/select2x2.png --------------------------------------------------------------------------------
Nombre completoNombre de usuarioActivoAdmin
name." ".$user->lastname; ?>username; ?> 43 | is_active):?> 44 | 45 | 46 | 48 | is_admin):?> 49 | 50 | 51 | Editar