Subversion Repositories eFlore/Applications.cel

Rev

Rev 3175 | Rev 3180 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3175 Rev 3176
Line 27... Line 27...
27
 
27
 
28
    <!-- Favicones -->
28
    <!-- Favicones -->
Line 29... Line 29...
29
    <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
29
    <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
30
 
30
 
31
    <!-- Jquery -->
31
    <!-- Jquery -->
32
    <script type="text/javascript" src="http://localhost/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
32
    <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
33
    <script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
33
    <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
34
    <script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
34
    <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
35
    <script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
35
    <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
36
    <script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/messages_fr.js"></script>
36
    <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/messages_fr.js"></script>
Line 37... Line 37...
37
    <script type="text/javascript" src="http://localhost/commun/jquery/form/2.95/jquery.form.min.js"></script>
37
    <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/form/2.95/jquery.form.min.js"></script>
38
    <script type="text/javascript" src="http://localhost/commun/bootstrap/3.1.0/js/bootstrap.min.js"></script>
38
    <script src="https://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script>
39
 
39
 
40
    <!-- Barre de navigation -->
40
    <!-- Barre de navigation -->
Line 41... Line 41...
41
    <?php if ($bar !== false): ?>
41
    <?php if ($bar !== false): ?>
42
      <script src="<?php echo $url_script_navigation; ?>"></script>
42
            <script src="<?php echo $url_script_navigation; ?>"></script>
43
    <?php endif; ?>
-
 
-
 
43
    <?php endif; ?>
44
 
44
 
45
    <!-- CSS -->
-
 
46
    <link rel="stylesheet" type="text/css" href="http://localhost/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" media="screen" />
45
    <!-- CSS -->
47
 
46
    <link href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen" />
Line 48... Line 47...
48
    <link rel="stylesheet" type="text/css" href="<?php echo $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen" />
47
    <link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" />
49
    <link rel="stylesheet" type="text/css" href="http://localhost/commun/bootstrap/3.1.0/css/bootstrap.min.css" />
48
    <link rel="stylesheet" type="text/css" href="<?php echo $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen" />
Line 124... Line 123...
124
 
123
 
125
                <label for="description">Description</label>
124
                <label for="description">Description</label>
Line 126... Line 125...
126
                <textarea name="description" id="description"><?php echo isset($widget['description']) ? $widget['description'] : ''; ?></textarea>
125
                <textarea name="description" id="description"><?php echo isset($widget['description']) ? $widget['description'] : ''; ?></textarea>
-
 
126
 
-
 
127
                <div class="input-file-container">
-
 
128
 
-
 
129
                  <?php
-
 
130
                    if( isset( $widget['logo'] ) ) :
-
 
131
                      $logo_src = $widget['logo'];
-
 
132
                      $logo_img =
-
 
133
                        '<img id="pre-existent-logo" src="' . $logo_src . '"><br>Pour changer, télécharger un nouveau fichier.';
-
 
134
                      $logo_hidden = '';
-
 
135
                      $logo_file_name = array_reverse(explode('/', $logo_src));
-
 
136
                    else :
-
 
137
                      $logo_src = '';
-
 
138
                      $logo_img = '';
-
 
139
                      $logo_hidden = ' hidden';
-
 
140
                      $logo_file_name = [];
-
 
141
                    endif;
127
 
142
                  ?>
128
                <div class="input-file-container">
143
 
-
 
144
                  <input type="file" class="input-file" name="logo" id="logo"  accept="image" value="<?php echo $logo_src; ?>">
-
 
145
                  <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
-
 
146
                </div>
-
 
147
                <div class="remove-file button" name="remove-file" title="Supprimer le fichier">
-
 
148
                  <i class="fas fa-times" aria-hidden="true"></i>
-
 
149
                </div>
-
 
150
                <div class="file-return logo<?php echo $logo_hidden; ?>">
129
                    <input type="file" class="input-file" name="logo" id="logo"  accept="image">
151
                  <?php echo $logo_file_name[0]; ?>
130
                    <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
-
 
131
                </div>
-
 
Line 132... Line -...
132
                <div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
-
 
Line 133... Line 152...
133
                <div class="file-return logo hidden"></div>
152
                  <?php echo $logo_img; ?>
134
 
153
                </div>
135
                <?php echo isset($widget['logo']) ? '<img src="'.$widget['logo'].'"><br />Pour changer, télécharger un nouveau fichier.': ''; ?>
154
 
136
 
155