Changeset 82:a31a062afd24 for plugins/importExport
- Timestamp:
- 05/02/11 08:28:04 (14 years ago)
- Branch:
- userprefs
- Location:
- plugins/importExport/inc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/inc/class.dc.export.flat.php
r0 r82 156 156 '<p>'.sprintf(__('This will create an export of your current blog: %s'), 157 157 '<strong>'.html::escapeHTML($this->core->blog->name).'</strong>').'</p>'. 158 '<p><label class="classic">'.__('File name:').' '.158 '<p><label for="file_name" class="classic">'.__('File name:').' '. 159 159 form::field(array('file_name'),25,255,date('Y-m-d-').html::escapeHTML($this->core->blog->id.'-backup.txt')). 160 160 '</label> '. … … 171 171 '<form action="'.$this->getURL(true).'" method="post">'. 172 172 '<fieldset><legend>'.__('Export all content').'</legend>'. 173 '<p><label class="classic">'.__('File name:').' '.174 form::field(array('file_name' ),25,255,date('Y-m-d-').'dotclear-backup.txt').173 '<p><label for="file_name2" class="classic">'.__('File name:').' '. 174 form::field(array('file_name','file_name2'),25,255,date('Y-m-d-').'dotclear-backup.txt'). 175 175 '</label> '. 176 176 '<input type="submit" value="'.__('Export all content').'" />'. -
plugins/importExport/inc/class.dc.import.dc1.php
r0 r82 151 151 printf($this->imForm(1,__('General information'),__('Import my blog now')), 152 152 '<h3>'.__('We first need some information about your old Dotclear 1.2 installation.').'</h3>'. 153 '<p><label >'.__('Database Host Name:').' '.153 '<p><label for="db_host">'.__('Database Host Name:').' '. 154 154 form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</label></p>'. 155 '<p><label >'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).' '.155 '<p><label for="db_name">'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).' '. 156 156 form::field('db_name',30,255,html::escapeHTML($this->vars['db_name'])).'</label></p>'. 157 '<p><label >'.__('Database User Name:').' '.157 '<p><label for="db_user">'.__('Database User Name:').' '. 158 158 form::field('db_user',30,255,html::escapeHTML($this->vars['db_user'])).'</label></p>'. 159 '<p><label >'.__('Database Password:').' '.159 '<p><label for="db_pwd">'.__('Database Password:').' '. 160 160 form::password('db_pwd',30,255).'</label></p>'. 161 '<p><label >'.__('Database Tables Prefix:').' '.161 '<p><label for="db_prefix">'.__('Database Tables Prefix:').' '. 162 162 form::field('db_prefix',30,255,html::escapeHTML($this->vars['db_prefix'])).'</label></p>'. 163 163 '<h3>'.__('Entries import options').'</h3>'. 164 '<p><label >'.__('Number of entries to import at once:').' '.164 '<p><label for="post_limit">'.__('Number of entries to import at once:').' '. 165 165 form::field('post_limit',3,3,html::escapeHTML($this->vars['post_limit'])).'</label></p>' 166 166 ); -
plugins/importExport/inc/class.dc.import.feed.php
r0 r82 89 89 $this->core->formNonce(). 90 90 form::hidden(array('do'),1). 91 '<p><label >'.__('Feed URL:').' '.91 '<p><label for="feed_url">'.__('Feed URL:').' '. 92 92 form::field('feed_url',40,300,html::escapeHTML($this->feed_url)).'</label></p>'. 93 93 '<p><input type="submit" value="'.__('Send').'" /></p>'. -
plugins/importExport/inc/class.dc.import.flat.php
r0 r82 164 164 form::hidden(array('do'),1). 165 165 form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 166 '<p><label >'.__('Upload a backup file').' '.166 '<p><label for="up_single_file">'.__('Upload a backup file').' '. 167 167 '<input type="file" id="up_single_file" name="up_single_file" size="20" />'. 168 168 '</label></p>'; … … 173 173 $public_files = array_merge(array('-' => ''),$public_files); 174 174 echo 175 '<p><label >'.__('or pick up a local file in your public directory').' '.175 '<p><label for="public_single_file">'.__('or pick up a local file in your public directory').' '. 176 176 form::combo('public_single_file',$public_files, '', '', '', $empty). 177 177 '</label></p>'; … … 193 193 form::hidden(array('do'),1). 194 194 form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 195 '<p><label >'.__('Upload a backup file').' '.195 '<p><label for="up_full_file">'.__('Upload a backup file').' '. 196 196 '<input type="file" id="up_full_file" name="up_full_file" size="20" />'. 197 197 '</label></p>'; 198 198 199 199 echo 200 '<p><label >'.__('or pick up a local file in your public directory').' '.200 '<p><label for="public_full_file">'.__('or pick up a local file in your public directory').' '. 201 201 form::combo('public_full_file',$public_files, '', '', '', $empty). 202 202 '</label></p>'; … … 205 205 '<p><strong>'.__('Warning: This will reset all the content of your database, except users.').'</strong></p>'. 206 206 207 '<p><label >'.__('Your password:').207 '<p><label for="your_pwd">'.__('Your password:'). 208 208 form::password('your_pwd',20,255).'</label></p>'. 209 209 -
plugins/importExport/inc/class.dc.import.wp.php
r0 r82 182 182 printf($this->imForm(1,__('General information'),__('Import my blog now')), 183 183 '<h3>'.__('We first need some information about your old WordPress installation.').'</h3>'. 184 '<p><label >'.__('Database Host Name:').' '.184 '<p><label for="db_host">'.__('Database Host Name:').' '. 185 185 form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</label></p>'. 186 '<p><label >'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).' '.186 '<p><label for="db_name">'.__('Database Name:',html::escapeHTML($this->vars['db_name'])).' '. 187 187 form::field('db_name',30,255,html::escapeHTML($this->vars['db_name'])).'</label></p>'. 188 '<p><label >'.__('Database User Name:').' '.188 '<p><label for="db_user">'.__('Database User Name:').' '. 189 189 form::field('db_user',30,255,html::escapeHTML($this->vars['db_user'])).'</label></p>'. 190 '<p><label >'.__('Database Password:').' '.190 '<p><label for="db_pwd">'.__('Database Password:').' '. 191 191 form::password('db_pwd',30,255).'</label></p>'. 192 '<p><label >'.__('Database Tables Prefix:').' '.192 '<p><label for="db_prefix">'.__('Database Tables Prefix:').' '. 193 193 form::field('db_prefix',30,255,html::escapeHTML($this->vars['db_prefix'])).'</label></p>'. 194 194 '<h3>'.__('Entries import options').'</h3>'. … … 202 202 'category, you can just ignore it while importing your blog, as Dotclear allows you to '. 203 203 'actually keep your posts uncategorized.').'</p>'. 204 '<p><label class="classic">'.form::checkbox('ignore_first_cat',1,$this->vars['ignore_first_cat']).' '.204 '<p><label for="ignore_first_cat" class="classic">'.form::checkbox('ignore_first_cat',1,$this->vars['ignore_first_cat']).' '. 205 205 __('Ignore the first category:').'</label></p>'. 206 '<p><label class="classic">'.form::checkbox('cat_import',1,$this->vars['cat_import']).' '.206 '<p><label for="cat_import" class="classic">'.form::checkbox('cat_import',1,$this->vars['cat_import']).' '. 207 207 __('Import lowest numbered category on posts:').'</label></p>'. 208 '<p><label class="classic">'.form::checkbox('cat_as_tags',1,$this->vars['cat_as_tags']).' '.208 '<p><label for="cat_as_tags" class="classic">'.form::checkbox('cat_as_tags',1,$this->vars['cat_as_tags']).' '. 209 209 __('Import all categories as tags:').'</label></p>'. 210 '<p><label >'.__('Prefix such tags with:').' '.210 '<p><label for="cat_tags_prefix">'.__('Prefix such tags with:').' '. 211 211 form::field('cat_tags_prefix',10,20,html::escapeHTML($this->vars['cat_tags_prefix'])).'</label></p>'. 212 '<p><label >'.__('Number of entries to import at once:').' '.212 '<p><label for="post_limit">'.__('Number of entries to import at once:').' '. 213 213 form::field('post_limit',3,3,html::escapeHTML($this->vars['post_limit'])).'</label></p>'. 214 214 215 215 '<h3>'.__('Content filters').'</h3>'. 216 216 '<p>'.__('You may want to process your post and/or comment content with the following filters.').'</p>'. 217 '<p><label >'.__('Post content formatter:').' '.form::combo('post_formater',$this->formaters,$this->vars['post_formater']).'</label></p>'.218 '<p><label >'.__('Comment content formatter:').' '.form::combo('comment_formater',$this->formaters,$this->vars['comment_formater']).'</label></p>'217 '<p><label for="post_formater">'.__('Post content formatter:').' '.form::combo('post_formater',$this->formaters,$this->vars['post_formater']).'</label></p>'. 218 '<p><label for="comment_formater">'.__('Comment content formatter:').' '.form::combo('comment_formater',$this->formaters,$this->vars['comment_formater']).'</label></p>' 219 219 ); 220 220 break;
Note: See TracChangeset
for help on using the changeset viewer.