Última versão estável do projeto

Esse commit está contido em:
Paulo Henrique
2014-11-19 20:10:00 -03:00
commit 19956e040f
860 arquivos alterados com 104482 adições e 0 exclusões
+2
Ver Arquivo
@@ -0,0 +1,2 @@
Manifest-Version: 1.0
@@ -0,0 +1,208 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="searchCourseForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="courseName" type="java.lang.String" />
</form-bean>
<form-bean name="advancedSearchCourseForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="name" type="java.lang.String" />
<form-property name="professorName" type="java.lang.String" />
<form-property name="initialDate" type="java.lang.String" />
<form-property name="finalDate" type="java.lang.String" />
</form-bean>
<form-bean name="viewCourseForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="id" type="java.lang.Integer" />
</form-bean>
<form-bean name="formRegisterCourseStepOne"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="name" type="java.lang.String" />
<form-property name="objectives" type="java.lang.String" />
<form-property name="content" type="java.lang.String" />
<form-property name="maxAmountStudents"
type="java.lang.String" />
<form-property name="initialRegistrationDay"
type="java.lang.String" />
<form-property name="initialRegistrationMonth"
type="java.lang.String" />
<form-property name="initialRegistrationYear"
type="java.lang.String" />
<form-property name="finalRegistrationDay"
type="java.lang.String" />
<form-property name="finalRegistrationMonth"
type="java.lang.String" />
<form-property name="finalRegistrationYear"
type="java.lang.String" />
<form-property name="initialCourseDay"
type="java.lang.String" />
<form-property name="initialCourseMonth"
type="java.lang.String" />
<form-property name="initialCourseYear"
type="java.lang.String" />
<form-property name="finalCourseDay"
type="java.lang.String" />
<form-property name="finalCourseMonth"
type="java.lang.String" />
<form-property name="finalCourseYear"
type="java.lang.String" />
<form-property name="courseId" type="java.lang.Integer" />
<form-property name="keywords" type="java.lang.String" />
</form-bean>
<form-bean name="formRegisterCourseStepTwo"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="keywords" type="java.lang.String" />
</form-bean>
<form-bean name="changeTeacher" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="teacher" type="java.lang.String"></form-property>
</form-bean>
<form-bean name="formEditCourse"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="id" type="java.lang.Integer" />
<form-property name="name" type="java.lang.String" />
<form-property name="objectives" type="java.lang.String" />
<form-property name="content" type="java.lang.String" />
<form-property name="maxAmountStudents"
type="java.lang.String" />
<form-property name="initialRegistrationDay"
type="java.lang.String" />
<form-property name="initialRegistrationMonth"
type="java.lang.String" />
<form-property name="initialRegistrationYear"
type="java.lang.String" />
<form-property name="finalRegistrationDay"
type="java.lang.String" />
<form-property name="finalRegistrationMonth"
type="java.lang.String" />
<form-property name="finalRegistrationYear"
type="java.lang.String" />
<form-property name="initialCourseDay"
type="java.lang.String" />
<form-property name="initialCourseMonth"
type="java.lang.String" />
<form-property name="initialCourseYear"
type="java.lang.String" />
<form-property name="finalCourseDay"
type="java.lang.String" />
<form-property name="finalCourseMonth"
type="java.lang.String" />
<form-property name="finalCourseYear"
type="java.lang.String" />
<form-property name="courseId" type="java.lang.Integer" />
<form-property name="keywords" type="java.lang.String" />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="fInsertCourseStepOne" path="/fInsertCourseStepOne.do" />
<forward name="fReplicateCourseStepOne" path="/fReplicateCourseStepOne.do" />
<forward name="fInsertCourseStepTwo" path="/fInsertCourseStepTwo.do" />
<forward name="fShowViewChangeTeacher" path="/jsp/course/viewChangeTeacher.jsp" />
<forward name="fShowViewEditCourse" path="/jsp/course/editCourse.jsp" />
<forward name="fViewDeleteConfirmation" path="/fViewDeleteConfirmation.do" />
<forward name="fProject" path="/fProject.do" />
<forward name="fCases" path="/fCases.do" />
<forward name="fCCTE" path="/fCCTE.do" />
<forward name="fReachUs" path="/fReachUs.do" />
<forward name="fLicense" path="/fLicense.do" />
<forward name="fRemindPassword" path="/fRemindPassword.do" />
<forward name="fSearchCourse" path="/fSearchCourse.do" />
<forward name="fShowViewCourse" path="/jsp/course/viewCourse.jsp" />
<forward name="fShowViewCourseNotLogged" path="/jsp/course/viewCourseNotLogged.jsp" />
<forward name="fShowViewCourseParticipants" path="/jsp/course/viewCourseParticipants.jsp" />
<forward name="signOut" path="/signOut.do" />
<forward name="fShowViewShowModules" path="/jsp/course/content_management/showModules.jsp"/>
<forward name="fShowViewCourseEvaluations" path="/jsp/course/viewCourseEvaluations.jsp"/>
<forward name="fShowViewSendMail" path="/jsp/course/viewSendMail.jsp"/>
</global-forwards>
<action-mappings>
<action path="/courseMenu"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions"
parameter="method" scope="request" />
<action path="/course"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions"
parameter="method" scope="request" />
<action path="/advancedCourse" name="advancedSearchCourseForm"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.manager.ManagerUserActions"
parameter="method" scope="request" />
<action input="/system.do?method=showViewMenu" name="searchCourseForm"
parameter="searchCourse" path="/searchCourse" scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions"/>
<action parameter="/jsp/course/viewCourses.jsp"
path="/fSearchCourse"
type="org.apache.struts.actions.ForwardAction" />
<action name="formChangeTeacher"
input="/course.do?method=changeTeacher"
path="/changeTeacher" parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions" />
<action name="formRegisterCourseStepOne"
input="/jsp/course/insertCourseStepOne.jsp"
path="/insertCourseStepOne" parameter="insertCourseStepOne"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions" />
<action name="formRegisterCourseStepOne"
input="/jsp/course/replicateCourseStepOne.jsp"
path="/replicateCourseStepOne" parameter="replicateCourseStepOne"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions" />
<action name="viewCourseForm"
input="/jsp/course/viewCourse.jsp"
path="/viewCourse" parameter="viewCourse"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions" />
<action parameter="/jsp/course/insertCourseStepOne.jsp"
path="/fInsertCourseStepOne"
type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/course/replicateCourseStepOne.jsp"
path="/fReplicateCourseStepOne"
type="org.apache.struts.actions.ForwardAction" />
<action name="formRegisterCourseStepTwo"
input="/jsp/course/insertCourseStepTwo.jsp"
path="/insertCourseStepTwo" parameter="insertCourseStepTwo"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions" />
<action parameter="/jsp/course/insertCourseStepTwo.jsp"
path="/fInsertCourseStepTwo"
type="org.apache.struts.actions.ForwardAction" />
<action name="formEditCourse" input="/course.do?method=showViewEditCourse"
path="/editCourse" parameter="editCourse" scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.CourseActions">
</action>
<action path="/fViewDeleteConfirmation"
parameter="/jsp/course/viewCourseDeleteConfirmation.jsp"
scope="request"
type="org.apache.struts.actions.ForwardAction" />
</action-mappings>
<controller nocache="true" />
<message-resources null="false"
parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources" />
</struts-config>
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="logonFormMobile" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="loginMobile" type="java.lang.String" />
<form-property name="passwordMobile" type="java.lang.String" />
</form-bean>
<form-bean name="insertCellNumber" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="cellNumber" type="java.lang.String" />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="fShowViewLoggedMobile" path="/mobile2/viewLogged.jsp" />
<forward name="fShowViewWelcomeMobile" path="/mobile2/index.jsp" />
<forward name="fShowViewManagementMobile" path="/mobile2/management/viewManagementHome.jsp" />
<forward name="fShowManagementCellPhone" path="/mobile2/management/viewCellPhoneNumberManagement.jsp" />
<forward name="fShowManagementCourse" path="/mobile2/management/viewCourseManagement.jsp" />
<forward name="fShowManagementCourseColor" path="/mobile2/management/viewCourseColorManagement.jsp" />
<forward name="fShowHomeCourse" path="/mobile2/course/viewCourse.jsp" />
<forward name="fShowCourseInformation" path="/mobile2/course/viewCourseInformation.jsp" />
<forward name="fShowHomeModules" path="/mobile2/course/viewCourseModules.jsp"></forward>
<forward name="fShowHomeModule" path="/mobile2/course/viewModule.jsp"></forward>
<forward name="fShowAllCourses" path="/mobile2/course/viewAllCourses.jsp"></forward>
<forward name="fShowCourseActivities" path="/mobile2/activities/viewCourseActivities.jsp"></forward>
<forward name="fShowModuleActivities" path="/mobile2/activities/viewModuleActivities.jsp"></forward>
<forward name="fShowViewPoll" path="/mobile2/activities/viewPoll.jsp"></forward>
<forward name="fShowViewLearningObject" path="/mobile2/activities/viewLearningObject.jsp"></forward>
<forward name="fShowViewHomework" path="/mobile2/activities/viewHomework.jsp"></forward>
<forward name="fShowCourseMaterials" path="/mobile2/materials/viewCourseMaterials.jsp"></forward>
<forward name="fShowModuleMaterials" path="/mobile2/materials/viewModuleMaterials.jsp"></forward>
<!--
<forward name="fShowViewWelcomeMobile" path="/jsp/welcome.jsp" />
<forward name="fShowViewPageNotFoundMobile" path="/jsp/error/viewPageNotFound.jsp" />
<forward name="fShowViewExceptionMobile" path="/jsp/error/viewException.jsp" />
-->
</global-forwards>
<action-mappings>
<action path="/mobile"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.mobile.MobileActions">
</action>
<action path="/mobile"
name="logonFormMobile"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.mobile.MobileActions">
</action>
</action-mappings>
<controller nocache="true" />
<message-resources
parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources"
null="false" />
</struts-config>
@@ -0,0 +1,547 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="courceModule"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="order" type="java.lang.String" />
<form-property name="idModuleBD" type="java.lang.String" />
<form-property name="name" type="java.lang.String" />
<form-property name="description" type="java.lang.String" />
<form-property name="visible" type="java.lang.String" />
</form-bean>
<form-bean name="gameActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="nameGame" type="java.lang.String" />
<form-property name="maxUsers" type="java.lang.String" />
<form-property name="minUsers" type="java.lang.String" />
<form-property name="descriptionGame" type="java.lang.String" />
<form-property name="urlGame" type="java.lang.String" />
<form-property name="idGame" type="java.lang.String" />
<form-property name="image" type="org.apache.struts.upload.FormFile"/>
</form-bean>
<form-bean name="forumActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="topicForum" type="java.lang.String" />
<form-property name="descriptionForum"
type="java.lang.String" />
</form-bean>
<form-bean name="evaluationActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="descriptionEvaluation" type="java.lang.String" />
<form-property name="startEvaluation" type="java.lang.String" />
<form-property name="finishEvaluation" type="java.lang.String" />
<form-property name="afterdeadlineachievedEvaluation" type="java.lang.Boolean" initial="false"/>
</form-bean>
<form-bean name="messageForum" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="answerBody" type="java.lang.String" />
</form-bean>
<form-bean name="materialActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="nameMaterial" type="java.lang.String" />
<form-property name="archive" type="org.apache.struts.upload.FormFile" />
</form-bean>
<form-bean name="materialRequestActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="nameMaterial" type="java.lang.String" />
<form-property name="dayMaterial" type="java.lang.String" />
<form-property name="monthMaterial" type="java.lang.String" />
<form-property name="yearMaterial" type="java.lang.String" />
<form-property name="allowMaterial" type="java.lang.Boolean" />
<form-property name="descriptionMaterial" type="java.lang.String" />
<form-property name="deliveryDate" type="java.util.Date" />
</form-bean>
<form-bean name="pollActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="namePoll" type="java.lang.String" />
<form-property name="questionPoll" type="java.lang.String" />
<form-property name="optionsPoll" type="java.lang.String" />
<form-property name="dayPoll" type="java.lang.String" />
<form-property name="monthPoll" type="java.lang.String" />
<form-property name="yearPoll" type="java.lang.String" />
</form-bean>
<form-bean name="alternativePoll"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="alternative" type="java.lang.String" />
</form-bean>
<form-bean name="videoIrizForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="videoIrizName" type="java.lang.String" />
<form-property name="choice" type="java.lang.String" initial="url" />
<form-property name="url" type="java.lang.String" />
<form-property name="videoDescription" type="java.lang.String" />
</form-bean>
<form-bean name="learningObjectActivity"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="nameLearningObject" type="java.lang.String" />
<form-property name="urlLearningObject" type="java.lang.String" />
<form-property name="descriptionLearningObject" type="java.lang.String" />
</form-bean>
<form-bean name="questionForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="questionDescription" type="java.lang.String" />
<form-property name="alternativesDescription" type="java.lang.String" />
<form-property name="alternativesDescription2" type="java.lang.String" />
<form-property name="alternativesNumber" type="java.lang.Integer" />
</form-bean>
<form-bean name="externalLink"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="idExternalLink" type="java.lang.String" />
<form-property name="nameExternalLink" type="java.lang.String" />
<form-property name="descriptionExternalLink" type="java.lang.String" />
<form-property name="urlExternalLink" type="java.lang.String" />
</form-bean>
</form-beans>
<global-forwards>
<!-- Forward Evaluation -->
<forward name="fShowViewEditEvaluation" path="/jsp/course/content_management/activities/evaluation/editEvaluationActivities.jsp" />
<forward name="fShowViewNewEvaluation" path="/jsp/course/content_management/activities/evaluation/evaluationActivities.jsp" />
<forward name="fShowViewListEvaluation" path="/jsp/course/content_management/activities/evaluation/listEvaluation.jsp" />
<forward name="fShowViewListStutendsFromEvaluation" path="/jsp/course/content_management/activities/evaluation/listStudentsFromEvaluation.jsp" />
<forward name="fShowViewEvaluationActivity" path="/jsp/course/content_management/activities/evaluation/viewEvaluationActivities.jsp" />
<forward name="fShowViewRealizeEvaluationActivity" path="/jsp/course/content_management/activities/evaluation/realizeEvaluation.jsp" />
<!-- Forward Evaluation Questions -->
<forward name="fShowViewNewMultipleChoiceQuestion" path="/jsp/course/content_management/activities/evaluation/questions/multipleChoiceQuestion.jsp" />
<forward name="fShowViewNewTrueFalseQuestion" path="/jsp/course/content_management/activities/evaluation/questions/trueFalseQuestion.jsp" />
<forward name="fShowViewNewCollumAssociationQuestion" path="/jsp/course/content_management/activities/evaluation/questions/collumnAssociationQuestion.jsp" />
<forward name="fShowViewNewGapFillingQuestion" path="/jsp/course/content_management/activities/evaluation/questions/gapFillingQuestion.jsp" />
<forward name="fShowViewNewDiscursiveQuestion" path="/jsp/course/content_management/activities/evaluation/questions/discursiveQuestion.jsp" />
<forward name="fShowViewEditMultipleChoiceQuestion" path="/jsp/course/content_management/activities/evaluation/questions/editMultipleChoiceQuestion.jsp" />
<forward name="fShowViewEditTrueFalseQuestion" path="/jsp/course/content_management/activities/evaluation/questions/editTrueFalseQuestion.jsp" />
<forward name="fShowViewEditCollumAssociationQuestion" path="/jsp/course/content_management/activities/evaluation/questions/editCollumnAssociationQuestion.jsp" />
<forward name="fShowViewEditGapFillingQuestion" path="/jsp/course/content_management/activities/evaluation/questions/editGapFillingQuestion.jsp" />
<forward name="fShowViewEditDiscursiveQuestion" path="/jsp/course/content_management/activities/evaluation/questions/editDiscursiveQuestion.jsp" />
<forward name="fShowViewDeleteConfirmationQuestion" path="/jsp/course/content_management/activities/evaluation/questions/deleteConfirmationQuestion.jsp" />
<!-- Forward Poll -->
<forward name="fShowViewNewPoll" path="/jsp/course/content_management/activities/poll/pollActivities.jsp" />
<!-- Forward Forum -->
<forward name="fShowViewForumActivity" path="/jsp/course/content_management/activities/forum/viewForumActivities.jsp" />
<forward name="fShowViewNewForumActivity" path="/jsp/course/content_management/activities/forum/forumActivities.jsp" />
<forward name="fShowViewEditForumActivity" path="/jsp/course/content_management/activities/forum/editForumActivities.jsp" />
<forward name="fShowViewNewAnswerForumActivity" path="/jsp/course/content_management/activities/forum/answerForumActivity.jsp" />
<forward name="fShowViewListMessagesForumActivity" path="/jsp/course/content_management/activities/forum/listMessageForumActivity.jsp" />
<!-- Forward Material Delivery -->
<forward name="fShowViewNewMaterialActivity" path="/jsp/course/content_management/activities/material/delivery/materialActivity.jsp" />
<forward name="fShowViewEditMaterialActivity" path="/jsp/course/content_management/activities/material/delivery/editMaterialActivity.jsp" />
<forward name="fShowViewUploadMaterialActivity" path="/jsp/course/content_management/activities/material/delivery/uploadMaterialActivity.jsp" />
<forward name="fShowViewEditUploadMaterialActivity" path="/jsp/course/content_management/activities/material/delivery/editUploadMaterialActivity.jsp" />
<forward name="fAddMaterialName" path="/jsp/course/content_management/activities/material/delivery/addMaterialName.jsp" />
<!-- Forward Material Request -->
<forward name="fShowViewNewMaterialRequestActivity" path="/jsp/course/content_management/activities/material/request/materialRequestActivities.jsp" />
<forward name="fEditMaterialRequest" path="/jsp/course/content_management/activities/material/request/editMaterialRequestActivities.jsp" />
<forward name="fViewMaterialRequestFileUpload" path="/jsp/course/content_management/activities/material/request/materialDeliveryUpload.jsp" />
<forward name="fShowMaterialRequest" path="/jsp/course/content_management/activities/material/request/viewMaterialRequestActivities.jsp" />
<forward name="fShowMaterialRequestTeacher" path="/jsp/course/content_management/activities/material/request/viewMaterialRequestTeacherActivities.jsp" />
<!-- Forward Video -->
<forward name="fShowViewYoutubeChooseVideoOrigin" path="/jsp/course/content_management/activities/video/youtubeChooseVideoOrigin.jsp" />
<forward name="fShowViewEditVideoActivity" path="/jsp/course/content_management/activities/video/youtubeEditVideo.jsp" />
<!-- Forward Learning Object -->
<forward name="fShowViewNewLearningObject" path="/jsp/course/content_management/activities/learning_object/learningObjectActivities.jsp" />
<forward name="fShowViewEditLearningObject" path="/jsp/course/content_management/activities/learning_object/editLearningObjectActivities.jsp" />
<forward name="fLearningObjectStatus" path="/jsp/course/content_management/activities/learning_object/learningObjectShowStatus.jsp" />
<!-- Forward External Link -->
<forward name="fShowViewNewExternalLink" path="/jsp/course/content_management/activities/material/external_link/addExternalLink.jsp" />
<forward name="fShowViewEditExternalLink" path="/jsp/course/content_management/activities/material/external_link/editExternalLink.jsp" />
<forward name="fExternalLinkStatus" path="/jsp/course/content_management/activities/material/external_link/externalLinkActivity.jsp" />
<!-- Forward Game -->
<forward name="fShowViewNewGameActivity" path="/jsp/course/content_management/activities/game/gameActivities.jsp" />
<forward name="fCancelShowListActivity"
path="/jsp/course/content_management/activities/cancelShowListActivity.jsp" />
<forward name="fVideoStatus"
path="/jsp/course/content_management/activities/video/youtubeShowVideoStatus.jsp" />
<forward name="fVideoUploadToYoutube"
path="/jsp/course/content_management/activities/video/youtubeUpload.jsp" />
<forward name="fVideoURL"
path="/jsp/course/content_management/activities/video/youtubeNewURL.jsp" />
<forward name="fChooseVideoOrigin"
path="/jsp/course/content_management/activities/video/youtubeChooseVideoOrigin.jsp" />
<forward name="fShowViewScoreGames"
path="/fShowViewScoreGames.do" />
<forward name="fshowPlayerGame"
path="/fshowPlayerGame.do" />
<forward name="fShowGame"
path="/jsp/course/content_management/activities/game/viewGameActivities.jsp" />
<forward name="fCourseContent"
path="/fCourseContent.do" />
<forward name="fShowIriz"
path="/jsp/course/content_management/activities/video/iriz.jsp" />
<forward name="fOpenLearningObject"
path="fOpenLearningObject.do"></forward>
<forward name="fShowViewEditModule"
path="/jsp/course/content_management/editModule.jsp" />
<forward name="fShowViewListModules"
path="/jsp/course/content_management/listModules.jsp"/>
<forward name="fShowViewModule"
path="/jsp/course/content_management/module.jsp"/>
<forward name="fShowViewClickNewModule"
path="/jsp/course/content_management/clickNewModule.jsp"/>
</global-forwards>
<action-mappings>
<!--
Action do controle dos Módulos
-->
<action path="/module"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.ModuleActions"
parameter="method" scope="request" />
<action path="/saveModule"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.ModuleActions"
name="courceModule"
input="/jsp/course/content_management/editModule.jsp"
parameter="method" scope="request" />
<action path="/fListActivities"
parameter="/jsp/course/content_management/activities/listActivities.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path = "/fListMaterials"
parameter="/jsp/course/content_management/activities/listMaterials.jsp"
type="org.apache.struts.actions.ForwardAction" />
<!--
Action das Atividades
-->
<!--
Action das Atividades Game
-->
<action path="/gameActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.game.GameActions"
parameter="method" scope="request" />
<action path="/gameActions"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.game.GameActions"
parameter="method" scope="session" />
<action path="/newGameActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.game.GameActions"
name="gameActivity"
input="/jsp/course/content_management/activities/game/gameActivities.jsp"
parameter="method" scope="request" />
<action path="/editGame"
parameter="/jsp/course/content_management/activities/game/editGameActivities.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path="/fShowViewScoreGames"
parameter="/jsp/course/content_management/activities/game/viewGameActivitiesScore.jsp"
input="/jsp/course/content_management/activities/game/viewGameActivities.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path="/fshowPlayerGame"
parameter="/jsp/course/content_management/activities/game/viewGamePlayer.jsp"
type="org.apache.struts.actions.ForwardAction" />
<!--
Action das Atividades Forum
-->
<action path="/forumActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.forum.ForumActions"
parameter="method" scope="request" />
<action path="/newForumActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.forum.ForumActions"
name="forumActivity"
input="/forumActivity.do?method=showViewNewForumActivity"
parameter="method" scope="request" />
<action path="/editForumActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.forum.ForumActions"
name="forumActivity"
input="/forumActivity.do?method=showViewEditForumActivity"
parameter="method" scope="request" />
<action path="/answerForumActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.forum.ForumActions"
name="messageForum"
input="/forumActivity.do?method=showViewNewAnswerForumActivity"
parameter="method" scope="request" />
<!--
Action das Atividades Evaluation
-->
<action path="/newEvaluation"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.EvaluationActions"
name="evaluationActivity"
input="/evaluation.do?method=showViewNewEvaluation"
parameter="method" scope="request" />
<action path="/editEvaluation"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.EvaluationActions"
name="evaluationActivity"
input="/evaluation.do?method=showViewEditEvaluation"
parameter="method" scope="request" />
<action path="/evaluation"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.EvaluationActions"
parameter="method" scope="request" />
<action path="/saveRealizedEvaluation"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.EvaluationRealizedActions"
parameter="method" scope="request" >
</action>
<!--
Action das Atividades Question
-->
<action path="/questionsEvaluationActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.QuestionActions"
parameter="method" scope="request" />
<action path="/fShowCreateQuestion"
parameter="/jsp/course/content_management/activities/evaluation/viewQuestions.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path="/newQuestion"
input="/jsp/course/content_management/activities/evaluation/viewQuestions.jsp"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.QuestionActions"
parameter="method" scope="request" />
<action path="/editQuestion"
input="/questionsEvaluationActivity.do?method=showViewEditQuestion"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.QuestionActions"
parameter="method" scope="request" />
<action path="/questionsOpen"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.evaluation.QuestionActions"
parameter="method" scope="request" />
<!--
Action das Atividade de Entrega de Material
-->
<action path="/materialActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.material.MaterialActions"
parameter="method" scope="request"/>
<action path="/newMaterialRequestActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.material.MaterialActions"
name="materialRequestActivity"
input="/materialActivity.do?method=showViewNewMaterialRequestActivity"
parameter="method" scope="request"/>
<action path="/editMaterialRequestActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.material.MaterialActions"
name="materialRequestActivity"
input="/materialActivity.do?method=showViewEditMaterialRequestActivity"
parameter="method" scope="request"/>
<!--
Action da Atividade Material
-->
<action path="/newMaterial"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.material.MaterialActions"
name="materialActivity"
parameter="method" scope="request" />
<action path="/editMaterial"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.material.MaterialActions"
name="materialActivity"
input="/materialActivity.do?method=showViewEditUploadMaterialActivity"
parameter="method" scope="request" />
<action path="/showMaterial"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.material.MaterialActions"
input="/jsp/course/content_management/activities/material/request/materialRequestActivities.jsp"
parameter="method" scope="request" />
<!--
Action das Atividades Enquete
-->
<action path="/poll"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.poll.PollActions"
parameter="method"
scope="request" />
<action path="/newPoll"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.poll.PollActions"
name="pollActivity"
input="/poll.do?method=showViewNewPoll"
parameter="method" scope="request" />
<action path="/savePoll"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.poll.PollActions"
name="pollActivity"
input="/jsp/course/content_management/activities/poll/editPollActivities.jsp"
parameter="method" scope="request" />
<action path="/editPoll"
parameter="/jsp/course/content_management/activities/poll/editPollActivities.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path="/fShowViewPoll"
parameter="/jsp/course/content_management/activities/poll/viewPollActivities.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path="/answerPoll"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.poll.PollActions"
name="alternativePoll"
input="/jsp/course/content_management/activities/poll/viewPollActivities.jsp"
parameter="method" scope="request" />
<action path="/viewResultsPoll"
parameter="/jsp/course/content_management/activities/poll/viewResultPoll.jsp"
type="org.apache.struts.actions.ForwardAction" />
<action path="/deletePoll"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.poll.PollActions"
input="/jsp/course/content_management/activities/poll/editPollActivities.jsp"
parameter="method" scope="request" />
<!-- Action das Atividades Video Em grupo -->
<action path="/videoActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.VideoActions"
parameter="method" scope="request" />
<action path="/youtubeAction"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.VideoActions"
name="videoIrizForm"
validate="true"
parameter="method" scope="request" />
<action path="/newVideoIrizUploadStep1"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.NewVideoIrizUploadStep1Action"
scope="request" />
<action path="/newVideoIrizUploadStep2"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.NewVideoIrizUploadStep2Action"
scope="request" />
<action path="/newVideoIrizFromURL"
input="/jsp/course/content_management/activities/video/youtubeNewURL.jsp"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.NewVideoIrizFromURLAction"
scope="request" parameter="method"/>
<action path="/showVideoIrizStatus"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.ShowVideoIrizStatusAction"
scope="request" />
<action path="/editVideoActivity"
input="/videoActivity.do?method=showViewEditVideoActivity"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.VideoActions"
scope="request" parameter="method" />
<action path="/openEditVideoIriz"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.OpenEditVideoIrizAction"
scope="request" />
<action path="/videoChat"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.video.VideoChatAction"
parameter="method" scope="request" />
<!--
Action das Atividades Learning Objects
-->
<action path="/learningObject"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.learning_object.LearningObjectActions"
parameter="method" scope="request"/>
<action path="/newLearningObject"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.learning_object.LearningObjectActions"
name="learningObjectActivity"
input="/learningObject.do?method=showViewNewLearningObject"
parameter="method" scope="request"/>
<action path="/editLearningObject"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.learning_object.LearningObjectActions"
name="learningObjectActivity"
input="/learningObject.do?method=showViewEditLearningObject"
parameter="method" scope="request"/>
<action path="/openLearningObject"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.learning_object.LearningObjectActions"
parameter="method" scope="request" />
<action path="/fOpenLearningObject"
type="org.apache.struts.actions.ForwardAction"
parameter="/jsp/course/content_management/activities/learning_object/learningObject.jsp" />
<action path="/endSessionLearningObject"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.learning_object.HistoryLearningObjectActions"
parameter="method" scope="request"/>
<!--
Action das Atividades EXTERNAL LINKS
-->
<action path="/externalLink"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.external_link.ExternalLinkActions"
parameter="method" scope="request"/>
<action path="/newExternalLink"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.external_link.ExternalLinkActions"
name="externalLink"
input="/externalLink.do?method=showViewNewExternalLink"
parameter="method" scope="request" />
<action path="/editExternalLink"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.external_link.ExternalLinkActions"
name="externalLink"
input="/externalLink.do?method=showViewEditExternalLink"
parameter="method" scope="request" />
<action path="/saveExternalLink"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.content_management.external_link.ExternalLinkActions"
parameter="method" scope="request" >
</action>
</action-mappings>
<controller nocache="true" />
<message-resources
parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources"
null="false" />
</struts-config>
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="fURLLoggedUser" path="/system.do?method=showViewMenu" />
<forward name="fShowViewManagerOpenIDs" path="/jsp/openid/managerOpenIDs.jsp" />
<forward name="fManagerOpenIDs" path="/openIDActions.do?method=showViewManagerOpenIDs" />
</global-forwards>
<action-mappings>
<action path="/openIDActions"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.openid.OpenIDActions">
</action>
</action-mappings>
<controller nocache="true" />
</struts-config>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="formWebSettingMailSender" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="description" type="java.lang.String" />
<form-property name="server" type="java.lang.String" />
<form-property name="port" type="java.lang.String" />
<form-property name="userName" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
<form-property name="securityConnection" type="java.lang.String" />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="fShowViewAdminSettins" path="/jsp/settings/admin/adminSettings.jsp" />
<forward name="fShowViewWebSecuritySettings" path="/jsp/settings/admin/web/security.jsp" />
<forward name="fShowViewWebMailSenderSettings" path="/jsp/settings/admin/web/mailSender.jsp" />
<forward name="fShowViewMobileSettings" path="/jsp/settings/admin/mobile/mobileSettings.jsp" />
</global-forwards>
<action-mappings>
<action path="/settingsActions"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.SettingsActions">
</action>
<action name="formWebSettingMailSender"
path="/webSettingMailSender"
input="/settingsActions.do?method=showViewWebMailSenderSettings"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.SettingsActions">
</action>
</action-mappings>
<controller nocache="true" />
<message-resources
parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources"
null="false" />
</struts-config>
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards>
<forward name="fShowViewWelcome" path="/jsp/welcome.jsp" />
<forward name="fShowViewMenu" path="/jsp/menu.jsp" />
<forward name="fShowViewPageNotFound" path="/jsp/error/viewPageNotFound.jsp" />
<forward name="fShowViewException" path="/jsp/error/viewException.jsp" />
<forward name="fShowViewAccessDenied" path="/jsp/error/viewAccessDenied.jsp" />
</global-forwards>
<action-mappings>
<action path="/system"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.SystemActions">
</action>
</action-mappings>
<controller nocache="true" />
<message-resources
parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources"
null="false" />
</struts-config>
@@ -0,0 +1,323 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="logonForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="login" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
</form-bean>
<form-bean name="editPasswordForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="currentPassword" type="java.lang.String" />
<form-property name="newPassword" type="java.lang.String" />
<form-property name="newPasswordConfirmation" type="java.lang.String" />
</form-bean>
<form-bean name="userNewForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="name" type="java.lang.String" />
<form-property name="city" type="java.lang.String" />
<form-property name="state" type="java.lang.String" />
<form-property name="cpf" type="java.lang.String" />
<form-property name="phoneNumber" type="java.lang.String" />
<form-property name="birthDate" type="java.lang.String" />
<form-property name="gender" type="java.lang.String" />
<form-property name="image" type="org.apache.struts.upload.FormFile"/>
<form-property name="userType" type="java.lang.String" />
<form-property name="login" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
<form-property name="email" type="java.lang.String" />
<form-property name="degree" type="java.lang.String" />
<form-property name="instituition" type="java.lang.String" />
<form-property name="description" type="java.lang.String" />
<form-property name="year" type="java.lang.String" />
</form-bean>
<form-bean name="editUserFormInManagerUsers" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="name" type="java.lang.String" />
<form-property name="city" type="java.lang.String" />
<form-property name="state" type="java.lang.String" />
<form-property name="cpf" type="java.lang.String" />
<form-property name="phoneNumber" type="java.lang.String" />
<form-property name="birthDate" type="java.lang.String" />
<form-property name="gender" type="java.lang.String" />
<form-property name="image" type="org.apache.struts.upload.FormFile"/>
<form-property name="userType" type="java.lang.String" />
<form-property name="login" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
<form-property name="email" type="java.lang.String" />
<form-property name="degree" type="java.lang.String" />
<form-property name="instituition" type="java.lang.String" />
<form-property name="description" type="java.lang.String" />
<form-property name="year" type="java.lang.String" />
</form-bean>
<form-bean name="editUserForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="name" type="java.lang.String" />
<form-property name="cpf" type="java.lang.String" />
<form-property name="phoneNumber" type="java.lang.String" />
<form-property name="gender" type="java.lang.String" />
<form-property name="birthDate" type="java.lang.String" />
<form-property name="email" type="java.lang.String" />
<form-property name="state" type="java.lang.String" />
<form-property name="city" type="java.lang.String" />
<form-property name="degree" type="java.lang.String" />
<form-property name="year" type="java.lang.String" />
<form-property name="instituition" type="java.lang.String" />
<form-property name="description" type="java.lang.String" />
<form-property name="image" type="org.apache.struts.upload.FormFile"/>
</form-bean>
<form-bean name="formUserRegister"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="login" type="java.lang.String" />
<form-property name="email" type="java.lang.String" />
<form-property name="name" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
<form-property name="passwordConfirmation" type="java.lang.String" />
</form-bean>
<form-bean name="remindPasswordForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="email" type="java.lang.String" />
</form-bean>
<form-bean
name="requestForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="degree" type="java.lang.String"/>
<form-property name="year" type="java.lang.String"/>
<form-property name="instituition" type="java.lang.String"/>
<form-property name="description" type="java.lang.String"/>
<form-property name="interest" type="java.lang.String"/>
</form-bean>
<form-bean
name="assistanceRequestForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="degree" type="java.lang.String"/>
<form-property name="year" type="java.lang.Integer"/>
<form-property name="instituition" type="java.lang.String"/>
<form-property name="description" type="java.lang.String"/>
<form-property name="interest" type="java.lang.String"/>
<form-property name="courseId" type="java.lang.Integer"/>
</form-bean>
<form-bean
name="teachingRequestForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="degree" type="java.lang.String"/>
<form-property name="year" type="java.lang.Integer"/>
<form-property name="instituition" type="java.lang.String"/>
<form-property name="description" type="java.lang.String"/>
<form-property name="interest" type="java.lang.String"/>
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="fShowViewClassMates" path="/jsp/user/userClassMates.jsp" />
<forward name="fShowViewInsertUser" path="/jsp/user/insertUser.jsp" />
<forward name="fProject" path="/fProject.do" />
<forward name="fCases" path="/fCases.do" />
<forward name="fCCTE" path="/fCCTE.do" />
<forward name="fReachUs" path="/fReachUs.do" />
<forward name="fLicense" path="/fLicense.do" />
<forward name="fRemindPassword" path="/fRemindPassword.do" />
<forward name="signOut" path="/signOut.do" />
<forward name="fShowViewEditPassword" path="/jsp/user/editPassword.jsp" />
<forward name="fShowViewMyProfile" path="/jsp/user/userPrivateData.jsp" />
<forward name="fShowViewPublicData" path="/jsp/user/userPublicData.jsp" />
<forward name="fNotAllowed" path="/fNotAllowed.do" />
<forward name="fShowViewTeachingRequest" path="/jsp/user/teachingRequest.jsp" />
<forward name="fShowViewAssistanceRequest" path="/jsp/user/assistanceRequest.jsp" />
<forward name="fMailBox" path="/fMailBox.do" />
<forward name="fContacts" path="/fContacts.do" />
<forward name="fOnlineContacts" path="/fOnlineContacts.do" />
<forward name="fClassmates" path="/fClassmates.do" />
<forward name="fEditUser" path="fEditUser.do" />
<forward name="fInsertCourseStepOne" path="fInsertCourseStepOne.do" />
<forward name="fReplicateCourseStepOne" path="fReplicateCourseStepOne.do" />
<forward name="assistanceRequestSuccess" path="/jsp/course/viewCourse.jsp"/>
<forward name="fShowViewAdminPendingTasks" path="/jsp/user/adminPendingTasks.jsp" />
<forward name="fShowViewTeacherPendingTasks" path="/jsp/user/teacherPendingTasks.jsp" />
<forward name="fShowViewStudentPendingTasks" path="/jsp/user/studentPendingTasks.jsp" />
<forward name="fViewEditUser" path="/jsp/user/editUser.jsp" />
<forward name="fShowDefaultPhoto" path="/themes/default/imgs/005.jpg" />
<forward name="fShowViewOnlineUsers" path="/jsp/user/onlineUsers.jsp" />
<forward name="fShowViewAllUsersInManagerUsers" path="/jsp/user/manager/viewAllUsers.jsp" />
<forward name="fShowViewAllCoursesInManagerUsers" path="/jsp/user/manager/viewAllCourses.jsp" />
<forward name="fShowViewUserNewInManagerUsers" path="/jsp/user/manager/viewUserNew.jsp" />
<forward name="fShowViewEditUserInManagerUsers" path="/jsp/user/manager/viewEditUser.jsp" />
<forward name="fShowViewUserProfileInManagerUsers" path="/jsp/user/manager/viewUserProfile.jsp" />
<forward name="fShowViewSendMailInManagerUsers" path="/jsp/user/manager/viewSendMail.jsp" />
</global-forwards>
<action-mappings>
<action path="/user"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
</action>
<action path="/managerUser"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.manager.ManagerUserActions">
</action>
<action name="formUserRegister" input="/jsp/user/insertUser.jsp"
parameter="insertUser" path="/insertUser" scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions" />
<action path="/viewEditUser"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
</action>
<action path="/userReportError"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
</action>
<action path="/editUser"
name="editUserForm"
input="/viewEditUser.do?method=Editar Perfil"
parameter="editUser"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
<forward name="cancel" path="/user.do?method=showViewMyProfile" redirect="true"/>
</action>
<action path="/userNewForm"
name="userNewForm"
input="/user.do?method=showViewUserNewInManagerUsers"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
</action>
<action path="/editUserFormInManagerUsers"
name="editUserFormInManagerUsers"
input="/user.do?method=showViewEditUserInManagerUsers"
parameter="method"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
</action>
<action name="logonForm" input="/system.do?method=showViewWelcome"
path="/validateLogin" parameter="logonForm" scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
<forward name="success" path="/system.do?method=showViewMenu" redirect="true" />
</action>
<action name="editPasswordForm"
input="/jsp/user/editPassword.jsp"
path="/editPassword"
parameter="editPassword"
scope="request"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions">
<forward name="success" path="/user.do?method=showViewMyProfile" redirect="true"/>
</action>
<action input="/jsp/user/RemindPassword.jsp"
path="/remindPassword" name="remindPasswordForm"
parameter="remindPassword"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions" />
<action path="/signOut"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="parameter"
scope="request">
<forward name="success" path="/system.do?method=showViewWelcome" />
</action>
<action
path="/teachingRequest"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="teachingRequest"
name="teachingRequestForm"
scope="request"
input="/user.do?method=showViewTeachingRequest">
<forward name="success" path="/user.do?method=showViewMyProfile" redirect="true"/>
</action>
<action
path="/assistanceRequest"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="assistanceRequest"
name="assistanceRequestForm"
scope="request"
input="/user.do?method=showViewAssistanceRequest">
<forward name="success" path="/course.do?method=showViewCourse"/>
</action>
<action
path="/disapprovedTeachingRequest"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="parameter"
scope="request">
</action>
<action
path="/approvedTeachingRequest"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="parameter"
scope="request">
</action>
<action
path="/disapproveAssistanceRequest"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="parameter"
scope="request">
</action>
<action
path="/approveAssistanceRequest"
type="br.ufpe.cin.amadeus.amadeus_web.struts.action.UserActions"
parameter="parameter"
scope="request">
</action>
<!-- ABAIXO ForwardAction -->
<action parameter="/jsp/user/editUser.jsp" path="/fEditUser"
type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/user/RemindPassword.jsp"
path="/fRemindPassword"
type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/amadeus/institutional_menu/project.jsp"
path="/fProject" type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/amadeus/institutional_menu/cases.jsp"
path="/fCases" type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/amadeus/institutional_menu/ccte.jsp"
path="/fCCTE" type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/amadeus/institutional_menu/reachUs.jsp"
path="/fReachUs" type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/amadeus/institutional_menu/license.jsp"
path="/fLicense" type="org.apache.struts.actions.ForwardAction" />
<action parameter="/jsp/notAllowed.jsp" path="/fNotAllowed"
type="org.apache.struts.actions.ForwardAction" />
</action-mappings>
<controller nocache="true" />
<message-resources
parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources"
null="false" />
</struts-config>
+24
Ver Arquivo
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings />
<controller nocache="true" maxFileSize="100000000" multipartClass="org.apache.struts.upload.CommonsMultipartRequestHandler" />
<message-resources parameter="br.ufpe.cin.amadeus.amadeus_web.struts.messages.MessageResources_pt_BR" null="false"/>
<!-- =================================================== Validator plugin -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value= "/WEB-INF/struts/validator-rules.xml,
/WEB-INF/struts/validation-user.xml,
/WEB-INF/struts/validation-course.xml,
/WEB-INF/struts/validation-module.xml,
/WEB-INF/struts/validation-settings.xml"/>
</plug-in>
</struts-config>
@@ -0,0 +1,326 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<form name="formRegisterCourseStepOne">
<field property="name" depends="required,maxlength">
<arg key="courseForm.courseName" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="objectives" depends="required,maxlength">
<arg key="courseForm.objectives" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>2000</var-value>
</var>
</field>
<field property="content" depends="required,maxlength">
<arg key="courseForm.content" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>2000</var-value>
</var>
</field>
<field property="maxAmountStudents"
depends="required,mask">
<arg key="courseForm.maxAmountStudents" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialRegistrationDay"
depends="required, mask">
<arg key="courseForm.initialRegistrationDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialRegistrationMonth"
depends="required, mask">
<arg key="courseForm.initialRegistrationMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialRegistrationYear"
depends="required, mask">
<arg key="courseForm.initialRegistrationYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalRegistrationDay"
depends="required, mask">
<arg key="courseForm.finalRegistrationDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalRegistrationMonth"
depends="required, mask">
<arg key="courseForm.finalRegistrationMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalRegistrationYear"
depends="required, mask">
<arg key="courseForm.finalRegistrationYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialCourseDay"
depends="required, mask">
<arg key="courseForm.initialCourseDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialCourseMonth"
depends="required, mask">
<arg key="courseForm.initialCourseMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialCourseYear"
depends="required, mask">
<arg key="courseForm.initialCourseYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalCourseDay"
depends="required, mask">
<arg key="courseForm.finalCourseDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalCourseMonth"
depends="required, mask">
<arg key="courseForm.finalCourseMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalCourseYear"
depends="required, mask">
<arg key="courseForm.finalCourseYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
</form>
</formset>
<formset>
<form name="formRegisterCourseStepTwo">
<field property="keywords" depends="required">
<arg0 key="courseForm.keywords" />
</field>
</form>
</formset>
<formset>
<form name="formEditCourse">
<field property="name" depends="required,maxlength">
<arg key="courseForm.courseName" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="objectives" depends="required,maxlength">
<arg key="courseForm.objectives" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>2000</var-value>
</var>
</field>
<field property="content" depends="required,maxlength">
<arg key="courseForm.content" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>2000</var-value>
</var>
</field>
<field property="maxAmountStudents"
depends="required,mask">
<arg key="courseForm.maxAmountStudents" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialRegistrationDay"
depends="required, mask">
<arg key="courseForm.initialRegistrationDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialRegistrationMonth"
depends="required, mask">
<arg key="courseForm.initialRegistrationMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialRegistrationYear"
depends="required, mask">
<arg key="courseForm.initialRegistrationYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalRegistrationDay"
depends="required, mask">
<arg key="courseForm.finalRegistrationDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalRegistrationMonth"
depends="required, mask">
<arg key="courseForm.finalRegistrationMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalRegistrationYear"
depends="required, mask">
<arg key="courseForm.finalRegistrationYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialCourseDay"
depends="required, mask">
<arg key="courseForm.initialCourseDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialCourseMonth"
depends="required, mask">
<arg key="courseForm.initialCourseMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="initialCourseYear"
depends="required, mask">
<arg key="courseForm.initialCourseYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalCourseDay"
depends="required, mask">
<arg key="courseForm.finalCourseDay"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalCourseMonth"
depends="required, mask">
<arg key="courseForm.finalCourseMonth"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field
property="finalCourseYear"
depends="required, mask">
<arg key="courseForm.finalCourseYear"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field property="keywords" depends="required">
<arg0 key="courseForm.keywords" />
</field>
</form>
</formset>
<formset>
<form name="searchCourseForm">
<field property="courseName" depends="required">
<arg0 key="courses.search" />
</field>
</form>
</formset>
</form-validation>
@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<form name="gameActivity">
<field property="nameGame"
depends="required">
<arg key="activities.game.name"/>
</field>
<field property="descriptionGame"
depends="required">
<arg key="activities.game.description"/>
</field>
<field property="urlGame"
depends="required">
<arg key="activities.game.url"/>
</field>
<field property="maxUsers"
depends="required">
<arg key="activities.game.maxUsers"/>
</field>
<field property="minUsers"
depends="required">
<arg key="activities.game.minUsers"/>
</field>
</form>
<form name="questionForm">
<field property="questionDescription"
depends="required">
<arg key="activities.evaluations.questions.description"/>
</field>
<field property="alternativesDescription"
depends="required">
<arg key="activities.evaluations.questions.alternatives"/>
</field>
<field property="alternativesDescription2"
depends="required">
<arg key="activities.evaluations.questions.alternatives"/>
</field>
</form>
<!-- <var>
<var-name>mask</var-name>
<var-value>^http://[?:-/0-9a-zA-Z]*jsp$</var-value>
</var> -->
<form name="messageForum">
<field property="answerBody" depends="required,maxlength">
<arg key="activities.forum.message"/>
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>2000</var-value>
</var>
</field>
</form>
<form name="forumActivity">
<field property="topicForum"
depends="required">
<arg key="activities.forum.topic"/>
</field>
<field property="descriptionForum"
depends="required">
<arg key="activities.forum.description"/>
</field>
</form>
<form name="evaluationActivity">
<field property="descriptionEvaluation"
depends="required">
<arg key="activities.evaluation.description"/>
</field>
<field property="startEvaluation"
depends="required,date">
<arg key="activities.evaluation.start"/>
<var>
<var-name>datePattern</var-name>
<var-value>dd/MM/yyyy</var-value>
</var>
</field>
<field property="finishEvaluation"
depends="required,date">
<arg key="activities.evaluation.end"/>
<var>
<var-name>datePattern</var-name>
<var-value>dd/MM/yyyy</var-value>
</var>
</field>
<field property="afterdeadlineachievedEvaluation"
depends="required">
<arg key="activities.evaluation.allowPeriod"/>
</field>
</form>
<form name="videoIrizForm">
<field property="videoIrizName"
depends="required">
<arg key="activities.video.name"/>
</field>
<field property="choice"
depends="required">
<arg key="activities.video.choice"/>
</field>
<field property="url"
depends="required,mask">
<arg key="activities.video.url"/>
<var>
<var-name>mask</var-name>
<var-value>^http://(br.youtube.com|www.youtube.com)/watch?v=[0-9a-zA-Z]*$</var-value>
</var>
</field>
<field property="videoDescription"
depends="required">
<arg key="activities.video.description"/>
</field>
</form>
<form name="materialRequestActivity">
<field property="nameMaterial"
depends="required">
<arg key="activities.materialRequest.name"/>
</field>
<field property="descriptionMaterial"
depends="required">
<arg key="activities.materialRequest.description"/>
</field>
<field property="dayMaterial"
depends="required,mask">
<arg key="activities.materialRequest.dayToDelivery"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field property="monthMaterial"
depends="required,mask">
<arg key="activities.materialRequest.monthToDelivery"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field property="yearMaterial"
depends="required,mask,minlength">
<arg key="activities.materialRequest.yearToDelivery"/>
<arg1 name="minlength" key="${var:minlength}" resource="false"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
</form>
<form name="pollActivity">
<field property="namePoll"
depends="required">
<arg key="activities.poll.name"/>
</field>
<field property="questionPoll"
depends="required">
<arg key="activities.poll.question"/>
</field>
<field property="optionsPoll"
depends="required">
<arg key="activities.poll.option"/>
</field>
<field property="dayPoll"
depends="required,mask">
<arg key="activities.poll.dayToDelivery"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field property="monthPoll"
depends="required,mask">
<arg key="activities.poll.monthToDelivery"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field property="yearPoll"
depends="required,mask,minlength">
<arg key="activities.poll.yearToDelivery"/>
<arg1 name="minlength" key="${var:minlength}" resource="false"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
</form>
<form name="learningObjectActivity">
<field property="nameLearningObject"
depends="required">
<arg key="activities.learningObject.name"/>
</field>
<field property="descriptionLearningObject"
depends="required">
<arg key="activities.learningObject.description"/>
</field>
<field property="urlLearningObject"
depends="required">
<arg key="activities.learningObject.url"/>
</field>
</form>
<form name="externalLink">
<field property="nameExternalLink"
depends="required">
<arg key="material.externalLink.name"/>
</field>
<field property="urlExternalLink"
depends="required">
<arg key="material.externalLink.url"/>
</field>
</form>
</formset>
</form-validation>
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<form name="formWebSettingMailSender">
<field property="description" depends="required,maxlength">
<arg key="settings.web.mailSender.description" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="server" depends="required,maxlength">
<arg key="settings.web.mailSender.server" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="port" depends="required,maxlength">
<arg key="settings.web.mailSender.port" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>8</var-value>
</var>
</field>
<field property="userName" depends="maxlength">
<arg key="settings.web.mailSender.userName" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="password" depends="maxlength">
<arg key="settings.web.mailSender.password"/>
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>20</var-value>
</var>
</field>
<field property="securityConnection" depends="required">
<arg key="settings.web.mailSender.securityConnection"/>
</field>
</form>
</formset>
</form-validation>
+293
Ver Arquivo
@@ -0,0 +1,293 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<form name="formUserRegister">
<field property="name" depends="required,maxlength">
<arg key="general.fullName"/>
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="login" depends="required">
<arg key="general.login" />
</field>
<field property="password"
depends="required,mask,minlength,identico">
<arg0 key="general.password" />
<arg1 key="userRegistrationForm.passwordConfirmation" />
<arg1 name="minlength" key="${var:minlength}"
resource="false" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
<var>
<var-name>secondProperty</var-name>
<var-value>passwordConfirmation</var-value>
</var>
</field>
<field property="passwordConfirmation"
depends="required,mask,minlength">
<arg0 key="userRegistrationForm.passwordConfirmation" />
<arg1 name="minlength" key="${var:minlength}"
resource="false" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
<field property="email" depends="required,email,maxlength">
<arg key="general.email" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
</form>
<form name="userNewForm">
<field property="name" depends="required,maxlength">
<arg key="general.fullName" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="email" depends="required,email,maxlength">
<arg key="general.email" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="userType" depends="required">
<arg key="userRegistrationForm.userType" />
</field>
<field property="login" depends="required">
<arg key="general.login" />
</field>
<field property="password" depends="required,mask,minlength">
<arg0 key="general.password" />
<arg1 name="minlength" key="${var:minlength}" resource="false" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
</form>
<form name="editUserForm">
<field property="name" depends="required,maxlength">
<arg key="general.fullName" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="cpf" depends="required">
<arg key="editUserForm.cpf" />
</field>
<field property="email" depends="required,email,maxlength">
<arg key="general.email" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="city" depends="maxlength">
<arg key="editUserForm.city"/>
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="instituition" depends="maxlength">
<arg key="editUserForm.instituition" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
<field property="description" depends="maxlength">
<arg key="editUserForm.description" />
<arg1 name="maxlength" key="${var:maxlength}"
resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>255</var-value>
</var>
</field>
</form>
<form name="remindPasswordForm">
<field property="email" depends="required,email">
<arg key="remindPassword.email" />
</field>
</form>
<form name="logonForm">
<field property="login" depends="required">
<arg key="general.login" />
</field>
<field property="password" depends="required">
<arg key="general.password" />
</field>
</form>
<form name="editPasswordForm">
<field property="currentPassword"
depends="required,minlength">
<arg0 key="editPassword.currentPassword" />
<arg1 name="minlength" key="${var:minlength}"
resource="false" />
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
<field property="newPassword"
depends="required,minlength,identico">
<arg0 key="editPassword.newPassword" />
<arg1 key="editPassword.newPasswordConfirmation" />
<arg1 name="minlength" key="${var:minlength}"
resource="false" />
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
<var>
<var-name>secondProperty</var-name>
<var-value>newPasswordConfirmation</var-value>
</var>
</field>
<field property="newPasswordConfirmation"
depends="required,minlength">
<arg0 key="editPassword.newPasswordConfirmation" />
<arg1 name="minlength" key="${var:minlength}"
resource="false" />
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
</form>
</formset>
<formset>
<form name="assistanceRequestForm">
<field property="degree" depends="required">
<arg key="requestForm.degree" />
</field>
<field property="year" depends="required,mask,minlength">
<arg0 key="requestForm.year" />
<arg1 name="minlength" key="${var:minlength}" resource="false" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
<field property="instituition" depends="required">
<arg key="requestForm.instituition" />
</field>
<field property="description" depends="required">
<arg key="requestForm.description" />
</field>
<field property="interest" depends="required">
<arg key="requestForm.interest" />
</field>
<field property="courseId" depends="required">
<arg key="requestForm.year" />
</field>
</form>
<form name="teachingRequestForm">
<field property="degree" depends="required">
<arg key="requestForm.degree" />
</field>
<field property="year" depends="required,mask,minlength">
<arg0 key="requestForm.year" />
<arg1 name="minlength" key="${var:minlength}" resource="false" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>4</var-value>
</var>
</field>
<field property="instituition" depends="required">
<arg key="requestForm.instituition" />
</field>
<field property="description" depends="required">
<arg key="requestForm.description" />
</field>
<field property="interest" depends="required">
<arg key="requestForm.interest" />
</field>
</form>
</formset>
</form-validation>
+296
Ver Arquivo
@@ -0,0 +1,296 @@
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<!--
$Header: /home/cvs/jakarta-struts/conf/share/validator-rules.xml,v 1.52 2004/07/25 12:00:20 niallp Exp $
$Revision: 1.52 $
$Date: 2004/07/25 12:00:20 $
This file contains the default Struts Validator pluggable validator
definitions. It should be placed somewhere under /WEB-INF and
referenced in the struts-config.xml under the plug-in element
for the ValidatorPlugIn.
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
These are the default error messages associated with
each validator defined in this file. They should be
added to your projects ApplicationResources.properties
file or you can associate new ones by modifying the
pluggable validators msg attributes in this file.
# Struts Validator Error Messages
errors.required={0} is required.
errors.minlength={0} can not be less than {1} characters.
errors.maxlength={0} can not be greater than {1} characters.
errors.invalid={0} is invalid.
errors.byte={0} must be a byte.
errors.short={0} must be a short.
errors.integer={0} must be an integer.
errors.long={0} must be a long.
errors.float={0} must be a float.
errors.double={0} must be a double.
errors.date={0} is not a date.
errors.range={0} is not in the range {1} through {2}.
errors.creditcard={0} is an invalid credit card number.
errors.email={0} is an invalid e-mail address.
Note: Starting in Struts 1.2.0 the default javascript definitions have
been consolidated to commons-validator. The default can be overridden
by supplying a <javascript> element with a CDATA section, just as
in struts 1.1.
-->
<form-validation>
<global>
<validator name="required"
classname="org.apache.struts.validator.FieldChecks"
method="validateRequired"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
msg="errors.required" />
<validator name="requiredif"
classname="org.apache.struts.validator.FieldChecks"
method="validateRequiredIf"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"
msg="errors.required" />
<validator name="validwhen" msg="errors.required"
classname="org.apache.struts.validator.validwhen.ValidWhen"
method="validateValidWhen"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest" />
<validator name="minlength"
classname="org.apache.struts.validator.FieldChecks"
method="validateMinLength"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.minlength"
jsFunction="org.apache.commons.validator.javascript.validateMinLength" />
<validator name="maxlength"
classname="org.apache.struts.validator.FieldChecks"
method="validateMaxLength"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.maxlength"
jsFunction="org.apache.commons.validator.javascript.validateMaxLength" />
<validator name="mask"
classname="org.apache.struts.validator.FieldChecks"
method="validateMask"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.invalid" />
<validator name="byte"
classname="org.apache.struts.validator.FieldChecks"
method="validateByte"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.byte" jsFunctionName="ByteValidations" />
<validator name="short"
classname="org.apache.struts.validator.FieldChecks"
method="validateShort"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.short" jsFunctionName="ShortValidations" />
<validator name="integer"
classname="org.apache.struts.validator.FieldChecks"
method="validateInteger"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.integer" jsFunctionName="IntegerValidations" />
<validator name="long"
classname="org.apache.struts.validator.FieldChecks"
method="validateLong"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.long" />
<validator name="float"
classname="org.apache.struts.validator.FieldChecks"
method="validateFloat"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.float" jsFunctionName="FloatValidations" />
<validator name="double"
classname="org.apache.struts.validator.FieldChecks"
method="validateDouble"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.double" />
<validator name="date"
classname="org.apache.struts.validator.FieldChecks"
method="validateDate"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.date" jsFunctionName="DateValidations" />
<validator name="intRange"
classname="org.apache.struts.validator.FieldChecks"
method="validateIntRange"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="integer" msg="errors.range" />
<validator name="floatRange"
classname="org.apache.struts.validator.FieldChecks"
method="validateFloatRange"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="float" msg="errors.range" />
<validator name="creditCard"
classname="org.apache.struts.validator.FieldChecks"
method="validateCreditCard"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.creditcard" />
<validator name="email"
classname="org.apache.struts.validator.FieldChecks"
method="validateEmail"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.email" />
<validator name="url"
classname="org.apache.struts.validator.FieldChecks"
method="validateUrl"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.url" />
<!--
This simply allows struts to include the validateUtilities into a page, it should
not be used as a validation rule.
-->
<validator name="includeJavaScriptUtilities" classname=""
method="" methodParams="" depends="" msg=""
jsFunction="org.apache.commons.validator.javascript.validateUtilities" />
<validator name="identico"
classname="br.ufpe.cin.amadeus.amadeus_web.struts.validation.Validator"
method="validateIdentico"
methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="required" msg="errors.identico" />
<validator name="varCpf"
classname="br.ufpe.cin.amadeus.amadeus_web.struts.validation.Validator"
method="validateCpf"
methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.varCpf" />
<validator name="varDate"
classname="br.ufpe.cin.amadeus.amadeus_web.struts.validation.Validator"
method="validateDate"
methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.varDate" />
<validator name="valPhone"
classname="br.ufpe.cin.amadeus.amadeus_web.struts.validation.Validator"
method="validatePhone"
methodParams="java.lang.Object,org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="" msg="errors.valPhone" />
</global>
</form-validation>
+4
Ver Arquivo
@@ -0,0 +1,4 @@
<endpoints version="2.0" xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime">
<endpoint name="courseList" implementation="br.ufpe.cin.amadeus.amadeus_web.webservices.services.CourseServiceWS"
url-pattern="/courseWS"></endpoint>
</endpoints>
+416
Ver Arquivo
@@ -0,0 +1,416 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jstl/core</uri>
<display-name>JSTL core</display-name>
<description>JSTL 1.0 core library</description>
<validator>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
<init-param>
<param-name>expressionAttributes</param-name>
<param-value>
out:value
out:default
out:escapeXml
if:test
import:url
import:context
import:charEncoding
forEach:items
forEach:begin
forEach:end
forEach:step
forTokens:items
forTokens:begin
forTokens:end
forTokens:step
param:encode
param:name
param:value
redirect:context
redirect:url
set:property
set:target
set:value
url:context
url:value
when:test
</param-value>
<description>
Whitespace-separated list of colon-separated token pairs
describing tag:attribute combinations that accept expressions.
The validator uses this information to determine which
attributes need their syntax validated.
</description>
</init-param>
</validator>
<tag>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>choose</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
</tag>
<tag>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class>
<body-content>JSP</body-content>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>default</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>if</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class>
<body-content>JSP</body-content>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<attribute>
<name>test</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>context</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<attribute>
<name>items</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>begin</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>end</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>step</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<attribute>
<name>items</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>delims</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>begin</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>end</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>step</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>otherwise</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
</tag>
<tag>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<description>
Redirects to a new URL.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>context</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class>
<body-content>JSP</body-content>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>target</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<description>
Prints or exposes a URL with optional query parameters
(via the c:param tag).
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>context</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>when</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<attribute>
<name>test</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
+442
Ver Arquivo
@@ -0,0 +1,442 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>fmt</short-name>
<uri>http://java.sun.com/jstl/fmt</uri>
<display-name>JSTL fmt</display-name>
<description>JSTL 1.0 i18n-capable formatting library</description>
<validator>
<validator-class>
org.apache.taglibs.standard.tlv.JstlFmtTLV
</validator-class>
<init-param>
<param-name>expressionAttributes</param-name>
<param-value>
requestEncoding:value
setLocale:value
setLocale:variant
timeZone:value
setTimeZone:value
bundle:basename
bundle:prefix
setBundle:basename
message:key
message:bundle
param:value
formatNumber:value
formatNumber:pattern
formatNumber:currencyCode
formatNumber:currencySymbol
formatNumber:groupingUsed
formatNumber:maxIntegerDigits
formatNumber:minIntegerDigits
formatNumber:maxFractionDigits
formatNumber:minFractionDigits
parseNumber:value
parseNumber:pattern
parseNumber:parseLocale
parseNumber:integerOnly
formatDate:value
formatDate:pattern
formatDate:timeZone
parseDate:value
parseDate:pattern
parseDate:timeZone
parseDate:parseLocale
</param-value>
<description>
Whitespace-separated list of colon-separated token pairs
describing tag:attribute combinations that accept expressions.
The validator uses this information to determine which
attributes need their syntax validated.
</description>
</init-param>
</validator>
<tag>
<name>requestEncoding</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.RequestEncodingTag</tag-class>
<body-content>empty</body-content>
<description>
Sets the request character encoding
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setLocale</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.SetLocaleTag</tag-class>
<body-content>empty</body-content>
<description>
Stores the given locale in the locale configuration variable
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>variant</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>timeZone</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.TimeZoneTag</tag-class>
<body-content>JSP</body-content>
<description>
Specifies the time zone for any time formatting or parsing actions
nested in its body
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setTimeZone</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.SetTimeZoneTag</tag-class>
<body-content>empty</body-content>
<description>
Stores the given time zone in the time zone configuration variable
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>bundle</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.BundleTag</tag-class>
<body-content>JSP</body-content>
<description>
Loads a resource bundle to be used by its tag body
</description>
<attribute>
<name>basename</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>prefix</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setBundle</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.SetBundleTag</tag-class>
<body-content>empty</body-content>
<description>
Loads a resource bundle and stores it in the named scoped variable or
the bundle configuration variable
</description>
<attribute>
<name>basename</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>message</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.MessageTag</tag-class>
<body-content>JSP</body-content>
<description>
Maps key to localized message and performs parametric replacement
</description>
<attribute>
<name>key</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.ParamTag</tag-class>
<body-content>JSP</body-content>
<description>
Supplies an argument for parametric replacement to a containing
&lt;message&gt; tag
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>formatNumber</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatNumberTag</tag-class>
<body-content>JSP</body-content>
<description>
Formats a numeric value as a number, currency, or percentage
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>currencyCode</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>currencySymbol</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>groupingUsed</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>maxIntegerDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>minIntegerDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>maxFractionDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>minFractionDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parseNumber</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag</tag-class>
<body-content>JSP</body-content>
<description>
Parses the string representation of a number, currency, or percentage
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>parseLocale</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>integerOnly</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>formatDate</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatDateTag</tag-class>
<body-content>empty</body-content>
<description>
Formats a date and/or time using the supplied styles and pattern
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dateStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeZone</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parseDate</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseDateTag</tag-class>
<body-content>JSP</body-content>
<description>
Parses the string representation of a date and/or time
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dateStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeZone</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>parseLocale</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
+213
Ver Arquivo
@@ -0,0 +1,213 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>sql</short-name>
<uri>http://java.sun.com/jstl/sql</uri>
<display-name>JSTL sql</display-name>
<description>JSTL 1.0 sql library</description>
<validator>
<validator-class>
org.apache.taglibs.standard.tlv.JstlSqlTLV
</validator-class>
<init-param>
<param-name>expressionAttributes</param-name>
<param-value>
transaction:dataSource
transaction:isolation
query:sql
query:dataSource
query:startRow
query:maxRows
update:sql
update:dataSource
param:value
dateParam:value
dateParam:type
setDataSource:dataSource
setDataSource:driver
setDataSource:url
setDataSource:user
setDataSource:password
</param-value>
<description>
Whitespace-separated list of colon-separated token pairs
describing tag:attribute combinations that accept expressions.
The validator uses this information to determine which
attributes need their syntax validated.
</description>
</init-param>
</validator>
<tag>
<name>transaction</name>
<tag-class>org.apache.taglibs.standard.tag.el.sql.TransactionTag</tag-class>
<body-content>JSP</body-content>
<description>
Provides nested database action elements with a shared Connection,
set up to execute all statements as one transaction.
</description>
<attribute>
<name>dataSource</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>isolation</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>query</name>
<tag-class>org.apache.taglibs.standard.tag.el.sql.QueryTag</tag-class>
<body-content>JSP</body-content>
<description>
Executes the SQL query defined in its body or through the
sql attribute.
</description>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>sql</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dataSource</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>startRow</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>maxRows</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>update</name>
<tag-class>org.apache.taglibs.standard.tag.el.sql.UpdateTag</tag-class>
<body-content>JSP</body-content>
<description>
Executes the SQL update defined in its body or through the
sql attribute.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>sql</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dataSource</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.el.sql.ParamTag</tag-class>
<body-content>JSP</body-content>
<description>
Sets a parameter in an SQL statement to the specified value.
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>dateParam</name>
<tag-class>org.apache.taglibs.standard.tag.el.sql.DateParamTag</tag-class>
<body-content>empty</body-content>
<description>
Sets a parameter in an SQL statement to the specified java.util.Date val
ue.
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setDataSource</name>
<tag-class>org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag</tag-class>
<body-content>empty</body-content>
<description>
Creates a simple DataSource suitable only for prototyping.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dataSource</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>driver</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>url</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>user</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>password</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
+382
Ver Arquivo
@@ -0,0 +1,382 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>bean</shortname>
<uri>http://struts.apache.org/tags-bean</uri>
<tag>
<name>cookie</name>
<tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>multiple</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>define</name>
<tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>toScope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>header</name>
<tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>multiple</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>include</name>
<tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>forward</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>href</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>transaction</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>message</name>
<tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>arg0</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg1</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg3</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg4</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>key</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>locale</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>page</name>
<tagclass>org.apache.struts.taglib.bean.PageTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.PageTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parameter</name>
<tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>multiple</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>resource</name>
<tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>input</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>size</name>
<tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>struts</name>
<tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>formBean</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>forward</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>mapping</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>write</name>
<tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>filter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>format</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>formatKey</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>locale</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Diferenças do arquivo suprimidas por serem muito extensas Carregar Diff
+652
Ver Arquivo
@@ -0,0 +1,652 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>logic</shortname>
<uri>http://struts.apache.org/tags-logic</uri>
<tag>
<name>empty</name>
<tagclass>org.apache.struts.taglib.logic.EmptyTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>equal</name>
<tagclass>org.apache.struts.taglib.logic.EqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forward</name>
<tagclass>org.apache.struts.taglib.logic.ForwardTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>greaterEqual</name>
<tagclass>org.apache.struts.taglib.logic.GreaterEqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>greaterThan</name>
<tagclass>org.apache.struts.taglib.logic.GreaterThanTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>iterate</name>
<tagclass>org.apache.struts.taglib.logic.IterateTag</tagclass>
<teiclass>org.apache.struts.taglib.logic.IterateTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>indexId</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>length</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>offset</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>lessEqual</name>
<tagclass>org.apache.struts.taglib.logic.LessEqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>lessThan</name>
<tagclass>org.apache.struts.taglib.logic.LessThanTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>match</name>
<tagclass>org.apache.struts.taglib.logic.MatchTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>location</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>messagesNotPresent</name>
<tagclass>org.apache.struts.taglib.logic.MessagesNotPresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>message</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>messagesPresent</name>
<tagclass>org.apache.struts.taglib.logic.MessagesPresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>message</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notEmpty</name>
<tagclass>org.apache.struts.taglib.logic.NotEmptyTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notEqual</name>
<tagclass>org.apache.struts.taglib.logic.NotEqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notMatch</name>
<tagclass>org.apache.struts.taglib.logic.NotMatchTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>location</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notPresent</name>
<tagclass>org.apache.struts.taglib.logic.NotPresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>user</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>present</name>
<tagclass>org.apache.struts.taglib.logic.PresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>user</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>redirect</name>
<tagclass>org.apache.struts.taglib.logic.RedirectTag</tagclass>
<attribute>
<name>action</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>forward</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>href</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramScope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>transaction</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>useLocalEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Diferenças do arquivo suprimidas por serem muito extensas Carregar Diff
+344
Ver Arquivo
@@ -0,0 +1,344 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>tiles</shortname>
<uri>http://struts.apache.org/tags-tiles</uri>
<tag>
<name>insert</name>
<tagclass>org.apache.struts.taglib.tiles.InsertTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>template</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>component</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>definition</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attribute</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanScope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>flush</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>controllerUrl</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>controllerClass</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>definition</name>
<tagclass>org.apache.struts.taglib.tiles.DefinitionTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>template</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>extends</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>put</name>
<tagclass>org.apache.struts.taglib.tiles.PutTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>content</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>direct</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>beanName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanScope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>putList</name>
<tagclass>org.apache.struts.taglib.tiles.PutListTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>add</name>
<tagclass>org.apache.struts.taglib.tiles.AddTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>content</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>direct</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>beanName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanScope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>get</name>
<tagclass>org.apache.struts.taglib.tiles.GetTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>flush</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>getAsString</name>
<tagclass>org.apache.struts.taglib.tiles.GetAttributeTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>useAttribute</name>
<tagclass>org.apache.struts.taglib.tiles.UseAttributeTag</tagclass>
<teiclass>org.apache.struts.taglib.tiles.UseAttributeTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>classname</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>importAttribute</name>
<tagclass>org.apache.struts.taglib.tiles.ImportAttributeTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>initComponentDefinitions</name>
<tagclass>org.apache.struts.taglib.tiles.InitDefinitionsTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>file</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>classname</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
+273
Ver Arquivo
@@ -0,0 +1,273 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>x</short-name>
<uri>http://java.sun.com/jstl/xml</uri>
<display-name>JSTL XML</display-name>
<description>JSTL 1.0 XML library</description>
<validator>
<validator-class>
org.apache.taglibs.standard.tlv.JstlXmlTLV
</validator-class>
<init-param>
<param-name>expressionAttributes</param-name>
<param-value>
out:escapeXml
parse:xml
parse:systemId
parse:filter
transform:xml
transform:xmlSystemId
transform:xslt
transform:xsltSystemId
transform:result
</param-value>
<description>
Whitespace-separated list of colon-separated token pairs
describing tag:attribute combinations that accept expressions.
The validator uses this information to determine which
attributes need their syntax validated.
</description>
</init-param>
</validator>
<tag>
<name>choose</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
</tag>
<tag>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.el.xml.ExprTag</tag-class>
<body-content>empty</body-content>
<description>
Like &lt;%= ... &gt;, but for XPath expressions.
</description>
<attribute>
<name>select</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>if</name>
<tag-class>org.apache.taglibs.standard.tag.common.xml.IfTag</tag-class>
<body-content>JSP</body-content>
<description>
XML conditional tag, which evalutes its body if the
supplied XPath expression evalutes to 'true' as a boolean
</description>
<attribute>
<name>select</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.common.xml.ForEachTag</tag-class>
<body-content>JSP</body-content>
<description>
XML iteration tag.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>select</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>otherwise</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
</tag>
<tag>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.el.xml.ParamTag</tag-class>
<body-content>JSP</body-content>
<description>
Adds a parameter to a containing 'transform' tag's Transformer
</description>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parse</name>
<tag-class>org.apache.taglibs.standard.tag.el.xml.ParseTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.XmlParseTEI</tei-class>
<body-content>JSP</body-content>
<description>
Parses XML content from 'source' attribute or 'body'
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varDom</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scopeDom</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>xml</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>systemId</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>filter</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.common.xml.SetTag</tag-class>
<body-content>empty</body-content>
<description>
Saves the result of an XPath expression evaluation in a 'scope'
</description>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>select</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>transform</name>
<tag-class>org.apache.taglibs.standard.tag.el.xml.TransformTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.XmlTransformTEI</tei-class>
<body-content>JSP</body-content>
<description>
Conducts a transformation given a source XML document
and an XSLT stylesheet
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>result</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>xml</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>xmlSystemId</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>xslt</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>xsltSystemId</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>when</name>
<tag-class>org.apache.taglibs.standard.tag.common.xml.WhenTag</tag-class>
<body-content>JSP</body-content>
<description>
Subtag of &lt;choose&gt; that includes its body if its
expression evalutes to 'true'
</description>
<attribute>
<name>select</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
+168
Ver Arquivo
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>AmadeusLMS</display-name>
<filter>
<filter-name>AmadeusCharSetFilter</filter-name>
<filter-class>br.ufpe.cin.amadeus.amadeus_web.util.AmadeusCharSetFilter</filter-class>
<init-param>
<param-name>requestEncoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>AmadeusCharSetFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>HibernateSessionRequestFilter</filter-name>
<filter-class>br.ufpe.cin.amadeus.amadeus_web.util.HibernateSessionRequestFilter</filter-class>
</filter>
<filter>
<filter-name>XSS</filter-name>
<filter-class>br.ufpe.cin.amadeus.amadeus_web.util.CrossScriptingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HibernateSessionRequestFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>XSS</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>br.ufpe.cin.amadeus.amadeus_web.util.AmadeusSessionListener</listener-class>
</listener>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts/struts-config.xml,
/WEB-INF/struts/struts-config-system.xml,
/WEB-INF/struts/struts-config-user.xml,
/WEB-INF/struts/struts-config-course.xml,
/WEB-INF/struts/struts-config-module.xml,
/WEB-INF/struts/struts-config-mobile.xml,
/WEB-INF/struts/struts-config-openid.xml,
/WEB-INF/struts/struts-config-settings.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- JAXWS Servlet Configuration -->
<servlet>
<description>Cadastro de Pessoa JAX-WS</description>
<display-name>courseWS</display-name>
<servlet-name>courseWS</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Listener JAXWS Configuration -->
<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
<!-- Mapping JAXWS Configuration -->
<servlet-mapping>
<servlet-name>courseWS</servlet-name>
<url-pattern>/courseWS</url-pattern>
</servlet-mapping>
<!-- DWR Configuration-->
<servlet>
<description>dwr-invoker</description>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>activeReverseAjaxEnabled</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>initApplicationScopeCreatorsAtStartup</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>classes</param-name>
<param-value>br.ufpe.cin.amadeus.amadeus_web.util.UtilDWR</param-value>
</init-param>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- JAXWS Servlet Configuration -->
<!-- DWR Mapping -->
<listener>
<listener-class>org.directwebremoting.servlet.DwrListener</listener-class>
</listener>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/system.do?method=showViewPageNotFound</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/system.do?method=showViewException</location>
</error-page>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tags/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tags/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html</taglib-uri>
<taglib-location>/WEB-INF/tags/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/tags/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/tags/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/c</taglib-uri>
<taglib-location>/WEB-INF/tags/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/fmt</taglib-uri>
<taglib-location>/WEB-INF/tags/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/sql</taglib-uri>
<taglib-location>/WEB-INF/tags/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/x</taglib-uri>
<taglib-location>/WEB-INF/tags/x.tld</taglib-location>
</taglib>
</jsp-config>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
+63
Ver Arquivo
@@ -0,0 +1,63 @@
<!--
Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="br.ufpe.cin.amadeus.amadeus_sdmm.general.*"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Servidor de Dados Multimidia - P4</title>
</head>
<body>
<p>Neste segundo momento o projeto esta em fase de INTEGRAÇÃO com o AMADEUS e
existe apenas um repositorio de VIDEO com INSERCAO E CONSULTA dos OBJETOS.
O protótipo 4 é a união das melhores caracteristicas do protótipo 1 e do prototipo2.
Prototipo 1 - armazena os objetos binarios como referencia externa - pasta no servidor web
Prototipo 2 - armazena os objetos binario como blobs internamente no banco - blob no sgbd
</p>
<p>Implementação : Antonio Nascimento - Graduando em Ciencia da Computacao</p>
<p>Implementação/Co-orientenção : Armando Soares Sousa - Mestrando em Ciencia da Computacao</p>
<p>Orientador: Fernando Fonseca</p>
<center>
<h1>Protótipo 4 - SDMM</h1>
<%
//Sdmm configServlet = new Sdmm();
if(request.getParameter("cadastro")!= null && request.getParameter("cadastro").equals("ok")){
out.println("<center><p><font color=\"blue\"><b>Objeto inserido com Sucesso!</b></font></p></center>");
}
%>
<table border="1">
<tr>
<td><a href="PageInsertVideo.jsp">Inserir Video</a></td>
<td><a href="PageSearchVideo.jsp">Consultar Video</a></td>
</tr>
</table>
</center>
</body>
</html>
+155
Ver Arquivo
@@ -0,0 +1,155 @@
<!--
Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="br.ufpe.cin.amadeus.amadeus_sdmm.dao.*" %>
<%@ page import="java.io.File" %>
<%@ page import="java.io.RandomAccessFile" %>
<%@ page import="java.sql.Date" %>
<%@ page import="org.apache.commons.fileupload.DiskFileUpload"%>
<%@ page import="org.apache.commons.fileupload.FileItem"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="br.ufpe.cin.amadeus.amadeus_sdmm.general.*"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Inserção de Video</title>
</head>
<body>
<%
try{
String description="";
String name="";
String author="";
String tags="";
char license='1';
String path="";
String videopath="";
String thumbnail="";
/*Sdmm.tempDirectory - diretorio temporario que recebe os objetos uploaded*/
/*pode levantar uma excecao no random*/
int randomic = 1 + (int)(Math.random()*1000);
String fileTemp = "arqAux"+ String.valueOf(randomic)+".wmv";
/*pode levantar uma excecao no file*/
File fNew = new File(Sdmm.tempDirectory, fileTemp);
DiskFileUpload fu = new DiskFileUpload();
// If file size exceeds, a FileUploadException will be thrown
fu.setSizeMax(100000000);
/*pode levantar uma excecao no parseRequest*/
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
while(itr.hasNext()) {
FileItem fi = (FileItem)itr.next();
//Check if not form field so as to only handle the file inputs
//else condition handles the submit button input
if(!fi.isFormField()) {
String tempDirectoryVideos = Sdmm.tempDirectoryVideos; //diretório onde ficam os arquivos uploaded no momento da inserção.
/*Pode levantar uma excecao no file*/
File fAuxNew = new File(tempDirectoryVideos, fi.getName());
fNew = fAuxNew;
fi.write(fNew);
}
else {
if (fi.getFieldName().equals("description")) {
description = fi.getString();
}
if (fi.getFieldName().equals("name")){
name = fi.getString();
}
if (fi.getFieldName().equals("author")){
author = fi.getString();
}
if (fi.getFieldName().equals("tags")){
tags = fi.getString();
}
if (fi.getFieldName().equals("license")){
license = fi.getString().charAt(0);
}
if (fi.getFieldName().equals("video")){
path = fi.getString();
}
}
}
videopath = fNew.getAbsolutePath();
if (Sdmm.soType.equals("windows")){
videopath = videopath.replace("\\","\\\\");
}else{
videopath = videopath.replace("/","\\\\");
}
//Get Next ID
VideoDAO videoDAO = new VideoDAO();
//int id = videoDAO.getMaxId()+1;
int id = videoDAO.getMaxId();
//Get Video Properties
long length = fNew.length();
long datemodification = fNew.lastModified();
int width = 0;
int height = 0;
int bitrate = 0;
double framerate = 0.0;
String duration = "";
String standard = "";
//------------------------------------
//Extension - avi,mpeg,ogg...
String temp = videopath.replace(".","-");
String[] temp2 = temp.split("-");
String extension = temp2[temp2.length-1];
//DATE
Date dateinsertion = new Date(new java.util.Date().getTime());
//TODO: Thumbnail - capturar o primeiro frame do video
//String thumbnail = "";
//Creating Video Object
Video video = new Video(id,description,name,author,tags,videopath,datemodification,license,
width,height,thumbnail,length,dateinsertion,extension,bitrate,
framerate,duration,standard);
videoDAO.insertVideo(video);
out.println(video.getVideo()+ " Cadastrado com Sucesso!!!!");
response.sendRedirect("Prototipo.jsp?cadastro=ok");
}
catch(Exception e){
out.println("<center>Excecao no upload/inserção do arquivo: "+e.getMessage()+"</center>");
e.printStackTrace();
}
%>
</body>
</html>
@@ -0,0 +1,55 @@
<!--
Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Inserção de Video</title>
</head>
<body>
<center><h1>Inserir Video</h1></center>
<center>
<form action="InsertVideo.jsp" method="post" enctype="multipart/form-data">
<p>Nome: <input type="text" name="name" size="50"></p>
<p>Autor: <input type="text" name="author" size="50"></p>
<p>Descricao: <br/><textarea name="description" cols="50" rows="5">descricao do video</textarea></p>
<p>Tags: <br/><textarea name="tags" cols="50" rows="5">tags da imagem separados por virgula</textarea></p>
<p> Direitos autorais:
<select name="license" size="1">
<option value="1">Publico</option>
<option value="0">Privado</option>
</select>
</p>
<p>Caminho: <input id="video" type="file" name="video" size="50"></p>
<input type="submit" name="buttonsubmit" value="Importar">
</form>
</center>
</body>
</html>
@@ -0,0 +1,326 @@
<!--
Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="br.ufpe.cin.amadeus.amadeus_sdmm.dao.*" %>
<%@ page import="java.util.Vector" %>
<%@ page import="br.ufpe.cin.amadeus.amadeus_sdmm.general.*" %>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Consulta de Vídeos</title>
<!--<script src="javascript/mootools.v1.11.js">-->
<script language="javascript">
function submitForm(searchType){
document.getElementById("searchType").value = searchType;
document.getElementById("form").submit();
}
function showAdvanced(){
if(document.getElementById("teste").style.display == "none"){
document.getElementById("teste").style.display = "block";
}else{
document.getElementById("teste").style.display = "none";
}
}
function getPage(number,searchType){
document.getElementById("page").value = number;
submitForm(searchType);
}
function selectAll(){
var checkArray = document.getElementsByTagName("input");
for(var i=0 ; i < checkArray.length;i++){
if(checkArray[i].type == "checkbox"){
checkArray[i].checked = true;
}
}
}
function deleteVideo(id,searchType){
if(confirm("Você deseja excluir este vídeo?")){
document.getElementById("form").action = "./deleteVideo.jsp";
document.getElementById("deleteList").value = id;
submitForm("");
}
}
function deleteAll(searchType){
var idList = "";
if(confirm("Você deseja excluir os vídeos selecionados?")){
document.getElementById("form").action = "./deleteVideo.jsp";
var checkArray = document.getElementsByTagName("input");
for(var i=0 ; i < checkArray.length;i++){
if(checkArray[i].type == "checkbox" && checkArray[i].checked == true){
if(i == checkArray.length-1 || checkArray.length == 1){
var temp = checkArray[i].id.replace("delete","");
idList = idList + temp;
}else{
var temp = checkArray[i].id.replace("delete","");
idList = idList + temp + "-";
}
}
}
document.getElementById("deleteList").value = idList;
submitForm("");
}
}
</script>
</head>
<body>
<div>
<center>
<h1>Consulta de Vídeos</h1>
<%
if(request.getParameter("edit")!= null && request.getParameter("edit").equals("ok")){
out.println("<center><p><font color=\"blue\"><b>Informações salvas com Sucesso!</b></font></p></center>");
}
%>
<form action="./PageSearchVideo.jsp" method="post" id="form" name="form">
<input type="hidden" name="searchType" id="searchType" value="">
<input type="hidden" name="page" id="page" value="1">
<input type="hidden" name="deleteList" id="deleteList" value="">
<table border="0">
<tr>
<td>
<p>
<%
if(request.getParameter("kind") != null){
String base = "author;Autor#name;Nome#description;Descrição#tags;Tags";
String[] list = base.split("#");
for(int i=0; i<list.length; i++){
String[] temp = list[i].split(";");
if(request.getParameter("kind").equals(temp[0])){
out.println("<input type=\"radio\" id=\"kind\" name=\"kind\" value=\""+temp[0]+"\" checked>"+temp[1]);
}else{
out.println("<input type=\"radio\" id=\"kind\" name=\"kind\" value=\""+temp[0]+"\">"+temp[1]);
}
}
}else{
out.println("<input value=\"author\" name=\"kind\" checked=\"checked\" type=\"radio\">Autor" +
"<input value=\"name\" name=\"kind\" type=\"radio\">Nome <input value=\"description\" name=\"kind\" type=\"radio\">Descrição" +
"<input value=\"tags\" name=\"kind\" type=\"radio\">Tags");
}
%>
</p>
</td>
</tr>
</table>
<br></br>
<%
if(request.getParameter("search") != null){
out.println("<input type=\"text\" id=\"search\" name=\"search\" value=\""
+request.getParameter("search")+"\" maxlength=\"100\" size=\"40\">");
}else{
out.println("<input type=\"text\" id=\"search\" name=\"search\" value=\"\" maxlength=\"100\" size=\"40\">");
}
%>
<input class="form" type="button" value="Consultar" name="consultar" onclick="submitForm('generic');">
<div><a href="javascript:showAdvanced();"><h3><b>Busca Avançada</b></h3></a></div>
</center>
</div>
<center><div id="teste" style="display: none">
<p>
<b>Formato: </b>
<select id="format" name="format">
<%
if(request.getParameter("format") != null){
String base = "avi;AVI#mp1;MPEG-1#mp2;MPEG-2#mp4;MPEG-4#ogg;OGG#rm;Real Video#wmv;WMV";
String[] list = base.split("#");
for(int i=0; i<list.length; i++){
String[] temp = list[i].split(";");
if(request.getParameter("format").equals(temp[0])){
out.println("<option value=\""+temp[0]+"\" selected>"+temp[1]+"</option>");
}else{
out.println("<option value=\""+temp[0]+"\">"+temp[1]+"</option>");
}
}
}else{
out.println("<option value=\"avi\" selected>AVI</option><option value=\"mp1\">MPEG-1</option>" +
"<option value=\"mp2\">MPEG-2</option><option value=\"mp4\">MPEG-4</option>" +
"<option value=\"ogg\">OGG</option><option value=\"rm\">Real Video</option><option value=\"wmv\">WMV</option>");
}
%>
</select>&nbsp;&nbsp;<input type="button" name="format" value="Consultar" onclick="javascript:submitForm('format');">
</p>
<p>
<b>Licença: </b>
<select id="license" name="license">
<%
if(request.getParameter("license") != null){
if(request.getParameter("license").equals("1")){
out.println("<option value=\"1\" selected>Público</option><option value=\"0\">Privado</option>");
}else{
out.println("<option value=\"1\">Público</option><option value=\"0\" selected>Privado</option>");
}
}else{
out.println("<option value=\"1\" selected>Público</option><option value=\"0\">Privado</option>");
}
%>
</select>&nbsp;&nbsp;<input type="button" name="format" value="Consultar" onclick="javascript:submitForm('license');">
</p>
<p>
<b>Resolução: </b>
Largura:
<%
if(request.getParameter("width") != null){
out.println("<input type=\"text\" size=\"4\" name=\"width\" id=\"width\" value=\""+request.getParameter("width")
+"\">");
}else{
out.println("<input type=\"text\" size=\"4\" name=\"width\" id=\"width\" value=\"\">");
}
%>
X
Altura:
<%
if(request.getParameter("height") != null){
out.println("<input type=\"text\" size=\"4\" name=\"height\" id=\"height\" value=\""+request.getParameter("height")
+"\">");
}else{
out.println("<input type=\"text\" size=\"4\" name=\"height\" id=\"height\" value=\"\">");
}
%>
pixels
<input type="button" name="resolution" value="Consultar" onclick="javascript:submitForm('resolution');">
</p>
<p><b>Período de Inserção: </b></p>
<%
if(request.getParameter("dateinit") != null && request.getParameter("dateend") != null){
out.println("<p>Data Início: <input type=\"text\" size=\"10\" name=\"dateinit\" id=\"dateinit\" value=\""+
request.getParameter("dateinit")+"\">" + " (aaaa/mm/dd)</p><p>Data Final: <input type=\"text\" " +
"size=\"10\" name=\"dateend\" id=\"dateend\" value=\""+request.getParameter("dateend")+"\"> (aaaa/mm/dd)</p");
}else{
out.println("<p>Data Início: <input type=\"text\" size=\"10\" name=\"dateinit\" id=\"dateinit\" value=\"\"> " +
"(aaaa/mm/dd)</p><p>Data Final: <input type=\"text\" size=\"10\" name=\"dateend\" id=\"dateend\" value=\"\"> " +
"(aaaa/mm/dd)</p");
}
%>
<input type="button" name="period" value="Consultar" onclick="javascript:submitForm('period');">
</div></center>
<!-- </form>-->
<%
if(request.getParameter("searchType") != null){
int pageNumber = Integer.parseInt(request.getParameter("page"));
String searchType = request.getParameter("searchType");
int begin = pageNumber*10 - 9;
int end = pageNumber*10;
VideoDAO videodao = new VideoDAO();
Vector result = null;
double temp = 0.0;
if(searchType.equals("generic")){
String kind = request.getParameter("kind");
String value = request.getParameter("search");
result = videodao.search(kind,value,begin);
temp = videodao.getAmount(kind,value)/10.0 + 0.9;
}else if(searchType.equals("format")){
String value = request.getParameter("format");
String kind = "extension";
result = videodao.search(kind,value,begin);
temp = videodao.getAmount(kind,value)/10.0 + 0.9;
}else if(searchType.equals("license")){
String value = request.getParameter("license");
String kind = "license";
result = videodao.search(kind,value,begin);
temp = videodao.getAmount(kind,value)/10.0 + 0.9;
}else if(searchType.equals("period")){
String value1 = request.getParameter("dateinit").replace("/","-");
String value2 = request.getParameter("dateend").replace("/","-");
result = videodao.searchAdvanced(searchType,value1,value2,begin);
temp = videodao.getAmountAdvanced(searchType,value1,value2)/10.0 + 0.9;
}else if(searchType.equals("resolution")){
String value1 = request.getParameter("width");
String value2 = request.getParameter("height");
result = videodao.searchAdvanced(searchType,value1,value2,begin);
temp = videodao.getAmountAdvanced(searchType,value1,value2)/10.0 + 0.9;
}
if(result.size() > 0){
out.println("<center>");
out.println("<p><b>Navegação:</b> <select>");
int amount = (int) temp;
for(int i=1;i<=amount;i++){
if(i == pageNumber){
out.println("<option value=\"page"+i+"\" onclick=\"javascript:getPage("+i+",'"+searchType+"');\" selected> Página "+i+"</option>");
}else{
out.println("<option value=\"page"+i+"\" onclick=\"javascript:getPage("+i+",'"+searchType+"');\"> Página "+i+"</option>");
}
}
out.println("</select></p>");
out.println("<p><a href=\"javascript:selectAll();\">Selecionar todas</a> | " +
"<a href=\"javascript:deleteAll();\">Excluir Selecionadas</p>");
out.println("<div><table>");
for(int i=0; i<result.size();i++){
String color = "#FFFFFF";
if(i % 2 == 0){
color = "#FFFFCC";
}
Video video = (Video) result.get(i);
//im.loadThumbnail(video.getId());
String publicDirectoryVideos = Sdmm.publicDirectoryVideos;
out.println("<tr bgcolor="+color+">");
out.println("<td><input type=\"checkbox\" id=\"delete"+video.getId()+
"\" name=\"delete"+video.getId()+"\"></td>");
out.println("<td><a href=\"VideoViewer.jsp?id="+video.getId()+"\"><img border=\"0\" src='"+publicDirectoryVideos +
"thumbnail.jpg'></td>");
out.println("<td>");
out.println("<p><b>Nome: </b>"+video.getName()+"</p>");
out.println("<p><b>Descrição: </b>"+video.getDescription()+"</p>");
out.println("<p><b>Autor: </b>"+video.getAuthor()+"</p>");
out.println("<p><b>Tags: </b>"+video.getTags()+"</p>");
out.println("<p><b>Data de Inserção </b>"+video.getDateinsertion()+"</p>");
out.println("</td>");
out.println("<td><a href=\"EditVideo.jsp?id="+video.getId()+"\"><img border=\"0\" src=\"edit2.png\"></a>&nbsp;&nbsp;" +
"<a href=\"#\" onclick=\"deleteVideo("+video.getId()+",'"+searchType+"');\"><img border=\"0\" src=\"trash2.png\"></a></td>");
out.println("</tr>");
}
out.println("</table></div>");
out.println("<div><a href=\"javascript:selectAll();\">Selecionar todas</a> | " +
"<a href=\"javascript:deleteAll('"+searchType+"');\">Excluir Selecionadas</div>");
out.println("</center>");
}else{
out.println("<center><p><font color=\"red\"><b>Não foi encontrado nenhum vídeo!</b></font></p></center>");
}
}
%>
</body>
</html>
@@ -0,0 +1,67 @@
<!--
Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="br.ufpe.cin.amadeus.amadeus_sdmm.dao.*" %>
<%@ page import="br.ufpe.cin.amadeus.amadeus_sdmm.general.*"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Visualizador de Vídeos</title>
</head>
<body>
<center><h1>Visualizador de Vídeos</h1></center>
<%
int id = Integer.parseInt(request.getParameter("id"));
VideoDAO videoDAO = new VideoDAO();
Video video = videoDAO.get(id);
videoDAO.loadVideo(video,video.getExtension());
out.println("<center>");
out.println("<div><b>Nome: </b>"+video.getName()+"</div>");
out.println("<div><b>Autor: </b>"+video.getAuthor()+"</div>");
out.println("<div><b>Descrição: </b>"+video.getDescription()+"</div>");
out.println("<div><b>Tags: </b>"+video.getTags()+"</div>");
if(video.getLicense() == '1'){
out.println("<div><b>Direitos autorais: </b> Público</div>");
}else{
out.println("<div><b>Direitos autorais: </b> Privado</div>");
}
out.println("<div><b>Resolução: </b>"+video.getWidth()+" X "+video.getHeight()+" pixels</div>");
out.println("<div><b>Tamanho(KB): </b>"+(video.getLength()/1024)+" KB</div>");
out.println("<div><b>Data de Inserção: </b>"+video.getDateinsertion()+"</div>");
out.println("<br/><br/>");
String publicDirectoryVideos = Sdmm.publicDirectoryVideos;
//out.println("<img src=\"http://localhost/images/" +"image"+id+".jpg\">");
//out.println("<embed src=\"http://localhost:8081/prototipo4/videos/video"+video.getId()+"."+video.getExtension()+"\" width=\"200\" height=\"200\" autoplay=\"true\" loop=\"true\" controls=\"true\"></embed>");
out.println("<embed src='"+publicDirectoryVideos+"video"+video.getId()+"."+video.getExtension()+"' width='200' height='200' autoplay='true' loop='true' controls='true'></embed>");
out.println("</center>");
%>
</body>
</html>
+34
Ver Arquivo
@@ -0,0 +1,34 @@
<!--
Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<logic:present name="org.apache.struts.action.MESSAGE" scope="application">
<logic:redirect action="system.do?method=showViewWelcome"/>
<%--
Redirect default requests to Welcome global ActionForward.
By using a redirect, the user-agent will change address to match the path of our Welcome ActionForward.
--%>
</logic:present>
<html>
<head>
<title>Error</title></head>
<body>
<font color="red">
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
</font>
</body>
</html>
+149
Ver Arquivo
@@ -0,0 +1,149 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo � parte do programa Amadeus Sistema de Gest�o de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS � um software livre; voc� pode redistribui-lo e/ou modifica-lo dentro dos termos da Licen�a P�blica Geral GNU como
* publicada pela Funda��o do Software Livre (FSF); na vers�o 2 da Licen�a.
*
* Este programa � distribu�do na esperan�a que possa ser �til, mas SEM NENHUMA GARANTIA; sem uma garantia impl�cita de ADEQUA��O a qualquer MERCADO ou APLICA��O EM PARTICULAR. Veja a Licen�a P�blica Geral GNU para maiores detalhes.
*
* Voc� deve ter recebido uma c�pia da Licen�a P�blica Geral GNU, sob o t�tulo "LICENCA.txt", junto com este programa, se n�o, escreva para a Funda��o do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
var keyUserNotLogged = "<ajklsdjfiei78324yhre8yds979873w78jklsdkfjsdlkfjlksdfjklksdflk9usdf98723uoudsfjk348987>";
var keyAccessDenied = "<iseocdsfc83f93rhnfv983nnds838hfoihos83hjod9uhwjjhvf83wnhfv983nhfg98h398udfhhdia82jsd2>";
var keyError = "ajklsdjfiei7832s979873w789usdf98723uoudsfjk3489877838947234987239478hfshjjsfbhw78dsysd87y4798ufdhjg98y789";
var urlUserNotLogged = "system.do?method=showViewWelcome";
var urlAccessDenied = "system.do?method=showViewAccessDenied";
function execScript(codigoHTMLcomScript) {
var scriptObj = document.createElement('script');
tmpScriptCode = codigoHTMLcomScript.split('<script type="text/javascript">');
scriptCode = tmpScriptCode[1].split('</script>');
scriptObj.setAttribute('language', 'javascript');
scriptObj.text = scriptCode[0];
document.body.appendChild(scriptObj);
}
function countOnlineUser(){
UtilDWR.getInclude('/user.do?method=countOnlineUser',
function(data) {
dwr.util.setValue("countOnlineUser",data);
}
);
setTimeout("countOnlineUser();",30000);
}
function userStatus(accessInfoId) {
UtilDWR.getInclude('/user.do?method=userStatus&accessInfoId='+accessInfoId,
function(data) {
if(data == 1){
$("#userStatus"+accessInfoId).removeClass("offlineUser");
$("#userStatus"+accessInfoId).addClass("onlineUser");
$("#userStatus"+accessInfoId).attr("title","Online");
$("#userStatus"+accessInfoId).text("(Online)");
} else if(data == 0) {
$("#userStatus"+accessInfoId).removeClass("onlineUser");
$("#userStatus"+accessInfoId).addClass("offlineUser");
$("#userStatus"+accessInfoId).attr("title","Offline");
$("#userStatus"+accessInfoId).html("(Offline)");
}
}
);
setTimeout("userStatus("+accessInfoId+");",30000);
}
function minusPlus(id, divId){
var valueLink = $(id).attr("class");
$(divId).toggle("clip");
if (valueLink.indexOf('imgPlus') != -1) {
$(id).removeClass("imgPlus");
$(id).addClass("imgMinus");
} else {
$(id).removeClass("imgMinus");
$(id).addClass("imgPlus");
};
}
function success(msg) {
$("#infoMessage").html(msg);
$("#infoMessage").toggle("drop");
window.setTimeout(function() {
$("#infoMessage").toggle("drop");
}, 4000);
}
function ValidarCPF(Objcpf){
var cpf = Objcpf.value;
exp = /\.|\-/g
cpf = cpf.toString().replace( exp, "" );
var digitoDigitado = eval(cpf.charAt(9)+cpf.charAt(10));
var soma1=0, soma2=0;
var vlr =11;
for(i=0;i<9;i++){
soma1+=eval(cpf.charAt(i)*(vlr-1));
soma2+=eval(cpf.charAt(i)*vlr);
vlr--;
}
soma1 = (((soma1*10)%11)==10 ? 0:((soma1*10)%11));
soma2=(((soma2+(2*soma1))*10)%11);
var digitoGerado=(soma1*10)+soma2;
if(digitoGerado!=digitoDigitado)
alert('CPF Invalido!');
}
function sendMail(){
var to = dwr.util.getValue("to");
var subject = dwr.util.getValue("subject");
var message = tinyMCE.get('message').getContent();
var url = "user.do?method=sendMailInManagerUsers&"+"to="+to+"&subject="+subject+"&message='"+message+"'";
alert(url);
window.open(url, "_self");
}
function verificaEspaco(login){
var a = login;
var arr = a.split("");
var i;
for(i=0;i<arr.length;i++){
if(arr[i] == " "){
alert("Não colocar espaço no login");
break;
}
}
}
function verifyEmail(personId, email) {
if(email != ''){
UtilDWR.getInclude('/user.do?method=verifyEmail&personId='+personId+'&email='+email,
function(data) {
var attrClass = $("#emailResponse").attr("class");
if(data == 'true'){
if (attrClass.indexOf("emailResponseNotOK") != -1) {
$("#emailResponse").removeClass("emailResponseNotOK");
$("#emailResponse").addClass("emailResponseOK");
}
$("#emailResponse").html("Email dispon�vel!");
} else {
if (attrClass.indexOf("emailResponseOK") != -1) {
$("#emailResponse").removeClass("emailResponseOK");
$("#emailResponse").addClass("emailResponseNotOK");
}
$("#emailResponse").html("Email n�o dispon�vel!");
}
}
);
}
}
+21
Ver Arquivo
@@ -0,0 +1,21 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
*
* Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
*
* Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
//Variáveis globais
var _loadTimer = setInterval(__loadAnima,18);
var _loadPos = 0;
var _loadDir = 2;
var _loadLen = 0;
//Anima a barra de progresso
+7
Ver Arquivo
@@ -0,0 +1,7 @@
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2009 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.2.2 (03/09/2009 22:39:06)
*/
(function(a){var c=(a.browser.msie?"paste":"input")+".mask";var b=(window.orientation!=undefined);a.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"}};a.fn.extend({caret:function(e,f){if(this.length==0){return}if(typeof e=="number"){f=(typeof f=="number")?f:e;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(e,f)}else{if(this.createTextRange){var g=this.createTextRange();g.collapse(true);g.moveEnd("character",f);g.moveStart("character",e);g.select()}}})}else{if(this[0].setSelectionRange){e=this[0].selectionStart;f=this[0].selectionEnd}else{if(document.selection&&document.selection.createRange){var d=document.selection.createRange();e=0-d.duplicate().moveStart("character",-100000);f=e+d.text.length}}return{begin:e,end:f}}},unmask:function(){return this.trigger("unmask")},mask:function(j,d){if(!j&&this.length>0){var f=a(this[0]);var g=f.data("tests");return a.map(f.data("buffer"),function(l,m){return g[m]?l:null}).join("")}d=a.extend({placeholder:"_",completed:null},d);var k=a.mask.definitions;var g=[];var e=j.length;var i=null;var h=j.length;a.each(j.split(""),function(m,l){if(l=="?"){h--;e=m}else{if(k[l]){g.push(new RegExp(k[l]));if(i==null){i=g.length-1}}else{g.push(null)}}});return this.each(function(){var r=a(this);var m=a.map(j.split(""),function(x,y){if(x!="?"){return k[x]?d.placeholder:x}});var n=false;var q=r.val();r.data("buffer",m).data("tests",g);function v(x){while(++x<=h&&!g[x]){}return x}function t(x){while(!g[x]&&--x>=0){}for(var y=x;y<h;y++){if(g[y]){m[y]=d.placeholder;var z=v(y);if(z<h&&g[y].test(m[z])){m[y]=m[z]}else{break}}}s();r.caret(Math.max(i,x))}function u(y){for(var A=y,z=d.placeholder;A<h;A++){if(g[A]){var B=v(A);var x=m[A];m[A]=z;if(B<h&&g[B].test(x)){z=x}else{break}}}}function l(y){var x=a(this).caret();var z=y.keyCode;n=(z<16||(z>16&&z<32)||(z>32&&z<41));if((x.begin-x.end)!=0&&(!n||z==8||z==46)){w(x.begin,x.end)}if(z==8||z==46||(b&&z==127)){t(x.begin+(z==46?0:-1));return false}else{if(z==27){r.val(q);r.caret(0,p());return false}}}function o(B){if(n){n=false;return(B.keyCode==8)?false:null}B=B||window.event;var C=B.charCode||B.keyCode||B.which;var z=a(this).caret();if(B.ctrlKey||B.altKey||B.metaKey){return true}else{if((C>=32&&C<=125)||C>186){var x=v(z.begin-1);if(x<h){var A=String.fromCharCode(C);if(g[x].test(A)){u(x);m[x]=A;s();var y=v(x);a(this).caret(y);if(d.completed&&y==h){d.completed.call(r)}}}}}return false}function w(x,y){for(var z=x;z<y&&z<h;z++){if(g[z]){m[z]=d.placeholder}}}function s(){return r.val(m.join("")).val()}function p(y){var z=r.val();var C=-1;for(var B=0,x=0;B<h;B++){if(g[B]){m[B]=d.placeholder;while(x++<z.length){var A=z.charAt(x-1);if(g[B].test(A)){m[B]=A;C=B;break}}if(x>z.length){break}}else{if(m[B]==z[x]&&B!=e){x++;C=B}}}if(!y&&C+1<e){r.val("");w(0,h)}else{if(y||C+1>=e){s();if(!y){r.val(r.val().substring(0,C+1))}}}return(e?B:i)}if(!r.attr("readonly")){r.one("unmask",function(){r.unbind(".mask").removeData("buffer").removeData("tests")}).bind("focus.mask",function(){q=r.val();var x=p();s();setTimeout(function(){if(x==j.length){r.caret(0,x)}else{r.caret(x)}},0)}).bind("blur.mask",function(){p();if(r.val()!=q){r.change()}}).bind("keydown.mask",l).bind("keypress.mask",o).bind(c,function(){setTimeout(function(){r.caret(p(true))},0)})}p()})}})})(jQuery);
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
Diferenças do arquivo suprimidas por serem muito extensas Carregar Diff
+29
Ver Arquivo
@@ -0,0 +1,29 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo parte do programa Amadeus Sistema de Gesto de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS um software livre; voc pode redistribui-lo e/ou modifica-lo dentro dos termos da Licena Pblica Geral GNU como
* publicada pela Fundao do Software Livre (FSF); na verso 2 da Licena.
*
* Este programa distribudo na esperana que possa ser til, mas SEM NENHUMA GARANTIA; sem uma garantia implcita de ADEQUAO a qualquer MERCADO ou APLICAO EM PARTICULAR. Veja a Licena Pblica Geral GNU para maiores detalhes.
*
* Voc deve ter recebido uma cpia da Licena Pblica Geral GNU, sob o ttulo "LICENCA.txt", junto com este programa, se no, escreva para a Fundao do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
function deleteCourse(courseId) {
UtilDWR.getInclude('/course.do?method=viewDeleteConfirmation&courseId='+courseId,
function(data) {
dwr.util.setValue('pContent', data, { escapeHtml:false });
}
);
}
function replicateCourse(courseId) {
UtilDWR.getInclude('/course.do?method=viewReplicateCourse&courseId='+courseId,
function(data) {
dwr.util.setValue('pContent', data, { escapeHtml:false });
}
);
}
+234
Ver Arquivo
@@ -0,0 +1,234 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
*
* Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
*
* Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
function ajaxLoadingConfig(div, innerHTML) {
document.getElementById(div).innerHTML = innerHTML;
document.getElementById(div).style.textAlign = "center";
document.getElementById(div).style.color = "#2f7445";
document.getElementById(div).style.fontWeight = "bolder";
}
function saveModule(idModule, positionModule, ajaxLoading) {
ajaxLoadingConfig("dynamic"+positionModule, ajaxLoading);
var name = trim(dwr.util.getValue("name"));
var desc = trim(dwr.util.getValue("description"));
var visible = "false";
if (dwr.util.getValue("visible") == "on"){
visible = "true";
}
UtilDWR.getInclude('/saveModule.do?method=saveModule&idModule='+idModule+'&nameModule='+name+'&descriptionModule='+desc+'&visibleModule='+visible,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else {
dwr.util.setValue('module'+positionModule, data, { escapeHtml:false });
if (data.indexOf(keyError) == -1) {
showEditName(idModule);
}
}
}
);
}
function deleteModule(idModule, positionModule, ajaxLoading) {
ajaxLoadingConfig("dynamic"+positionModule, ajaxLoading);
UtilDWR.getInclude('/module.do?method=deleteModule&idModule='+idModule,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else {
dwr.util.setValue('form', data, { escapeHtml:false });
}
}
);
}
function showNewModule(idCourse, positionModule, ajaxLoading) {
ajaxLoadingConfig("loading"+positionModule, ajaxLoading);
UtilDWR.getInclude('/module.do?method=newModule&idCourse='+idCourse,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else {
hideEditName(true,positionModule);
dwr.util.setValue('module'+positionModule, data, { escapeHtml:false });
execScript(data);
}
}
);
}
function editModule(idModule, positionModule) {
UtilDWR.getInclude('/module.do?method=showViewEditModule&idModule='+idModule,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else {
hideEditName(false,positionModule);
dwr.util.setValue('module'+positionModule, data, { escapeHtml:false });
execScript(data);
}
}
);
}
function execScript(codigoHTMLcomScript) {
var scriptObj = document.createElement('script');
tmpScriptCode = codigoHTMLcomScript.split('<script type="text/javascript">');
scriptCode = tmpScriptCode[1].split('</script>');
scriptObj.setAttribute('language', 'javascript');
scriptObj.text = scriptCode[0];
document.body.appendChild(scriptObj);
}
/*
Trata a mudança de ordem dos módulos
*/
function changeOrder(idModule, positionModule, ajaxLoading){
ajaxLoadingConfig("dynamic"+positionModule, ajaxLoading);
var newValue = dwr.util.getValue('moduleNumber'+positionModule);
UtilDWR.getInclude('/module.do?method=changeOrderModule&idModule='+idModule+'&oldPosition='+positionModule+'&newPosition='+newValue,
function(data) {
dwr.util.setValue('form', data, { escapeHtml:false });
editModule(idModule, newValue);
}
);
}
/*
Trata quando clica na opção de cancelar um módulo
*/
function cancelModule(idModule,positionModule,ajaxLoading) {
ajaxLoadingConfig("dynamic"+positionModule, ajaxLoading);
UtilDWR.getInclude('/module.do?method=cancelModule&idModule='+idModule,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else {
dwr.util.setValue('module'+positionModule, data, { escapeHtml:false });
showEditName(idModule);
}
}
);
}
function hideEditName(isNewModule, positionModule){
var formAtual = dwr.util.getValue('form',{ escapeHtml:false });
var iIndex = 1;
var positionModule = 1;
while (iIndex != -1){
iIndex = formAtual.indexOf('editOption'+positionModule);
if (iIndex != -1){
dwr.util.setValue('editOption' + positionModule, trim('&nbsp;'),{ escapeHtml:false });
}
positionModule++;
}
hideCreateNewModule(isNewModule, positionModule);
}
function showEditName(idModule){
var formAtual = dwr.util.getValue('form', { escapeHtml:false });
var iIndex = 1;
var positionModule = 1;
while (iIndex != -1){
iIndex = formAtual.indexOf('editOption'+positionModule);
if (iIndex != -1){
var editLink = dwr.util.getValue('editLink' + positionModule, { escapeHtml:false });
dwr.util.setValue('editOption' + positionModule, editLink ,{ escapeHtml:false });
}
positionModule++;
}
UtilDWR.getInclude('/module.do?method=getIdCourseByIdModule&idModule='+idModule,
function(data) {
showCreateNewModule(trim(data) ,positionModule-1);
}
);
}
/*
Apaga a opção de criar novo módulo quando o modo esta em edição
*/
function hideCreateNewModule(isNewModule, positionModule){
if(!isNewModule) {
var form = dwr.util.getValue('form',{ escapeHtml:false });
var iIndex = 1;
var lastPositionModule;
while (iIndex != -1){
iIndex = form.indexOf('module'+positionModule);
if (iIndex == -1){
var start = form.lastIndexOf('<div');
//O if abaixo é por causa do IE.
if(start == -1) {
start = form.lastIndexOf('<DIV');
}
var newForm = form.substring(0, start-3);
dwr.util.setValue('form', newForm, { escapeHtml:false });
lastPositionModule = (positionModule-1);
}
positionModule++;
}
}
}
/*
Re-escreve a opção de criar novo módulo quando o modo sai da edição
*/
function showCreateNewModule(idCourse, lastPositionModule){
UtilDWR.getInclude('/module.do?method=showViewClickNewModule&idCourse='+idCourse+'&lastPositionModule='+lastPositionModule,
function(data) {
var form = dwr.util.getValue('form',{ escapeHtml:false });
dwr.util.setValue('form', form + data, { escapeHtml:false });
execScript(data);
}
);
}
function makeUrl(name,order,desc,vis,idModuleBD){
msg = 'name='+ name + '&order=' + order + '&description=' + desc + '&visible=' + vis + '&idModuleBD='+idModuleBD;
return msg;
}
function trim(str) {
if (typeof str != 'string') {
return str;
}
str = str.replace( /^\s+/g, '' );
return str.replace( /\s+$/g, '' );
}
function saveModulePressEnter(event,idModule, idModuleBD) {
if (event.keyCode == 13) {
saveModule(idModule,idModuleBD);
}
}
+37
Ver Arquivo
@@ -0,0 +1,37 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software LiveditMaterialRequestActivityre (FSF); na versão 2 da Licença.
*
* Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
*
* Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
function showInputloginOpenID() {
$("#dInputLoginOpenID").toggle("drop");
$("#remindPassword").toggle("drop");
window.setTimeout(function() {
$("#identifier").focus();
}, 1000);
}
function requestGoogleOpenID(url) {
window.open(url, "_self");
}
function requestAddNewGoogleOpenId(url) {
window.open(url, "_self");
}
function deleteGoogleOpenId(url) {
window.open(url, "_self");
}
function requestOpenID(url) {
window.open(url+dwr.util.getValue("identifier"), "_self");
}
+153
Ver Arquivo
@@ -0,0 +1,153 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
*
* Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
*
* Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
var msgCancel;
var msgApprove;
var lastRequest = null;
function ajaxLoadingConfig(div, innerHTML) {
document.getElementById(div).innerHTML = innerHTML;
document.getElementById(div).style.textAlign = "center";
document.getElementById(div).style.color = "#2f7445";
document.getElementById(div).style.fontWeight = "bolder";
}
function init(approve, cancel) {
msgCancel = cancel;
msgApprove = approve;
pinballEffect();
}
function showDetails(requestId) {
if (lastRequest != null)
hideDetails(lastRequest);
lastRequest = requestId;
document.getElementById('request'+requestId).className = "requestExpanded";
document.getElementById('reqInfo'+requestId).style.display = "BLOCK";
document.getElementById('reqBtns'+requestId).style.display = "BLOCK";
}
function hideDetails(requestId) {
document.getElementById('request'+requestId).className = "requestColapsed";
document.getElementById('reqInfo'+requestId).style.display = "NONE";
document.getElementById('reqJust'+requestId).style.display = "NONE";
document.getElementById('reqBtns'+requestId).style.display = "NONE";
document.getElementById('reqJustification'+requestId).value = '';
document.getElementById('reqBtnLeft'+requestId).blur();
document.getElementById('reqBtnLeft'+requestId).value = msgApprove;
document.getElementById('reqBtnLeft'+requestId).onclick = function() {approveRequest(requestId)};
document.getElementById('reqBtnRight'+requestId).onclick = function() {showJustBox(requestId)};
}
function showJustBox(requestId) {
document.getElementById('reqInfo'+requestId).style.display = "NONE";
document.getElementById('reqJust'+requestId).style.display = "BLOCK";
document.getElementById('reqJustification'+requestId).focus();
document.getElementById('reqBtnLeft'+requestId).value = msgCancel;
document.getElementById('reqBtnLeft'+requestId).onclick = function() {showDetails(requestId)};
document.getElementById('reqBtnRight'+requestId).onclick = function() {disaproveRequest(requestId)};
}
function approveRequest(requestId, innerHTML) {
var cb = {callback:function(data) {requestServerResponse(requestId, data);}};
UtilDWR.getInclude('/approveAssistanceRequest.do?parameter=Aprovar&userRequestId='+requestId,
function(data) {
dwr.util.setValue('request'+requestId, null, { escapeHtml:false });
document.getElementById('request'+requestId).className = "NONE";
lastRequest = null;
}
);
}
function disaproveRequest(requestId) {
var just = document.getElementById('reqJustification'+requestId).value;
var cb = {callback:function(data) {requestServerResponse(requestId, data);}};
if (just == "") {alert("Você deve escrever uma justificativa");
}else{
UtilDWR.getInclude('/disapproveAssistanceRequest.do?parameter=Reprovar&userRequestId='+requestId+'&justification='+just,
function(data) {
dwr.util.setValue('request'+requestId, null, { escapeHtml:false });
document.getElementById('request'+requestId).className = "NONE";
lastRequest = null;
}
);
}
}
function requestServerResponse(requestId, data) {
if (data != null) {
alert(data);
} else {
$('request'+requestId).style.display = 'none';
}
}
// ## PinBall Effect ## //
var lastElement = null;
var W3CDOM = (document.createElement && document.getElementsByTagName);
function pinballEffect() {
if (!W3CDOM) return;
var allElements = document.getElementsByTagName('div');
var originalBackgrounds=new Array();
for (var i=0; i<allElements.length; i++) {
if (allElements[i].className.indexOf('pinball-scoop') !=-1) {
pinballAddEvents(allElements[i]);
}
}
}
function mouseGoesOver() {
originalClassNameString = this.className;
this.className += " pinball-on";
this.style.cursor = "pointer";
//this.style.cursor = "hand";
}
function mouseGoesOut() {
this.className = originalClassNameString;
}
function mouseGoesClick() {
var allThisAreasElements = this.getElementsByTagName('*');
for (var j=0; j<allThisAreasElements.length; j++) {
if (allThisAreasElements[j].className.indexOf('pinball-sinkhole') != -1) {
if (lastElement != null)
pinballAddEvents(lastElement);
lastElement = this;
allThisAreasElements[j].onclick();
originalClassNameString = this.className;
pinballRemoveEvents(this);
}
}
}
function pinballAddEvents(element) {
element.onmouseover = mouseGoesOver;
element.onmouseout = mouseGoesOut;
element.onclick = mouseGoesClick;
}
function pinballRemoveEvents(element) {
element.onmouseover = function() {};
element.onmouseout = function() {};
element.onclick = function() {};
element.style.cursor = 'default';
}
+157
Ver Arquivo
@@ -0,0 +1,157 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
*
* Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
*
* Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
var msgCancel;
var msgApprove;
var lastRequest = null;
function ajaxLoadingConfig(div, innerHTML) {
document.getElementById(div).innerHTML = innerHTML;
document.getElementById(div).style.textAlign = "center";
document.getElementById(div).style.color = "#2f7445";
document.getElementById(div).style.fontWeight = "bolder";
}
function init(approve, cancel) {
msgCancel = cancel;
msgApprove = approve;
pinballEffect();
}
function showDetails(requestId) {
if (lastRequest != null)
hideDetails(lastRequest);
lastRequest = requestId;
document.getElementById('request'+requestId).className = "requestExpanded";
document.getElementById('reqInfo'+requestId).style.display = "BLOCK";
document.getElementById('reqBtns'+requestId).style.display = "BLOCK";
}
function hideDetails(requestId, innerHTML, msgSuccess) {
document.getElementById('request'+requestId).className = "requestColapsed";
document.getElementById('reqInfo'+requestId).style.display = "NONE";
document.getElementById('reqJust'+requestId).style.display = "NONE";
document.getElementById('reqBtns'+requestId).style.display = "NONE";
document.getElementById('reqJustification'+requestId).value = '';
document.getElementById('reqBtnLeft'+requestId).blur();
document.getElementById('reqBtnLeft'+requestId).value = msgApprove;
document.getElementById('reqBtnLeft'+requestId).onclick = function() {approveRequest(requestId, innerHTML, msgSuccess)};
document.getElementById('reqBtnRight'+requestId).onclick = function() {showJustBox(requestId, innerHTML, msgSuccess)};
}
function showJustBox(requestId, innerHTML, msgSuccess) {
document.getElementById('reqInfo'+requestId).style.display = "NONE";
document.getElementById('reqJust'+requestId).style.display = "BLOCK";
document.getElementById('reqJustification'+requestId).focus();
document.getElementById('reqBtnLeft'+requestId).value = msgCancel;
document.getElementById('reqBtnLeft'+requestId).onclick = function() {showDetails(requestId, innerHTML, msgSuccess)};
document.getElementById('reqBtnRight'+requestId).onclick = function() {disaproveRequest(requestId, innerHTML, msgSuccess)};
}
function approveRequest(requestId, innerHTML, msgSuccess) {
ajaxLoadingConfig("reqBtns"+requestId, innerHTML);
var cb = {callback:function(data) {requestServerResponse(requestId, data);}};
UtilDWR.getInclude('/approvedTeachingRequest.do?parameter=Aprovacao&userRequestId='+requestId,
function(data) {
dwr.util.setValue('request'+requestId, msgSuccess, { escapeHtml:false });
document.getElementById('request'+requestId).className = "NONE";
lastRequest = null;
}
);
}
function disaproveRequest(requestId, innerHTML, msgSuccess) {
var just = document.getElementById('reqJustification'+requestId).value;
var cb = {callback:function(data) {requestServerResponse(requestId, data);}};
if (just == "") {alert("Você deve escrever uma justificativa");
}else{
ajaxLoadingConfig("reqBtns"+requestId, innerHTML);
UtilDWR.getInclude('/disapprovedTeachingRequest.do?parameter=Reprovacao&userRequestId='+requestId+'&justification='+just,
function(data) {
dwr.util.setValue('request'+requestId, msgSuccess, { escapeHtml:false });
document.getElementById('request'+requestId).className = "NONE";
lastRequest = null;
}
);
}
}
function requestServerResponse(requestId, data) {
if (data != null) {
alert(data);
} else {
$('request'+requestId).style.display = 'none';
}
}
// ## PinBall Effect ## //
var lastElement = null;
var W3CDOM = (document.createElement && document.getElementsByTagName);
function pinballEffect() {
if (!W3CDOM) return;
var allElements = document.getElementsByTagName('div');
var originalBackgrounds=new Array();
for (var i=0; i<allElements.length; i++) {
if (allElements[i].className.indexOf('pinball-scoop') !=-1) {
pinballAddEvents(allElements[i]);
}
}
}
function mouseGoesOver() {
originalClassNameString = this.className;
this.className += " pinball-on";
this.style.cursor = "pointer";
//this.style.cursor = "hand";
}
function mouseGoesOut() {
this.className = originalClassNameString;
}
function mouseGoesClick() {
var allThisAreasElements = this.getElementsByTagName('*');
for (var j=0; j<allThisAreasElements.length; j++) {
if (allThisAreasElements[j].className.indexOf('pinball-sinkhole') != -1) {
if (lastElement != null)
pinballAddEvents(lastElement);
lastElement = this;
allThisAreasElements[j].onclick();
originalClassNameString = this.className;
pinballRemoveEvents(this);
}
}
}
function pinballAddEvents(element) {
element.onmouseover = mouseGoesOver;
element.onmouseout = mouseGoesOut;
element.onclick = mouseGoesClick;
}
function pinballRemoveEvents(element) {
element.onmouseover = function() {};
element.onmouseout = function() {};
element.onclick = function() {};
element.style.cursor = 'default';
}
+87
Ver Arquivo
@@ -0,0 +1,87 @@
/*
* Copyright 2008, 2009 UFPE - Universidade Federal de Pernambuco
*
* Este arquivo parte do programa Amadeus Sistema de Gesto de Aprendizagem, ou simplesmente Amadeus LMS
*
* O Amadeus LMS um software livre; voc pode redistribui-lo e/ou modifica-lo dentro dos termos da Licena Pblica Geral GNU como
* publicada pela Fundao do Software Livre (FSF); na verso 2 da Licena.
*
* Este programa distribudo na esperana que possa ser til, mas SEM NENHUMA GARANTIA; sem uma garantia implcita de ADEQUAO a qualquer MERCADO ou APLICAO EM PARTICULAR. Veja a Licena Pblica Geral GNU para maiores detalhes.
*
* Voc deve ter recebido uma cpia da Licena Pblica Geral GNU, sob o ttulo "LICENCA.txt", junto com este programa, se no, escreva para a Fundao do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
function saveWebSecuritySettings(){
var url = "/settingsActions.do?method=saveWebSecuritySettings&"
var autoSigning = dwr.util.getValue("autoSigning");
UtilDWR.getInclude(url+"autoSigning="+autoSigning ,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else if (data.indexOf(keyAccessDenied) != -1) {
window.open(urlAccessDenied, "_self");
} else {
execScript(data);
dwr.util.setValue("security", data, { escapeHtml:false });
}
});
}
function saveWebMailSenderSettings(){
var url = "/webSettingMailSender.do?method=saveWebMailSenderSettings&"+$("#formWebSettingMailSender").serialize();
UtilDWR.getInclude(url,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else if (data.indexOf(keyAccessDenied) != -1) {
window.open(urlAccessDenied, "_self");
} else {
execScript(data);
dwr.util.setValue("mailSender", data, { escapeHtml:false });
}
});
}
function saveSystemSettings(){
var url = "/webSettingMailSender.do?method=saveWebMailSenderSettings&"+$("#formWebSettingMailSender").serialize();
$("#imgMobile").show();
UtilDWR.getInclude(url,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else if (data.indexOf(keyAccessDenied) != -1) {
window.open(urlAccessDenied, "_self");
} else {
execScript(data);
dwr.util.setValue("mailSender", data, { escapeHtml:false });
}
$("#imgMobile").show();
});
}
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
function saveMobileSettings(){
var url = "/settingsActions.do?method=saveMobileSettings&"+$("#formMobileSetting").serialize();
$("#imgMobile").show();
UtilDWR.getInclude(url,
function(data) {
if (data.indexOf(keyUserNotLogged) != -1){
window.open(urlUserNotLogged, "_self");
} else if (data.indexOf(keyAccessDenied) != -1) {
window.open(urlAccessDenied, "_self");
} else {
execScript(data);
}
$("#imgMobile").hide();
});
}
+154
Ver Arquivo
@@ -0,0 +1,154 @@
tinyMCE.addI18n({en:{
common:{
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
apply:"Apply",
insert:"Insert",
update:"Update",
cancel:"Cancel",
close:"Close",
browse:"Browse",
class_name:"Class",
not_set:"-- Not set --",
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
invalid_data:"Error: Invalid values entered, these are marked in red.",
more_colors:"More colors"
},
contextmenu:{
align:"Alignment",
left:"Left",
center:"Center",
right:"Right",
full:"Full"
},
insertdatetime:{
date_fmt:"%Y-%m-%d",
time_fmt:"%H:%M:%S",
insertdate_desc:"Insert date",
inserttime_desc:"Insert time",
months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
},
print:{
print_desc:"Print"
},
preview:{
preview_desc:"Preview"
},
directionality:{
ltr_desc:"Direction left to right",
rtl_desc:"Direction right to left"
},
layer:{
insertlayer_desc:"Insert new layer",
forward_desc:"Move forward",
backward_desc:"Move backward",
absolute_desc:"Toggle absolute positioning",
content:"New layer..."
},
save:{
save_desc:"Save",
cancel_desc:"Cancel all changes"
},
nonbreaking:{
nonbreaking_desc:"Insert non-breaking space character"
},
iespell:{
iespell_desc:"Run spell checking",
download:"ieSpell not detected. Do you want to install it now?"
},
advhr:{
advhr_desc:"Horizontal rule"
},
emotions:{
emotions_desc:"Emotions"
},
searchreplace:{
search_desc:"Find",
replace_desc:"Find/Replace"
},
advimage:{
image_desc:"Insert/edit image"
},
advlink:{
link_desc:"Insert/edit link"
},
xhtmlxtras:{
cite_desc:"Citation",
abbr_desc:"Abbreviation",
acronym_desc:"Acronym",
del_desc:"Deletion",
ins_desc:"Insertion",
attribs_desc:"Insert/Edit Attributes"
},
style:{
desc:"Edit CSS Style"
},
paste:{
paste_text_desc:"Paste as Plain Text",
paste_word_desc:"Paste from Word",
selectall_desc:"Select All"
},
paste_dlg:{
text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
text_linebreaks:"Keep linebreaks",
word_title:"Use CTRL+V on your keyboard to paste the text into the window."
},
table:{
desc:"Inserts a new table",
row_before_desc:"Insert row before",
row_after_desc:"Insert row after",
delete_row_desc:"Delete row",
col_before_desc:"Insert column before",
col_after_desc:"Insert column after",
delete_col_desc:"Remove column",
split_cells_desc:"Split merged table cells",
merge_cells_desc:"Merge table cells",
row_desc:"Table row properties",
cell_desc:"Table cell properties",
props_desc:"Table properties",
paste_row_before_desc:"Paste table row before",
paste_row_after_desc:"Paste table row after",
cut_row_desc:"Cut table row",
copy_row_desc:"Copy table row",
del:"Delete table",
row:"Row",
col:"Column",
cell:"Cell"
},
autosave:{
unload_msg:"The changes you made will be lost if you navigate away from this page."
},
fullscreen:{
desc:"Toggle fullscreen mode"
},
media:{
desc:"Insert / edit embedded media",
edit:"Edit embedded media"
},
fullpage:{
desc:"Document properties"
},
template:{
desc:"Insert predefined template content"
},
visualchars:{
desc:"Visual control characters on/off."
},
spellchecker:{
desc:"Toggle spellchecker",
menu:"Spellchecker settings",
ignore_word:"Ignore word",
ignore_words:"Ignore all",
langs:"Languages",
wait:"Please wait...",
sug:"Suggestions",
no_sug:"No suggestions",
no_mpell:"No misspellings found."
},
pagebreak:{
desc:"Insert page break."
}}});
+504
Ver Arquivo
@@ -0,0 +1,504 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
+5
Ver Arquivo
@@ -0,0 +1,5 @@
input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
.panel_wrapper div.current {height:80px;}
#width {width:50px; vertical-align:middle;}
#width2 {width:50px; vertical-align:middle;}
#size {width:100px;}
+1
Ver Arquivo
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})();
@@ -0,0 +1,54 @@
/**
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
init : function(ed, url) {
// Register commands
ed.addCommand('mceAdvancedHr', function() {
ed.windowManager.open({
file : url + '/rule.htm',
width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
inline : 1
}, {
plugin_url : url
});
});
// Register buttons
ed.addButton('advhr', {
title : 'advhr.advhr_desc',
cmd : 'mceAdvancedHr'
});
ed.onNodeChange.add(function(ed, cm, n) {
cm.setActive('advhr', n.nodeName == 'HR');
});
ed.onClick.add(function(ed, e) {
e = e.target;
if (e.nodeName === 'HR')
ed.selection.select(e);
});
},
getInfo : function() {
return {
longname : 'Advanced HR',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
})();
+43
Ver Arquivo
@@ -0,0 +1,43 @@
var AdvHRDialog = {
init : function(ed) {
var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
w = dom.getAttrib(n, 'width');
f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
},
update : function() {
var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
h = '<hr';
if (f.size.value) {
h += ' size="' + f.size.value + '"';
st += ' height:' + f.size.value + 'px;';
}
if (f.width.value) {
h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"';
st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';';
}
if (f.noshade.checked) {
h += ' noshade="noshade"';
st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;';
}
if (ed.settings.inline_styles)
h += ' style="' + tinymce.trim(st) + '"';
h += ' />';
ed.execCommand("mceInsertContent", false, h);
tinyMCEPopup.close();
}
};
tinyMCEPopup.requireLangPack();
tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);
+5
Ver Arquivo
@@ -0,0 +1,5 @@
tinyMCE.addI18n('en.advhr_dlg',{
width:"Width",
size:"Height",
noshade:"No shadow"
});
+62
Ver Arquivo
@@ -0,0 +1,62 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{#advhr.advhr_desc}</title>
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/rule.js"></script>
<script type="text/javascript" src="../../utils/mctabs.js"></script>
<script type="text/javascript" src="../../utils/form_utils.js"></script>
<link href="css/advhr.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form onsubmit="AdvHRDialog.update();return false;" action="#">
<div class="tabs">
<ul>
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
</ul>
</div>
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td><label for="width">{#advhr_dlg.width}</label></td>
<td class="nowrap">
<input id="width" name="width" type="text" value="" class="mceFocus" />
<select name="width2" id="width2">
<option value="">px</option>
<option value="%">%</option>
</select>
</td>
</tr>
<tr>
<td><label for="size">{#advhr_dlg.size}</label></td>
<td><select id="size" name="size">
<option value="">Normal</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select></td>
</tr>
<tr>
<td><label for="noshade">{#advhr_dlg.noshade}</label></td>
<td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
</tr>
</table>
</div>
</div>
<div class="mceActionPanel">
<div style="float: left">
<input type="submit" id="insert" name="insert" value="{#insert}" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
</body>
</html>
+13
Ver Arquivo
@@ -0,0 +1,13 @@
#src_list, #over_list, #out_list {width:280px;}
.mceActionPanel {margin-top:7px;}
.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
.checkbox {border:0;}
.panel_wrapper div.current {height:305px;}
#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;}
#align, #classlist {width:150px;}
#width, #height {vertical-align:middle; width:50px; text-align:center;}
#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
#class_list {width:180px;}
input {width: 280px;}
#constrain, #onmousemovecheck {width:auto;}
#id, #dir, #lang, #usemap, #longdesc {width:200px;}
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})();
@@ -0,0 +1,47 @@
/**
* $Id: editor_plugin_src.js 677 2008-03-07 13:52:41Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
init : function(ed, url) {
// Register commands
ed.addCommand('mceAdvImage', function() {
// Internal image object like a flash placeholder
if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
return;
ed.windowManager.open({
file : url + '/image.htm',
width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
inline : 1
}, {
plugin_url : url
});
});
// Register buttons
ed.addButton('image', {
title : 'advimage.image_desc',
cmd : 'mceAdvImage'
});
},
getInfo : function() {
return {
longname : 'Advanced image',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
})();
+237
Ver Arquivo
@@ -0,0 +1,237 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{#advimage_dlg.dialog_title}</title>
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="../../utils/mctabs.js"></script>
<script type="text/javascript" src="../../utils/form_utils.js"></script>
<script type="text/javascript" src="../../utils/validate.js"></script>
<script type="text/javascript" src="../../utils/editable_selects.js"></script>
<script type="text/javascript" src="js/image.js"></script>
<link href="css/advimage.css" rel="stylesheet" type="text/css" />
</head>
<body id="advimage" style="display: none">
<form onsubmit="ImageDialog.insert();return false;" action="#">
<div class="tabs">
<ul>
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
<li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
</ul>
</div>
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
<fieldset>
<legend>{#advimage_dlg.general}</legend>
<table class="properties">
<tr>
<td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="src" type="text" id="src" value="" class="mceFocus" onchange="ImageDialog.showPreviewImage(this.value);" /></td>
<td id="srcbrowsercontainer">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><label for="src_list">{#advimage_dlg.image_list}</label></td>
<td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"><option value=""></option></select></td>
</tr>
<tr>
<td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
<td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label id="titlelabel" for="title">{#advimage_dlg.title}</label></td>
<td colspan="2"><input id="title" name="title" type="text" value="" /></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>{#advimage_dlg.preview}</legend>
<div id="prev"></div>
</fieldset>
</div>
<div id="appearance_panel" class="panel">
<fieldset>
<legend>{#advimage_dlg.tab_appearance}</legend>
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
<td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
<option value="">{#not_set}</option>
<option value="baseline">{#advimage_dlg.align_baseline}</option>
<option value="top">{#advimage_dlg.align_top}</option>
<option value="middle">{#advimage_dlg.align_middle}</option>
<option value="bottom">{#advimage_dlg.align_bottom}</option>
<option value="text-top">{#advimage_dlg.align_texttop}</option>
<option value="text-bottom">{#advimage_dlg.align_textbottom}</option>
<option value="left">{#advimage_dlg.align_left}</option>
<option value="right">{#advimage_dlg.align_right}</option>
</select>
</td>
<td rowspan="6" valign="top">
<div class="alignPreview">
<img id="alignSampleImg" src="img/sample.gif" alt="{#advimage_dlg.example_img}" />
Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat.
</div>
</td>
</tr>
<tr>
<td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
<td class="nowrap">
<input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" /> x
<input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" /> px
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
<td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
</tr>
</table></td>
</tr>
<tr>
<td class="column1"><label id="vspacelabel" for="vspace">{#advimage_dlg.vspace}</label></td>
<td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" />
</td>
</tr>
<tr>
<td class="column1"><label id="hspacelabel" for="hspace">{#advimage_dlg.hspace}</label></td>
<td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" /></td>
</tr>
<tr>
<td class="column1"><label id="borderlabel" for="border">{#advimage_dlg.border}</label></td>
<td><input id="border" name="border" type="text" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" /></td>
</tr>
<tr>
<td><label for="class_list">{#class_name}</label></td>
<td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"><option value=""></option></select></td>
</tr>
<tr>
<td class="column1"><label id="stylelabel" for="style">{#advimage_dlg.style}</label></td>
<td colspan="2"><input id="style" name="style" type="text" value="" onchange="ImageDialog.changeAppearance();" /></td>
</tr>
<!-- <tr>
<td class="column1"><label id="classeslabel" for="classes">{#advimage_dlg.classes}</label></td>
<td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
</tr> -->
</table>
</fieldset>
</div>
<div id="advanced_panel" class="panel">
<fieldset>
<legend>{#advimage_dlg.swap_image}</legend>
<input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" />
<label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
<table border="0" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
<td id="onmouseoversrccontainer">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><label for="over_list">{#advimage_dlg.image_list}</label></td>
<td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
</tr>
<tr>
<td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
<td class="column2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
<td id="onmouseoutsrccontainer">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><label for="out_list">{#advimage_dlg.image_list}</label></td>
<td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>{#advimage_dlg.misc}</legend>
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
<td><input id="id" name="id" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label id="dirlabel" for="dir">{#advimage_dlg.langdir}</label></td>
<td>
<select id="dir" name="dir" onchange="ImageDialog.changeAppearance();">
<option value="">{#not_set}</option>
<option value="ltr">{#advimage_dlg.ltr}</option>
<option value="rtl">{#advimage_dlg.rtl}</option>
</select>
</td>
</tr>
<tr>
<td class="column1"><label id="langlabel" for="lang">{#advimage_dlg.langcode}</label></td>
<td>
<input id="lang" name="lang" type="text" value="" />
</td>
</tr>
<tr>
<td class="column1"><label id="usemaplabel" for="usemap">{#advimage_dlg.map}</label></td>
<td>
<input id="usemap" name="usemap" type="text" value="" />
</td>
</tr>
<tr>
<td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input id="longdesc" name="longdesc" type="text" value="" /></td>
<td id="longdesccontainer">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</fieldset>
</div>
</div>
<div class="mceActionPanel">
<div style="float: left">
<input type="submit" id="insert" name="insert" value="{#insert}" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
</body>
</html>
Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 1.6 KiB

+443
Ver Arquivo
@@ -0,0 +1,443 @@
var ImageDialog = {
preInit : function() {
var url;
tinyMCEPopup.requireLangPack();
if (url = tinyMCEPopup.getParam("external_image_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
init : function(ed) {
var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode();
tinyMCEPopup.resizeToInnerSize();
this.fillClassList('class_list');
this.fillFileList('src_list', 'tinyMCEImageList');
this.fillFileList('over_list', 'tinyMCEImageList');
this.fillFileList('out_list', 'tinyMCEImageList');
TinyMCE_EditableSelects.init();
if (n.nodeName == 'IMG') {
nl.src.value = dom.getAttrib(n, 'src');
nl.width.value = dom.getAttrib(n, 'width');
nl.height.value = dom.getAttrib(n, 'height');
nl.alt.value = dom.getAttrib(n, 'alt');
nl.title.value = dom.getAttrib(n, 'title');
nl.vspace.value = this.getAttrib(n, 'vspace');
nl.hspace.value = this.getAttrib(n, 'hspace');
nl.border.value = this.getAttrib(n, 'border');
selectByValue(f, 'align', this.getAttrib(n, 'align'));
selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true);
nl.style.value = dom.getAttrib(n, 'style');
nl.id.value = dom.getAttrib(n, 'id');
nl.dir.value = dom.getAttrib(n, 'dir');
nl.lang.value = dom.getAttrib(n, 'lang');
nl.usemap.value = dom.getAttrib(n, 'usemap');
nl.longdesc.value = dom.getAttrib(n, 'longdesc');
nl.insert.value = ed.getLang('update');
if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover')))
nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout')))
nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
if (ed.settings.inline_styles) {
// Move attribs to styles
if (dom.getAttrib(n, 'align'))
this.updateStyle('align');
if (dom.getAttrib(n, 'hspace'))
this.updateStyle('hspace');
if (dom.getAttrib(n, 'border'))
this.updateStyle('border');
if (dom.getAttrib(n, 'vspace'))
this.updateStyle('vspace');
}
}
// Setup browse button
document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
if (isVisible('srcbrowser'))
document.getElementById('src').style.width = '260px';
// Setup browse button
document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image');
if (isVisible('overbrowser'))
document.getElementById('onmouseoversrc').style.width = '260px';
// Setup browse button
document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image');
if (isVisible('outbrowser'))
document.getElementById('onmouseoutsrc').style.width = '260px';
// If option enabled default contrain proportions to checked
if (ed.getParam("advimage_constrain_proportions", true))
f.constrain.checked = true;
// Check swap image if valid data
if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value)
this.setSwapImage(true);
else
this.setSwapImage(false);
this.changeAppearance();
this.showPreviewImage(nl.src.value, 1);
},
insert : function(file, title) {
var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
if (f.src.value === '') {
if (ed.selection.getNode().nodeName == 'IMG') {
ed.dom.remove(ed.selection.getNode());
ed.execCommand('mceRepaint');
}
tinyMCEPopup.close();
return;
}
if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
if (!f.alt.value) {
tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) {
if (s)
t.insertAndClose();
});
return;
}
}
t.insertAndClose();
},
insertAndClose : function() {
var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
tinyMCEPopup.restoreSelection();
// Fixes crash in Safari
if (tinymce.isWebKit)
ed.getWin().focus();
if (!ed.settings.inline_styles) {
args = {
vspace : nl.vspace.value,
hspace : nl.hspace.value,
border : nl.border.value,
align : getSelectValue(f, 'align')
};
} else {
// Remove deprecated values
args = {
vspace : '',
hspace : '',
border : '',
align : ''
};
}
tinymce.extend(args, {
src : nl.src.value,
width : nl.width.value,
height : nl.height.value,
alt : nl.alt.value,
title : nl.title.value,
'class' : getSelectValue(f, 'class_list'),
style : nl.style.value,
id : nl.id.value,
dir : nl.dir.value,
lang : nl.lang.value,
usemap : nl.usemap.value,
longdesc : nl.longdesc.value
});
args.onmouseover = args.onmouseout = '';
if (f.onmousemovecheck.checked) {
if (nl.onmouseoversrc.value)
args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';";
if (nl.onmouseoutsrc.value)
args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';";
}
el = ed.selection.getNode();
if (el && el.nodeName == 'IMG') {
ed.dom.setAttribs(el, args);
} else {
ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" />', {skip_undo : 1});
ed.dom.setAttribs('__mce_tmp', args);
ed.dom.setAttrib('__mce_tmp', 'id', '');
ed.undoManager.add();
}
tinyMCEPopup.close();
},
getAttrib : function(e, at) {
var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
if (ed.settings.inline_styles) {
switch (at) {
case 'align':
if (v = dom.getStyle(e, 'float'))
return v;
if (v = dom.getStyle(e, 'vertical-align'))
return v;
break;
case 'hspace':
v = dom.getStyle(e, 'margin-left')
v2 = dom.getStyle(e, 'margin-right');
if (v && v == v2)
return parseInt(v.replace(/[^0-9]/g, ''));
break;
case 'vspace':
v = dom.getStyle(e, 'margin-top')
v2 = dom.getStyle(e, 'margin-bottom');
if (v && v == v2)
return parseInt(v.replace(/[^0-9]/g, ''));
break;
case 'border':
v = 0;
tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
sv = dom.getStyle(e, 'border-' + sv + '-width');
// False or not the same as prev
if (!sv || (sv != v && v !== 0)) {
v = 0;
return false;
}
if (sv)
v = sv;
});
if (v)
return parseInt(v.replace(/[^0-9]/g, ''));
break;
}
}
if (v = dom.getAttrib(e, at))
return v;
return '';
},
setSwapImage : function(st) {
var f = document.forms[0];
f.onmousemovecheck.checked = st;
setBrowserDisabled('overbrowser', !st);
setBrowserDisabled('outbrowser', !st);
if (f.over_list)
f.over_list.disabled = !st;
if (f.out_list)
f.out_list.disabled = !st;
f.onmouseoversrc.disabled = !st;
f.onmouseoutsrc.disabled = !st;
},
fillClassList : function(id) {
var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
cl = [];
tinymce.each(v.split(';'), function(v) {
var p = v.split('=');
cl.push({'title' : p[0], 'class' : p[1]});
});
} else
cl = tinyMCEPopup.editor.dom.getClasses();
if (cl.length > 0) {
lst.options.length = 0;
lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
tinymce.each(cl, function(o) {
lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
});
} else
dom.remove(dom.getParent(id, 'tr'));
},
fillFileList : function(id, l) {
var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
l = window[l];
lst.options.length = 0;
if (l && l.length > 0) {
lst.options[lst.options.length] = new Option('', '');
tinymce.each(l, function(o) {
lst.options[lst.options.length] = new Option(o[0], o[1]);
});
} else
dom.remove(dom.getParent(id, 'tr'));
},
resetImageData : function() {
var f = document.forms[0];
f.elements.width.value = f.elements.height.value = '';
},
updateImageData : function(img, st) {
var f = document.forms[0];
if (!st) {
f.elements.width.value = img.width;
f.elements.height.value = img.height;
}
this.preloadImg = img;
},
changeAppearance : function() {
var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg');
if (img) {
if (ed.getParam('inline_styles')) {
ed.dom.setAttrib(img, 'style', f.style.value);
} else {
img.align = f.align.value;
img.border = f.border.value;
img.hspace = f.hspace.value;
img.vspace = f.vspace.value;
}
}
},
changeHeight : function() {
var f = document.forms[0], tp, t = this;
if (!f.constrain.checked || !t.preloadImg) {
return;
}
if (f.width.value == "" || f.height.value == "")
return;
tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height;
f.height.value = tp.toFixed(0);
},
changeWidth : function() {
var f = document.forms[0], tp, t = this;
if (!f.constrain.checked || !t.preloadImg) {
return;
}
if (f.width.value == "" || f.height.value == "")
return;
tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width;
f.width.value = tp.toFixed(0);
},
updateStyle : function(ty) {
var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
if (tinyMCEPopup.editor.settings.inline_styles) {
// Handle align
if (ty == 'align') {
dom.setStyle(img, 'float', '');
dom.setStyle(img, 'vertical-align', '');
v = getSelectValue(f, 'align');
if (v) {
if (v == 'left' || v == 'right')
dom.setStyle(img, 'float', v);
else
img.style.verticalAlign = v;
}
}
// Handle border
if (ty == 'border') {
dom.setStyle(img, 'border', '');
v = f.border.value;
if (v || v == '0') {
if (v == '0')
img.style.border = '0';
else
img.style.border = v + 'px solid black';
}
}
// Handle hspace
if (ty == 'hspace') {
dom.setStyle(img, 'marginLeft', '');
dom.setStyle(img, 'marginRight', '');
v = f.hspace.value;
if (v) {
img.style.marginLeft = v + 'px';
img.style.marginRight = v + 'px';
}
}
// Handle vspace
if (ty == 'vspace') {
dom.setStyle(img, 'marginTop', '');
dom.setStyle(img, 'marginBottom', '');
v = f.vspace.value;
if (v) {
img.style.marginTop = v + 'px';
img.style.marginBottom = v + 'px';
}
}
// Merge
dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText));
}
},
changeMouseMove : function() {
},
showPreviewImage : function(u, st) {
if (!u) {
tinyMCEPopup.dom.setHTML('prev', '');
return;
}
if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true))
this.resetImageData();
u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u);
if (!st)
tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this);" onerror="ImageDialog.resetImageData();" />');
else
tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this, 1);" />');
}
};
ImageDialog.preInit();
tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
+43
Ver Arquivo
@@ -0,0 +1,43 @@
tinyMCE.addI18n('en.advimage_dlg',{
tab_general:"General",
tab_appearance:"Appearance",
tab_advanced:"Advanced",
general:"General",
title:"Title",
preview:"Preview",
constrain_proportions:"Constrain proportions",
langdir:"Language direction",
langcode:"Language code",
long_desc:"Long description link",
style:"Style",
classes:"Classes",
ltr:"Left to right",
rtl:"Right to left",
id:"Id",
map:"Image map",
swap_image:"Swap image",
alt_image:"Alternative image",
mouseover:"for mouse over",
mouseout:"for mouse out",
misc:"Miscellaneous",
example_img:"Appearance preview image",
missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.",
dialog_title:"Insert/edit image",
src:"Image URL",
alt:"Image description",
list:"Image list",
border:"Border",
dimensions:"Dimensions",
vspace:"Vertical space",
hspace:"Horizontal space",
align:"Alignment",
align_baseline:"Baseline",
align_top:"Top",
align_middle:"Middle",
align_bottom:"Bottom",
align_texttop:"Text top",
align_textbottom:"Text bottom",
align_left:"Left",
align_right:"Right",
image_list:"Image list"
});
+8
Ver Arquivo
@@ -0,0 +1,8 @@
.mceLinkList, .mceAnchorList, #targetlist {width:280px;}
.mceActionPanel {margin-top:7px;}
.panel_wrapper div.current {height:320px;}
#classlist, #title, #href {width:280px;}
#popupurl, #popupname {width:200px;}
#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
#events_panel input {width:200px;}
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
@@ -0,0 +1,58 @@
/**
* $Id: editor_plugin_src.js 539 2008-01-14 19:08:58Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
init : function(ed, url) {
this.editor = ed;
// Register commands
ed.addCommand('mceAdvLink', function() {
var se = ed.selection;
// No selection and not in link
if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
return;
ed.windowManager.open({
file : url + '/link.htm',
width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
inline : 1
}, {
plugin_url : url
});
});
// Register buttons
ed.addButton('link', {
title : 'advlink.link_desc',
cmd : 'mceAdvLink'
});
ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
ed.onNodeChange.add(function(ed, cm, n, co) {
cm.setDisabled('link', co && n.nodeName != 'A');
cm.setActive('link', n.nodeName == 'A' && !n.name);
});
},
getInfo : function() {
return {
longname : 'Advanced link',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
})();
+528
Ver Arquivo
@@ -0,0 +1,528 @@
/* Functions for the advlink plugin popup */
tinyMCEPopup.requireLangPack();
var templates = {
"window.open" : "window.open('${url}','${target}','${options}')"
};
function preinit() {
var url;
if (url = tinyMCEPopup.getParam("external_link_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
}
function changeClass() {
var f = document.forms[0];
f.classes.value = getSelectValue(f, 'classlist');
}
function init() {
tinyMCEPopup.resizeToInnerSize();
var formObj = document.forms[0];
var inst = tinyMCEPopup.editor;
var elm = inst.selection.getNode();
var action = "insert";
var html;
document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href');
document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href');
document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
// Link list
html = getLinkListHTML('linklisthref','href');
if (html == "")
document.getElementById("linklisthrefrow").style.display = 'none';
else
document.getElementById("linklisthrefcontainer").innerHTML = html;
// Resize some elements
if (isVisible('hrefbrowser'))
document.getElementById('href').style.width = '260px';
if (isVisible('popupurlbrowser'))
document.getElementById('popupurl').style.width = '180px';
elm = inst.dom.getParent(elm, "A");
if (elm != null && elm.nodeName == "A")
action = "update";
formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
setPopupControlsDisabled(true);
if (action == "update") {
var href = inst.dom.getAttrib(elm, 'href');
var onclick = inst.dom.getAttrib(elm, 'onclick');
// Setup form data
setFormValue('href', href);
setFormValue('title', inst.dom.getAttrib(elm, 'title'));
setFormValue('id', inst.dom.getAttrib(elm, 'id'));
setFormValue('style', inst.dom.getAttrib(elm, "style"));
setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
setFormValue('type', inst.dom.getAttrib(elm, 'type'));
setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
setFormValue('onclick', onclick);
setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
setFormValue('target', inst.dom.getAttrib(elm, 'target'));
setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
// Parse onclick data
if (onclick != null && onclick.indexOf('window.open') != -1)
parseWindowOpen(onclick);
else
parseFunction(onclick);
// Select by the values
selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
selectByValue(formObj, 'linklisthref', href);
if (href.charAt(0) == '#')
selectByValue(formObj, 'anchorlist', href);
addClassesToList('classlist', 'advlink_styles');
selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true);
} else
addClassesToList('classlist', 'advlink_styles');
}
function checkPrefix(n) {
if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
n.value = 'mailto:' + n.value;
if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
n.value = 'http://' + n.value;
}
function setFormValue(name, value) {
document.forms[0].elements[name].value = value;
}
function parseWindowOpen(onclick) {
var formObj = document.forms[0];
// Preprocess center code
if (onclick.indexOf('return false;') != -1) {
formObj.popupreturn.checked = true;
onclick = onclick.replace('return false;', '');
} else
formObj.popupreturn.checked = false;
var onClickData = parseLink(onclick);
if (onClickData != null) {
formObj.ispopup.checked = true;
setPopupControlsDisabled(false);
var onClickWindowOptions = parseOptions(onClickData['options']);
var url = onClickData['url'];
formObj.popupname.value = onClickData['target'];
formObj.popupurl.value = url;
formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
if (formObj.popupleft.value.indexOf('screen') != -1)
formObj.popupleft.value = "c";
if (formObj.popuptop.value.indexOf('screen') != -1)
formObj.popuptop.value = "c";
formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
buildOnClick();
}
}
function parseFunction(onclick) {
var formObj = document.forms[0];
var onClickData = parseLink(onclick);
// TODO: Add stuff here
}
function getOption(opts, name) {
return typeof(opts[name]) == "undefined" ? "" : opts[name];
}
function setPopupControlsDisabled(state) {
var formObj = document.forms[0];
formObj.popupname.disabled = state;
formObj.popupurl.disabled = state;
formObj.popupwidth.disabled = state;
formObj.popupheight.disabled = state;
formObj.popupleft.disabled = state;
formObj.popuptop.disabled = state;
formObj.popuplocation.disabled = state;
formObj.popupscrollbars.disabled = state;
formObj.popupmenubar.disabled = state;
formObj.popupresizable.disabled = state;
formObj.popuptoolbar.disabled = state;
formObj.popupstatus.disabled = state;
formObj.popupreturn.disabled = state;
formObj.popupdependent.disabled = state;
setBrowserDisabled('popupurlbrowser', state);
}
function parseLink(link) {
link = link.replace(new RegExp('&#39;', 'g'), "'");
var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
// Is function name a template function
var template = templates[fnName];
if (template) {
// Build regexp
var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
var replaceStr = "";
for (var i=0; i<variableNames.length; i++) {
// Is string value
if (variableNames[i].indexOf("'${") != -1)
regExp += "'(.*)'";
else // Number value
regExp += "([0-9]*)";
replaceStr += "$" + (i+1);
// Cleanup variable name
variableNames[i] = variableNames[i].replace(new RegExp("[^A-Za-z0-9]", "gi"), "");
if (i != variableNames.length-1) {
regExp += "\\s*,\\s*";
replaceStr += "<delim>";
} else
regExp += ".*";
}
regExp += "\\);?";
// Build variable array
var variables = [];
variables["_function"] = fnName;
var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('<delim>');
for (var i=0; i<variableNames.length; i++)
variables[variableNames[i]] = variableValues[i];
return variables;
}
return null;
}
function parseOptions(opts) {
if (opts == null || opts == "")
return [];
// Cleanup the options
opts = opts.toLowerCase();
opts = opts.replace(/;/g, ",");
opts = opts.replace(/[^0-9a-z=,]/g, "");
var optionChunks = opts.split(',');
var options = [];
for (var i=0; i<optionChunks.length; i++) {
var parts = optionChunks[i].split('=');
if (parts.length == 2)
options[parts[0]] = parts[1];
}
return options;
}
function buildOnClick() {
var formObj = document.forms[0];
if (!formObj.ispopup.checked) {
formObj.onclick.value = "";
return;
}
var onclick = "window.open('";
var url = formObj.popupurl.value;
onclick += url + "','";
onclick += formObj.popupname.value + "','";
if (formObj.popuplocation.checked)
onclick += "location=yes,";
if (formObj.popupscrollbars.checked)
onclick += "scrollbars=yes,";
if (formObj.popupmenubar.checked)
onclick += "menubar=yes,";
if (formObj.popupresizable.checked)
onclick += "resizable=yes,";
if (formObj.popuptoolbar.checked)
onclick += "toolbar=yes,";
if (formObj.popupstatus.checked)
onclick += "status=yes,";
if (formObj.popupdependent.checked)
onclick += "dependent=yes,";
if (formObj.popupwidth.value != "")
onclick += "width=" + formObj.popupwidth.value + ",";
if (formObj.popupheight.value != "")
onclick += "height=" + formObj.popupheight.value + ",";
if (formObj.popupleft.value != "") {
if (formObj.popupleft.value != "c")
onclick += "left=" + formObj.popupleft.value + ",";
else
onclick += "left='+(screen.availWidth/2-" + (formObj.popupwidth.value/2) + ")+',";
}
if (formObj.popuptop.value != "") {
if (formObj.popuptop.value != "c")
onclick += "top=" + formObj.popuptop.value + ",";
else
onclick += "top='+(screen.availHeight/2-" + (formObj.popupheight.value/2) + ")+',";
}
if (onclick.charAt(onclick.length-1) == ',')
onclick = onclick.substring(0, onclick.length-1);
onclick += "');";
if (formObj.popupreturn.checked)
onclick += "return false;";
// tinyMCE.debug(onclick);
formObj.onclick.value = onclick;
if (formObj.href.value == "")
formObj.href.value = url;
}
function setAttrib(elm, attrib, value) {
var formObj = document.forms[0];
var valueElm = formObj.elements[attrib.toLowerCase()];
var dom = tinyMCEPopup.editor.dom;
if (typeof(value) == "undefined" || value == null) {
value = "";
if (valueElm)
value = valueElm.value;
}
// Clean up the style
if (attrib == 'style')
value = dom.serializeStyle(dom.parseStyle(value));
dom.setAttrib(elm, attrib, value);
}
function getAnchorListHTML(id, target) {
var inst = tinyMCEPopup.editor;
var nodes = inst.dom.select('a.mceItemAnchor,img.mceItemAnchor'), name, i;
var html = "";
html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" o2nfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
html += 'this.options[this.selectedIndex].value;">';
html += '<option value="">---</option>';
for (i=0; i<nodes.length; i++) {
if ((name = inst.dom.getAttrib(nodes[i], "name")) != "")
html += '<option value="#' + name + '">' + name + '</option>';
}
html += '</select>';
return html;
}
function insertAction() {
var inst = tinyMCEPopup.editor;
var elm, elementArray, i;
elm = inst.selection.getNode();
checkPrefix(document.forms[0].href);
elm = inst.dom.getParent(elm, "A");
// Remove element if there is no href
if (!document.forms[0].href.value) {
tinyMCEPopup.execCommand("mceBeginUndoLevel");
i = inst.selection.getBookmark();
inst.dom.remove(elm, 1);
inst.selection.moveToBookmark(i);
tinyMCEPopup.execCommand("mceEndUndoLevel");
tinyMCEPopup.close();
return;
}
tinyMCEPopup.execCommand("mceBeginUndoLevel");
// Create new anchor elements
if (elm == null) {
inst.getDoc().execCommand("unlink", false, null);
tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
for (i=0; i<elementArray.length; i++)
setAllAttribs(elm = elementArray[i]);
} else
setAllAttribs(elm);
// Don't move caret if selection was image
if (elm.childNodes.length != 1 || elm.firstChild.nodeName != 'IMG') {
inst.focus();
inst.selection.select(elm);
inst.selection.collapse(0);
tinyMCEPopup.storeSelection();
}
tinyMCEPopup.execCommand("mceEndUndoLevel");
tinyMCEPopup.close();
}
function setAllAttribs(elm) {
var formObj = document.forms[0];
var href = formObj.href.value;
var target = getSelectValue(formObj, 'targetlist');
setAttrib(elm, 'href', href);
setAttrib(elm, 'title');
setAttrib(elm, 'target', target == '_self' ? '' : target);
setAttrib(elm, 'id');
setAttrib(elm, 'style');
setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
setAttrib(elm, 'rel');
setAttrib(elm, 'rev');
setAttrib(elm, 'charset');
setAttrib(elm, 'hreflang');
setAttrib(elm, 'dir');
setAttrib(elm, 'lang');
setAttrib(elm, 'tabindex');
setAttrib(elm, 'accesskey');
setAttrib(elm, 'type');
setAttrib(elm, 'onfocus');
setAttrib(elm, 'onblur');
setAttrib(elm, 'onclick');
setAttrib(elm, 'ondblclick');
setAttrib(elm, 'onmousedown');
setAttrib(elm, 'onmouseup');
setAttrib(elm, 'onmouseover');
setAttrib(elm, 'onmousemove');
setAttrib(elm, 'onmouseout');
setAttrib(elm, 'onkeypress');
setAttrib(elm, 'onkeydown');
setAttrib(elm, 'onkeyup');
// Refresh in old MSIE
if (tinyMCE.isMSIE5)
elm.outerHTML = elm.outerHTML;
}
function getSelectValue(form_obj, field_name) {
var elm = form_obj.elements[field_name];
if (!elm || elm.options == null || elm.selectedIndex == -1)
return "";
return elm.options[elm.selectedIndex].value;
}
function getLinkListHTML(elm_id, target_form_element, onchange_func) {
if (typeof(tinyMCELinkList) == "undefined" || tinyMCELinkList.length == 0)
return "";
var html = "";
html += '<select id="' + elm_id + '" name="' + elm_id + '"';
html += ' class="mceLinkList" onfoc2us="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
html += 'this.options[this.selectedIndex].value;';
if (typeof(onchange_func) != "undefined")
html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
html += '"><option value="">---</option>';
for (var i=0; i<tinyMCELinkList.length; i++)
html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
html += '</select>';
return html;
// tinyMCE.debug('-- image list start --', html, '-- image list end --');
}
function getTargetListHTML(elm_id, target_form_element) {
var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
var html = '';
html += '<select id="' + elm_id + '" name="' + elm_id + '" onf2ocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
html += 'this.options[this.selectedIndex].value;">';
html += '<option value="_self">' + tinyMCEPopup.getLang('advlink_dlg.target_same') + '</option>';
html += '<option value="_blank">' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)</option>';
html += '<option value="_parent">' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)</option>';
html += '<option value="_top">' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)</option>';
for (var i=0; i<targets.length; i++) {
var key, value;
if (targets[i] == "")
continue;
key = targets[i].split('=')[0];
value = targets[i].split('=')[1];
html += '<option value="' + key + '">' + value + ' (' + key + ')</option>';
}
html += '</select>';
return html;
}
// While loading
preinit();
tinyMCEPopup.onInit.add(init);
+52
Ver Arquivo
@@ -0,0 +1,52 @@
tinyMCE.addI18n('en.advlink_dlg',{
title:"Insert/edit link",
url:"Link URL",
target:"Target",
titlefield:"Title",
is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
list:"Link list",
general_tab:"General",
popup_tab:"Popup",
events_tab:"Events",
advanced_tab:"Advanced",
general_props:"General properties",
popup_props:"Popup properties",
event_props:"Events",
advanced_props:"Advanced properties",
popup_opts:"Options",
anchor_names:"Anchors",
target_same:"Open in this window / frame",
target_parent:"Open in parent window / frame",
target_top:"Open in top frame (replaces all frames)",
target_blank:"Open in new window",
popup:"Javascript popup",
popup_url:"Popup URL",
popup_name:"Window name",
popup_return:"Insert 'return false'",
popup_scrollbars:"Show scrollbars",
popup_statusbar:"Show status bar",
popup_toolbar:"Show toolbars",
popup_menubar:"Show menu bar",
popup_location:"Show location bar",
popup_resizable:"Make window resizable",
popup_dependent:"Dependent (Mozilla/Firefox only)",
popup_size:"Size",
popup_position:"Position (X/Y)",
id:"Id",
style:"Style",
classes:"Classes",
target_name:"Target name",
langdir:"Language direction",
target_langcode:"Target language",
langcode:"Language code",
encoding:"Target character encoding",
mime:"Target MIME type",
rel:"Relationship page to target",
rev:"Relationship target to page",
tabindex:"Tabindex",
accesskey:"Accesskey",
ltr:"Left to right",
rtl:"Right to left",
link_list:"Link list"
});
+338
Ver Arquivo
@@ -0,0 +1,338 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{#advlink_dlg.title}</title>
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="../../utils/mctabs.js"></script>
<script type="text/javascript" src="../../utils/form_utils.js"></script>
<script type="text/javascript" src="../../utils/validate.js"></script>
<script type="text/javascript" src="js/advlink.js"></script>
<link href="css/advlink.css" rel="stylesheet" type="text/css" />
</head>
<body id="advlink" style="display: none">
<form onsubmit="insertAction();return false;" action="#">
<div class="tabs">
<ul>
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
<li id="popup_tab"><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
<li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
</ul>
</div>
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
<fieldset>
<legend>{#advlink_dlg.general_props}</legend>
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td>
<td id="hrefbrowsercontainer">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr id="linklisthrefrow">
<td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
<td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
</tr>
<tr>
<td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
<td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
</tr>
<tr>
<td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
<td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
</tr>
<tr>
<td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
<td><input id="title" name="title" type="text" value="" /></td>
</tr>
<tr>
<td><label id="classlabel" for="classlist">{#class_name}</label></td>
<td>
<select id="classlist" name="classlist" onchange="changeClass();">
<option value="" selected="selected">{#not_set}</option>
</select>
</td>
</tr>
</table>
</fieldset>
</div>
<div id="popup_panel" class="panel">
<fieldset>
<legend>{#advlink_dlg.popup_props}</legend>
<input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
<label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label>&nbsp;</td>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="text" name="popupurl" id="popupurl" value="" onchange="buildOnClick();" /></td>
<td id="popupurlbrowsercontainer">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label>&nbsp;</td>
<td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
</tr>
<tr>
<td class="nowrap"><label>{#advlink_dlg.popup_size}</label>&nbsp;</td>
<td class="nowrap">
<input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x
<input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px
</td>
</tr>
<tr>
<td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label>&nbsp;</td>
<td class="nowrap">
<input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> /
<input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center)
</td>
</tr>
</table>
<fieldset>
<legend>{#advlink_dlg.popup_opts}</legend>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
<td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
</tr>
<tr>
<td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
<td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
</tr>
<tr>
<td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
<td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
</tr>
<tr>
<td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
<td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
<td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
<td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
</tr>
</table>
</fieldset>
</fieldset>
</div>
<div id="advanced_panel" class="panel">
<fieldset>
<legend>{#advlink_dlg.advanced_props}</legend>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
<td><input id="id" name="id" type="text" value="" /></td>
</tr>
<tr>
<td><label id="stylelabel" for="style">{#advlink_dlg.style}</label></td>
<td><input type="text" id="style" name="style" value="" /></td>
</tr>
<tr>
<td><label id="classeslabel" for="classes">{#advlink_dlg.classes}</label></td>
<td><input type="text" id="classes" name="classes" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
</tr>
<tr>
<td><label id="targetlabel" for="target">{#advlink_dlg.target_name}</label></td>
<td><input type="text" id="target" name="target" value="" onchange="selectByValue(this.form,'targetlist',this.value,true);" /></td>
</tr>
<tr>
<td class="column1"><label id="dirlabel" for="dir">{#advlink_dlg.langdir}</label></td>
<td>
<select id="dir" name="dir">
<option value="">{#not_set}</option>
<option value="ltr">{#advlink_dlg.ltr}</option>
<option value="rtl">{#advlink_dlg.rtl}</option>
</select>
</td>
</tr>
<tr>
<td><label id="hreflanglabel" for="hreflang">{#advlink_dlg.target_langcode}</label></td>
<td><input type="text" id="hreflang" name="hreflang" value="" /></td>
</tr>
<tr>
<td class="column1"><label id="langlabel" for="lang">{#advlink_dlg.langcode}</label></td>
<td>
<input id="lang" name="lang" type="text" value="" />
</td>
</tr>
<tr>
<td><label id="charsetlabel" for="charset">{#advlink_dlg.encoding}</label></td>
<td><input type="text" id="charset" name="charset" value="" /></td>
</tr>
<tr>
<td><label id="typelabel" for="type">{#advlink_dlg.mime}</label></td>
<td><input type="text" id="type" name="type" value="" /></td>
</tr>
<tr>
<td><label id="rellabel" for="rel">{#advlink_dlg.rel}</label></td>
<td><select id="rel" name="rel">
<option value="">{#not_set}</option>
<option value="lightbox">Lightbox</option>
<option value="alternate">Alternate</option>
<option value="designates">Designates</option>
<option value="stylesheet">Stylesheet</option>
<option value="start">Start</option>
<option value="next">Next</option>
<option value="prev">Prev</option>
<option value="contents">Contents</option>
<option value="index">Index</option>
<option value="glossary">Glossary</option>
<option value="copyright">Copyright</option>
<option value="chapter">Chapter</option>
<option value="subsection">Subsection</option>
<option value="appendix">Appendix</option>
<option value="help">Help</option>
<option value="bookmark">Bookmark</option>
<option value="nofollow">No Follow</option>
<option value="tag">Tag</option>
</select>
</td>
</tr>
<tr>
<td><label id="revlabel" for="rev">{#advlink_dlg.rev}</label></td>
<td><select id="rev" name="rev">
<option value="">{#not_set}</option>
<option value="alternate">Alternate</option>
<option value="designates">Designates</option>
<option value="stylesheet">Stylesheet</option>
<option value="start">Start</option>
<option value="next">Next</option>
<option value="prev">Prev</option>
<option value="contents">Contents</option>
<option value="index">Index</option>
<option value="glossary">Glossary</option>
<option value="copyright">Copyright</option>
<option value="chapter">Chapter</option>
<option value="subsection">Subsection</option>
<option value="appendix">Appendix</option>
<option value="help">Help</option>
<option value="bookmark">Bookmark</option>
</select>
</td>
</tr>
<tr>
<td><label id="tabindexlabel" for="tabindex">{#advlink_dlg.tabindex}</label></td>
<td><input type="text" id="tabindex" name="tabindex" value="" /></td>
</tr>
<tr>
<td><label id="accesskeylabel" for="accesskey">{#advlink_dlg.accesskey}</label></td>
<td><input type="text" id="accesskey" name="accesskey" value="" /></td>
</tr>
</table>
</fieldset>
</div>
<div id="events_panel" class="panel">
<fieldset>
<legend>{#advlink_dlg.event_props}</legend>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td class="column1"><label for="onfocus">onfocus</label></td>
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onblur">onblur</label></td>
<td><input id="onblur" name="onblur" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onclick">onclick</label></td>
<td><input id="onclick" name="onclick" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="ondblclick">ondblclick</label></td>
<td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onmousedown">onmousedown</label></td>
<td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onmouseup">onmouseup</label></td>
<td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onmouseover">onmouseover</label></td>
<td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onmousemove">onmousemove</label></td>
<td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onmouseout">onmouseout</label></td>
<td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onkeypress">onkeypress</label></td>
<td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onkeydown">onkeydown</label></td>
<td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
</tr>
<tr>
<td class="column1"><label for="onkeyup">onkeyup</label></td>
<td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
</tr>
</table>
</fieldset>
</div>
</div>
<div class="mceActionPanel">
<div style="float: left">
<input type="submit" id="insert" name="insert" value="{#insert}" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
</body>
</html>
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)});a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})();
@@ -0,0 +1,111 @@
/**
* $Id: editor_plugin_src.js 539 2008-01-14 19:08:58Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
/**
* Auto Resize
*
* This plugin automatically resizes the content area to fit its content height.
* It will retain a minimum height, which is the height of the content area when
* it's initialized.
*/
tinymce.create('tinymce.plugins.AutoResizePlugin', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished it's initialization so use the onInit event
* of the editor instance to intercept that event.
*
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
* @param {string} url Absolute URL to where the plugin is located.
*/
init : function(ed, url) {
var t = this;
/**
* This method gets executed each time the editor needs to resize.
*/
function resize() {
var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight;
// Get height differently depending on the browser used
myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight;
// Don't make it smaller than the minimum height
if (myHeight > t.autoresize_min_height)
resizeHeight = myHeight;
// Resize content element
DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
// if we're throbbing, we'll re-throb to match the new size
if (t.throbbing) {
ed.setProgressState(false);
ed.setProgressState(true);
}
};
t.editor = ed;
// Define minimum height
t.autoresize_min_height = ed.getElement().offsetHeight;
// Things to do when the editor is ready
ed.onInit.add(function(ed, l) {
// Show throbber until content area is resized properly
ed.setProgressState(true);
t.throbbing = true;
// Hide scrollbars
ed.getBody().style.overflowY = "hidden";
});
// Add appropriate listeners for resizing content area
ed.onChange.add(resize);
ed.onSetContent.add(resize);
ed.onPaste.add(resize);
ed.onKeyUp.add(resize);
ed.onPostRender.add(resize);
ed.onLoadContent.add(function(ed, l) {
resize();
// Because the content area resizes when its content CSS loads,
// and we can't easily add a listener to its onload event,
// we'll just trigger a resize after a short loading period
setTimeout(function() {
resize();
// Disable throbber
ed.setProgressState(false);
t.throbbing = false;
}, 1250);
});
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
ed.addCommand('mceAutoResize', resize);
},
/**
* Returns information about the plugin as a name/value array.
* The current keys are longname, author, authorurl, infourl and version.
*
* @return {Object} Name/value array containing information about the plugin.
*/
getInfo : function() {
return {
longname : 'Auto Resize',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin);
})();
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.AutoSavePlugin",{init:function(a,b){var c=this;c.editor=a;window.onbeforeunload=tinymce.plugins.AutoSavePlugin._beforeUnloadHandler},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:tinymce.majorVersion+"."+tinymce.minorVersion}},"static":{_beforeUnloadHandler:function(){var a;tinymce.each(tinyMCE.editors,function(b){if(b.getParam("fullscreen_is_enabled")){return}if(b.isDirty()){a=b.getLang("autosave.unload_msg");return false}});return a}}});tinymce.PluginManager.add("autosave",tinymce.plugins.AutoSavePlugin)})();
@@ -0,0 +1,51 @@
/**
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.AutoSavePlugin', {
init : function(ed, url) {
var t = this;
t.editor = ed;
window.onbeforeunload = tinymce.plugins.AutoSavePlugin._beforeUnloadHandler;
},
getInfo : function() {
return {
longname : 'Auto save',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
},
// Private plugin internal methods
'static' : {
_beforeUnloadHandler : function() {
var msg;
tinymce.each(tinyMCE.editors, function(ed) {
if (ed.getParam("fullscreen_is_enabled"))
return;
if (ed.isDirty()) {
msg = ed.getLang("autosave.unload_msg");
return false;
}
});
return msg;
}
}
});
// Register plugin
tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSavePlugin);
})();
+1
Ver Arquivo
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/<font>(.*?)<\/font>/gi,"$1");b(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");b(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]");b(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]");b(/<u>/gi,"[u]");b(/<blockquote[^>]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/<br \/>/gi,"\n");b(/<br\/>/gi,"\n");b(/<br>/gi,"\n");b(/<p>/gi,"");b(/<\/p>/gi,"\n");b(/&nbsp;/gi," ");b(/&quot;/gi,'"');b(/&lt;/gi,"<");b(/&gt;/gi,">");b(/&amp;/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"<br />");b(/\[b\]/gi,"<strong>");b(/\[\/b\]/gi,"</strong>");b(/\[i\]/gi,"<em>");b(/\[\/i\]/gi,"</em>");b(/\[u\]/gi,"<u>");b(/\[\/u\]/gi,"</u>");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>');b(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>');b(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>');b(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})();
@@ -0,0 +1,117 @@
/**
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.BBCodePlugin', {
init : function(ed, url) {
var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase();
ed.onBeforeSetContent.add(function(ed, o) {
o.content = t['_' + dialect + '_bbcode2html'](o.content);
});
ed.onPostProcess.add(function(ed, o) {
if (o.set)
o.content = t['_' + dialect + '_bbcode2html'](o.content);
if (o.get)
o.content = t['_' + dialect + '_html2bbcode'](o.content);
});
},
getInfo : function() {
return {
longname : 'BBCode Plugin',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
},
// Private methods
// HTML -> BBCode in PunBB dialect
_punbb_html2bbcode : function(s) {
s = tinymce.trim(s);
function rep(re, str) {
s = s.replace(re, str);
};
// example: <strong> to [b]
rep(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");
rep(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
rep(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
rep(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
rep(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
rep(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]");
rep(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]");
rep(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]");
rep(/<font>(.*?)<\/font>/gi,"$1");
rep(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");
rep(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]");
rep(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]");
rep(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");
rep(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");
rep(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");
rep(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");
rep(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");
rep(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");
rep(/<\/(strong|b)>/gi,"[/b]");
rep(/<(strong|b)>/gi,"[b]");
rep(/<\/(em|i)>/gi,"[/i]");
rep(/<(em|i)>/gi,"[i]");
rep(/<\/u>/gi,"[/u]");
rep(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]");
rep(/<u>/gi,"[u]");
rep(/<blockquote[^>]*>/gi,"[quote]");
rep(/<\/blockquote>/gi,"[/quote]");
rep(/<br \/>/gi,"\n");
rep(/<br\/>/gi,"\n");
rep(/<br>/gi,"\n");
rep(/<p>/gi,"");
rep(/<\/p>/gi,"\n");
rep(/&nbsp;/gi," ");
rep(/&quot;/gi,"\"");
rep(/&lt;/gi,"<");
rep(/&gt;/gi,">");
rep(/&amp;/gi,"&");
return s;
},
// BBCode -> HTML from PunBB dialect
_punbb_bbcode2html : function(s) {
s = tinymce.trim(s);
function rep(re, str) {
s = s.replace(re, str);
};
// example: [b] to <strong>
rep(/\n/gi,"<br />");
rep(/\[b\]/gi,"<strong>");
rep(/\[\/b\]/gi,"</strong>");
rep(/\[i\]/gi,"<em>");
rep(/\[\/i\]/gi,"</em>");
rep(/\[u\]/gi,"<u>");
rep(/\[\/u\]/gi,"</u>");
rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"<a href=\"$1\">$2</a>");
rep(/\[url\](.*?)\[\/url\]/gi,"<a href=\"$1\">$1</a>");
rep(/\[img\](.*?)\[\/img\]/gi,"<img src=\"$1\" />");
rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"<font color=\"$1\">$2</font>");
rep(/\[code\](.*?)\[\/code\]/gi,"<span class=\"codeStyle\">$1</span>&nbsp;");
rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<span class=\"quoteStyle\">$1</span>&nbsp;");
return s;
}
});
// Register plugin
tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin);
})();
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
@@ -0,0 +1,616 @@
/**
* $Id: editor_plugin_src.js 264 2007-04-26 20:53:09Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is;
tinymce.create('tinymce.plugins.Compat2x', {
getInfo : function() {
return {
longname : 'Compat2x',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/compat2x',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
}
});
(function() {
// Extend tinyMCE/EditorManager
tinymce.extend(tinyMCE, {
addToLang : function(p, l) {
each(l, function(v, k) {
tinyMCE.i18n[(tinyMCE.settings.language || 'en') + '.' + (p ? p + '_' : '') + k] = v;
});
},
getInstanceById : function(n) {
return this.get(n);
}
});
})();
(function() {
var EditorManager = tinymce.EditorManager;
tinyMCE.instances = {};
tinyMCE.plugins = {};
tinymce.PluginManager.onAdd.add(function(pm, n, p) {
tinyMCE.plugins[n] = p;
});
tinyMCE.majorVersion = tinymce.majorVersion;
tinyMCE.minorVersion = tinymce.minorVersion;
tinyMCE.releaseDate = tinymce.releaseDate;
tinyMCE.baseURL = tinymce.baseURL;
tinyMCE.isIE = tinyMCE.isMSIE = tinymce.isIE || tinymce.isOpera;
tinyMCE.isMSIE5 = tinymce.isIE;
tinyMCE.isMSIE5_0 = tinymce.isIE;
tinyMCE.isMSIE7 = tinymce.isIE;
tinyMCE.isGecko = tinymce.isGecko;
tinyMCE.isSafari = tinymce.isWebKit;
tinyMCE.isOpera = tinymce.isOpera;
tinyMCE.isMac = false;
tinyMCE.isNS7 = false;
tinyMCE.isNS71 = false;
tinyMCE.compat = true;
// Extend tinyMCE class
TinyMCE_Engine = tinyMCE;
tinymce.extend(tinyMCE, {
getParam : function(n, dv) {
return this.activeEditor.getParam(n, dv);
},
addEvent : function(e, na, f, sc) {
tinymce.dom.Event.add(e, na, f, sc || this);
},
getControlHTML : function(n) {
return EditorManager.activeEditor.controlManager.createControl(n);
},
loadCSS : function(u) {
tinymce.DOM.loadCSS(u);
},
importCSS : function(doc, u) {
if (doc == document)
this.loadCSS(u);
else
new tinymce.dom.DOMUtils(doc).loadCSS(u);
},
log : function() {
console.debug.apply(console, arguments);
},
getLang : function(n, dv) {
var v = EditorManager.activeEditor.getLang(n.replace(/^lang_/g, ''), dv);
// Is number
if (/^[0-9\-.]+$/g.test(v))
return parseInt(v);
return v;
},
isInstance : function(o) {
return o != null && typeof(o) == "object" && o.execCommand;
},
triggerNodeChange : function() {
EditorManager.activeEditor.nodeChanged();
},
regexpReplace : function(in_str, reg_exp, replace_str, opts) {
var re;
if (in_str == null)
return in_str;
if (typeof(opts) == "undefined")
opts = 'g';
re = new RegExp(reg_exp, opts);
return in_str.replace(re, replace_str);
},
trim : function(s) {
return tinymce.trim(s);
},
xmlEncode : function(s) {
return tinymce.DOM.encode(s);
},
explode : function(s, d) {
var o = [];
tinymce.each(s.split(d), function(v) {
if (v != '')
o.push(v);
});
return o;
},
switchClass : function(id, cls) {
var b;
if (/^mceButton/.test(cls)) {
b = EditorManager.activeEditor.controlManager.get(id);
if (!b)
return;
switch (cls) {
case "mceButtonNormal":
b.setDisabled(false);
b.setActive(false);
return;
case "mceButtonDisabled":
b.setDisabled(true);
return;
case "mceButtonSelected":
b.setActive(true);
b.setDisabled(false);
return;
}
}
},
addCSSClass : function(e, n, b) {
return tinymce.DOM.addClass(e, n, b);
},
hasCSSClass : function(e, n) {
return tinymce.DOM.hasClass(e, n);
},
removeCSSClass : function(e, n) {
return tinymce.DOM.removeClass(e, n);
},
getCSSClasses : function() {
var cl = EditorManager.activeEditor.dom.getClasses(), o = [];
each(cl, function(c) {
o.push(c['class']);
});
return o;
},
setWindowArg : function(n, v) {
EditorManager.activeEditor.windowManager.params[n] = v;
},
getWindowArg : function(n, dv) {
var wm = EditorManager.activeEditor.windowManager, v;
v = wm.getParam(n);
if (v === '')
return '';
return v || wm.getFeature(n) || dv;
},
getParentNode : function(n, f) {
return this._getDOM().getParent(n, f);
},
selectElements : function(n, na, f) {
var i, a = [], nl, x;
for (x=0, na = na.split(','); x<na.length; x++)
for (i=0, nl = n.getElementsByTagName(na[x]); i<nl.length; i++)
(!f || f(nl[i])) && a.push(nl[i]);
return a;
},
getNodeTree : function(n, na, t, nn) {
return this.selectNodes(n, function(n) {
return (!t || n.nodeType == t) && (!nn || n.nodeName == nn);
}, na ? na : []);
},
getAttrib : function(e, n, dv) {
return this._getDOM().getAttrib(e, n, dv);
},
setAttrib : function(e, n, v) {
return this._getDOM().setAttrib(e, n, v);
},
getElementsByAttributeValue : function(n, e, a, v) {
var i, nl = n.getElementsByTagName(e), o = [];
for (i=0; i<nl.length; i++) {
if (tinyMCE.getAttrib(nl[i], a).indexOf(v) != -1)
o[o.length] = nl[i];
}
return o;
},
selectNodes : function(n, f, a) {
var i;
if (!a)
a = [];
if (f(n))
a[a.length] = n;
if (n.hasChildNodes()) {
for (i=0; i<n.childNodes.length; i++)
tinyMCE.selectNodes(n.childNodes[i], f, a);
}
return a;
},
getContent : function() {
return EditorManager.activeEditor.getContent();
},
getParentElement : function(n, na, f) {
if (na)
na = new RegExp('^(' + na.toUpperCase().replace(/,/g, '|') + ')$', 'g');
return this._getDOM().getParent(n, function(n) {
return n.nodeType == 1 && (!na || na.test(n.nodeName)) && (!f || f(n));
}, this.activeEditor.getBody());
},
importPluginLanguagePack : function(n) {
tinymce.PluginManager.requireLangPack(n);
},
getButtonHTML : function(cn, lang, img, c, u, v) {
var ed = EditorManager.activeEditor;
img = img.replace(/\{\$pluginurl\}/g, tinyMCE.pluginURL);
img = img.replace(/\{\$themeurl\}/g, tinyMCE.themeURL);
lang = lang.replace(/^lang_/g, '');
return ed.controlManager.createButton(cn, {
title : lang,
command : c,
ui : u,
value : v,
scope : this,
'class' : 'compat',
image : img
});
},
addSelectAccessibility : function(e, s, w) {
// Add event handlers
if (!s._isAccessible) {
s.onkeydown = tinyMCE.accessibleEventHandler;
s.onblur = tinyMCE.accessibleEventHandler;
s._isAccessible = true;
s._win = w;
}
return false;
},
accessibleEventHandler : function(e) {
var elm, win = this._win;
e = tinymce.isIE ? win.event : e;
elm = tinymce.isIE ? e.srcElement : e.target;
// Unpiggyback onchange on blur
if (e.type == "blur") {
if (elm.oldonchange) {
elm.onchange = elm.oldonchange;
elm.oldonchange = null;
}
return true;
}
// Piggyback onchange
if (elm.nodeName == "SELECT" && !elm.oldonchange) {
elm.oldonchange = elm.onchange;
elm.onchange = null;
}
// Execute onchange and remove piggyback
if (e.keyCode == 13 || e.keyCode == 32) {
elm.onchange = elm.oldonchange;
elm.onchange();
elm.oldonchange = null;
tinyMCE.cancelEvent(e);
return false;
}
return true;
},
cancelEvent : function(e) {
return tinymce.dom.Event.cancel(e);
},
handleVisualAid : function(e) {
EditorManager.activeEditor.addVisual(e);
},
getAbsPosition : function(n, r) {
return tinymce.DOM.getPos(n, r);
},
cleanupEventStr : function(s) {
s = "" + s;
s = s.replace('function anonymous()\n{\n', '');
s = s.replace('\n}', '');
s = s.replace(/^return true;/gi, ''); // Remove event blocker
return s;
},
getVisualAidClass : function(s) {
// TODO: Implement
return s;
},
parseStyle : function(s) {
return this._getDOM().parseStyle(s);
},
serializeStyle : function(s) {
return this._getDOM().serializeStyle(s);
},
openWindow : function(tpl, args) {
var ed = EditorManager.activeEditor, o = {}, n;
// Convert name/value array to object
for (n in tpl)
o[n] = tpl[n];
tpl = o;
args = args || {};
tpl.url = new tinymce.util.URI(tinymce.ThemeManager.themeURLs[ed.settings.theme]).toAbsolute(tpl.file);
tpl.inline = tpl.inline || args.inline;
ed.windowManager.open(tpl, args);
},
closeWindow : function(win) {
EditorManager.activeEditor.windowManager.close(win);
},
getOuterHTML : function(e) {
return tinymce.DOM.getOuterHTML(e);
},
setOuterHTML : function(e, h, d) {
return tinymce.DOM.setOuterHTML(e, h, d);
},
hasPlugin : function(n) {
return tinymce.PluginManager.get(n) != null;
},
_setEventsEnabled : function() {
// Ignore it!!
},
addPlugin : function(pn, f) {
var t = this;
function PluginWrapper(ed) {
tinyMCE.selectedInstance = ed;
ed.onInit.add(function() {
t.settings = ed.settings;
t.settings['base_href'] = tinyMCE.documentBasePath;
tinyMCE.settings = t.settings;
tinyMCE.documentBasePath = ed.documentBasePath;
//ed.formElement = DOM.get(ed.id);
if (f.initInstance)
f.initInstance(ed);
ed.contentDocument = ed.getDoc();
ed.contentWindow = ed.getWin();
ed.undoRedo = ed.undoManager;
ed.startContent = ed.getContent({format : 'raw'});
tinyMCE.instances[ed.id] = ed;
tinyMCE.loadedFiles = [];
});
ed.onActivate.add(function() {
tinyMCE.settings = ed.settings;
tinyMCE.selectedInstance = ed;
});
/* if (f.removeInstance) {
ed.onDestroy.add(function() {
return f.removeInstance(ed.id);
});
}*/
if (f.handleNodeChange) {
ed.onNodeChange.add(function(ed, cm, n) {
f.handleNodeChange(ed.id, n, 0, 0, false, !ed.selection.isCollapsed());
});
}
if (f.onChange) {
ed.onChange.add(function(ed, n) {
return f.onChange(ed);
});
}
if (f.cleanup) {
ed.onGetContent.add(function() {
//f.cleanup(type, content, inst);
});
}
this.getInfo = function() {
return f.getInfo();
};
this.createControl = function(n) {
tinyMCE.pluginURL = tinymce.baseURL + '/plugins/' + pn;
tinyMCE.themeURL = tinymce.baseURL + '/themes/' + tinyMCE.activeEditor.settings.theme;
if (f.getControlHTML)
return f.getControlHTML(n);
return null;
};
this.execCommand = function(cmd, ui, val) {
if (f.execCommand)
return f.execCommand(ed.id, ed.getBody(), cmd, ui, val);
return false;
};
};
tinymce.PluginManager.add(pn, PluginWrapper);
},
_getDOM : function() {
return tinyMCE.activeEditor ? tinyMCE.activeEditor.dom : tinymce.DOM;
},
convertRelativeToAbsoluteURL : function(b, u) {
return new tinymce.util.URI(b).toAbsolute(u);
},
convertAbsoluteURLToRelativeURL : function(b, u) {
return new tinymce.util.URI(b).toRelative(u);
}
});
// Extend Editor class
tinymce.extend(tinymce.Editor.prototype, {
getFocusElement : function() {
return this.selection.getNode();
},
getData : function(n) {
if (!this.data)
this.data = [];
if (!this.data[n])
this.data[n] = [];
return this.data[n];
},
hasPlugin : function(n) {
return this.plugins[n] != null;
},
getContainerWin : function() {
return window;
},
getHTML : function(raw) {
return this.getContent({ format : raw ? 'raw' : 'html'});
},
setHTML : function(h) {
this.setContent(h);
},
getSel : function() {
return this.selection.getSel();
},
getRng : function() {
return this.selection.getRng();
},
isHidden : function() {
var s;
if (!tinymce.isGecko)
return false;
s = this.getSel();
// Weird, wheres that cursor selection?
return (!s || !s.rangeCount || s.rangeCount == 0);
},
translate : function(s) {
var c = this.settings.language, o;
if (!s)
return s;
o = tinymce.EditorManager.i18n[c + '.' + s] || s.replace(/{\#([^}]+)\}/g, function(a, b) {
return tinymce.EditorManager.i18n[c + '.' + b] || '{#' + b + '}';
});
o = o.replace(/{\$lang_([^}]+)\}/g, function(a, b) {
return tinymce.EditorManager.i18n[c + '.' + b] || '{$lang_' + b + '}';
});
return o;
},
repaint : function() {
this.execCommand('mceRepaint');
}
});
// Extend selection
tinymce.extend(tinymce.dom.Selection.prototype, {
getSelectedText : function() {
return this.getContent({format : 'text'});
},
getSelectedHTML : function() {
return this.getContent({format : 'html'});
},
getFocusElement : function() {
return this.getNode();
},
selectNode : function(node, collapse, select_text_node, to_start) {
var t = this;
t.select(node, select_text_node || 0);
if (!is(collapse))
collapse = true;
if (collapse) {
if (!is(to_start))
to_start = true;
t.collapse(to_start);
}
}
});
}).call(this);
// Register plugin
tinymce.PluginManager.add('compat2x', tinymce.plugins.Compat2x);
})();
@@ -0,0 +1 @@
(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(g,h){if(!h.ctrlKey){f._getMenu(g).showMenu(h.clientX,h.clientY);a.add(g.getDoc(),"click",e);a.cancel(h)}});function e(){if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(d.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})();
@@ -0,0 +1,95 @@
/**
* $Id: editor_plugin_src.js 848 2008-05-15 11:54:40Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM;
tinymce.create('tinymce.plugins.ContextMenu', {
init : function(ed) {
var t = this;
t.editor = ed;
t.onContextMenu = new tinymce.util.Dispatcher(this);
ed.onContextMenu.add(function(ed, e) {
if (!e.ctrlKey) {
t._getMenu(ed).showMenu(e.clientX, e.clientY);
Event.add(ed.getDoc(), 'click', hide);
Event.cancel(e);
}
});
function hide() {
if (t._menu) {
t._menu.removeAll();
t._menu.destroy();
Event.remove(ed.getDoc(), 'click', hide);
}
};
ed.onMouseDown.add(hide);
ed.onKeyDown.add(hide);
},
getInfo : function() {
return {
longname : 'Contextmenu',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
},
_getMenu : function(ed) {
var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2;
if (m) {
m.removeAll();
m.destroy();
}
p1 = DOM.getPos(ed.getContentAreaContainer());
p2 = DOM.getPos(ed.getContainer());
m = ed.controlManager.createDropMenu('contextmenu', {
offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0),
offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0),
constrain : 1
});
t._menu = m;
m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col);
m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col);
m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'});
if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) {
m.addSeparator();
m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
}
m.addSeparator();
m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
m.addSeparator();
am = m.addMenu({title : 'contextmenu.align'});
am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'});
am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'});
am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'});
am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'});
t.onContextMenu.dispatch(t, m, el, col);
return m;
}
});
// Register plugin
tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu);
})();
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();
@@ -0,0 +1,79 @@
/**
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.Directionality', {
init : function(ed, url) {
var t = this;
t.editor = ed;
ed.addCommand('mceDirectionLTR', function() {
var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock);
if (e) {
if (ed.dom.getAttrib(e, "dir") != "ltr")
ed.dom.setAttrib(e, "dir", "ltr");
else
ed.dom.setAttrib(e, "dir", "");
}
ed.nodeChanged();
});
ed.addCommand('mceDirectionRTL', function() {
var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock);
if (e) {
if (ed.dom.getAttrib(e, "dir") != "rtl")
ed.dom.setAttrib(e, "dir", "rtl");
else
ed.dom.setAttrib(e, "dir", "");
}
ed.nodeChanged();
});
ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'});
ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'});
ed.onNodeChange.add(t._nodeChange, t);
},
getInfo : function() {
return {
longname : 'Directionality',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
},
// Private methods
_nodeChange : function(ed, cm, n) {
var dom = ed.dom, dir;
n = dom.getParent(n, dom.isBlock);
if (!n) {
cm.setDisabled('ltr', 1);
cm.setDisabled('rtl', 1);
return;
}
dir = dom.getAttrib(n, 'dir');
cm.setActive('ltr', dir == "ltr");
cm.setDisabled('ltr', 0);
cm.setActive('rtl', dir == "rtl");
cm.setDisabled('rtl', 0);
}
});
// Register plugin
tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality);
})();
@@ -0,0 +1 @@
(function(){tinymce.create("tinymce.plugins.EmotionsPlugin",{init:function(a,b){a.addCommand("mceEmotion",function(){a.windowManager.open({file:b+"/emotions.htm",width:250+parseInt(a.getLang("emotions.delta_width",0)),height:160+parseInt(a.getLang("emotions.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("emotions",tinymce.plugins.EmotionsPlugin)})();
@@ -0,0 +1,40 @@
/**
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.EmotionsPlugin', {
init : function(ed, url) {
// Register commands
ed.addCommand('mceEmotion', function() {
ed.windowManager.open({
file : url + '/emotions.htm',
width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
inline : 1
}, {
plugin_url : url
});
});
// Register buttons
ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
},
getInfo : function() {
return {
longname : 'Emotions',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
})();
+40
Ver Arquivo
@@ -0,0 +1,40 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{#emotions_dlg.title}</title>
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/emotions.js"></script>
</head>
<body style="display: none">
<div align="center">
<div class="title">{#emotions_dlg.title}:<br /><br /></div>
<table border="0" cellspacing="0" cellpadding="4">
<tr>
<td><a href="javascript:EmotionsDialog.insert('smiley-cool.gif','emotions_dlg.cool');"><img src="img/smiley-cool.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cool}" title="{#emotions_dlg.cool}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-cry.gif','emotions_dlg.cry');"><img src="img/smiley-cry.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cry}" title="{#emotions_dlg.cry}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-embarassed.gif','emotions_dlg.embarassed');"><img src="img/smiley-embarassed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.embarassed}" title="{#emotions_dlg.embarassed}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-foot-in-mouth.gif','emotions_dlg.foot_in_mouth');"><img src="img/smiley-foot-in-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.foot_in_mouth}" title="{#emotions_dlg.foot_in_mouth}" /></a></td>
</tr>
<tr>
<td><a href="javascript:EmotionsDialog.insert('smiley-frown.gif','emotions_dlg.frown');"><img src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}" title="{#emotions_dlg.frown}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-innocent.gif','emotions_dlg.innocent');"><img src="img/smiley-innocent.gif" width="18" height="18" border="0" alt="{#emotions_dlg.innocent}" title="{#emotions_dlg.innocent}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-kiss.gif','emotions_dlg.kiss');"><img src="img/smiley-kiss.gif" width="18" height="18" border="0" alt="{#emotions_dlg.kiss}" title="{#emotions_dlg.kiss}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-laughing.gif','emotions_dlg.laughing');"><img src="img/smiley-laughing.gif" width="18" height="18" border="0" alt="{#emotions_dlg.laughing}" title="{#emotions_dlg.laughing}" /></a></td>
</tr>
<tr>
<td><a href="javascript:EmotionsDialog.insert('smiley-money-mouth.gif','emotions_dlg.money_mouth');"><img src="img/smiley-money-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.money_mouth}" title="{#emotions_dlg.money_mouth}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-sealed.gif','emotions_dlg.sealed');"><img src="img/smiley-sealed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.sealed}" title="{#emotions_dlg.sealed}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-smile.gif','emotions_dlg.smile');"><img src="img/smiley-smile.gif" width="18" height="18" border="0" alt="{#emotions_dlg.smile}" title="{#emotions_dlg.smile}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-surprised.gif','emotions_dlg.surprised');"><img src="img/smiley-surprised.gif" width="18" height="18" border="0" alt="{#emotions_dlg.surprised}" title="{#emotions_dlg.surprised}" /></a></td>
</tr>
<tr>
<td><a href="javascript:EmotionsDialog.insert('smiley-tongue-out.gif','emotions_dlg.tongue_out');"><img src="img/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{#emotions_dlg.tongue-out}" title="{#emotions_dlg.tongue_out}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-undecided.gif','emotions_dlg.undecided');"><img src="img/smiley-undecided.gif" width="18" height="18" border="0" alt="{#emotions_dlg.undecided}" title="{#emotions_dlg.undecided}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-wink.gif','emotions_dlg.wink');"><img src="img/smiley-wink.gif" width="18" height="18" border="0" alt="{#emotions_dlg.wink}" title="{#emotions_dlg.wink}" /></a></td>
<td><a href="javascript:EmotionsDialog.insert('smiley-yell.gif','emotions_dlg.yell');"><img src="img/smiley-yell.gif" width="18" height="18" border="0" alt="{#emotions_dlg.yell}" title="{#emotions_dlg.yell}" /></a></td>
</tr>
</table>
</div>
</body>
</html>
Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 354 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 329 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 331 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 344 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 340 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 336 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 338 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 344 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 321 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 325 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 345 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 342 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 328 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 337 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 351 B

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 336 B

+22
Ver Arquivo
@@ -0,0 +1,22 @@
tinyMCEPopup.requireLangPack();
var EmotionsDialog = {
init : function(ed) {
tinyMCEPopup.resizeToInnerSize();
},
insert : function(file, title) {
var ed = tinyMCEPopup.editor, dom = ed.dom;
tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
alt : ed.getLang(title),
title : ed.getLang(title),
border : 0
}));
tinyMCEPopup.close();
}
};
tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
+20
Ver Arquivo
@@ -0,0 +1,20 @@
tinyMCE.addI18n('en.emotions_dlg',{
title:"Insert emotion",
desc:"Emotions",
cool:"Cool",
cry:"Cry",
embarassed:"Embarassed",
foot_in_mouth:"Foot in mouth",
frown:"Frown",
innocent:"Innocent",
kiss:"Kiss",
laughing:"Laughing",
money_mouth:"Money mouth",
sealed:"Sealed",
smile:"Smile",
surprised:"Surprised",
tongue_out:"Tongue out",
undecided:"Undecided",
wink:"Wink",
yell:"Yell"
});
+27
Ver Arquivo
@@ -0,0 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{#example_dlg.title}</title>
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
</head>
<body>
<form onsubmit="ExampleDialog.insert();return false;" action="#">
<p>Here is a example dialog.</p>
<p>Selected text: <input id="someval" name="someval" type="text" class="text" /></p>
<p>Custom arg: <input id="somearg" name="somearg" type="text" class="text" /></p>
<div class="mceActionPanel">
<div style="float: left">
<input type="button" id="insert" name="insert" value="{#insert}" onclick="ExampleDialog.insert();" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
</body>
</html>
@@ -0,0 +1 @@
(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
@@ -0,0 +1,81 @@
/**
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
// Load plugin specific language pack
tinymce.PluginManager.requireLangPack('example');
tinymce.create('tinymce.plugins.ExamplePlugin', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished it's initialization so use the onInit event
* of the editor instance to intercept that event.
*
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
* @param {string} url Absolute URL to where the plugin is located.
*/
init : function(ed, url) {
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
ed.addCommand('mceExample', function() {
ed.windowManager.open({
file : url + '/dialog.htm',
width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
inline : 1
}, {
plugin_url : url, // Plugin absolute URL
some_custom_arg : 'custom arg' // Custom argument
});
});
// Register example button
ed.addButton('example', {
title : 'example.desc',
cmd : 'mceExample',
image : url + '/img/example.gif'
});
// Add a node change handler, selects the button in the UI when a image is selected
ed.onNodeChange.add(function(ed, cm, n) {
cm.setActive('example', n.nodeName == 'IMG');
});
},
/**
* Creates control instances based in the incomming name. This method is normally not
* needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
* but you sometimes need to create more complex controls like listboxes, split buttons etc then this
* method can be used to create those.
*
* @param {String} n Name of the control to create.
* @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
* @return {tinymce.ui.Control} New control instance or null if no control was created.
*/
createControl : function(n, cm) {
return null;
},
/**
* Returns information about the plugin as a name/value array.
* The current keys are longname, author, authorurl, infourl and version.
*
* @return {Object} Name/value array containing information about the plugin.
*/
getInfo : function() {
return {
longname : 'Example plugin',
author : 'Some author',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
version : "1.0"
};
}
});
// Register plugin
tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
})();

Alguns arquivos não foram exibidos porque demasiados arquivos foram alterados neste diff Mostrar Mais