Bonjour,
Je suis entrain d'essayer de modifier un composant pour créer/y integrer une page de recherche minimale (nouveau fichier a integrer dans le composant que j'appelerais quicksearch.php) contenant par exemple uniquement une partie du code du fichier views/resume/tmpl/jobsearch.php.
J'ai donc conclus en définitif qu'il fallait creer un module pour se composant dont le fichier quickjobsearch.php est ci-dessous.
Seulement, mes variables ne sont pas initialisées lorsque ce module est affichée de façon unique sur une page alors qu'elles le sont lorsque le composant JS Jobs lui même l'est.
D'avance merci pour votre aide,
Sphere369
quickjobsearch.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 <?php $option = JRequest :: getVar('option', 'com_jsjobs'); defined('_JEXEC') or die('Restricted access'); jimport('joomla.html.pane'); $editor = & JFactory :: getEditor(); JHTML :: _('behavior.calendar'); global $mainframe; $document = &JFactory::getDocument(); $width_big = 40; $width_med = 25; $width_sml = 15; ?> <link rel="stylesheet" type="text/css" media="all" href="<?php echo $mainframe->getBasePath(); ?>components/com_jsjobs/css/<?php echo $this->config['theme']; ?>" /> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane"> <tr><td> <?php if (sizeof($this->joblinks) != 0){ foreach($this->joblinks as $lnk) { ?> <?php echo $lnk; ?> <?php } } ?> </td> </tr> <tr><td height="1"> </td> </tr> <tr><td> <!--Liens pour les recherches par categorie, recherche d'offre d'emploi, ma selection d'offre, curriculum vitae/profil personnel --> <?php if (sizeof($this->emplinks) != 0){ foreach($this->emplinks as $lnk) { ?> <?php echo $lnk; ?> <?php } }?> </td> </tr> </table> <!--<form action="index.php" method="POST" name="adminForm" enctype="multipart/form-data">--> <form action="index.php?option=com_jsjobs&c=jsjobs&view=resume&layout=jobsearchresults&Itemid=<?php echo $this->Itemid; ?>" method="post" name="adminForm" id="adminForm"> <input type="hidden" name="isjobsearch" value="1" /> <table cellpadding="5" cellspacing="0" border="0" width="100%" class="adminform"> <tr> <td width="20%" align="right"><?php echo JText::_('Mot cles'); ?></td> <!-- "Titre de l'Offre d'Emploi:" --> <td width="60%"><input class="inputbox" type="text" name="title" size="40" maxlength="50" /> <!-- champs mot cles pour l'offre d'emploi --> </td> <td align="right"><?php echo JText::_('JP_CITY'); ?></td> <!-- "Pays" --> <td id="city"> <input class="inputbox" type="text" name="city" size="20" maxlength="30" /> </td> </tr> ....
Partager